Marcel Mraz 77c4eb6db4 Multiple base url fallbacks 1 rok pred
..
actions 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
components 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
context d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
css 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
data 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
element 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
hooks 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
locales 890ed9f31f feat: add "toggle grid" to command palette (#7887) 1 rok pred
renderer 5211b003b8 fix: double text rendering on edit (#7904) 1 rok pred
scene 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
tests 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
.gitignore 4f0a2a9593 docs: add next js with app router example (#7552) 1 rok pred
.size-limit.json d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
CHANGELOG.md 77c4eb6db4 Multiple base url fallbacks 1 rok pred
README.md 1ac2626e47 Docs for font picker 1 rok pred
align.ts 10bd08ef19 fix: make getBoundTextElement and related helpers pure (#7601) 1 rok pred
analytics.ts f597bd3e01 fix: command palette tweaks and fixes (#7876) 1 rok pred
animated-trail.ts 86cfeb714c feat: add eraser tool trail (#7511) 1 rok pred
animation-frame-handler.ts 86cfeb714c feat: add eraser tool trail (#7511) 1 rok pred
appState.ts 73bf50e8a8 fix: remove t from getDefaultAppState and allow name to be nullable (#7666) 1 rok pred
change.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
charts.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
charts.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
clients.ts 068895db0e feat: expose more collaborator status icons (#7777) 1 rok pred
clipboard.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
clipboard.ts f5ab3e4e12 fix: remove dependency of t from clipboard and image (#7712) 1 rok pred
colors.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
constants.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
css.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
cursor.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
deburr.ts 550a388b2b feat: command palette (#7804) 1 rok pred
distribute.ts 10bd08ef19 fix: make getBoundTextElement and related helpers pure (#7601) 1 rok pred
emitter.ts e6c3c06c2e feat: support pen erasing (#7496) 1 rok pred
env.cjs a8064ba3ee build: Welcome ESM and Bye Bye UMD (#7441) 1 rok pred
errors.ts 32df5502ae feat: fractional indexing (#7359) 1 rok pred
fractionalIndex.ts 32df5502ae feat: fractional indexing (#7359) 1 rok pred
frame.test.tsx d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
frame.ts 32df5502ae feat: fractional indexing (#7359) 1 rok pred
ga.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
gadirections.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
galines.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
gapoints.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
gatransforms.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
gesture.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
global.d.ts c72e853c85 refactor: editor events sub/unsub refactor (#7483) 1 rok pred
groups.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
history.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
i18n.ts a8064ba3ee build: Welcome ESM and Bye Bye UMD (#7441) 1 rok pred
index-node.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
index.tsx 15bfa626b4 feat: support to not render remote cursor & username (#7130) 1 rok pred
jotai.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
keys.ts 550a388b2b feat: command palette (#7804) 1 rok pred
laser-trails.ts 15bfa626b4 feat: support to not render remote cursor & username (#7130) 1 rok pred
math.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
math.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
package.json 32df5502ae feat: fractional indexing (#7359) 1 rok pred
points.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
polyfill.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
pwacompat.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
queue.test.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 rok pred
queue.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 rok pred
random.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
react-app-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
reactUtils.ts 65047cc2cb fix: decouple react and react-dom imports from utils and make it treeshakeable (#7527) 1 rok pred
shapes.tsx d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
snapping.ts 79d9dc2f8f fix: make bounds independent of scene (#7679) 1 rok pred
store.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
tsconfig.json 4f0a2a9593 docs: add next js with app router example (#7552) 1 rok pred
types.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
utility-types.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 rok pred
utils.ts 530617be90 feat: multiplayer undo / redo (#7348) 1 rok pred
vite-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 1 rok pred
zindex.ts 32df5502ae feat: fractional indexing (#7359) 1 rok pred

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/prod/

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