Ryan Di c68c2be44c handle bound texts 1 gadu atpakaļ
..
actions 794b2b21a7 merge with master 1 gadu atpakaļ
components c68c2be44c handle bound texts 1 gadu atpakaļ
context 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
css 794b2b21a7 merge with master 1 gadu atpakaļ
data 971b4d4ae6 feat: text wrapping (#7999) 1 gadu atpakaļ
element c68c2be44c handle bound texts 1 gadu atpakaļ
hooks 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
locales 794b2b21a7 merge with master 1 gadu atpakaļ
renderer 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
scene 79257a1923 fix: correctly resolve the package version (#8016) 1 gadu atpakaļ
tests 661d6a4a75 fix: flaky snapshot tests with floating point precision issues (#8049) 1 gadu atpakaļ
.gitignore 4f0a2a9593 docs: add next js with app router example (#7552) 1 gadu atpakaļ
.size-limit.json d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
CHANGELOG.md 015b46ab23 feat: expose `StoreAction` in relation to multiplayer history (#7898) 1 gadu atpakaļ
README.md d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
align.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
analytics.ts f597bd3e01 fix: command palette tweaks and fixes (#7876) 1 gadu atpakaļ
animated-trail.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
animation-frame-handler.ts 86cfeb714c feat: add eraser tool trail (#7511) 1 gadu atpakaļ
appState.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
change.ts eddbe55f50 fix: always re-generate index of defined moved elements (#8040) 1 gadu atpakaļ
charts.test.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
charts.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
clients.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
clipboard.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
clipboard.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
colors.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
constants.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
css.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
cursor.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
deburr.ts 550a388b2b feat: command palette (#7804) 1 gadu atpakaļ
distribute.ts 10bd08ef19 fix: make getBoundTextElement and related helpers pure (#7601) 1 gadu atpakaļ
emitter.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
env.cjs a8064ba3ee build: Welcome ESM and Bye Bye UMD (#7441) 1 gadu atpakaļ
errors.ts 32df5502ae feat: fractional indexing (#7359) 1 gadu atpakaļ
fractionalIndex.ts eddbe55f50 fix: always re-generate index of defined moved elements (#8040) 1 gadu atpakaļ
frame.test.tsx 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
frame.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
ga.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
gadirections.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
galines.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
gapoints.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
gatransforms.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
gesture.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
global.d.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
groups.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
history.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
i18n.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
index-node.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
index.tsx 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
jotai.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
keys.ts 550a388b2b feat: command palette (#7804) 1 gadu atpakaļ
laser-trails.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
math.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
math.ts 794b2b21a7 merge with master 1 gadu atpakaļ
package.json 2f9526da24 feat: upgrade to mermaid-to-excalidraw v1 🚀 (#8022) 1 gadu atpakaļ
points.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
polyfill.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
pwacompat.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
queue.test.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 gadu atpakaļ
queue.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
random.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
react-app-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
reactUtils.ts 65047cc2cb fix: decouple react and react-dom imports from utils and make it treeshakeable (#7527) 1 gadu atpakaļ
shapes.tsx d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
snapping.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
store.ts defd34923a docs: fix `updateScene` `storeAction` default tsdoc & document types (#8048) 1 gadu atpakaļ
tsconfig.json 4f0a2a9593 docs: add next js with app router example (#7552) 1 gadu atpakaļ
types.ts 09e249ae57 capture history 1 gadu atpakaļ
utility-types.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 gadu atpakaļ
utils.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ
vite-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 gadu atpakaļ
zindex.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 gadu atpakaļ

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