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
David Luzar 0513b647ec
feat: change collab trigger & add share dialog (#7647)
1 year ago
..
actions feat: add loading state to FilledButton (#7650) 1 year ago
components feat: change collab trigger & add share dialog (#7647) 1 year ago
context
css feat: change collab trigger & add share dialog (#7647) 1 year ago
data fix: file save timing out with big file sizes (#7649) 1 year ago
element fix: make getEmbedLink independent of t function (#7643) 1 year ago
hooks
locales feat: change collab trigger & add share dialog (#7647) 1 year ago
renderer fix: don't bundle react-dom when importing from transformHandles (#7634) 1 year ago
scene fix: don't bundle react and jotai when importing from scene (#7640) 1 year ago
tests feat: support roundness for images (#7558) 1 year ago
.gitignore docs: add next js with app router example (#7552) 1 year ago
.size-limit.json
CHANGELOG.md feat: support onPointerUp prop (#7638) 1 year ago
README.md
align.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
analytics.ts
animated-trail.ts feat: add eraser tool trail (#7511) 1 year ago
animation-frame-handler.ts feat: add eraser tool trail (#7511) 1 year ago
appState.ts
charts.test.ts
charts.ts
clients.ts
clipboard.test.ts
clipboard.ts
colors.ts
constants.ts fix: don't bundle react-dom when importing from transformHandles (#7634) 1 year ago
css.d.ts
cursor.ts
distribute.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
emitter.ts feat: support pen erasing (#7496) 1 year ago
env.cjs build: Welcome ESM and Bye Bye UMD (#7441) 1 year ago
errors.ts
frame.test.tsx
frame.ts fix: frame name field (#7457) 1 year ago
ga.ts
gadirections.ts
galines.ts
gapoints.ts
gatransforms.ts
gesture.ts
global.d.ts refactor: editor events sub/unsub refactor (#7483) 1 year ago
groups.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
history.ts
i18n.ts build: Welcome ESM and Bye Bye UMD (#7441) 1 year ago
index-node.ts
index.tsx feat: support onPointerUp prop (#7638) 1 year ago
jotai.ts
keys.ts
laser-trails.ts feat: add eraser tool trail (#7511) 1 year ago
math.test.ts
math.ts
package.json fix: move default to last so its compatible with nextjs (#7561) 1 year ago
points.ts
polyfill.ts
pwacompat.d.ts
random.ts
react-app-env.d.ts
reactUtils.ts fix: decouple react and react-dom imports from utils and make it treeshakeable (#7527) 1 year ago
shapes.tsx
snapping.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
tsconfig.json docs: add next js with app router example (#7552) 1 year ago
types.ts feat: change collab trigger & add share dialog (#7647) 1 year ago
utility-types.ts refactor: decoupling global Scene state part-1 (#7577) 1 year ago
utils.ts feat: change collab trigger & add share dialog (#7647) 1 year ago
vite-env.d.ts
zindex.ts

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