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

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