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 e6c3c06c2e
feat: support pen erasing (#7496)
1 year ago
..
actions fix: incorrect types in `ActionNavigate` (#7462) 1 year ago
assets build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
components feat: support pen erasing (#7496) 1 year ago
context build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
css feat: bump `socket.io-client` & collab tweaks (#7444) 1 year ago
data feat: move utils to utils package and make @excalidraw/utils a workspace (#7432) 1 year ago
element fix: emitted visible scene bounds not accounting for offsets (#7450) 1 year ago
example build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
hooks feat: move utils to utils package and make @excalidraw/utils a workspace (#7432) 1 year ago
locales fix: follow mode collaborator status indicator (#7459) 1 year ago
renderer build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
scene feat: move utils to utils package and make @excalidraw/utils a workspace (#7432) 1 year ago
tests feat: support pen erasing (#7496) 1 year ago
.gitignore build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
.size-limit.json build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
CHANGELOG.md fix: emitted visible scene bounds not accounting for offsets (#7450) 1 year ago
README.md build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
align.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
analytics.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
appState.ts feat: follow mode (#6848) 1 year ago
charts.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
charts.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
clients.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
clipboard.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
clipboard.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
colors.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
constants.ts feat: support pen erasing (#7496) 1 year ago
css.d.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
cursor.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
distribute.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
emitter.ts feat: support pen erasing (#7496) 1 year ago
entry.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
env.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
errors.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
frame.test.tsx build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
frame.ts feat: move utils to utils package and make @excalidraw/utils a workspace (#7432) 1 year ago
ga.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
gadirections.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
galines.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
gapoints.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
gatransforms.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
gesture.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
global.d.ts refactor: editor events sub/unsub refactor (#7483) 1 year ago
groups.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
history.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
i18n.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
index-node.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
index.tsx fix: emitted visible scene bounds not accounting for offsets (#7450) 1 year ago
jotai.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
keys.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
main.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
math.test.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
math.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
package.json fix: missing cross-env from build:umd in package.json (#7460) 1 year ago
points.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
polyfill.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
publicPath.js 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
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
shapes.tsx build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
snapping.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
tsconfig-types.json build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
types.ts refactor: editor events sub/unsub refactor (#7483) 1 year ago
utility-types.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
utils.ts refactor: editor events sub/unsub refactor (#7483) 1 year ago
vercel.json build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
vite-env.d.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
webpack.dev-server.config.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
webpack.dev.config.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
webpack.preact.config.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
webpack.prod.config.js build: decouple package deps and introduce yarn workspaces (#7415) 1 year ago
zindex.ts build: decouple package deps and introduce yarn workspaces (#7415) 1 year 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