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
Mark Tolmacs 0c02972695
Replace intersection code
6 months ago
..
actions Replace intersection code 6 months ago
components Bounds refactor and duplication removal 6 months ago
context build: enable consistent type imports eslint rule (#7992) 10 months ago
css feat: canvas search (#8438) 6 months ago
data Replace intersection code 6 months ago
element Replace intersection code 6 months ago
fonts feat: self-hosting existing google fonts (#8540) 6 months ago
hooks feat: subset font glyphs for SVG export (#8384) 7 months ago
locales feat: merge search sidebar back to default sidebar (#8497) 6 months ago
renderer Move path related function into the math package 6 months ago
scene Fix diamond distance 6 months ago
tests Replace intersection code 6 months 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 feat: prefer user defined coords and dimensions over calculated for for frame (#8517) 6 months ago
README.md build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
align.ts Bounds refactor and duplication removal 6 months ago
analytics.ts feat: subset font glyphs for SVG export (#8384) 7 months ago
animated-trail.ts Refactoring points 6 months ago
animation-frame-handler.ts feat: add eraser tool trail (#7511) 1 year ago
appState.ts feat: canvas search (#8438) 6 months ago
change.ts chore: Refactor and remove scene from elbow arrow generation (#8342) 7 months ago
charts.test.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
charts.ts Arc tests 6 months ago
clients.ts Fix missing point 6 months ago
clipboard.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
clipboard.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
colors.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
constants.ts feat: merge search sidebar back to default sidebar (#8497) 6 months 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 Unify bounds calculation 6 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: fractional indexing (#7359) 12 months ago
fractionalIndex.ts fix: throttle fractional indices validation (#8306) 8 months ago
frame.test.tsx chore: bump `@testing-library/react` `12.1.5` -> `16.0.0` (#8322) 7 months ago
frame.ts Bounds refactor and duplication removal 6 months ago
global.d.ts feat: multiple fonts fallbacks (#8286) 8 months ago
groups.ts feat: editable element stats (#6382) 9 months ago
history.ts chore: Refactor and remove scene from elbow arrow generation (#8342) 7 months ago
i18n.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
index-node.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
index.tsx Bounds refactor and duplication removal 6 months ago
jotai.ts build: enable consistent type imports eslint rule (#7992) 10 months ago
keys.ts feat: command palette (#7804) 12 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 feat: subset font glyphs for SVG export (#8384) 7 months 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 Replace intersection code 6 months ago
snapping.ts Bounds refactor and duplication removal 6 months ago
store.ts docs: fix `updateScene` `storeAction` default tsdoc & document types (#8048) 10 months ago
tsconfig.json docs: add next js with app router example (#7552) 1 year ago
types.ts Refactoring points 6 months ago
utility-types.ts feat: store library to IndexedDB & support storage adapters (#7655) 1 year ago
utils.ts Refactoring points 6 months ago
visualdebug.ts Bounds refactor and duplication removal 6 months ago
vite-env.d.ts refactor: remove unused env variable (#8457) 7 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 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