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

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