success/packages/excalidraw
Aakansha Doshi 88a2b286c7
feat: move utils to utils package and make @excalidraw/utils a workspace ()
* feat: move utils to utils package and make @excalidraw/utils a workspace

* remove esm and update types path

* remove esm script

* fix package.json and yarn.lock

* update path

* fix

* fix lint and test
..
actions build: decouple package deps and introduce yarn workspaces ()
assets build: decouple package deps and introduce yarn workspaces ()
components feat: move utils to utils package and make @excalidraw/utils a workspace ()
context build: decouple package deps and introduce yarn workspaces ()
css build: decouple package deps and introduce yarn workspaces ()
data feat: move utils to utils package and make @excalidraw/utils a workspace ()
element build: decouple package deps and introduce yarn workspaces ()
example build: decouple package deps and introduce yarn workspaces ()
hooks feat: move utils to utils package and make @excalidraw/utils a workspace ()
locales chore: Update translations from Crowdin ()
renderer build: decouple package deps and introduce yarn workspaces ()
scene feat: move utils to utils package and make @excalidraw/utils a workspace ()
tests build: decouple package deps and introduce yarn workspaces ()
.gitignore build: decouple package deps and introduce yarn workspaces ()
.size-limit.json build: decouple package deps and introduce yarn workspaces ()
CHANGELOG.md build: decouple package deps and introduce yarn workspaces ()
README.md build: decouple package deps and introduce yarn workspaces ()
align.ts build: decouple package deps and introduce yarn workspaces ()
analytics.ts build: decouple package deps and introduce yarn workspaces ()
appState.ts build: decouple package deps and introduce yarn workspaces ()
charts.test.ts build: decouple package deps and introduce yarn workspaces ()
charts.ts build: decouple package deps and introduce yarn workspaces ()
clients.ts build: decouple package deps and introduce yarn workspaces ()
clipboard.test.ts build: decouple package deps and introduce yarn workspaces ()
clipboard.ts build: decouple package deps and introduce yarn workspaces ()
colors.ts build: decouple package deps and introduce yarn workspaces ()
constants.ts build: decouple package deps and introduce yarn workspaces ()
css.d.ts build: decouple package deps and introduce yarn workspaces ()
cursor.ts build: decouple package deps and introduce yarn workspaces ()
distribute.ts build: decouple package deps and introduce yarn workspaces ()
emitter.ts build: decouple package deps and introduce yarn workspaces ()
entry.js build: decouple package deps and introduce yarn workspaces ()
env.js build: decouple package deps and introduce yarn workspaces ()
errors.ts build: decouple package deps and introduce yarn workspaces ()
frame.test.tsx build: decouple package deps and introduce yarn workspaces ()
frame.ts feat: move utils to utils package and make @excalidraw/utils a workspace ()
ga.ts build: decouple package deps and introduce yarn workspaces ()
gadirections.ts build: decouple package deps and introduce yarn workspaces ()
galines.ts build: decouple package deps and introduce yarn workspaces ()
gapoints.ts build: decouple package deps and introduce yarn workspaces ()
gatransforms.ts build: decouple package deps and introduce yarn workspaces ()
gesture.ts build: decouple package deps and introduce yarn workspaces ()
global.d.ts build: decouple package deps and introduce yarn workspaces ()
groups.ts build: decouple package deps and introduce yarn workspaces ()
history.ts build: decouple package deps and introduce yarn workspaces ()
i18n.ts build: decouple package deps and introduce yarn workspaces ()
index-node.ts build: decouple package deps and introduce yarn workspaces ()
index.tsx feat: move utils to utils package and make @excalidraw/utils a workspace ()
jotai.ts build: decouple package deps and introduce yarn workspaces ()
keys.ts build: decouple package deps and introduce yarn workspaces ()
main.js build: decouple package deps and introduce yarn workspaces ()
math.test.ts build: decouple package deps and introduce yarn workspaces ()
math.ts build: decouple package deps and introduce yarn workspaces ()
package.json feat: move utils to utils package and make @excalidraw/utils a workspace ()
points.ts build: decouple package deps and introduce yarn workspaces ()
polyfill.ts build: decouple package deps and introduce yarn workspaces ()
publicPath.js build: decouple package deps and introduce yarn workspaces ()
pwacompat.d.ts build: decouple package deps and introduce yarn workspaces ()
random.ts build: decouple package deps and introduce yarn workspaces ()
react-app-env.d.ts build: decouple package deps and introduce yarn workspaces ()
shapes.tsx build: decouple package deps and introduce yarn workspaces ()
snapping.ts build: decouple package deps and introduce yarn workspaces ()
tsconfig-types.json build: decouple package deps and introduce yarn workspaces ()
types.ts build: decouple package deps and introduce yarn workspaces ()
utility-types.ts build: decouple package deps and introduce yarn workspaces ()
utils.ts build: decouple package deps and introduce yarn workspaces ()
vercel.json build: decouple package deps and introduce yarn workspaces ()
vite-env.d.ts build: decouple package deps and introduce yarn workspaces ()
webpack.dev-server.config.js build: decouple package deps and introduce yarn workspaces ()
webpack.dev.config.js build: decouple package deps and introduce yarn workspaces ()
webpack.preact.config.js build: decouple package deps and introduce yarn workspaces ()
webpack.prod.config.js build: decouple package deps and introduce yarn workspaces ()
zindex.ts build: decouple package deps and introduce yarn workspaces ()

README.md

Excalidraw

Excalidraw is exported as a component to directly embed in your projects.

Installation

You can use npm

npm install react react-dom @excalidraw/excalidraw

or via yarn

yarn add react react-dom @excalidraw/excalidraw

After installation you will see a folder excalidraw-assets and excalidraw-assets-dev in dist directory which contains the assets needed for this app in prod and dev mode respectively.

Move the folder excalidraw-assets and excalidraw-assets-dev to the path where your assets are served.

By default it will try to load the files from https://unpkg.com/@excalidraw/excalidraw/dist/

If you want to load assets from a different path you can set a variable window.EXCALIDRAW_ASSET_PATH depending on environment (for example if you have different URL's for dev and prod) to the url from where you want to load the assets.

Note

If you don't want to wait for the next stable release and try out the unreleased changes you can use @excalidraw/excalidraw@next.

Dimensions of Excalidraw

Excalidraw takes 100% of width and height of the containing block so make sure the container in which you render Excalidraw has non zero dimensions.

Demo

Try here.

Integration

Head over to the docs

API

Head over to the docs

Contributing

Head over to the docs