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 068895db0e
feat: expose more collaborator status icons (#7777)
11 months ago
..
actions feat: expose more collaborator status icons (#7777) 11 months ago
components feat: expose more collaborator status icons (#7777) 11 months ago
context
css feat: expose more collaborator status icons (#7777) 11 months ago
data feat: load old library if migration fails 11 months ago
element feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
hooks
locales feat: expose more collaborator status icons (#7777) 11 months ago
renderer feat: expose more collaborator status icons (#7777) 11 months ago
scene feat: expose more collaborator status icons (#7777) 11 months ago
tests feat: text measurements based on font metrics (#7693) 11 months ago
.gitignore docs: add next js with app router example (#7552) 1 year ago
.size-limit.json
CHANGELOG.md feat: store library to IndexedDB & support storage adapters (#7655) 11 months 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 fix: remove t from getDefaultAppState and allow name to be nullable (#7666) 12 months ago
charts.test.ts
charts.ts
clients.ts feat: expose more collaborator status icons (#7777) 11 months ago
clipboard.test.ts
clipboard.ts fix: remove dependency of t from clipboard and image (#7712) 12 months ago
colors.ts
constants.ts feat: expose more collaborator status icons (#7777) 11 months ago
css.d.ts
cursor.ts
distribute.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
emitter.ts
env.cjs
errors.ts
frame.test.tsx
frame.ts fix: export utils from excalidraw package in excalidraw library (#7731) 11 months ago
ga.ts
gadirections.ts
galines.ts
gapoints.ts
gatransforms.ts
gesture.ts
global.d.ts
groups.ts fix: make getBoundTextElement and related helpers pure (#7601) 1 year ago
history.ts
i18n.ts
index-node.ts
index.tsx feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
jotai.ts
keys.ts
laser-trails.ts feat: expose more collaborator status icons (#7777) 11 months 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
queue.test.ts feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
queue.ts feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
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 bounds independent of scene (#7679) 12 months ago
tsconfig.json docs: add next js with app router example (#7552) 1 year ago
types.ts feat: expose more collaborator status icons (#7777) 11 months ago
utility-types.ts feat: store library to IndexedDB & support storage adapters (#7655) 11 months ago
utils.ts feat: expose more collaborator status icons (#7777) 11 months 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