You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
success/packages/excalidraw
Márk Tolmács 2523624f15
fix: React 18 element.ref was accessed error (#9208)
Bump @radix-ui/react-popover to fix element.ref React 19 error

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2 weeks ago
..
actions chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
components fix: React 18 element.ref was accessed error (#9208) 2 weeks ago
context feat: update jotai (#9015) 2 months ago
css chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
data fix: cleanup legacy `element.rawText` (obsidian) (#9203) 2 weeks ago
element chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
fonts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
hooks chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
locales feat: add action to wrap selected items in a frame (#9005) 2 months ago
renderer chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
scene chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
subset fix: Comic Shanns issues, new fonts structure (#8641) 5 months ago
tests chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
.gitignore docs: add next js with app router example (#7552) 1 year ago
.size-limit.json build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
CHANGELOG.md chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
README.md chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
align.ts fix: align arrows bound to elements excalidraw#8833 (#8998) 2 months ago
analytics.ts feat: subset font glyphs for SVG export (#8384) 6 months ago
animated-trail.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
animation-frame-handler.ts feat: add eraser tool trail (#7511) 1 year ago
appState.ts feat: in canvas links between shapes (#8812) 4 months ago
binaryheap.ts feat: Orthogonal (elbow) arrows for diagramming (#8299) 7 months ago
change.ts feat: image cropping (#8613) 5 months ago
charts.test.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
charts.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
clients.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
clipboard.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
clipboard.ts fix: right-click paste for images in clipboard (Issue #8826) (#8845) 3 months ago
colors.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
constants.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
css.d.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
cursor.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
deburr.ts feat: command palette (#7804) 12 months ago
distribute.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
editor-jotai.ts feat: update jotai (#9015) 2 months ago
emitter.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
env.cjs build: Welcome ESM and Bye Bye UMD (#7441) 1 year ago
errors.ts feat: export scene to e+ on workspace creation/redemption (#8514) 4 months ago
fractionalIndex.ts feat: Elbow arrow segment fixing & positioning (#8952) 2 months ago
frame.test.tsx fix: duplicating/removing frame while children selected (#9079) 1 month ago
frame.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
gesture.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
global.d.ts chore: upgrade to react@19 (#9182) 2 weeks ago
groups.ts feat: do not delete frame children on frame delete (#9011) 2 months ago
history.ts chore: Refactor and remove scene from elbow arrow generation (#8342) 7 months ago
i18n.ts feat: update jotai (#9015) 2 months ago
index-node.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
index.tsx chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
keys.test.ts fix: undo/redo action for international keyboard layouts (#8649) 5 months ago
keys.ts fix: undo/redo action for international keyboard layouts (#8649) 5 months ago
laser-trails.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
mermaid.test.ts feat: improve mermaid detection on paste (#8287) 8 months ago
mermaid.ts feat: improve mermaid detection on paste (#8287) 8 months ago
package.json fix: React 18 element.ref was accessed error (#9208) 2 weeks ago
points.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
polyfill.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
pwacompat.d.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
queue.test.ts feat: store library to IndexedDB & support storage adapters (#7655) 1 year ago
queue.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
random.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
react-app-env.d.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
reactUtils.ts fix: decouple react and react-dom imports from utils and make it treeshakeable (#7527) 1 year ago
shapes.tsx chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
snapping.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
store.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
tsconfig.json chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
types.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
utility-types.ts fix: duplicating/removing frame while children selected (#9079) 1 month ago
utils.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
visualdebug.ts chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127) 2 weeks ago
vite-env.d.ts refactor: remove unused env variable (#8457) 6 months ago
workers.ts fix: Comic Shanns issues, new fonts structure (#8641) 5 months ago
zindex.ts fix: z-index change by one causes app to freeze (#8314) 7 months ago

README.md

Excalidraw

Excalidraw is exported as a component to be directly embedded in your project.

Installation

Use npm or yarn to install the package.

npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw

Note: If you don't want to wait for the next stable release and try out the unreleased changes, use @excalidraw/excalidraw@next.

Self-hosting fonts

By default, Excalidraw will try to download all the used fonts from the CDN.

For self-hosting purposes, you'll have to copy the content of the folder node_modules/@excalidraw/excalidraw/dist/prod/fonts to the path where your assets should be served from (i.e. public/ directory in your project). In that case, you should also set window.EXCALIDRAW_ASSET_PATH to the very same path, i.e. / in case it's in the root:

<script>window.EXCALIDRAW_ASSET_PATH = "/";</script>

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

Go to CodeSandbox example.

Integration

Head over to the docs.

API

Head over to the docs.

Contributing

Head over to the docs.