Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idrawjs/studio

The studio of iDraw.js (iDraw.js的画图编辑器)
https://github.com/idrawjs/studio

canvas desgin figma idraw idraw-studio idrawjs idrawjs-editor sketch

Last synced: 7 days ago
JSON representation

The studio of iDraw.js (iDraw.js的画图编辑器)

Awesome Lists containing this project

README

        

# @idraw/studio



Version


License


idrawjs.com/studio/

## Sponsors

`@idraw/studio` is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider [sponsoring iDrawjs's development](https://opencollective.com/idrawjs).

[![Become a Backer](https://opencollective.com/idrawjs/tiers/backers.svg?avatarHeight=48)](https://opencollective.com/idrawjs)


## @idraw/studio Preview

You can click [idrawjs.com/studio/](https://idrawjs.com/studio) to experience it.

The preview of `@idraw/studo`.

idraw-studio-light-theme

idraw-studio-dark-theme

## Usage

```sh
# Install peer dependcies
npm install antd idraw

npm install @idraw/studio
```

```js
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import { Studio } from '@idraw/studio';
import '@idraw/studio/dist/css/index.css'

const App = () => {
const [width, setWidth] = useState(window.innerWidth);
const [height, setHeight] = useState(window.innerHeight);
useEffect(() => {
window.addEventListener('resize', () => {
setWidth(window.innerWidth);
setHeight(window.innerHeight);
});
}, []);

return (

);
};

const root = createRoot(document.querySelector('#app'));
root.render();

```

## Development

```sh
git clone [email protected]:idrawjs/studio.git

cd studio

pnpm install

npm run dev
```