Ryan Di c68c2be44c handle bound texts 1 year ago
..
actions 794b2b21a7 merge with master 1 year ago
components c68c2be44c handle bound texts 1 year ago
context 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
css 794b2b21a7 merge with master 1 year ago
data 971b4d4ae6 feat: text wrapping (#7999) 1 year ago
element c68c2be44c handle bound texts 1 year ago
hooks 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
locales 794b2b21a7 merge with master 1 year ago
renderer 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
scene 79257a1923 fix: correctly resolve the package version (#8016) 1 year ago
tests 661d6a4a75 fix: flaky snapshot tests with floating point precision issues (#8049) 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 015b46ab23 feat: expose `StoreAction` in relation to multiplayer history (#7898) 1 year ago
README.md d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
align.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
analytics.ts f597bd3e01 fix: command palette tweaks and fixes (#7876) 1 year ago
animated-trail.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
animation-frame-handler.ts 86cfeb714c feat: add eraser tool trail (#7511) 2 years ago
appState.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
change.ts eddbe55f50 fix: always re-generate index of defined moved elements (#8040) 1 year ago
charts.test.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
charts.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
clients.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
clipboard.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
clipboard.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
colors.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
constants.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
css.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
cursor.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year 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 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year 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 eddbe55f50 fix: always re-generate index of defined moved elements (#8040) 1 year ago
frame.test.tsx 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
frame.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
ga.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
gadirections.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
galines.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
gapoints.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
gatransforms.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
gesture.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
global.d.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
groups.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
history.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
i18n.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
index-node.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
index.tsx 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
jotai.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
keys.ts 550a388b2b feat: command palette (#7804) 1 year ago
laser-trails.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
math.test.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
math.ts 794b2b21a7 merge with master 1 year ago
package.json 2f9526da24 feat: upgrade to mermaid-to-excalidraw v1 🚀 (#8022) 1 year ago
points.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year 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 1ed53b153c build: enable consistent type imports eslint rule (#7992) 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 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
store.ts defd34923a docs: fix `updateScene` `storeAction` default tsdoc & document types (#8048) 1 year ago
tsconfig.json 4f0a2a9593 docs: add next js with app router example (#7552) 2 years ago
types.ts 09e249ae57 capture history 1 year ago
utility-types.ts 2382fad4f6 feat: store library to IndexedDB & support storage adapters (#7655) 1 year ago
utils.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 year ago
vite-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 years ago
zindex.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 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/

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