@zsviczian/excalidraw 0.11.0-obsidian-1 → 0.11.0-obsidian-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/excalidraw.development.js +40 -40
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionCanvas.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +101 -0
- package/types/actions/actionToggleViewMode.d.ts +1 -1
- package/types/actions/index.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +2 -1
- package/types/actions/types.d.ts +2 -1
- package/types/analytics.d.ts +1 -1
- package/types/clipboard.d.ts +1 -1
- package/types/components/App.d.ts +3 -0
- package/types/components/ColorPicker.d.ts +6 -1
- package/types/components/icons.d.ts +9 -0
- package/types/constants.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +2 -1
- package/types/element/resizeElements.d.ts +1 -1
- package/types/element/textElement.d.ts +2 -2
- package/types/element/typeChecks.d.ts +2 -2
- package/types/element/types.d.ts +5 -3
- package/types/galines.d.ts +1 -1
- package/types/scene/comparisons.d.ts +2 -2
- package/types/scene/index.d.ts +1 -1
- package/types/types.d.ts +2 -0
package/README.md
CHANGED
|
@@ -425,7 +425,7 @@ Here you can try saving the data to your backend or local storage for example.
|
|
|
425
425
|
|
|
426
426
|
This helps to load Excalidraw with `initialData`. It must be an object or a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise) which resolves to an object containing the below optional fields.
|
|
427
427
|
|
|
428
|
-
| Name | Type |
|
|
428
|
+
| Name | Type | Description |
|
|
429
429
|
| --- | --- | --- |
|
|
430
430
|
| `elements` | [ExcalidrawElement[]](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L78) | The elements with which Excalidraw should be mounted. |
|
|
431
431
|
| `appState` | [AppState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L42) | The App state with which Excalidraw should be mounted. |
|
|
@@ -680,7 +680,7 @@ Enable this if you want Excalidraw to handle keyboard even if the component isn'
|
|
|
680
680
|
|
|
681
681
|
#### `onLibraryChange`
|
|
682
682
|
|
|
683
|
-
|
|
683
|
+
This callback if supplied will get triggered when the library is updated and has the below signature.
|
|
684
684
|
|
|
685
685
|
<pre>
|
|
686
686
|
(items: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L200">LibraryItems</a>) => void | Promise<any>
|