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
DDDDD12138 4c5408263c
chore: Correct Typos in Code Comments (#8268)
chore: correct typos

Co-authored-by: wuzhiqing <wuzhiqing@linklogis.com>
6 months ago
..
actions fix: Add binding update to manual stat changes (#8183) 7 months ago
components feat: upgrade mermaid-to-excalidraw to v1.1.0 (#8226) 7 months ago
context build: enable consistent type imports eslint rule (#7992) 9 months ago
css feat: editable element stats (#6382) 8 months ago
data fix: only bind arrow (#8152) 8 months ago
element fix: stop updating text versions on init (#8191) 7 months ago
hooks build: enable consistent type imports eslint rule (#7992) 9 months ago
locales feat: editable element stats (#6382) 8 months ago
renderer perf: cache the temp canvas created for labeled arrows (#8267) 6 months ago
scene fix: stop updating text versions on init (#8191) 7 months ago
tests fix: Binding after duplicating is now applied for both the old and duplicate shapes (#8185) 7 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: allow props.initialData to be a function (#8135) 7 months ago
README.md build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
align.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
analytics.ts fix: log allowed events (#8224) 7 months ago
animated-trail.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
animation-frame-handler.ts feat: add eraser tool trail (#7511) 1 year ago
appState.ts feat: editable element stats (#6382) 8 months ago
change.ts fix: always re-generate index of defined moved elements (#8040) 9 months ago
charts.test.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
charts.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
clients.ts build: enable consistent type imports eslint rule (#7992) 9 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) 9 months ago
colors.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
constants.ts feat: bump max file size (#8220) 7 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) 9 months ago
deburr.ts feat: command palette (#7804) 10 months ago
distribute.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
emitter.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
env.cjs build: Welcome ESM and Bye Bye UMD (#7441) 1 year ago
errors.ts feat: fractional indexing (#7359) 10 months ago
fractionalIndex.ts chore: Correct Typos in Code Comments (#8268) 6 months ago
frame.test.tsx build: enable consistent type imports eslint rule (#7992) 9 months ago
frame.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
ga.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
gadirections.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
galines.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
gapoints.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
gatransforms.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
gesture.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
global.d.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
groups.ts feat: editable element stats (#6382) 8 months ago
history.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
i18n.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
index-node.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
index.tsx build: enable consistent type imports eslint rule (#7992) 9 months ago
jotai.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
keys.ts feat: command palette (#7804) 10 months ago
laser-trails.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
math.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
math.ts feat: editable element stats (#6382) 8 months ago
mermaid.ts feat: paste as mermaid if applicable (#8116) 8 months ago
package.json feat: upgrade mermaid-to-excalidraw to v1.1.0 (#8226) 7 months ago
points.ts build: enable consistent type imports eslint rule (#7992) 9 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) 11 months ago
queue.ts build: enable consistent type imports eslint rule (#7992) 9 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 fix: Add binding update to manual stat changes (#8183) 7 months ago
snapping.ts feat: create new text with width (#8038) 8 months ago
store.ts docs: fix `updateScene` `storeAction` default tsdoc & document types (#8048) 9 months ago
tsconfig.json docs: add next js with app router example (#7552) 1 year ago
types.ts fix: Add binding update to manual stat changes (#8183) 7 months ago
utility-types.ts feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
utils.ts build: enable consistent type imports eslint rule (#7992) 9 months ago
vite-env.d.ts fix: log allowed events (#8224) 7 months ago
zindex.ts build: enable consistent type imports eslint rule (#7992) 9 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