@zsviczian/excalidraw 0.17.6-3 → 0.17.6-30
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/dist/excalidraw.development.js +13100 -1540
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
- package/dist/styles.development.css +490 -376
- package/dist/styles.production.css +10 -8
- package/package.json +5 -4
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -605
- package/types/excalidraw/actions/actionAlign.d.ts +0 -108
- package/types/excalidraw/actions/actionBoundText.d.ts +0 -440
- package/types/excalidraw/actions/actionCanvas.d.ts +0 -2958
- package/types/excalidraw/actions/actionClipboard.d.ts +0 -1322
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -640
- package/types/excalidraw/actions/actionDistribute.d.ts +0 -34
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -21
- package/types/excalidraw/actions/actionElementLock.d.ts +0 -428
- package/types/excalidraw/actions/actionExport.d.ts +0 -1884
- package/types/excalidraw/actions/actionFinalize.d.ts +0 -409
- package/types/excalidraw/actions/actionFlip.d.ts +0 -34
- package/types/excalidraw/actions/actionFrame.d.ts +0 -855
- package/types/excalidraw/actions/actionGroup.d.ts +0 -438
- package/types/excalidraw/actions/actionHistory.d.ts +0 -7
- package/types/excalidraw/actions/actionLinearEditor.d.ts +0 -215
- package/types/excalidraw/actions/actionLink.d.ts +0 -215
- package/types/excalidraw/actions/actionMenu.d.ts +0 -628
- package/types/excalidraw/actions/actionNavigate.d.ts +0 -414
- package/types/excalidraw/actions/actionProperties.d.ts +0 -3156
- package/types/excalidraw/actions/actionSelectAll.d.ts +0 -214
- package/types/excalidraw/actions/actionStyles.d.ts +0 -228
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +0 -17
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -217
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -215
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -407
- package/types/excalidraw/actions/actionToggleStats.d.ts +0 -215
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -216
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -216
- package/types/excalidraw/actions/actionZindex.d.ts +0 -74
- package/types/excalidraw/actions/index.d.ts +0 -26
- package/types/excalidraw/actions/manager.d.ts +0 -21
- package/types/excalidraw/actions/register.d.ts +0 -5
- package/types/excalidraw/actions/shortcuts.d.ts +0 -4
- package/types/excalidraw/actions/types.d.ts +0 -46
- package/types/excalidraw/align.d.ts +0 -6
- package/types/excalidraw/analytics.d.ts +0 -1
- package/types/excalidraw/animated-trail.d.ts +0 -33
- package/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/types/excalidraw/appState.d.ts +0 -89
- package/types/excalidraw/binaryheap.d.ts +0 -12
- package/types/excalidraw/change.d.ts +0 -191
- package/types/excalidraw/charts.d.ts +0 -27
- package/types/excalidraw/clients.d.ts +0 -14
- package/types/excalidraw/clipboard.d.ts +0 -44
- package/types/excalidraw/colors.d.ts +0 -61
- package/types/excalidraw/components/Actions.d.ts +0 -34
- package/types/excalidraw/components/ActiveConfirmDialog.d.ts +0 -4
- package/types/excalidraw/components/App.d.ts +0 -535
- package/types/excalidraw/components/Avatar.d.ts +0 -11
- package/types/excalidraw/components/BraveMeasureTextError.d.ts +0 -2
- package/types/excalidraw/components/Button.d.ts +0 -17
- package/types/excalidraw/components/ButtonIcon.d.ts +0 -14
- package/types/excalidraw/components/ButtonIconCycle.d.ts +0 -10
- package/types/excalidraw/components/ButtonIconSelect.d.ts +0 -19
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/types/excalidraw/components/ButtonSeparator.d.ts +0 -1
- package/types/excalidraw/components/Card.d.ts +0 -6
- package/types/excalidraw/components/CheckboxItem.d.ts +0 -8
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -9
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -19
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +0 -8
- package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +0 -18
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +0 -10
- package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +0 -5
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +0 -9
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -21
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -20
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -18
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
- package/types/excalidraw/components/CommandPalette/types.d.ts +0 -25
- package/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
- package/types/excalidraw/components/ContextMenu.d.ts +0 -16
- package/types/excalidraw/components/DarkModeToggle.d.ts +0 -7
- package/types/excalidraw/components/DefaultSidebar.d.ts +0 -30
- package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/types/excalidraw/components/Dialog.d.ts +0 -13
- package/types/excalidraw/components/DialogActionButton.d.ts +0 -10
- package/types/excalidraw/components/ErrorDialog.d.ts +0 -5
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/types/excalidraw/components/EyeDropper.d.ts +0 -27
- package/types/excalidraw/components/FilledButton.d.ts +0 -18
- package/types/excalidraw/components/FixedSideContainer.d.ts +0 -9
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +0 -21
- package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +0 -25
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
- package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -13
- package/types/excalidraw/components/HandButton.d.ts +0 -10
- package/types/excalidraw/components/HelpButton.d.ts +0 -7
- package/types/excalidraw/components/HelpDialog.d.ts +0 -4
- package/types/excalidraw/components/HintViewer.d.ts +0 -10
- package/types/excalidraw/components/IconPicker.d.ts +0 -14
- package/types/excalidraw/components/ImageExportDialog.d.ts +0 -14
- package/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/types/excalidraw/components/InlineIcon.d.ts +0 -3
- package/types/excalidraw/components/Island.d.ts +0 -10
- package/types/excalidraw/components/JSONExportDialog.d.ts +0 -15
- package/types/excalidraw/components/LaserPointerButton.d.ts +0 -10
- package/types/excalidraw/components/LayerUI.d.ts +0 -30
- package/types/excalidraw/components/LibraryMenu.d.ts +0 -24
- package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
- package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
- package/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
- package/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
- package/types/excalidraw/components/LibraryUnit.d.ts +0 -14
- package/types/excalidraw/components/LoadingMessage.d.ts +0 -5
- package/types/excalidraw/components/LockButton.d.ts +0 -10
- package/types/excalidraw/components/MagicButton.d.ts +0 -9
- package/types/excalidraw/components/MagicSettings.d.ts +0 -8
- package/types/excalidraw/components/MobileMenu.d.ts +0 -24
- package/types/excalidraw/components/Modal.d.ts +0 -14
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -17
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -17
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -22
- package/types/excalidraw/components/Paragraph.d.ts +0 -4
- package/types/excalidraw/components/PasteChartDialog.d.ts +0 -8
- package/types/excalidraw/components/PenModeButton.d.ts +0 -12
- package/types/excalidraw/components/Popover.d.ts +0 -15
- package/types/excalidraw/components/ProjectName.d.ts +0 -10
- package/types/excalidraw/components/PropertiesPopover.d.ts +0 -15
- package/types/excalidraw/components/PublishLibrary.d.ts +0 -16
- package/types/excalidraw/components/QuickSearch.d.ts +0 -9
- package/types/excalidraw/components/RadioGroup.d.ts +0 -13
- package/types/excalidraw/components/SVGLayer.d.ts +0 -7
- package/types/excalidraw/components/ScrollableList.d.ts +0 -8
- package/types/excalidraw/components/SearchMenu.d.ts +0 -5
- package/types/excalidraw/components/Section.d.ts +0 -6
- package/types/excalidraw/components/ShareableLinkDialog.d.ts +0 -7
- package/types/excalidraw/components/Sidebar/Sidebar.d.ts +0 -76
- package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +0 -7
- package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +0 -8
- package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +0 -9
- package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +0 -6
- package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +0 -6
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +0 -6
- package/types/excalidraw/components/Sidebar/common.d.ts +0 -33
- package/types/excalidraw/components/Spinner.d.ts +0 -8
- package/types/excalidraw/components/Stack.d.ts +0 -16
- package/types/excalidraw/components/Stats/Angle.d.ts +0 -11
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -10
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +0 -10
- package/types/excalidraw/components/Stats/Collapsible.d.ts +0 -8
- package/types/excalidraw/components/Stats/Dimension.d.ts +0 -11
- package/types/excalidraw/components/Stats/DragInput.d.ts +0 -34
- package/types/excalidraw/components/Stats/FontSize.d.ts +0 -11
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +0 -11
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +0 -14
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +0 -12
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +0 -14
- package/types/excalidraw/components/Stats/Position.d.ts +0 -12
- package/types/excalidraw/components/Stats/index.d.ts +0 -35
- package/types/excalidraw/components/Stats/utils.d.ts +0 -26
- package/types/excalidraw/components/Stats.d.ts +0 -11
- package/types/excalidraw/components/Switch.d.ts +0 -9
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -14
- package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +0 -29
- package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +0 -9
- package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -7
- package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +0 -17
- package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +0 -4
- package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +0 -7
- package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -8
- package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -6
- package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +0 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/types/excalidraw/components/TTDDialog/common.d.ts +0 -32
- package/types/excalidraw/components/TextField.d.ts +0 -21
- package/types/excalidraw/components/Toast.d.ts +0 -9
- package/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/types/excalidraw/components/Tooltip.d.ts +0 -18
- package/types/excalidraw/components/Trans.d.ts +0 -9
- package/types/excalidraw/components/UserList.d.ts +0 -18
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -29
- package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +0 -14
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +0 -19
- package/types/excalidraw/components/canvases/index.d.ts +0 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +0 -86
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +0 -15
- package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -11
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +0 -45
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -7
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -17
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -7
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -15
- package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -5
- package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -10
- package/types/excalidraw/components/dropdownMenu/common.d.ts +0 -6
- package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -3
- package/types/excalidraw/components/footer/Footer.d.ts +0 -12
- package/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/types/excalidraw/components/hoc/withInternalFallback.d.ts +0 -4
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +0 -18
- package/types/excalidraw/components/hyperlink/helpers.d.ts +0 -8
- package/types/excalidraw/components/icons.d.ts +0 -212
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -9
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -64
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -80
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -59
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -86
- package/types/excalidraw/constants.d.ts +0 -322
- package/types/excalidraw/context/tunnels.d.ts +0 -20
- package/types/excalidraw/context/ui-appState.d.ts +0 -4
- package/types/excalidraw/cursor.d.ts +0 -6
- package/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
- package/types/excalidraw/data/ai/types.d.ts +0 -242
- package/types/excalidraw/data/blob.d.ts +0 -49
- package/types/excalidraw/data/encode.d.ts +0 -54
- package/types/excalidraw/data/encryption.d.ts +0 -9
- package/types/excalidraw/data/filesystem.d.ts +0 -20
- package/types/excalidraw/data/image.d.ts +0 -15
- package/types/excalidraw/data/index.d.ts +0 -22
- package/types/excalidraw/data/json.d.ts +0 -16
- package/types/excalidraw/data/library.d.ts +0 -106
- package/types/excalidraw/data/magic.d.ts +0 -23
- package/types/excalidraw/data/reconcile.d.ts +0 -6
- package/types/excalidraw/data/resave.d.ts +0 -5
- package/types/excalidraw/data/restore.d.ts +0 -21
- package/types/excalidraw/data/transform.d.ts +0 -81
- package/types/excalidraw/data/types.d.ts +0 -45
- package/types/excalidraw/data/url.d.ts +0 -8
- package/types/excalidraw/deburr.d.ts +0 -1
- package/types/excalidraw/dist/excalidraw.development.d.ts +0 -2
- package/types/excalidraw/dist/excalidraw.production.min.d.ts +0 -1
- package/types/excalidraw/distribute.d.ts +0 -6
- package/types/excalidraw/element/ElementCanvasButtons.d.ts +0 -7
- package/types/excalidraw/element/binding.d.ts +0 -99
- package/types/excalidraw/element/bounds.d.ts +0 -76
- package/types/excalidraw/element/collision.d.ts +0 -17
- package/types/excalidraw/element/containerCache.d.ts +0 -11
- package/types/excalidraw/element/dragElements.d.ts +0 -32
- package/types/excalidraw/element/embeddable.d.ts +0 -221
- package/types/excalidraw/element/flowchart.d.ts +0 -25
- package/types/excalidraw/element/heading.d.ts +0 -12
- package/types/excalidraw/element/image.d.ts +0 -32
- package/types/excalidraw/element/index.d.ts +0 -26
- package/types/excalidraw/element/linearElementEditor.d.ts +0 -128
- package/types/excalidraw/element/mutateElement.d.ts +0 -11
- package/types/excalidraw/element/newElement.d.ts +0 -105
- package/types/excalidraw/element/resizeElements.d.ts +0 -16
- package/types/excalidraw/element/resizeTest.d.ts +0 -15
- package/types/excalidraw/element/routing.d.ts +0 -12
- package/types/excalidraw/element/showSelectedShapeActions.d.ts +0 -3
- package/types/excalidraw/element/sizeHelpers.d.ts +0 -35
- package/types/excalidraw/element/sortElements.d.ts +0 -2
- package/types/excalidraw/element/textElement.d.ts +0 -73
- package/types/excalidraw/element/textWysiwyg.d.ts +0 -22
- package/types/excalidraw/element/transformHandles.d.ts +0 -55
- package/types/excalidraw/element/typeChecks.d.ts +0 -39
- package/types/excalidraw/element/types.d.ts +0 -253
- package/types/excalidraw/emitter.d.ts +0 -16
- package/types/excalidraw/entry.d.ts +0 -1
- package/types/excalidraw/env.d.cts +0 -1
- package/types/excalidraw/env.d.ts +0 -1
- package/types/excalidraw/errors.d.ts +0 -25
- package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
- package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +0 -35
- package/types/excalidraw/fonts/index.d.ts +0 -87
- package/types/excalidraw/fonts/metadata.d.ts +0 -37
- package/types/excalidraw/fonts/subset/subset-main.d.ts +0 -12
- package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +0 -32
- package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +0 -15
- package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +0 -45
- package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +0 -13
- package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +0 -2
- package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
- package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
- package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
- package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +0 -31
- package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +0 -14
- package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +0 -2
- package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
- package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
- package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +0 -8
- package/types/excalidraw/fractionalIndex.d.ts +0 -48
- package/types/excalidraw/frame.d.ts +0 -63
- package/types/excalidraw/ga.d.ts +0 -63
- package/types/excalidraw/gadirections.d.ts +0 -8
- package/types/excalidraw/galines.d.ts +0 -22
- package/types/excalidraw/gapoints.d.ts +0 -7
- package/types/excalidraw/gatransforms.d.ts +0 -10
- package/types/excalidraw/gesture.d.ts +0 -6
- package/types/excalidraw/groups.d.ts +0 -33
- package/types/excalidraw/history.d.ts +0 -40
- package/types/excalidraw/hooks/useCallbackRefState.d.ts +0 -1
- package/types/excalidraw/hooks/useCopiedIndicator.d.ts +0 -5
- package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +0 -7
- package/types/excalidraw/hooks/useEmitter.d.ts +0 -2
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
- package/types/excalidraw/hooks/useOutsideClick.d.ts +0 -19
- package/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
- package/types/excalidraw/hooks/useStable.d.ts +0 -1
- package/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
- package/types/excalidraw/hooks/useTransition.d.ts +0 -2
- package/types/excalidraw/i18n.d.ts +0 -24
- package/types/excalidraw/index-node.d.ts +0 -1
- package/types/excalidraw/index.d.ts +0 -63
- package/types/excalidraw/jotai.d.ts +0 -34
- package/types/excalidraw/keys.d.ts +0 -82
- package/types/excalidraw/laser-trails.d.ts +0 -20
- package/types/excalidraw/main.d.ts +0 -2
- package/types/excalidraw/math.d.ts +0 -79
- package/types/excalidraw/mermaid.d.ts +0 -2
- package/types/excalidraw/obsidianUtils.d.ts +0 -21
- package/types/excalidraw/points.d.ts +0 -7
- package/types/excalidraw/polyfill.d.ts +0 -2
- package/types/excalidraw/publicPath.d.ts +0 -1
- package/types/excalidraw/queue.d.ts +0 -9
- package/types/excalidraw/random.d.ts +0 -4
- package/types/excalidraw/reactUtils.d.ts +0 -14
- package/types/excalidraw/renderer/easingFunctions.d.ts +0 -6
- package/types/excalidraw/renderer/helpers.d.ts +0 -13
- package/types/excalidraw/renderer/interactiveScene.d.ts +0 -20
- package/types/excalidraw/renderer/renderElement.d.ts +0 -27
- package/types/excalidraw/renderer/renderNewElementScene.d.ts +0 -7
- package/types/excalidraw/renderer/renderSnaps.d.ts +0 -2
- package/types/excalidraw/renderer/roundRect.d.ts +0 -11
- package/types/excalidraw/renderer/staticScene.d.ts +0 -11
- package/types/excalidraw/renderer/staticSvgScene.d.ts +0 -5
- package/types/excalidraw/scene/Fonts.d.ts +0 -19
- package/types/excalidraw/scene/Renderer.d.ts +0 -28
- package/types/excalidraw/scene/Scene.d.ts +0 -78
- package/types/excalidraw/scene/Shape.d.ts +0 -17
- package/types/excalidraw/scene/ShapeCache.d.ts +0 -25
- package/types/excalidraw/scene/comparisons.d.ts +0 -487
- package/types/excalidraw/scene/export.d.ts +0 -29
- package/types/excalidraw/scene/index.d.ts +0 -4
- package/types/excalidraw/scene/normalize.d.ts +0 -4
- package/types/excalidraw/scene/scroll.d.ts +0 -23
- package/types/excalidraw/scene/scrollbars.d.ts +0 -12
- package/types/excalidraw/scene/selection.d.ts +0 -32
- package/types/excalidraw/scene/types.d.ts +0 -112
- package/types/excalidraw/scene/zoom.d.ts +0 -12
- package/types/excalidraw/shapes.d.ts +0 -85
- package/types/excalidraw/snapping.d.ts +0 -112
- package/types/excalidraw/store.d.ts +0 -129
- package/types/excalidraw/types.d.ts +0 -718
- package/types/excalidraw/utility-types.d.ts +0 -31
- package/types/excalidraw/utils.d.ts +0 -249
- package/types/excalidraw/visualdebug.d.ts +0 -35
- package/types/excalidraw/webpack.dev.config.d.ts +0 -81
- package/types/excalidraw/webpack.prod.config.d.ts +0 -97
- package/types/excalidraw/workers.d.ts +0 -36
- package/types/excalidraw/zindex.d.ts +0 -6
- package/types/math/angle.d.ts +0 -17
- package/types/math/arc.d.ts +0 -6
- package/types/math/curve.d.ts +0 -32
- package/types/math/ga/ga.d.ts +0 -63
- package/types/math/ga/gadirections.d.ts +0 -8
- package/types/math/ga/galines.d.ts +0 -22
- package/types/math/ga/gapoints.d.ts +0 -7
- package/types/math/ga/gatransforms.d.ts +0 -10
- package/types/math/index.d.ts +0 -12
- package/types/math/line.d.ts +0 -26
- package/types/math/point.d.ts +0 -140
- package/types/math/polygon.d.ts +0 -5
- package/types/math/range.d.ts +0 -44
- package/types/math/segment.d.ts +0 -32
- package/types/math/triangle.d.ts +0 -11
- package/types/math/types.d.ts +0 -96
- package/types/math/utils.d.ts +0 -6
- package/types/math/vector.d.ts +0 -88
- package/types/utils/bbox.d.ts +0 -9
- package/types/utils/collision.d.ts +0 -9
- package/types/utils/export.d.ts +0 -44
- package/types/utils/geometry/geometry.d.ts +0 -89
- package/types/utils/geometry/shape.d.ts +0 -71
- package/types/utils/index.d.ts +0 -4
- package/types/utils/withinBounds.d.ts +0 -19
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Drawable } from "roughjs/bin/core";
|
|
2
|
-
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import type { ElementShape, ElementShapes } from "./types";
|
|
4
|
-
import type { AppState, EmbedsValidationStatus } from "../types";
|
|
5
|
-
export declare class ShapeCache {
|
|
6
|
-
private static rg;
|
|
7
|
-
private static cache;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves shape from cache if available. Use this only if shape
|
|
10
|
-
* is optional and you have a fallback in case it's not cached.
|
|
11
|
-
*/
|
|
12
|
-
static get: <T extends ExcalidrawElement>(element: T) => T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] | undefined : ElementShape | undefined;
|
|
13
|
-
static set: <T extends ExcalidrawElement>(element: T, shape: T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] : Drawable) => WeakMap<ExcalidrawElement, ElementShape>;
|
|
14
|
-
static delete: (element: ExcalidrawElement) => boolean;
|
|
15
|
-
static destroy: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Generates & caches shape for element if not already cached, otherwise
|
|
18
|
-
* returns cached shape.
|
|
19
|
-
*/
|
|
20
|
-
static generateElementShape: <T extends import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawArrowElement | import("../element/types").ExcalidrawFreeDrawElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawFrameElement | import("../element/types").ExcalidrawMagicFrameElement | import("../element/types").ExcalidrawIframeElement | import("../element/types").ExcalidrawEmbeddableElement>(element: T, renderConfig: {
|
|
21
|
-
isExporting: boolean;
|
|
22
|
-
canvasBackgroundColor: AppState["viewBackgroundColor"];
|
|
23
|
-
embedsValidationStatus: EmbedsValidationStatus;
|
|
24
|
-
} | null) => ((T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] | undefined : ElementShape | undefined) & ({} | null)) | (T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] : Drawable | null);
|
|
25
|
-
}
|
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
-
import type { ElementOrToolType } from "../types";
|
|
3
|
-
export declare const hasBackground: (type: ElementOrToolType) => boolean;
|
|
4
|
-
export declare const hasStrokeColor: (type: ElementOrToolType) => boolean;
|
|
5
|
-
export declare const hasStrokeWidth: (type: ElementOrToolType) => boolean;
|
|
6
|
-
export declare const hasStrokeStyle: (type: ElementOrToolType) => boolean;
|
|
7
|
-
export declare const canChangeRoundness: (type: ElementOrToolType) => boolean;
|
|
8
|
-
export declare const toolIsArrow: (type: ElementOrToolType) => boolean;
|
|
9
|
-
export declare const canHaveArrowheads: (type: ElementOrToolType) => boolean;
|
|
10
|
-
export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => (Readonly<{
|
|
11
|
-
id: string;
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
strokeColor: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
fillStyle: import("../element/types").FillStyle;
|
|
17
|
-
strokeWidth: number;
|
|
18
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
19
|
-
roundness: {
|
|
20
|
-
type: import("../element/types").RoundnessType;
|
|
21
|
-
value?: number | undefined;
|
|
22
|
-
} | null;
|
|
23
|
-
roughness: number;
|
|
24
|
-
opacity: number;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
angle: import("../../math").Radians;
|
|
28
|
-
seed: number;
|
|
29
|
-
version: number;
|
|
30
|
-
versionNonce: number;
|
|
31
|
-
index: import("../element/types").FractionalIndex | null;
|
|
32
|
-
isDeleted: boolean;
|
|
33
|
-
groupIds: readonly string[];
|
|
34
|
-
frameId: string | null;
|
|
35
|
-
boundElements: readonly Readonly<{
|
|
36
|
-
id: string;
|
|
37
|
-
type: "text" | "arrow";
|
|
38
|
-
}>[] | null;
|
|
39
|
-
updated: number;
|
|
40
|
-
link: string | null;
|
|
41
|
-
locked: boolean;
|
|
42
|
-
customData?: Record<string, any> | undefined;
|
|
43
|
-
}> & {
|
|
44
|
-
type: "rectangle";
|
|
45
|
-
} & {
|
|
46
|
-
isDeleted: boolean;
|
|
47
|
-
}) | (Readonly<{
|
|
48
|
-
id: string;
|
|
49
|
-
x: number;
|
|
50
|
-
y: number;
|
|
51
|
-
strokeColor: string;
|
|
52
|
-
backgroundColor: string;
|
|
53
|
-
fillStyle: import("../element/types").FillStyle;
|
|
54
|
-
strokeWidth: number;
|
|
55
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
56
|
-
roundness: {
|
|
57
|
-
type: import("../element/types").RoundnessType;
|
|
58
|
-
value?: number | undefined;
|
|
59
|
-
} | null;
|
|
60
|
-
roughness: number;
|
|
61
|
-
opacity: number;
|
|
62
|
-
width: number;
|
|
63
|
-
height: number;
|
|
64
|
-
angle: import("../../math").Radians;
|
|
65
|
-
seed: number;
|
|
66
|
-
version: number;
|
|
67
|
-
versionNonce: number;
|
|
68
|
-
index: import("../element/types").FractionalIndex | null;
|
|
69
|
-
isDeleted: boolean;
|
|
70
|
-
groupIds: readonly string[];
|
|
71
|
-
frameId: string | null;
|
|
72
|
-
boundElements: readonly Readonly<{
|
|
73
|
-
id: string;
|
|
74
|
-
type: "text" | "arrow";
|
|
75
|
-
}>[] | null;
|
|
76
|
-
updated: number;
|
|
77
|
-
link: string | null;
|
|
78
|
-
locked: boolean;
|
|
79
|
-
customData?: Record<string, any> | undefined;
|
|
80
|
-
}> & {
|
|
81
|
-
type: "diamond";
|
|
82
|
-
} & {
|
|
83
|
-
isDeleted: boolean;
|
|
84
|
-
}) | (Readonly<{
|
|
85
|
-
id: string;
|
|
86
|
-
x: number;
|
|
87
|
-
y: number;
|
|
88
|
-
strokeColor: string;
|
|
89
|
-
backgroundColor: string;
|
|
90
|
-
fillStyle: import("../element/types").FillStyle;
|
|
91
|
-
strokeWidth: number;
|
|
92
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
93
|
-
roundness: {
|
|
94
|
-
type: import("../element/types").RoundnessType;
|
|
95
|
-
value?: number | undefined;
|
|
96
|
-
} | null;
|
|
97
|
-
roughness: number;
|
|
98
|
-
opacity: number;
|
|
99
|
-
width: number;
|
|
100
|
-
height: number;
|
|
101
|
-
angle: import("../../math").Radians;
|
|
102
|
-
seed: number;
|
|
103
|
-
version: number;
|
|
104
|
-
versionNonce: number;
|
|
105
|
-
index: import("../element/types").FractionalIndex | null;
|
|
106
|
-
isDeleted: boolean;
|
|
107
|
-
groupIds: readonly string[];
|
|
108
|
-
frameId: string | null;
|
|
109
|
-
boundElements: readonly Readonly<{
|
|
110
|
-
id: string;
|
|
111
|
-
type: "text" | "arrow";
|
|
112
|
-
}>[] | null;
|
|
113
|
-
updated: number;
|
|
114
|
-
link: string | null;
|
|
115
|
-
locked: boolean;
|
|
116
|
-
customData?: Record<string, any> | undefined;
|
|
117
|
-
}> & {
|
|
118
|
-
type: "ellipse";
|
|
119
|
-
} & {
|
|
120
|
-
isDeleted: boolean;
|
|
121
|
-
}) | (Readonly<{
|
|
122
|
-
id: string;
|
|
123
|
-
x: number;
|
|
124
|
-
y: number;
|
|
125
|
-
strokeColor: string;
|
|
126
|
-
backgroundColor: string;
|
|
127
|
-
fillStyle: import("../element/types").FillStyle;
|
|
128
|
-
strokeWidth: number;
|
|
129
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
130
|
-
roundness: {
|
|
131
|
-
type: import("../element/types").RoundnessType;
|
|
132
|
-
value?: number | undefined;
|
|
133
|
-
} | null;
|
|
134
|
-
roughness: number;
|
|
135
|
-
opacity: number;
|
|
136
|
-
width: number;
|
|
137
|
-
height: number;
|
|
138
|
-
angle: import("../../math").Radians;
|
|
139
|
-
seed: number;
|
|
140
|
-
version: number;
|
|
141
|
-
versionNonce: number;
|
|
142
|
-
index: import("../element/types").FractionalIndex | null;
|
|
143
|
-
isDeleted: boolean;
|
|
144
|
-
groupIds: readonly string[];
|
|
145
|
-
frameId: string | null;
|
|
146
|
-
boundElements: readonly Readonly<{
|
|
147
|
-
id: string;
|
|
148
|
-
type: "text" | "arrow";
|
|
149
|
-
}>[] | null;
|
|
150
|
-
updated: number;
|
|
151
|
-
link: string | null;
|
|
152
|
-
locked: boolean;
|
|
153
|
-
customData?: Record<string, any> | undefined;
|
|
154
|
-
}> & Readonly<{
|
|
155
|
-
type: "text";
|
|
156
|
-
fontSize: number;
|
|
157
|
-
fontFamily: number;
|
|
158
|
-
text: string;
|
|
159
|
-
rawText: string;
|
|
160
|
-
textAlign: string;
|
|
161
|
-
verticalAlign: string;
|
|
162
|
-
containerId: string | null;
|
|
163
|
-
originalText: string;
|
|
164
|
-
autoResize: boolean;
|
|
165
|
-
lineHeight: number & {
|
|
166
|
-
_brand: "unitlessLineHeight";
|
|
167
|
-
};
|
|
168
|
-
}> & {
|
|
169
|
-
isDeleted: boolean;
|
|
170
|
-
}) | (Readonly<{
|
|
171
|
-
id: string;
|
|
172
|
-
x: number;
|
|
173
|
-
y: number;
|
|
174
|
-
strokeColor: string;
|
|
175
|
-
backgroundColor: string;
|
|
176
|
-
fillStyle: import("../element/types").FillStyle;
|
|
177
|
-
strokeWidth: number;
|
|
178
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
179
|
-
roundness: {
|
|
180
|
-
type: import("../element/types").RoundnessType;
|
|
181
|
-
value?: number | undefined;
|
|
182
|
-
} | null;
|
|
183
|
-
roughness: number;
|
|
184
|
-
opacity: number;
|
|
185
|
-
width: number;
|
|
186
|
-
height: number;
|
|
187
|
-
angle: import("../../math").Radians;
|
|
188
|
-
seed: number;
|
|
189
|
-
version: number;
|
|
190
|
-
versionNonce: number;
|
|
191
|
-
index: import("../element/types").FractionalIndex | null;
|
|
192
|
-
isDeleted: boolean;
|
|
193
|
-
groupIds: readonly string[];
|
|
194
|
-
frameId: string | null;
|
|
195
|
-
boundElements: readonly Readonly<{
|
|
196
|
-
id: string;
|
|
197
|
-
type: "text" | "arrow";
|
|
198
|
-
}>[] | null;
|
|
199
|
-
updated: number;
|
|
200
|
-
link: string | null;
|
|
201
|
-
locked: boolean;
|
|
202
|
-
customData?: Record<string, any> | undefined;
|
|
203
|
-
}> & Readonly<{
|
|
204
|
-
type: "line" | "arrow";
|
|
205
|
-
points: readonly import("../../math").LocalPoint[];
|
|
206
|
-
lastCommittedPoint: import("../../math").LocalPoint | null;
|
|
207
|
-
startBinding: import("../element/types").PointBinding | null;
|
|
208
|
-
endBinding: import("../element/types").PointBinding | null;
|
|
209
|
-
startArrowhead: import("../element/types").Arrowhead | null;
|
|
210
|
-
endArrowhead: import("../element/types").Arrowhead | null;
|
|
211
|
-
}> & {
|
|
212
|
-
isDeleted: boolean;
|
|
213
|
-
}) | (Readonly<{
|
|
214
|
-
id: string;
|
|
215
|
-
x: number;
|
|
216
|
-
y: number;
|
|
217
|
-
strokeColor: string;
|
|
218
|
-
backgroundColor: string;
|
|
219
|
-
fillStyle: import("../element/types").FillStyle;
|
|
220
|
-
strokeWidth: number;
|
|
221
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
222
|
-
roundness: {
|
|
223
|
-
type: import("../element/types").RoundnessType;
|
|
224
|
-
value?: number | undefined;
|
|
225
|
-
} | null;
|
|
226
|
-
roughness: number;
|
|
227
|
-
opacity: number;
|
|
228
|
-
width: number;
|
|
229
|
-
height: number;
|
|
230
|
-
angle: import("../../math").Radians;
|
|
231
|
-
seed: number;
|
|
232
|
-
version: number;
|
|
233
|
-
versionNonce: number;
|
|
234
|
-
index: import("../element/types").FractionalIndex | null;
|
|
235
|
-
isDeleted: boolean;
|
|
236
|
-
groupIds: readonly string[];
|
|
237
|
-
frameId: string | null;
|
|
238
|
-
boundElements: readonly Readonly<{
|
|
239
|
-
id: string;
|
|
240
|
-
type: "text" | "arrow";
|
|
241
|
-
}>[] | null;
|
|
242
|
-
updated: number;
|
|
243
|
-
link: string | null;
|
|
244
|
-
locked: boolean;
|
|
245
|
-
customData?: Record<string, any> | undefined;
|
|
246
|
-
}> & Readonly<{
|
|
247
|
-
type: "freedraw";
|
|
248
|
-
points: readonly import("../../math").LocalPoint[];
|
|
249
|
-
pressures: readonly number[];
|
|
250
|
-
simulatePressure: boolean;
|
|
251
|
-
lastCommittedPoint: import("../../math").LocalPoint | null;
|
|
252
|
-
}> & {
|
|
253
|
-
isDeleted: boolean;
|
|
254
|
-
}) | (Readonly<{
|
|
255
|
-
id: string;
|
|
256
|
-
x: number;
|
|
257
|
-
y: number;
|
|
258
|
-
strokeColor: string;
|
|
259
|
-
backgroundColor: string;
|
|
260
|
-
fillStyle: import("../element/types").FillStyle;
|
|
261
|
-
strokeWidth: number;
|
|
262
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
263
|
-
roundness: {
|
|
264
|
-
type: import("../element/types").RoundnessType;
|
|
265
|
-
value?: number | undefined;
|
|
266
|
-
} | null;
|
|
267
|
-
roughness: number;
|
|
268
|
-
opacity: number;
|
|
269
|
-
width: number;
|
|
270
|
-
height: number;
|
|
271
|
-
angle: import("../../math").Radians;
|
|
272
|
-
seed: number;
|
|
273
|
-
version: number;
|
|
274
|
-
versionNonce: number;
|
|
275
|
-
index: import("../element/types").FractionalIndex | null;
|
|
276
|
-
isDeleted: boolean;
|
|
277
|
-
groupIds: readonly string[];
|
|
278
|
-
frameId: string | null;
|
|
279
|
-
boundElements: readonly Readonly<{
|
|
280
|
-
id: string;
|
|
281
|
-
type: "text" | "arrow";
|
|
282
|
-
}>[] | null;
|
|
283
|
-
updated: number;
|
|
284
|
-
link: string | null;
|
|
285
|
-
locked: boolean;
|
|
286
|
-
customData?: Record<string, any> | undefined;
|
|
287
|
-
}> & Readonly<{
|
|
288
|
-
type: "image";
|
|
289
|
-
fileId: import("../element/types").FileId | null;
|
|
290
|
-
status: "pending" | "saved" | "error";
|
|
291
|
-
scale: [number, number];
|
|
292
|
-
}> & {
|
|
293
|
-
isDeleted: boolean;
|
|
294
|
-
}) | (Readonly<{
|
|
295
|
-
id: string;
|
|
296
|
-
x: number;
|
|
297
|
-
y: number;
|
|
298
|
-
strokeColor: string;
|
|
299
|
-
backgroundColor: string;
|
|
300
|
-
fillStyle: import("../element/types").FillStyle;
|
|
301
|
-
strokeWidth: number;
|
|
302
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
303
|
-
roundness: {
|
|
304
|
-
type: import("../element/types").RoundnessType;
|
|
305
|
-
value?: number | undefined;
|
|
306
|
-
} | null;
|
|
307
|
-
roughness: number;
|
|
308
|
-
opacity: number;
|
|
309
|
-
width: number;
|
|
310
|
-
height: number;
|
|
311
|
-
angle: import("../../math").Radians;
|
|
312
|
-
seed: number;
|
|
313
|
-
version: number;
|
|
314
|
-
versionNonce: number;
|
|
315
|
-
index: import("../element/types").FractionalIndex | null;
|
|
316
|
-
isDeleted: boolean;
|
|
317
|
-
groupIds: readonly string[];
|
|
318
|
-
frameId: string | null;
|
|
319
|
-
boundElements: readonly Readonly<{
|
|
320
|
-
id: string;
|
|
321
|
-
type: "text" | "arrow";
|
|
322
|
-
}>[] | null;
|
|
323
|
-
updated: number;
|
|
324
|
-
link: string | null;
|
|
325
|
-
locked: boolean;
|
|
326
|
-
customData?: Record<string, any> | undefined;
|
|
327
|
-
}> & {
|
|
328
|
-
type: "frame";
|
|
329
|
-
name: string | null;
|
|
330
|
-
} & {
|
|
331
|
-
isDeleted: boolean;
|
|
332
|
-
}) | (Readonly<{
|
|
333
|
-
id: string;
|
|
334
|
-
x: number;
|
|
335
|
-
y: number;
|
|
336
|
-
strokeColor: string;
|
|
337
|
-
backgroundColor: string;
|
|
338
|
-
fillStyle: import("../element/types").FillStyle;
|
|
339
|
-
strokeWidth: number;
|
|
340
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
341
|
-
roundness: {
|
|
342
|
-
type: import("../element/types").RoundnessType;
|
|
343
|
-
value?: number | undefined;
|
|
344
|
-
} | null;
|
|
345
|
-
roughness: number;
|
|
346
|
-
opacity: number;
|
|
347
|
-
width: number;
|
|
348
|
-
height: number;
|
|
349
|
-
angle: import("../../math").Radians;
|
|
350
|
-
seed: number;
|
|
351
|
-
version: number;
|
|
352
|
-
versionNonce: number;
|
|
353
|
-
index: import("../element/types").FractionalIndex | null;
|
|
354
|
-
isDeleted: boolean;
|
|
355
|
-
groupIds: readonly string[];
|
|
356
|
-
frameId: string | null;
|
|
357
|
-
boundElements: readonly Readonly<{
|
|
358
|
-
id: string;
|
|
359
|
-
type: "text" | "arrow";
|
|
360
|
-
}>[] | null;
|
|
361
|
-
updated: number;
|
|
362
|
-
link: string | null;
|
|
363
|
-
locked: boolean;
|
|
364
|
-
customData?: Record<string, any> | undefined;
|
|
365
|
-
}> & {
|
|
366
|
-
type: "magicframe";
|
|
367
|
-
name: string | null;
|
|
368
|
-
} & {
|
|
369
|
-
isDeleted: boolean;
|
|
370
|
-
}) | (Readonly<{
|
|
371
|
-
id: string;
|
|
372
|
-
x: number;
|
|
373
|
-
y: number;
|
|
374
|
-
strokeColor: string;
|
|
375
|
-
backgroundColor: string;
|
|
376
|
-
fillStyle: import("../element/types").FillStyle;
|
|
377
|
-
strokeWidth: number;
|
|
378
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
379
|
-
roundness: {
|
|
380
|
-
type: import("../element/types").RoundnessType;
|
|
381
|
-
value?: number | undefined;
|
|
382
|
-
} | null;
|
|
383
|
-
roughness: number;
|
|
384
|
-
opacity: number;
|
|
385
|
-
width: number;
|
|
386
|
-
height: number;
|
|
387
|
-
angle: import("../../math").Radians;
|
|
388
|
-
seed: number;
|
|
389
|
-
version: number;
|
|
390
|
-
versionNonce: number;
|
|
391
|
-
index: import("../element/types").FractionalIndex | null;
|
|
392
|
-
isDeleted: boolean;
|
|
393
|
-
groupIds: readonly string[];
|
|
394
|
-
frameId: string | null;
|
|
395
|
-
boundElements: readonly Readonly<{
|
|
396
|
-
id: string;
|
|
397
|
-
type: "text" | "arrow";
|
|
398
|
-
}>[] | null;
|
|
399
|
-
updated: number;
|
|
400
|
-
link: string | null;
|
|
401
|
-
locked: boolean;
|
|
402
|
-
customData?: Record<string, any> | undefined;
|
|
403
|
-
}> & Readonly<{
|
|
404
|
-
type: "iframe";
|
|
405
|
-
customData?: {
|
|
406
|
-
generationData?: import("../element/types").MagicGenerationData | undefined;
|
|
407
|
-
} | undefined;
|
|
408
|
-
scale: [number, number];
|
|
409
|
-
}> & {
|
|
410
|
-
isDeleted: boolean;
|
|
411
|
-
}) | (Readonly<{
|
|
412
|
-
id: string;
|
|
413
|
-
x: number;
|
|
414
|
-
y: number;
|
|
415
|
-
strokeColor: string;
|
|
416
|
-
backgroundColor: string;
|
|
417
|
-
fillStyle: import("../element/types").FillStyle;
|
|
418
|
-
strokeWidth: number;
|
|
419
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
420
|
-
roundness: {
|
|
421
|
-
type: import("../element/types").RoundnessType;
|
|
422
|
-
value?: number | undefined;
|
|
423
|
-
} | null;
|
|
424
|
-
roughness: number;
|
|
425
|
-
opacity: number;
|
|
426
|
-
width: number;
|
|
427
|
-
height: number;
|
|
428
|
-
angle: import("../../math").Radians;
|
|
429
|
-
seed: number;
|
|
430
|
-
version: number;
|
|
431
|
-
versionNonce: number;
|
|
432
|
-
index: import("../element/types").FractionalIndex | null;
|
|
433
|
-
isDeleted: boolean;
|
|
434
|
-
groupIds: readonly string[];
|
|
435
|
-
frameId: string | null;
|
|
436
|
-
boundElements: readonly Readonly<{
|
|
437
|
-
id: string;
|
|
438
|
-
type: "text" | "arrow";
|
|
439
|
-
}>[] | null;
|
|
440
|
-
updated: number;
|
|
441
|
-
link: string | null;
|
|
442
|
-
locked: boolean;
|
|
443
|
-
customData?: Record<string, any> | undefined;
|
|
444
|
-
}> & Readonly<{
|
|
445
|
-
type: "embeddable";
|
|
446
|
-
scale: [number, number];
|
|
447
|
-
}> & {
|
|
448
|
-
isDeleted: boolean;
|
|
449
|
-
}) | (Readonly<{
|
|
450
|
-
id: string;
|
|
451
|
-
x: number;
|
|
452
|
-
y: number;
|
|
453
|
-
strokeColor: string;
|
|
454
|
-
backgroundColor: string;
|
|
455
|
-
fillStyle: import("../element/types").FillStyle;
|
|
456
|
-
strokeWidth: number;
|
|
457
|
-
strokeStyle: import("../element/types").StrokeStyle;
|
|
458
|
-
roundness: {
|
|
459
|
-
type: import("../element/types").RoundnessType;
|
|
460
|
-
value?: number | undefined;
|
|
461
|
-
} | null;
|
|
462
|
-
roughness: number;
|
|
463
|
-
opacity: number;
|
|
464
|
-
width: number;
|
|
465
|
-
height: number;
|
|
466
|
-
angle: import("../../math").Radians;
|
|
467
|
-
seed: number;
|
|
468
|
-
version: number;
|
|
469
|
-
versionNonce: number;
|
|
470
|
-
index: import("../element/types").FractionalIndex | null;
|
|
471
|
-
isDeleted: boolean;
|
|
472
|
-
groupIds: readonly string[];
|
|
473
|
-
frameId: string | null;
|
|
474
|
-
boundElements: readonly Readonly<{
|
|
475
|
-
id: string;
|
|
476
|
-
type: "text" | "arrow";
|
|
477
|
-
}>[] | null;
|
|
478
|
-
updated: number;
|
|
479
|
-
link: string | null;
|
|
480
|
-
locked: boolean;
|
|
481
|
-
customData?: Record<string, any> | undefined;
|
|
482
|
-
}> & {
|
|
483
|
-
type: "selection";
|
|
484
|
-
} & {
|
|
485
|
-
isDeleted: boolean;
|
|
486
|
-
}) | null;
|
|
487
|
-
export declare const getElementsAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
-
import type { AppState, BinaryFiles } from "../types";
|
|
3
|
-
export declare const exportToCanvas: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, files: BinaryFiles, { exportBackground, exportPadding, viewBackgroundColor, exportingFrame, }: {
|
|
4
|
-
exportBackground: boolean;
|
|
5
|
-
exportPadding?: number | undefined;
|
|
6
|
-
viewBackgroundColor: string;
|
|
7
|
-
exportingFrame?: ExcalidrawFrameLikeElement | null | undefined;
|
|
8
|
-
}, createCanvas?: (width: number, height: number) => {
|
|
9
|
-
canvas: HTMLCanvasElement;
|
|
10
|
-
scale: number;
|
|
11
|
-
}, loadFonts?: () => Promise<void>) => Promise<HTMLCanvasElement>;
|
|
12
|
-
export declare const exportToSvg: (elements: readonly NonDeletedExcalidrawElement[], appState: {
|
|
13
|
-
exportBackground: boolean;
|
|
14
|
-
exportPadding?: number;
|
|
15
|
-
exportScale?: number;
|
|
16
|
-
viewBackgroundColor: string;
|
|
17
|
-
exportWithDarkMode?: boolean;
|
|
18
|
-
exportEmbedScene?: boolean;
|
|
19
|
-
frameRendering?: AppState["frameRendering"];
|
|
20
|
-
frameColor?: AppState["frameColor"];
|
|
21
|
-
}, files: BinaryFiles | null, opts?: {
|
|
22
|
-
/**
|
|
23
|
-
* if true, all embeddables passed in will be rendered when possible.
|
|
24
|
-
*/
|
|
25
|
-
renderEmbeddables?: boolean;
|
|
26
|
-
exportingFrame?: ExcalidrawFrameLikeElement | null;
|
|
27
|
-
skipInliningFonts?: true;
|
|
28
|
-
}) => Promise<SVGSVGElement>;
|
|
29
|
-
export declare const getExportSize: (elements: readonly NonDeletedExcalidrawElement[], exportPadding: number, scale: number) => [number, number];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { isSomeElementSelected, getElementsWithinSelection, getCommonAttributeOfSelectedElements, getSelectedElements, getTargetElements, } from "./selection";
|
|
2
|
-
export { calculateScrollCenter } from "./scroll";
|
|
3
|
-
export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, getElementAtPosition, getElementsAtPosition, } from "./comparisons";
|
|
4
|
-
export { getNormalizedZoom, getNormalizedGridSize, getNormalizedGridStep, } from "./normalize";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { NormalizedZoomValue } from "../types";
|
|
2
|
-
export declare const getNormalizedZoom: (zoom: number) => NormalizedZoomValue;
|
|
3
|
-
export declare const getNormalizedGridSize: (gridStep: number) => number;
|
|
4
|
-
export declare const getNormalizedGridStep: (gridStep: number) => number;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { AppState, Offsets, PointerCoords, Zoom } from "../types";
|
|
2
|
-
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
-
export declare const centerScrollOn: ({ scenePoint, viewportDimensions, zoom, offsets, }: {
|
|
4
|
-
scenePoint: PointerCoords;
|
|
5
|
-
viewportDimensions: {
|
|
6
|
-
height: number;
|
|
7
|
-
width: number;
|
|
8
|
-
};
|
|
9
|
-
zoom: Zoom;
|
|
10
|
-
offsets?: Partial<{
|
|
11
|
-
top: number;
|
|
12
|
-
right: number;
|
|
13
|
-
bottom: number;
|
|
14
|
-
left: number;
|
|
15
|
-
}> | undefined;
|
|
16
|
-
}) => {
|
|
17
|
-
scrollX: number;
|
|
18
|
-
scrollY: number;
|
|
19
|
-
};
|
|
20
|
-
export declare const calculateScrollCenter: (elements: readonly ExcalidrawElement[], appState: AppState) => {
|
|
21
|
-
scrollX: number;
|
|
22
|
-
scrollY: number;
|
|
23
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { InteractiveCanvasAppState } from "../types";
|
|
2
|
-
import type { ScrollBars } from "./types";
|
|
3
|
-
import type { ExcalidrawElement } from "../element/types";
|
|
4
|
-
export declare const SCROLLBAR_MARGIN = 4;
|
|
5
|
-
export declare const SCROLLBAR_WIDTH = 6;
|
|
6
|
-
export declare const SCROLLBAR_COLOR = "rgba(128,128,128,0.3)";
|
|
7
|
-
export declare const getScrollBars: (elements: readonly ExcalidrawElement[], viewportWidth: number, viewportHeight: number, appState: InteractiveCanvasAppState) => ScrollBars;
|
|
8
|
-
export declare const isOverScrollBars: (scrollBars: ScrollBars, x: number, y: number) => {
|
|
9
|
-
isOverEither: boolean;
|
|
10
|
-
isOverHorizontal: boolean;
|
|
11
|
-
isOverVertical: boolean;
|
|
12
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
-
import type { AppState, InteractiveCanvasAppState } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Frames and their containing elements are not to be selected at the same time.
|
|
5
|
-
* Given an array of selected elements, if there are frames and their containing elements
|
|
6
|
-
* we only keep the frames.
|
|
7
|
-
* @param selectedElements
|
|
8
|
-
*/
|
|
9
|
-
export declare const excludeElementsInFramesFromSelection: <T extends ExcalidrawElement>(selectedElements: readonly T[]) => T[];
|
|
10
|
-
export declare const getElementsWithinSelection: (elements: readonly NonDeletedExcalidrawElement[], selection: NonDeletedExcalidrawElement, elementsMap: ElementsMap, excludeElementsInFrames?: boolean) => NonDeletedExcalidrawElement[];
|
|
11
|
-
export declare const getVisibleAndNonSelectedElements: (elements: readonly NonDeletedExcalidrawElement[], selectedElements: readonly NonDeletedExcalidrawElement[], appState: AppState, elementsMap: ElementsMap) => NonDeletedExcalidrawElement[];
|
|
12
|
-
export declare const isSomeElementSelected: {
|
|
13
|
-
(elements: readonly NonDeletedExcalidrawElement[], appState: Pick<AppState, "selectedElementIds">): boolean;
|
|
14
|
-
clearCache(): void;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Returns common attribute (picked by `getAttribute` callback) of selected
|
|
18
|
-
* elements. If elements don't share the same value, returns `null`.
|
|
19
|
-
*/
|
|
20
|
-
export declare const getCommonAttributeOfSelectedElements: <T>(elements: readonly NonDeletedExcalidrawElement[], appState: Pick<AppState, "selectedElementIds">, getAttribute: (element: ExcalidrawElement) => T) => T | null;
|
|
21
|
-
export declare const getSelectedElements: (elements: ElementsMapOrArray, appState: Pick<InteractiveCanvasAppState, "selectedElementIds">, opts?: {
|
|
22
|
-
includeBoundTextElement?: boolean;
|
|
23
|
-
includeElementsInFrames?: boolean;
|
|
24
|
-
}) => ExcalidrawElement[];
|
|
25
|
-
export declare const getTargetElements: (elements: ElementsMapOrArray, appState: Pick<AppState, "selectedElementIds" | "editingTextElement" | "newElement">) => ExcalidrawElement[];
|
|
26
|
-
/**
|
|
27
|
-
* returns prevState's selectedElementids if no change from previous, so as to
|
|
28
|
-
* retain reference identity for memoization
|
|
29
|
-
*/
|
|
30
|
-
export declare const makeNextSelectedElementIds: (nextSelectedElementIds: AppState["selectedElementIds"], prevState: Pick<AppState, "selectedElementIds">) => Readonly<{
|
|
31
|
-
[id: string]: true;
|
|
32
|
-
}>;
|