|
|
4 dní pred | |
|---|---|---|
| .. | ||
| actions | 4 dní pred | |
| components | 4 dní pred | |
| context | 11 mesiacov pred | |
| css | 2 týždňov pred | |
| data | 2 týždňov pred | |
| eraser | 2 mesiacov pred | |
| fonts | 2 mesiacov pred | |
| hooks | 1 mesiac pred | |
| lasso | 2 mesiacov pred | |
| locales | 2 týždňov pred | |
| renderer | 4 dní pred | |
| scene | 4 dní pred | |
| subset | 2 mesiacov pred | |
| tests | 4 dní pred | |
| wysiwyg | 2 týždňov pred | |
| .gitignore | 2 rokov pred | |
| .size-limit.json | 2 rokov pred | |
| CHANGELOG.md | 11 mesiacov pred | |
| README.md | 11 mesiacov pred | |
| analytics.ts | 11 mesiacov pred | |
| animated-trail.ts | 10 mesiacov pred | |
| animation-frame-handler.ts | 2 rokov pred | |
| appState.ts | 3 mesiacov pred | |
| charts.test.ts | 11 mesiacov pred | |
| charts.ts | 2 mesiacov pred | |
| clients.ts | 11 mesiacov pred | |
| clipboard.test.ts | 5 mesiacov pred | |
| clipboard.ts | 3 týždňov pred | |
| css.d.ts | 2 rokov pred | |
| cursor.ts | 1 mesiac pred | |
| deburr.ts | 1 rok pred | |
| editor-jotai.ts | 10 mesiacov pred | |
| env.cjs | 11 mesiacov pred | |
| errors.ts | 1 mesiac pred | |
| gesture.ts | 1 rok pred | |
| global.d.ts | 2 mesiacov pred | |
| history.ts | 6 mesiacov pred | |
| i18n.ts | 11 mesiacov pred | |
| index-node.ts | 11 mesiacov pred | |
| index.tsx | 3 týždňov pred | |
| laser-trails.ts | 11 mesiacov pred | |
| mermaid.test.ts | 1 rok pred | |
| mermaid.ts | 1 rok pred | |
| package.json | 2 týždňov pred | |
| polyfill.ts | 2 rokov pred | |
| pwacompat.d.ts | 2 rokov pred | |
| react-app-env.d.ts | 2 rokov pred | |
| reactUtils.ts | 11 mesiacov pred | |
| shortcut.ts | 4 mesiacov pred | |
| snapping.ts | 2 mesiacov pred | |
| tsconfig.json | 11 mesiacov pred | |
| types.ts | 2 týždňov pred | |
| vite-env.d.ts | 11 mesiacov pred | |
| workers.ts | 11 mesiacov pred | |
Excalidraw is exported as a component to be directly embedded in your project.
Use npm or yarn to install the package.
npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw
Note: If you don't want to wait for the next stable release and try out the unreleased changes, use
@excalidraw/excalidraw@next.
By default, Excalidraw will try to download all the used fonts from the CDN.
For self-hosting purposes, you'll have to copy the content of the folder node_modules/@excalidraw/excalidraw/dist/prod/fonts to the path where your assets should be served from (i.e. public/ directory in your project). In that case, you should also set window.EXCALIDRAW_ASSET_PATH to the very same path, i.e. / in case it's in the root:
<script>window.EXCALIDRAW_ASSET_PATH = "/";</script>
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.
Go to CodeSandbox example.
Head over to the docs.
Head over to the docs.
Head over to the docs.