@unicom-cloud/ui 0.8.171 → 0.8.173
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/.virtual/_rolldown/runtime.js +1 -1
- package/affix/Affix.js +1 -1
- package/affix/constants.js +1 -1
- package/affix/context.js +1 -1
- package/affix/index.js +1 -1
- package/affix/style/index.js +1 -1
- package/alert/Alert.js +23 -33
- package/alert/constants.d.ts +7 -0
- package/alert/constants.js +16 -1
- package/alert/context.js +1 -1
- package/alert/index.js +1 -1
- package/alert/style/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/constants.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/style/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/animation/Animation.js +1 -1
- package/animation/constants.d.ts +1 -0
- package/animation/constants.js +2 -1
- package/animation/context.js +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/app/App.js +1 -1
- package/app/constants.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/style/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +40 -40
- package/auto-complete/constants.d.ts +1 -0
- package/auto-complete/constants.js +5 -1
- package/auto-complete/context.js +1 -1
- package/auto-complete/index.js +1 -1
- package/auto-complete/style/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/constants.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/avatar/style/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/constants.js +1 -1
- package/back-top/context.js +1 -1
- package/back-top/index.js +1 -1
- package/back-top/style/index.js +1 -1
- package/badge/Badge.js +9 -9
- package/badge/Count.js +1 -1
- package/badge/constants.d.ts +5 -0
- package/badge/constants.js +23 -1
- package/badge/context.js +1 -1
- package/badge/index.d.ts +1 -1
- package/badge/index.js +7 -7
- package/badge/style/index.js +1 -1
- package/badge/utils.d.ts +0 -5
- package/badge/utils.js +1 -23
- package/border-beam/BorderBeam.js +1 -1
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/constants.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/breadcrumb/style/index.js +1 -1
- package/button/Button.js +1 -1
- package/button/Group.js +1 -1
- package/button/Toggle.js +1 -1
- package/button/constants.js +1 -1
- package/button/context.js +1 -1
- package/button/index.js +1 -1
- package/button/style/index.js +1 -1
- package/calendar/Calendar.js +101 -90
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/constants.js +1 -1
- package/calendar/context.js +1 -1
- package/calendar/header/Panel.js +37 -31
- package/calendar/header/index.js +90 -79
- package/calendar/hooks/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/calendar/style/index.css +1 -1
- package/calendar/style/index.js +1 -1
- package/card/Card.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/constants.js +1 -1
- package/card/context.js +1 -1
- package/card/index.js +1 -1
- package/card/style/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Carousel.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/constants.js +1 -1
- package/carousel/context.js +1 -1
- package/carousel/index.js +1 -1
- package/carousel/style/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/constants.js +1 -1
- package/cascader/context.js +1 -1
- package/cascader/hooks/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/style/index.css +1 -1
- package/cascader/style/index.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/constants.js +1 -1
- package/checkbox/context.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/style/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +1 -1
- package/collapse/constants.js +1 -1
- package/collapse/context.js +1 -1
- package/collapse/index.js +1 -1
- package/collapse/style/index.js +1 -1
- package/collapse/utils.js +1 -1
- package/color-picker/ColorPicker.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/constants.js +1 -1
- package/color-picker/context.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/style/index.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/Comment.js +1 -1
- package/comment/constants.js +1 -1
- package/comment/context.js +1 -1
- package/comment/index.js +1 -1
- package/comment/style/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/constants.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/config-provider/initUI.js +1 -1
- package/config-provider/style/index.js +1 -1
- package/config-provider/useConfigProvider.js +1 -1
- package/config-provider/utils.js +1 -1
- package/constants/index.js +1 -1
- package/copy/Copy.js +1 -1
- package/copy/constants.js +1 -1
- package/copy/context.js +1 -1
- package/copy/index.js +1 -1
- package/copy/style/index.js +1 -1
- package/countdown/Countdown.js +1 -1
- package/countdown/constants.js +1 -1
- package/countdown/context.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/style/index.css +1 -1
- package/countdown/style/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.js +1 -1
- package/date-picker/Picker.js +202 -202
- package/date-picker/Range.js +281 -281
- package/date-picker/constants.js +1 -1
- package/date-picker/context.js +1 -1
- package/date-picker/hooks/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/style/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/Descriptions.js +1 -1
- package/descriptions/constants.js +1 -1
- package/descriptions/context.js +1 -1
- package/descriptions/index.js +1 -1
- package/descriptions/style/index.js +1 -1
- package/details/Details.js +1 -1
- package/details/constants.js +1 -1
- package/details/context.js +1 -1
- package/details/index.js +1 -1
- package/details/style/index.js +1 -1
- package/development/Development.js +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +1 -1
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/divider/Divider.js +1 -1
- package/divider/constants.js +1 -1
- package/divider/context.js +1 -1
- package/divider/index.js +1 -1
- package/divider/style/index.js +1 -1
- package/draggable/Draggable.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/constants.js +1 -1
- package/draggable/context.js +1 -1
- package/draggable/index.js +1 -1
- package/draggable/style/index.js +1 -1
- package/draw/Draw.d.ts +1 -1
- package/draw/Draw.js +24 -24
- package/draw/{core/actions → actions}/actionAddToLibrary.d.ts +109 -109
- package/draw/{core/actions → actions}/actionAddToLibrary.js +8 -8
- package/draw/{core/actions → actions}/actionAlign.d.ts +14 -14
- package/draw/{core/actions → actions}/actionAlign.js +13 -13
- package/draw/{core/actions → actions}/actionBoundText.d.ts +72 -72
- package/draw/{core/actions → actions}/actionBoundText.js +13 -13
- package/draw/{core/actions → actions}/actionCanvas.d.ts +420 -420
- package/draw/{core/actions → actions}/actionCanvas.js +32 -32
- package/draw/{core/actions → actions}/actionClipboard.d.ts +81 -81
- package/draw/{core/actions → actions}/actionClipboard.js +9 -9
- package/draw/{core/actions → actions}/actionCropEditor.d.ts +37 -37
- package/draw/{core/actions → actions}/actionCropEditor.js +6 -6
- package/draw/{core/actions → actions}/actionDeleteSelected.d.ts +97 -97
- package/draw/{core/actions → actions}/actionDeleteSelected.js +16 -16
- package/draw/{core/actions → actions}/actionDistribute.d.ts +4 -4
- package/draw/{core/actions → actions}/actionDistribute.js +13 -13
- package/draw/{core/actions → actions}/actionDuplicateSelection.d.ts +3 -3
- package/draw/{core/actions → actions}/actionDuplicateSelection.js +12 -12
- package/draw/{core/actions → actions}/actionElementLink.d.ts +45 -45
- package/draw/{core/actions → actions}/actionElementLink.js +11 -11
- package/draw/{core/actions → actions}/actionElementLock.d.ts +73 -73
- package/draw/{core/actions → actions}/actionElementLock.js +11 -11
- package/draw/{core/actions → actions}/actionEmbeddable.d.ts +38 -38
- package/draw/{core/actions → actions}/actionEmbeddable.js +5 -5
- package/draw/{core/actions → actions}/actionExport.d.ts +85 -85
- package/draw/{core/actions → actions}/actionExport.js +13 -13
- package/draw/{core/actions → actions}/actionFinalize.d.ts +3 -3
- package/draw/{core/actions → actions}/actionFinalize.js +16 -16
- package/draw/{core/actions → actions}/actionFlip.d.ts +4 -4
- package/draw/{core/actions → actions}/actionFlip.js +15 -15
- package/draw/{core/actions → actions}/actionFrame.d.ts +250 -250
- package/draw/{core/actions → actions}/actionFrame.js +14 -14
- package/draw/{core/actions → actions}/actionGroup.d.ts +65 -65
- package/draw/{core/actions → actions}/actionGroup.js +15 -15
- package/draw/{core/actions → actions}/actionHistory.d.ts +2 -2
- package/draw/{core/actions → actions}/actionHistory.js +9 -9
- package/draw/{core/actions → actions}/actionLinearEditor.d.ts +159 -159
- package/draw/{core/actions → actions}/actionLinearEditor.js +10 -10
- package/draw/{core/actions → actions}/actionMenu.d.ts +36 -36
- package/draw/{core/actions → actions}/actionMenu.js +6 -6
- package/draw/{core/actions → actions}/actionProperties.d.ts +62 -62
- package/draw/{core/actions → actions}/actionProperties.js +194 -194
- package/draw/{core/actions → actions}/actionSelectAll.d.ts +35 -35
- package/draw/{core/actions → actions}/actionSelectAll.js +10 -10
- package/draw/{core/actions → actions}/actionStyles.d.ts +40 -40
- package/draw/{core/actions → actions}/actionStyles.js +12 -12
- package/draw/actions/actionTextAutoResize.d.ts +17 -0
- package/draw/{core/actions → actions}/actionTextAutoResize.js +10 -10
- package/draw/{core/actions → actions}/actionToggleGridMode.d.ts +39 -39
- package/draw/{core/actions → actions}/actionToggleGridMode.js +6 -6
- package/draw/{core/actions → actions}/actionToggleObjectsSnapMode.d.ts +40 -40
- package/draw/{core/actions → actions}/actionToggleObjectsSnapMode.js +6 -6
- package/draw/{core/actions → actions}/actionToggleSearchMenu.d.ts +36 -36
- package/draw/{core/actions → actions}/actionToggleSearchMenu.js +6 -6
- package/draw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/draw/{core/actions → actions}/actionToggleStats.d.ts +38 -38
- package/draw/{core/actions → actions}/actionToggleStats.js +6 -6
- package/draw/{core/actions → actions}/actionToggleViewMode.d.ts +40 -40
- package/draw/{core/actions → actions}/actionToggleViewMode.js +6 -6
- package/draw/{core/actions → actions}/actionToggleZenMode.d.ts +40 -40
- package/draw/{core/actions → actions}/actionToggleZenMode.js +6 -6
- package/draw/{core/actions → actions}/actionZindex.d.ts +12 -12
- package/draw/{core/actions → actions}/actionZindex.js +9 -9
- package/draw/{core/actions → actions}/index.js +1 -1
- package/draw/{core/actions → actions}/manager.d.ts +2 -2
- package/draw/{core/actions → actions}/manager.js +4 -4
- package/draw/actions/register.js +6 -0
- package/draw/{core/actions → actions}/shortcuts.d.ts +1 -1
- package/draw/{core/actions → actions}/shortcuts.js +4 -4
- package/draw/{core/actions → actions}/types.d.ts +3 -3
- package/draw/{core/analytics.js → analytics.js} +4 -4
- package/draw/{core/animated-trail.d.ts → animated-trail.d.ts} +2 -2
- package/draw/{core/animated-trail.js → animated-trail.js} +7 -7
- package/draw/{core/animation-frame-handler.js → animation-frame-handler.js} +2 -2
- package/draw/{core/appState.d.ts → appState.d.ts} +15 -15
- package/draw/{core/appState.js → appState.js} +8 -8
- package/draw/{core/charts.d.ts → charts.d.ts} +1 -1
- package/draw/{core/charts.js → charts.js} +12 -12
- package/draw/{core/clients.d.ts → clients.d.ts} +1 -1
- package/draw/{core/clients.js → clients.js} +9 -6
- package/draw/{core/clipboard.d.ts → clipboard.d.ts} +5 -5
- package/draw/{core/clipboard.js → clipboard.js} +45 -45
- package/draw/common/binary-heap.js +1 -1
- package/draw/common/bounds.js +1 -1
- package/draw/common/colors.js +1 -1
- package/draw/common/constants.d.ts +1 -1
- package/draw/common/constants.js +4 -4
- package/draw/common/editorInterface.js +1 -1
- package/draw/common/emitter.js +1 -1
- package/draw/common/font-metadata.js +1 -1
- package/draw/common/index.js +1 -1
- package/draw/common/keys.js +1 -1
- package/draw/common/points.js +1 -1
- package/draw/common/promise-pool.js +1 -1
- package/draw/common/queue.js +1 -1
- package/draw/common/random.js +1 -1
- package/draw/common/url.js +2 -2
- package/draw/common/utils.js +1 -1
- package/draw/{core/components → components}/Actions.d.ts +2 -2
- package/draw/components/Actions.js +493 -0
- package/draw/{core/components → components}/ActiveConfirmDialog.js +4 -4
- package/draw/{core/components → components}/App.d.ts +18 -18
- package/draw/{core/components → components}/App.js +676 -676
- package/draw/{core/components → components}/BraveMeasureTextError.js +2 -2
- package/draw/{core/components → components}/ContextMenu.js +2 -2
- package/draw/{core/components → components}/ConvertElementTypePopup.d.ts +2 -2
- package/draw/{core/components → components}/ConvertElementTypePopup.js +37 -37
- package/draw/{core/components → components}/DarkModeToggle.d.ts +1 -1
- package/draw/{core/components → components}/DarkModeToggle.js +5 -5
- package/draw/{core/components → components}/ElementCanvasButtons.d.ts +1 -1
- package/draw/{core/components → components}/ElementCanvasButtons.js +6 -6
- package/draw/{core/components → components}/ElementLinkDialog.d.ts +3 -3
- package/draw/{core/components → components}/ElementLinkDialog.js +12 -12
- package/draw/{core/components → components}/Ellipsify.js +2 -2
- package/draw/{core/components → components}/ErrorDialog.js +3 -3
- package/draw/{core/components → components}/ExportDialog.d.ts +2 -2
- package/draw/{core/components → components}/ExportDialog.js +4 -4
- package/draw/{core/components → components}/EyeDropper.d.ts +1 -1
- package/draw/{core/components → components}/EyeDropper.js +7 -7
- package/draw/{core/components → components}/FixedSideContainer.js +2 -2
- package/draw/{core/components → components}/Footer.d.ts +2 -2
- package/draw/{core/components → components}/Footer.js +8 -8
- package/draw/{core/components → components}/HandButton.js +5 -5
- package/draw/{core/components → components}/HelpDialog.js +6 -6
- package/draw/{core/components → components}/HintViewer.d.ts +2 -2
- package/draw/{core/components → components}/HintViewer.js +17 -17
- package/draw/{core/components → components}/ImageExportDialog.d.ts +2 -2
- package/draw/{core/components → components}/ImageExportDialog.js +14 -14
- package/draw/{core/components → components}/InitializeApp.d.ts +1 -1
- package/draw/{core/components → components}/InitializeApp.js +2 -2
- package/draw/{core/components → components}/InlineIcon.js +2 -2
- package/draw/{core/components → components}/Island.js +2 -2
- package/draw/{core/components → components}/LaserPointerButton.js +2 -2
- package/draw/{core/components → components}/LayerUI.d.ts +2 -2
- package/draw/{core/components → components}/LayerUI.js +21 -21
- package/draw/{core/components → components}/LibraryMenu.js +14 -14
- package/draw/{core/components → components}/LibraryMenuItems.d.ts +1 -1
- package/draw/{core/components → components}/LibraryMenuItems.js +15 -15
- package/draw/{core/components → components}/LibraryMenuSection.d.ts +2 -2
- package/draw/{core/components → components}/LibraryMenuSection.js +3 -3
- package/draw/{core/components → components}/LibraryUnit.d.ts +1 -1
- package/draw/{core/components → components}/LibraryUnit.js +3 -3
- package/draw/{core/components → components}/LoadingMessage.d.ts +1 -1
- package/draw/{core/components → components}/LoadingMessage.js +3 -3
- package/draw/{core/components → components}/LockButton.js +4 -4
- package/draw/{core/components → components}/MagicButton.js +2 -2
- package/draw/{core/components → components}/PasteChartDialog.d.ts +1 -1
- package/draw/{core/components → components}/PasteChartDialog.js +3 -3
- package/draw/{core/components → components}/PenModeButton.js +2 -2
- package/draw/{core/components → components}/Popover.js +5 -5
- package/draw/{core/components → components}/ProjectName.js +5 -5
- package/draw/{core/components → components}/Range.d.ts +1 -1
- package/draw/{core/components → components}/Range.js +4 -4
- package/draw/{core/components → components}/SVGLayer.js +2 -2
- package/draw/{core/components → components}/SearchMenu.js +21 -21
- package/draw/{core/components → components}/Stack.js +1 -1
- package/draw/{core/components → components}/Toast.js +3 -3
- package/draw/{core/components → components}/Trans.js +2 -2
- package/draw/{core/components → components}/UnlockPopup.d.ts +1 -1
- package/draw/{core/components → components}/UnlockPopup.js +7 -7
- package/draw/{core/components → components}/canvases/InteractiveCanvas.d.ts +3 -3
- package/draw/{core/components → components}/canvases/InteractiveCanvas.js +5 -5
- package/draw/{core/components → components}/canvases/NewElementCanvas.d.ts +3 -3
- package/draw/{core/components → components}/canvases/NewElementCanvas.js +2 -2
- package/draw/{core/components → components}/canvases/StaticCanvas.d.ts +3 -3
- package/draw/{core/components → components}/canvases/StaticCanvas.js +4 -4
- package/draw/components/canvases/index.js +4 -0
- package/draw/{core/components → components}/context.d.ts +3 -3
- package/draw/{core/components → components}/context.js +4 -4
- package/draw/{core/components → components}/diagram-to-code-plugin/index.d.ts +1 -1
- package/draw/{core/components → components}/diagram-to-code-plugin/index.js +2 -2
- package/draw/{core/components → components}/hooks.d.ts +6 -6
- package/draw/{core/components → components}/hooks.js +4 -4
- package/draw/{core/components → components}/icons.d.ts +1 -1
- package/draw/{core/components → components}/icons.js +4 -4
- package/draw/{core/components → components}/main-menu/DefaultItems.d.ts +1 -1
- package/draw/{core/components → components}/main-menu/DefaultItems.js +4 -4
- package/draw/{core/components → components}/main-menu/MenuItem.js +4 -4
- package/draw/{core/components → components}/main-menu/common.js +5 -5
- package/draw/{core/components → components}/overwrite-confirm/State.js +3 -3
- package/draw/{core/components → components}/overwrite-confirm/index.js +7 -7
- package/draw/{core/components → components}/shapes.d.ts +1 -1
- package/draw/{core/components → components}/shapes.js +4 -4
- package/draw/{core/components → components}/stats/Angle.d.ts +3 -3
- package/draw/{core/components → components}/stats/Angle.js +8 -8
- package/draw/{core/components → components}/stats/CanvasGrid.d.ts +2 -2
- package/draw/{core/components → components}/stats/CanvasGrid.js +2 -2
- package/draw/{core/components → components}/stats/Collapsible.js +2 -2
- package/draw/{core/components → components}/stats/Dimension.d.ts +3 -3
- package/draw/{core/components → components}/stats/Dimension.js +10 -10
- package/draw/{core/components → components}/stats/DragInput.d.ts +3 -3
- package/draw/{core/components → components}/stats/DragInput.js +9 -9
- package/draw/{core/components → components}/stats/FontSize.d.ts +3 -3
- package/draw/{core/components → components}/stats/FontSize.js +5 -5
- package/draw/{core/components → components}/stats/MultiAngle.d.ts +3 -3
- package/draw/{core/components → components}/stats/MultiAngle.js +8 -8
- package/draw/{core/components → components}/stats/MultiDimension.d.ts +3 -3
- package/draw/{core/components → components}/stats/MultiDimension.js +13 -13
- package/draw/{core/components → components}/stats/MultiFontSize.d.ts +3 -3
- package/draw/{core/components → components}/stats/MultiFontSize.js +6 -6
- package/draw/{core/components → components}/stats/MultiPosition.d.ts +3 -3
- package/draw/{core/components → components}/stats/MultiPosition.js +7 -7
- package/draw/{core/components → components}/stats/Position.d.ts +3 -3
- package/draw/{core/components → components}/stats/Position.js +8 -8
- package/draw/{core/components → components}/stats/index.d.ts +2 -2
- package/draw/{core/components → components}/stats/index.js +12 -12
- package/draw/{core/components → components}/stats/utils.d.ts +3 -3
- package/draw/{core/components → components}/stats/utils.js +11 -11
- package/draw/constants.js +1 -1
- package/draw/{core/context → context}/tunnels.d.ts +9 -9
- package/draw/{core/context → context}/tunnels.js +6 -6
- package/draw/{core/context → context}/ui-appState.d.ts +1 -1
- package/draw/context/ui-appState.js +7 -0
- package/draw/context.js +1 -1
- package/draw/{core/cursor.d.ts → cursor.d.ts} +1 -1
- package/draw/{core/cursor.js → cursor.js} +4 -4
- package/draw/{core/data → data}/EditorLocalStorage.d.ts +2 -2
- package/draw/{core/data → data}/blob.d.ts +69 -69
- package/draw/{core/data → data}/blob.js +25 -25
- package/draw/{core/data → data}/encode.js +3 -3
- package/draw/data/encryption.js +4 -0
- package/draw/{core/data → data}/filesystem.d.ts +3 -3
- package/draw/{core/data → data}/filesystem.js +9 -9
- package/draw/{core/data → data}/image.js +7 -7
- package/draw/data/index.js +5 -0
- package/draw/{core/data → data}/json.d.ts +33 -33
- package/draw/{core/data → data}/json.js +4 -4
- package/draw/{core/data → data}/library.d.ts +3 -3
- package/draw/{core/data → data}/library.js +32 -32
- package/draw/{core/data → data}/reconcile.d.ts +3 -3
- package/draw/{core/data → data}/reconcile.js +6 -6
- package/draw/{core/data → data}/resave.d.ts +2 -2
- package/draw/{core/data → data}/resave.js +2 -2
- package/draw/{core/data → data}/restore.d.ts +3 -3
- package/draw/{core/data → data}/restore.js +49 -49
- package/draw/{core/data → data}/types.d.ts +3 -3
- package/draw/{core/data → data}/utils.d.ts +2 -2
- package/draw/{core/data → data}/utils.js +10 -10
- package/draw/{core/deburr.js → deburr.js} +2 -2
- package/draw/editor-jotai.d.ts +7 -0
- package/draw/editor-jotai.js +11 -0
- package/draw/element/Scene.js +1 -1
- package/draw/element/align.js +1 -1
- package/draw/element/arrows/focus.js +1 -1
- package/draw/element/arrows/helpers.js +1 -1
- package/draw/element/binding.js +1 -1
- package/draw/element/bounds.js +1 -1
- package/draw/element/collision.js +1 -1
- package/draw/element/comparisons.js +1 -1
- package/draw/element/containerCache.js +1 -1
- package/draw/element/cropElement.js +1 -1
- package/draw/element/delta.js +1 -1
- package/draw/element/distance.js +1 -1
- package/draw/element/distribute.js +1 -1
- package/draw/element/dragElements.js +1 -1
- package/draw/element/duplicate.js +1 -1
- package/draw/element/elbowArrow.js +1 -1
- package/draw/element/elementLink.js +1 -1
- package/draw/element/embeddable.js +1 -1
- package/draw/element/flowchart.js +1 -1
- package/draw/element/fractionalIndex.js +1 -1
- package/draw/element/frame.js +1 -1
- package/draw/element/groups.js +1 -1
- package/draw/element/heading.js +1 -1
- package/draw/element/image.js +1 -1
- package/draw/element/index.js +1 -1
- package/draw/element/is.js +1 -1
- package/draw/element/linearElementEditor.js +1 -1
- package/draw/element/mutateElement.js +1 -1
- package/draw/element/newElement.js +1 -1
- package/draw/element/positionElementsOnGrid.js +1 -1
- package/draw/element/renderElement.d.ts +1 -1
- package/draw/element/renderElement.js +1 -1
- package/draw/element/resizeElements.js +1 -1
- package/draw/element/resizeTest.js +1 -1
- package/draw/element/selection.js +1 -1
- package/draw/element/shape.d.ts +1 -1
- package/draw/element/shape.js +1 -1
- package/draw/element/showSelectedShapeActions.js +1 -1
- package/draw/element/sizeHelpers.js +1 -1
- package/draw/element/sortElements.js +1 -1
- package/draw/element/store.d.ts +1 -1
- package/draw/element/store.js +1 -1
- package/draw/element/textElement.js +1 -1
- package/draw/element/textMeasurements.js +1 -1
- package/draw/element/textWrapping.js +1 -1
- package/draw/element/transform.js +1 -1
- package/draw/element/transformHandles.js +1 -1
- package/draw/element/typeChecks.js +1 -1
- package/draw/element/utils.js +1 -1
- package/draw/element/zindex.js +1 -1
- package/draw/{core/eraser → eraser}/index.js +17 -17
- package/draw/errors.js +41 -0
- package/draw/{core/fonts → fonts}/DrawFontFace.js +2 -2
- package/draw/{core/fonts → fonts}/Fonts.d.ts +3 -3
- package/draw/{core/fonts → fonts}/Fonts.js +12 -12
- package/draw/fonts/index.js +3 -0
- package/draw/{core/gesture.d.ts → gesture.d.ts} +1 -1
- package/draw/{core/gesture.js → gesture.js} +2 -2
- package/draw/{core/history.d.ts → history.d.ts} +5 -5
- package/draw/{core/history.js → history.js} +7 -7
- package/draw/{core/hooks → hooks}/useCopiedIndicator.js +2 -2
- package/draw/{core/hooks → hooks}/useCreatePortalContainer.js +4 -4
- package/draw/{core/hooks → hooks}/useEmitter.d.ts +1 -1
- package/draw/{core/hooks → hooks}/useEmitter.js +2 -2
- package/draw/{core/hooks → hooks}/useLibraryItemSvg.d.ts +1 -1
- package/draw/{core/hooks → hooks}/useLibraryItemSvg.js +6 -6
- package/draw/{core/hooks → hooks}/useOutsideClick.js +4 -4
- package/draw/{core/hooks → hooks}/useScrollPosition.js +3 -3
- package/draw/{core/hooks → hooks}/useStable.js +2 -2
- package/draw/{core/hooks → hooks}/useTextEditorFocus.js +2 -2
- package/draw/{core/hooks → hooks}/useTransition.js +2 -2
- package/draw/{core/i18n.d.ts → i18n.d.ts} +1 -1
- package/draw/{core/i18n.js → i18n.js} +3 -3
- package/draw/index.d.ts +14 -14
- package/draw/index.js +48 -48
- package/draw/interface.d.ts +11 -11
- package/draw/{core/laser-trails.js → laser-trails.js} +5 -5
- package/draw/{core/lasso → lasso}/index.js +13 -13
- package/draw/{core/lasso → lasso}/utils.d.ts +2 -2
- package/draw/{core/lasso → lasso}/utils.js +10 -10
- package/draw/libs/browser-fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/index.js +1 -1
- package/draw/libs/browser-fs-access/legacy/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-save.js +1 -1
- package/draw/libs/browser-fs-access/supported.js +1 -1
- package/draw/libs/fractional-indexing/index.js +1 -1
- package/draw/libs/fuzzy/index.js +1 -1
- package/draw/libs/glur/index.js +1 -1
- package/draw/libs/glur/mono16.js +1 -1
- package/draw/libs/hachure-fill/index.js +1 -1
- package/draw/libs/image-blob-reduce/index.js +1 -1
- package/draw/libs/image-blob-reduce/lib/image_traverse.js +1 -1
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +1 -1
- package/draw/libs/image-blob-reduce/lib/utils.js +1 -1
- package/draw/libs/jotai/index.js +1 -1
- package/draw/libs/jotai/react/Provider.js +1 -1
- package/draw/libs/jotai/react/useAtom.js +1 -1
- package/draw/libs/jotai/react/useAtomValue.js +1 -1
- package/draw/libs/jotai/react/useSetAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useAtomCallback.js +1 -1
- package/draw/libs/jotai/react/utils/useHydrateAtoms.js +1 -1
- package/draw/libs/jotai/react/utils/useReducerAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useResetAtom.js +1 -1
- package/draw/libs/jotai/react/utils.js +1 -1
- package/draw/libs/jotai/react.js +1 -1
- package/draw/libs/jotai/utils.js +1 -1
- package/draw/libs/jotai/vanilla/atom.js +1 -1
- package/draw/libs/jotai/vanilla/internals.js +1 -1
- package/draw/libs/jotai/vanilla/store.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomFamily.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +1 -1
- package/draw/libs/jotai/vanilla/utils.js +1 -1
- package/draw/libs/jotai-scope/createIsolation.js +1 -1
- package/draw/libs/jotai-scope/index.js +1 -1
- package/draw/libs/jotai-scope/scope-provider/index.js +1 -1
- package/draw/libs/jotai-scope/scope-provider/scope.js +1 -1
- package/draw/libs/jotai-scope/utils.js +1 -1
- package/draw/libs/laser-pointer/index.js +1 -1
- package/draw/libs/laser-pointer/math.js +1 -1
- package/draw/libs/laser-pointer/simplify.js +1 -1
- package/draw/libs/laser-pointer/state.js +1 -1
- package/draw/libs/markdown-to-text/index.js +1 -1
- package/draw/libs/math/angle.js +1 -1
- package/draw/libs/math/constants.js +1 -1
- package/draw/libs/math/curve.js +1 -1
- package/draw/libs/math/ellipse.js +1 -1
- package/draw/libs/math/index.js +1 -1
- package/draw/libs/math/line.js +1 -1
- package/draw/libs/math/point.js +1 -1
- package/draw/libs/math/polygon.js +1 -1
- package/draw/libs/math/range.js +1 -1
- package/draw/libs/math/rectangle.js +1 -1
- package/draw/libs/math/segment.js +1 -1
- package/draw/libs/math/triangle.js +1 -1
- package/draw/libs/math/utils.js +1 -1
- package/draw/libs/math/vector.js +1 -1
- package/draw/libs/multimath/index.js +1 -1
- package/draw/libs/multimath/lib/wa_detect.js +1 -1
- package/draw/libs/nanoid/index.js +1 -1
- package/draw/libs/nanoid/url-alphabet/index.js +1 -1
- package/draw/libs/pako/index.js +1 -1
- package/draw/libs/path-data-parser/absolutize.js +1 -1
- package/draw/libs/path-data-parser/index.js +1 -1
- package/draw/libs/path-data-parser/normalize.js +1 -1
- package/draw/libs/path-data-parser/parser.js +1 -1
- package/draw/libs/perfect-freehand/getStroke.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeRadius.js +1 -1
- package/draw/libs/perfect-freehand/index.js +1 -1
- package/draw/libs/perfect-freehand/vec.js +1 -1
- package/draw/libs/pica/index.js +1 -1
- package/draw/libs/pica/lib/mathlib.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/mm_resize/index.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/index.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/pool.js +1 -1
- package/draw/libs/pica/lib/tiler.js +1 -1
- package/draw/libs/pica/lib/utils.js +1 -1
- package/draw/libs/pica/lib/worker.js +1 -1
- package/draw/libs/png-chunk-text/decode.js +1 -1
- package/draw/libs/png-chunk-text/encode.js +1 -1
- package/draw/libs/png-chunk-text/index.js +1 -1
- package/draw/libs/png-chunks-encode/index.js +1 -1
- package/draw/libs/png-chunks-extract/index.js +1 -1
- package/draw/libs/points-on-curve/curve-to-bezier.js +1 -1
- package/draw/libs/points-on-curve/index.js +1 -1
- package/draw/libs/points-on-path/index.js +1 -1
- package/draw/libs/promise-pool/index.js +1 -1
- package/draw/libs/roughjs/canvas.js +1 -1
- package/draw/libs/roughjs/core.js +1 -1
- package/draw/libs/roughjs/fillers/dashed-filler.js +1 -1
- package/draw/libs/roughjs/fillers/dot-filler.js +1 -1
- package/draw/libs/roughjs/fillers/filler.js +1 -1
- package/draw/libs/roughjs/fillers/hachure-filler.js +1 -1
- package/draw/libs/roughjs/fillers/hatch-filler.js +1 -1
- package/draw/libs/roughjs/fillers/scan-line-hachure.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-filler.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-line-filler.js +1 -1
- package/draw/libs/roughjs/generator.js +1 -1
- package/draw/libs/roughjs/geometry.js +1 -1
- package/draw/libs/roughjs/index.js +1 -1
- package/draw/libs/roughjs/math.js +1 -1
- package/draw/libs/roughjs/renderer.js +1 -1
- package/draw/libs/roughjs/rough.js +1 -1
- package/draw/libs/roughjs/svg.js +1 -1
- package/draw/libs/sliced/index.js +1 -1
- package/draw/libs/webworkify/index.js +1 -1
- package/draw/mermaid.js +27 -0
- package/draw/polyfill.js +6 -0
- package/draw/{core/reactUtils.js → reactUtils.js} +4 -4
- package/draw/{core/renderer → renderer}/animation.js +2 -2
- package/draw/{core/renderer → renderer}/helpers.d.ts +1 -1
- package/draw/{core/renderer → renderer}/helpers.js +5 -5
- package/draw/{core/renderer → renderer}/interactiveScene.js +18 -18
- package/draw/{core/renderer → renderer}/renderNewElementScene.js +8 -8
- package/draw/{core/renderer → renderer}/renderSnaps.d.ts +1 -1
- package/draw/{core/renderer → renderer}/renderSnaps.js +6 -6
- package/draw/{core/renderer → renderer}/roundRect.js +2 -2
- package/draw/{core/renderer → renderer}/staticScene.d.ts +2 -2
- package/draw/{core/renderer → renderer}/staticScene.js +12 -12
- package/draw/{core/renderer → renderer}/staticSvgScene.d.ts +3 -3
- package/draw/{core/renderer → renderer}/staticSvgScene.js +19 -19
- package/draw/{core/scene → scene}/Renderer.d.ts +4 -4
- package/draw/{core/scene → scene}/Renderer.js +6 -6
- package/draw/{core/scene → scene}/export.d.ts +2 -2
- package/draw/{core/scene → scene}/export.js +52 -52
- package/draw/{core/scene → scene}/index.d.ts +1 -1
- package/draw/scene/index.js +7 -0
- package/draw/{core/scene → scene}/normalize.d.ts +1 -1
- package/draw/scene/normalize.js +10 -0
- package/draw/{core/scene → scene}/scroll.d.ts +2 -2
- package/draw/{core/scene → scene}/scroll.js +6 -6
- package/draw/{core/scene → scene}/scrollbars.d.ts +1 -1
- package/draw/{core/scene → scene}/scrollbars.js +5 -5
- package/draw/{core/scene → scene}/types.d.ts +7 -7
- package/draw/{core/scene → scene}/zoom.d.ts +1 -1
- package/draw/{core/scene → scene}/zoom.js +2 -2
- package/draw/{core/shortcut.js → shortcut.js} +4 -4
- package/draw/{core/snapping.d.ts → snapping.d.ts} +5 -5
- package/draw/{core/snapping.js → snapping.js} +14 -14
- package/draw/style/index.js +1 -1
- package/draw/utils/bbox.js +1 -1
- package/draw/utils/export.d.ts +1 -1
- package/draw/utils/export.js +7 -7
- package/draw/utils/index.js +2 -2
- package/draw/utils/shape.js +1 -1
- package/draw/utils/withinBounds.js +1 -1
- package/draw/workers.js +51 -0
- package/draw/{core/wysiwyg → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/draw/{core/wysiwyg → wysiwyg}/textWysiwyg.js +16 -16
- package/drawer/Drawer.js +1 -1
- package/drawer/constants.js +1 -1
- package/drawer/context.js +1 -1
- package/drawer/index.js +1 -1
- package/drawer/style/index.js +1 -1
- package/drawer/use-drawer/Hook.js +1 -1
- package/drawer/use-drawer/index.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/Dropdown.js +1 -1
- package/dropdown/constants.js +1 -1
- package/dropdown/context.js +1 -1
- package/dropdown/index.js +1 -1
- package/dropdown/style/index.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/constants.js +1 -1
- package/empty/context.js +1 -1
- package/empty/index.js +1 -1
- package/empty/style/index.css +1 -1
- package/empty/style/index.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/Item.js +1 -1
- package/form/ItemLabel.js +1 -1
- package/form/ItemTip.js +1 -1
- package/form/LabelSymbol.js +1 -1
- package/form/List.js +1 -1
- package/form/Provider.js +1 -1
- package/form/constants.js +1 -1
- package/form/context.js +1 -1
- package/form/hooks/useForm.js +1 -1
- package/form/hooks/useFormContext.js +1 -1
- package/form/hooks/useFormState.js +1 -1
- package/form/hooks/useWatch.js +1 -1
- package/form/index.js +1 -1
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/style/index.js +1 -1
- package/form/utils.js +1 -1
- package/global-provider/GlobalProvider.js +1 -1
- package/global-provider/constants.js +1 -1
- package/global-provider/context.js +1 -1
- package/global-provider/index.js +1 -1
- package/global-provider/style/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/constants.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-breakpoint/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-throttle-fn-with-raf/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +1 -1
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useMountLifecycle.js +1 -1
- package/icon/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/constants.js +1 -1
- package/icon/context.js +1 -1
- package/icon/index.js +1 -1
- package/icon/style/index.js +1 -1
- package/icon-hover/IconHover.js +1 -1
- package/icon-hover/constants.js +1 -1
- package/icon-hover/context.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icon-hover/style/index.js +1 -1
- package/icons/file/File.js +1 -1
- package/icons/file/context.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/icons.js +1 -1
- package/image/Footer.js +1 -1
- package/image/Image.js +1 -1
- package/image/Preview.js +1 -1
- package/image/PreviewArrow.js +1 -1
- package/image/PreviewGroup.js +1 -1
- package/image/PreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/constants.js +1 -1
- package/image/context.js +1 -1
- package/image/hooks/useImageStatus.js +1 -1
- package/image/hooks/useShowFooter.js +1 -1
- package/image/index.js +1 -1
- package/image/style/index.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +162 -158
- package/input/Button.js +1 -1
- package/input/Core.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/constants.js +1 -1
- package/input/context.js +1 -1
- package/input/index.js +1 -1
- package/input/style/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/InputNumber.js +1 -1
- package/input-number/constants.js +1 -1
- package/input-number/context.js +1 -1
- package/input-number/decimal.js +1 -1
- package/input-number/hooks/useSelectionRange.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/style/index.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/input-tag/constants.js +1 -1
- package/input-tag/context.js +1 -1
- package/input-tag/hooks/useComputeAutoWidthDelay.js +1 -1
- package/input-tag/index.js +1 -1
- package/input-tag/style/index.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Layout.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/constants.js +1 -1
- package/layout/context.js +1 -1
- package/layout/index.js +1 -1
- package/layout/style/index.js +1 -1
- package/link/Link.js +1 -1
- package/link/constants.js +1 -1
- package/link/context.js +1 -1
- package/link/index.js +1 -1
- package/link/style/index.js +1 -1
- package/liquid-fill/LiquidFill.js +1 -1
- package/liquid-fill/constants.js +1 -1
- package/liquid-fill/context.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/liquid-fill/style/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/List.js +53 -56
- package/list/Meta.js +1 -1
- package/list/constants.d.ts +1 -0
- package/list/constants.js +9 -1
- package/list/context.js +1 -1
- package/list/index.js +1 -1
- package/list/style/index.js +1 -1
- package/loading/Loading.js +1 -1
- package/loading/constants.js +1 -1
- package/loading/context.js +1 -1
- package/loading/index.js +1 -1
- package/loading/style/index.js +1 -1
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +1 -1
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +1 -1
- package/locale/zh-HK.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/marquee/Marquee.js +1 -1
- package/marquee/constants.js +1 -1
- package/marquee/context.js +1 -1
- package/marquee/index.js +1 -1
- package/marquee/style/index.js +1 -1
- package/mask/Mask.js +1 -1
- package/mask/constants.js +1 -1
- package/mask/context.js +1 -1
- package/mask/index.js +1 -1
- package/mask/style/index.js +1 -1
- package/masonry/Item.js +1 -1
- package/masonry/Masonry.js +1 -1
- package/masonry/constants.js +1 -1
- package/masonry/context.js +1 -1
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/masonry/style/index.js +1 -1
- package/mentions/Mentions.js +1 -1
- package/mentions/constants.js +1 -1
- package/mentions/context.js +1 -1
- package/mentions/index.js +1 -1
- package/mentions/style/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +1 -1
- package/menu/OverflowWrap.js +1 -1
- package/menu/constants.js +1 -1
- package/menu/context.js +1 -1
- package/menu/index.js +1 -1
- package/menu/style/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.js +1 -1
- package/menu/utils.js +1 -1
- package/message/Message.js +1 -1
- package/message/config.js +1 -1
- package/message/constants.js +1 -1
- package/message/context.js +1 -1
- package/message/hooks/useMessage.js +1 -1
- package/message/index.js +1 -1
- package/message/style/index.js +1 -1
- package/message/utils.js +1 -1
- package/modal/Modal.js +1 -1
- package/modal/config.js +1 -1
- package/modal/confirm.js +1 -1
- package/modal/constants.js +1 -1
- package/modal/context.js +1 -1
- package/modal/index.js +1 -1
- package/modal/style/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/modal/utils.js +1 -1
- package/notice/Notice.js +5 -5
- package/notice/config.js +1 -1
- package/notice/constants.js +1 -1
- package/notice/context.js +1 -1
- package/notice/index.js +1 -1
- package/notice/style/index.js +1 -1
- package/notice/utils.js +1 -1
- package/notice/withNotice.js +1 -1
- package/notification/Notification.js +1 -1
- package/notification/config.js +1 -1
- package/notification/constants.js +1 -1
- package/notification/context.js +1 -1
- package/notification/hooks/useNotification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/style/index.js +1 -1
- package/notification/utils.js +1 -1
- package/overflow-ellipsis/Item.js +1 -1
- package/overflow-ellipsis/OverflowEllipsis.js +1 -1
- package/overflow-ellipsis/constants.js +1 -1
- package/overflow-ellipsis/context.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/overflow-ellipsis/style/index.js +1 -1
- package/package.json +1 -1
- package/page-header/PageHeader.js +1 -1
- package/page-header/constants.js +1 -1
- package/page-header/context.js +1 -1
- package/page-header/index.js +1 -1
- package/page-header/style/index.js +1 -1
- package/pagination/Item.js +1 -1
- package/pagination/Jumper.js +1 -1
- package/pagination/Pagination.js +46 -46
- package/pagination/PreNextButton.js +1 -1
- package/pagination/PreNextJump.js +1 -1
- package/pagination/SizeOption.d.ts +2 -2
- package/pagination/SizeOption.js +13 -19
- package/pagination/constants.d.ts +3 -0
- package/pagination/constants.js +11 -1
- package/pagination/context.js +1 -1
- package/pagination/index.d.ts +2 -3
- package/pagination/index.js +5 -5
- package/pagination/interface.js +1 -1
- package/pagination/style/index.js +1 -1
- package/pagination/utils.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/constants.js +1 -1
- package/picker/context.js +1 -1
- package/picker/index.js +1 -1
- package/picker/style/index.js +1 -1
- package/popconfirm/Popconfirm.js +6 -5
- package/popconfirm/constants.js +1 -1
- package/popconfirm/context.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popconfirm/style/index.js +1 -1
- package/popover/Popover.js +35 -35
- package/popover/constants.js +1 -1
- package/popover/context.js +1 -1
- package/popover/index.js +1 -1
- package/popover/style/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/constants.js +1 -1
- package/portal/context.js +1 -1
- package/portal/index.js +1 -1
- package/portal/style/index.js +1 -1
- package/progress/Circle.js +1 -1
- package/progress/Line.js +1 -1
- package/progress/Progress.js +1 -1
- package/progress/Step.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/qr-code/QRCode.js +1 -1
- package/qr-code/constants.js +1 -1
- package/qr-code/context.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/qr-code/style/index.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/constants.js +1 -1
- package/radio/context.js +1 -1
- package/radio/index.js +1 -1
- package/radio/style/index.js +1 -1
- package/rate/Rate.js +1 -1
- package/rate/constants.js +1 -1
- package/rate/context.js +1 -1
- package/rate/index.js +1 -1
- package/rate/style/index.js +1 -1
- package/resize-box/ResizeBox.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/constants.js +1 -1
- package/resize-box/context.js +1 -1
- package/resize-box/index.js +1 -1
- package/resize-box/style/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/Result.js +1 -1
- package/result/constants.js +1 -1
- package/result/context.js +1 -1
- package/result/index.js +1 -1
- package/result/style/index.js +1 -1
- package/rich-text/RichText.js +1 -1
- package/rich-text/Toolbar.js +1 -1
- package/rich-text/constants.js +1 -1
- package/rich-text/context.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/libs/blots/block.js +1 -1
- package/rich-text/libs/blots/break.js +1 -1
- package/rich-text/libs/blots/container.js +1 -1
- package/rich-text/libs/blots/cursor.js +1 -1
- package/rich-text/libs/blots/embed.js +1 -1
- package/rich-text/libs/blots/inline.js +1 -1
- package/rich-text/libs/blots/scroll.js +1 -1
- package/rich-text/libs/blots/text.js +1 -1
- package/rich-text/libs/core/composition.js +1 -1
- package/rich-text/libs/core/editor.js +1 -1
- package/rich-text/libs/core/emitter.js +1 -1
- package/rich-text/libs/core/logger.js +1 -1
- package/rich-text/libs/core/module.js +1 -1
- package/rich-text/libs/core/rich.js +1 -1
- package/rich-text/libs/core/selection.js +1 -1
- package/rich-text/libs/core/theme.js +1 -1
- package/rich-text/libs/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/libs/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/libs/delta/AttributeMap.js +1 -1
- package/rich-text/libs/delta/Op.js +1 -1
- package/rich-text/libs/delta/OpIterator.js +1 -1
- package/rich-text/libs/delta/index.js +1 -1
- package/rich-text/libs/diff/index.js +1 -1
- package/rich-text/libs/formats/align.js +1 -1
- package/rich-text/libs/formats/background.js +1 -1
- package/rich-text/libs/formats/blockquote.js +1 -1
- package/rich-text/libs/formats/bold.js +1 -1
- package/rich-text/libs/formats/code.js +1 -1
- package/rich-text/libs/formats/color.js +1 -1
- package/rich-text/libs/formats/direction.js +1 -1
- package/rich-text/libs/formats/emoji.js +1 -1
- package/rich-text/libs/formats/font.js +1 -1
- package/rich-text/libs/formats/formula.js +1 -1
- package/rich-text/libs/formats/header.js +1 -1
- package/rich-text/libs/formats/hr.js +1 -1
- package/rich-text/libs/formats/image.js +1 -1
- package/rich-text/libs/formats/indent.js +1 -1
- package/rich-text/libs/formats/italic.js +1 -1
- package/rich-text/libs/formats/lineHeight.js +1 -1
- package/rich-text/libs/formats/link.js +1 -1
- package/rich-text/libs/formats/list.js +1 -1
- package/rich-text/libs/formats/script.js +1 -1
- package/rich-text/libs/formats/size.js +1 -1
- package/rich-text/libs/formats/strike.js +1 -1
- package/rich-text/libs/formats/table.js +1 -1
- package/rich-text/libs/formats/underline.js +1 -1
- package/rich-text/libs/formats/video.js +1 -1
- package/rich-text/libs/index.js +1 -1
- package/rich-text/libs/modules/clipboard.js +1 -1
- package/rich-text/libs/modules/history.js +1 -1
- package/rich-text/libs/modules/image-resize/index.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/libs/modules/image-resize/options.js +1 -1
- package/rich-text/libs/modules/input.js +1 -1
- package/rich-text/libs/modules/keyboard.js +1 -1
- package/rich-text/libs/modules/normalize-external-html/index.js +1 -1
- package/rich-text/libs/modules/normalize-external-html/normalizers/googleDocs.js +1 -1
- package/rich-text/libs/modules/normalize-external-html/normalizers/msWord.js +1 -1
- package/rich-text/libs/modules/table.js +1 -1
- package/rich-text/libs/modules/toolbar.js +1 -1
- package/rich-text/libs/modules/uiNode.js +1 -1
- package/rich-text/libs/modules/uploader.js +1 -1
- package/rich-text/libs/parchment/attributor/attributor.js +1 -1
- package/rich-text/libs/parchment/attributor/class.js +1 -1
- package/rich-text/libs/parchment/attributor/store.js +1 -1
- package/rich-text/libs/parchment/attributor/style.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/container.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/libs/parchment/blot/block.js +1 -1
- package/rich-text/libs/parchment/blot/embed.js +1 -1
- package/rich-text/libs/parchment/blot/inline.js +1 -1
- package/rich-text/libs/parchment/blot/scroll.js +1 -1
- package/rich-text/libs/parchment/blot/text.js +1 -1
- package/rich-text/libs/parchment/collection/linked-list.js +1 -1
- package/rich-text/libs/parchment/error.js +1 -1
- package/rich-text/libs/parchment/index.js +1 -1
- package/rich-text/libs/parchment/registry.js +1 -1
- package/rich-text/libs/parchment/scope.js +1 -1
- package/rich-text/style/index.js +1 -1
- package/router-error/RouterError.js +1 -1
- package/router-error/constants.js +1 -1
- package/router-error/context.js +1 -1
- package/router-error/index.js +1 -1
- package/router-error/style/index.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/row-col/constants.js +1 -1
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/row-col/style/index.js +1 -1
- package/segmented/Segmented.js +1 -1
- package/segmented/constants.js +1 -1
- package/segmented/context.js +1 -1
- package/segmented/index.js +1 -1
- package/segmented/style/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/OptionGroup.js +1 -1
- package/select/Select.js +1 -1
- package/select/constants.js +1 -1
- package/select/context.js +1 -1
- package/select/index.js +1 -1
- package/select/style/index.css +1 -1
- package/select/style/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +1 -1
- package/select-view/SelectView.js +1 -1
- package/select-view/constants.js +1 -1
- package/select-view/context.js +1 -1
- package/select-view/index.js +1 -1
- package/select-view/style/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/constants.js +1 -1
- package/skeleton/context.js +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton/style/index.js +1 -1
- package/slider/Button.d.ts +1 -1
- package/slider/Button.js +24 -16
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Slider.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/constants.js +1 -1
- package/slider/context.js +1 -1
- package/slider/hooks/useInterval.js +1 -1
- package/slider/hooks/useLegalValue.js +1 -1
- package/slider/index.d.ts +1 -1
- package/slider/index.js +1 -1
- package/slider/style/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/Space.js +1 -1
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/speech-synthesis/SpeechSynthesis.js +1 -1
- package/speech-synthesis/constants.js +1 -1
- package/speech-synthesis/context.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/speech-synthesis/style/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.js +1 -1
- package/spin/constants.js +1 -1
- package/spin/context.js +1 -1
- package/spin/index.js +1 -1
- package/spin/style/index.js +1 -1
- package/splitter/Bar.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/Splitter.js +1 -1
- package/splitter/constants.js +1 -1
- package/splitter/context.js +1 -1
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/splitter/style/index.js +1 -1
- package/statistic/Statistic.js +1 -1
- package/statistic/constants.js +1 -1
- package/statistic/context.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/statistic/style/index.js +1 -1
- package/steps/Item.js +1 -1
- package/steps/Steps.js +1 -1
- package/steps/constants.js +1 -1
- package/steps/context.js +1 -1
- package/steps/index.js +1 -1
- package/steps/style/index.js +1 -1
- package/style/constants.js +1 -1
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/switch/Switch.js +1 -1
- package/switch/constants.js +1 -1
- package/switch/context.js +1 -1
- package/switch/index.js +1 -1
- package/switch/style/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +194 -192
- package/table/constants.js +1 -1
- package/table/context.js +1 -1
- package/table/hooks/useColumns.js +1 -1
- package/table/hooks/useComponent.js +1 -1
- package/table/hooks/useExpand.js +1 -1
- package/table/hooks/useRowSelection.js +1 -1
- package/table/hooks/useSorter.js +1 -1
- package/table/hooks/useStickyClassNames.js +1 -1
- package/table/hooks/useStickyOffsets.js +1 -1
- package/table/hooks/useThResizable.js +1 -1
- package/table/index.js +1 -1
- package/table/style/index.js +1 -1
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/DataRecordRenderer.js +1 -1
- package/table/tbody/Td.js +1 -1
- package/table/tbody/Tr.js +7 -2
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/th-resizable/style/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +1 -1
- package/tabs/Tabs.js +1 -1
- package/tabs/constants.js +1 -1
- package/tabs/context.js +1 -1
- package/tabs/hooks/useDomSize.js +1 -1
- package/tabs/hooks/useHeaderScroll.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs/style/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +1 -1
- package/tabs/utils.js +1 -1
- package/tag/Tag.js +1 -1
- package/tag/constants.js +1 -1
- package/tag/context.js +1 -1
- package/tag/index.js +1 -1
- package/tag/style/index.js +1 -1
- package/tag/utils.js +1 -1
- package/time-picker/Picker.js +115 -115
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/TimePickerRange.js +1 -1
- package/time-picker/constants.js +1 -1
- package/time-picker/context.js +1 -1
- package/time-picker/index.js +1 -1
- package/time-picker/style/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/time-picker/withTimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/timeline/constants.js +1 -1
- package/timeline/context.js +1 -1
- package/timeline/index.js +1 -1
- package/timeline/style/index.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/constants.js +1 -1
- package/timer/context.js +1 -1
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/toast/Toast.js +1 -1
- package/toast/constants.js +1 -1
- package/toast/context.js +1 -1
- package/toast/index.js +1 -1
- package/toast/style/index.js +1 -1
- package/tooltip/Tooltip.js +23 -28
- package/tooltip/constants.js +1 -1
- package/tooltip/context.js +1 -1
- package/tooltip/index.js +1 -1
- package/tooltip/style/index.js +1 -1
- package/tour/Tour.js +151 -108
- package/tour/constants.js +1 -1
- package/tour/context.js +1 -2
- package/tour/index.js +1 -1
- package/tour/interface.d.ts +0 -2
- package/tour/style/index.css +1 -1
- package/tour/style/index.js +1 -1
- package/tour/utils.d.ts +9 -0
- package/tour/utils.js +20 -0
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +1 -1
- package/transfer/constants.js +1 -1
- package/transfer/context.js +1 -1
- package/transfer/index.js +1 -1
- package/transfer/style/index.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/style/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/constants.js +1 -1
- package/tree/context.js +1 -1
- package/tree/index.js +1 -1
- package/tree/style/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/TreeSelect.js +1 -1
- package/tree-select/constants.js +1 -1
- package/tree-select/context.js +1 -1
- package/tree-select/hooks/useKeyCache.js +1 -1
- package/tree-select/hooks/useStateValue.js +1 -1
- package/tree-select/hooks/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/style/index.css +1 -1
- package/tree-select/style/index.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/Trigger.js +293 -289
- package/trigger/constants.js +1 -1
- package/trigger/context.js +11 -12
- package/trigger/getPopupStyle.d.ts +2 -2
- package/trigger/getPopupStyle.js +57 -56
- package/trigger/index.js +1 -1
- package/trigger/interface.d.ts +1 -1
- package/trigger/style/index.js +1 -1
- package/trigger/utils.js +1 -1
- package/typewriter/Typewriter.js +1 -1
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +1 -1
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.js +1 -1
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/constants.js +1 -1
- package/typography/context.js +1 -1
- package/typography/hooks/useCssEllipsis.js +1 -1
- package/typography/hooks/useEllipsis.js +1 -1
- package/typography/index.js +1 -1
- package/typography/style/index.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +1 -1
- package/upload/constants.js +1 -1
- package/upload/context.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/style/index.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/createGlobalConfigFunction.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -1
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/verification-code/constants.js +1 -1
- package/verification-code/context.js +1 -1
- package/verification-code/index.js +1 -1
- package/verification-code/style/index.js +1 -1
- package/version/index.js +6 -6
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +34 -34
- package/virtual-list/constants.js +1 -1
- package/virtual-list/context.js +1 -1
- package/virtual-list/hooks/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hooks/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/style/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/watermark/constants.js +1 -1
- package/watermark/context.js +1 -1
- package/watermark/index.js +1 -1
- package/watermark/style/index.js +1 -1
- package/draw/core/actions/actionTextAutoResize.d.ts +0 -17
- package/draw/core/actions/actionToggleShapeSwitch.d.ts +0 -19
- package/draw/core/actions/register.js +0 -6
- package/draw/core/components/Actions.js +0 -493
- package/draw/core/components/canvases/index.js +0 -4
- package/draw/core/context/ui-appState.js +0 -7
- package/draw/core/data/ai/types.d.ts +0 -242
- package/draw/core/data/encryption.js +0 -4
- package/draw/core/data/index.js +0 -5
- package/draw/core/editor-jotai.d.ts +0 -7
- package/draw/core/editor-jotai.js +0 -11
- package/draw/core/errors.js +0 -22
- package/draw/core/fonts/index.js +0 -3
- package/draw/core/polyfill.js +0 -6
- package/draw/core/scene/index.js +0 -7
- package/draw/core/scene/normalize.js +0 -10
- /package/{app → animation}/style/index.css +0 -0
- /package/draw/{core/actions → actions}/index.d.ts +0 -0
- /package/draw/{core/actions → actions}/register.d.ts +0 -0
- /package/draw/{core/analytics.d.ts → analytics.d.ts} +0 -0
- /package/draw/{core/animation-frame-handler.d.ts → animation-frame-handler.d.ts} +0 -0
- /package/draw/{core/components → components}/ActiveConfirmDialog.d.ts +0 -0
- /package/draw/{core/components → components}/BraveMeasureTextError.d.ts +0 -0
- /package/draw/{core/components → components}/ButtonIconCycle.d.ts +0 -0
- /package/draw/{core/components → components}/ButtonSeparator.d.ts +0 -0
- /package/draw/{core/components → components}/ContextMenu.d.ts +0 -0
- /package/draw/{core/components → components}/Ellipsify.d.ts +0 -0
- /package/draw/{core/components → components}/ErrorDialog.d.ts +0 -0
- /package/draw/{core/components → components}/FixedSideContainer.d.ts +0 -0
- /package/draw/{core/components → components}/HandButton.d.ts +0 -0
- /package/draw/{core/components → components}/HelpDialog.d.ts +0 -0
- /package/draw/{core/components → components}/InlineIcon.d.ts +0 -0
- /package/draw/{core/components → components}/Island.d.ts +0 -0
- /package/draw/{core/components → components}/LaserPointerButton.d.ts +0 -0
- /package/draw/{core/components → components}/LibraryMenu.d.ts +0 -0
- /package/draw/{core/components → components}/LinkButton.d.ts +0 -0
- /package/draw/{core/components → components}/LockButton.d.ts +0 -0
- /package/draw/{core/components → components}/MagicButton.d.ts +0 -0
- /package/draw/{core/components → components}/PenModeButton.d.ts +0 -0
- /package/draw/{core/components → components}/Popover.d.ts +0 -0
- /package/draw/{core/components → components}/ProjectName.d.ts +0 -0
- /package/draw/{core/components → components}/SVGLayer.d.ts +0 -0
- /package/draw/{core/components → components}/ScrollableList.d.ts +0 -0
- /package/draw/{core/components → components}/SearchMenu.d.ts +0 -0
- /package/draw/{core/components → components}/Stack.d.ts +0 -0
- /package/draw/{core/components → components}/Toast.d.ts +0 -0
- /package/draw/{core/components → components}/Tooltip.d.ts +0 -0
- /package/draw/{core/components → components}/Trans.d.ts +0 -0
- /package/draw/{core/components → components}/canvases/index.d.ts +0 -0
- /package/draw/{core/components → components}/hoc/withInternalFallback.d.ts +0 -0
- /package/draw/{core/components → components}/main-menu/MenuItem.d.ts +0 -0
- /package/draw/{core/components → components}/main-menu/common.d.ts +0 -0
- /package/draw/{core/components → components}/overwrite-confirm/State.d.ts +0 -0
- /package/draw/{core/components → components}/overwrite-confirm/index.d.ts +0 -0
- /package/draw/{core/components → components}/stats/Collapsible.d.ts +0 -0
- /package/draw/{core/data → data}/encode.d.ts +0 -0
- /package/draw/{core/data → data}/encryption.d.ts +0 -0
- /package/draw/{core/data → data}/image.d.ts +0 -0
- /package/draw/{core/data → data}/index.d.ts +0 -0
- /package/draw/{core/deburr.d.ts → deburr.d.ts} +0 -0
- /package/draw/{core/eraser → eraser}/index.d.ts +0 -0
- /package/draw/{core/errors.d.ts → errors.d.ts} +0 -0
- /package/draw/{core/fonts → fonts}/DrawFontFace.d.ts +0 -0
- /package/draw/{core/fonts → fonts}/index.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useCallbackRefState.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useCopiedIndicator.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useCreatePortalContainer.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useOutsideClick.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useScrollPosition.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useStable.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useStableCallback.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useTextEditorFocus.d.ts +0 -0
- /package/draw/{core/hooks → hooks}/useTransition.d.ts +0 -0
- /package/draw/{core/laser-trails.d.ts → laser-trails.d.ts} +0 -0
- /package/draw/{core/lasso → lasso}/index.d.ts +0 -0
- /package/draw/{core/locales → locales}/percentages.json.js +0 -0
- /package/draw/{core/locales → locales}/zh-CN.json.js +0 -0
- /package/draw/{core/mermaid.d.ts → mermaid.d.ts} +0 -0
- /package/draw/{core/polyfill.d.ts → polyfill.d.ts} +0 -0
- /package/draw/{core/reactUtils.d.ts → reactUtils.d.ts} +0 -0
- /package/draw/{core/renderer → renderer}/animation.d.ts +0 -0
- /package/draw/{core/renderer → renderer}/interactiveScene.d.ts +0 -0
- /package/draw/{core/renderer → renderer}/renderNewElementScene.d.ts +0 -0
- /package/draw/{core/renderer → renderer}/roundRect.d.ts +0 -0
- /package/draw/{core/shortcut.d.ts → shortcut.d.ts} +0 -0
- /package/draw/{core/workers.d.ts → workers.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { SceneBounds } from '
|
|
2
|
-
import type { DrawElement } from '
|
|
3
|
-
import type { AppState, Offsets } from '
|
|
1
|
+
import type { SceneBounds } from '../element';
|
|
2
|
+
import type { DrawElement } from '../element/types';
|
|
3
|
+
import type { AppState, Offsets } from '../interface';
|
|
4
4
|
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly DrawElement[], app: import("
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly DrawElement[], app: import("../interface").AppClassProperties) => boolean) | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const actionClearCanvas: {
|
|
8
8
|
name: "clearCanvas";
|
|
@@ -11,12 +11,12 @@ export declare const actionClearCanvas: {
|
|
|
11
11
|
trackEvent: {
|
|
12
12
|
category: "canvas";
|
|
13
13
|
};
|
|
14
|
-
predicate: (elements: readonly DrawElement[], appState: AppState, props: import("
|
|
15
|
-
perform: (elements: readonly import("
|
|
16
|
-
elements: import("
|
|
14
|
+
predicate: (elements: readonly DrawElement[], appState: AppState, props: import("..").DrawProps, app: import("../interface").AppClassProperties) => boolean;
|
|
15
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
16
|
+
elements: import("../element/types").OrderedDrawElement[];
|
|
17
17
|
appState: {
|
|
18
18
|
files: {};
|
|
19
|
-
theme: import("
|
|
19
|
+
theme: import("../element/types").Theme;
|
|
20
20
|
penMode: boolean;
|
|
21
21
|
penDetected: boolean;
|
|
22
22
|
exportBackground: boolean;
|
|
@@ -36,17 +36,17 @@ export declare const actionClearCanvas: {
|
|
|
36
36
|
data: import("../charts").Spreadsheet;
|
|
37
37
|
};
|
|
38
38
|
activeTool: {
|
|
39
|
-
lastActiveTool: import("
|
|
39
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
40
40
|
locked: boolean;
|
|
41
41
|
fromSelection: boolean;
|
|
42
|
-
} & import("
|
|
42
|
+
} & import("../interface").ActiveTool;
|
|
43
43
|
name: string | null;
|
|
44
44
|
contextMenu: {
|
|
45
45
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
46
46
|
top: number;
|
|
47
47
|
left: number;
|
|
48
48
|
} | null;
|
|
49
|
-
zoom: import("
|
|
49
|
+
zoom: import("../interface").Zoom;
|
|
50
50
|
viewModeEnabled: boolean;
|
|
51
51
|
zenModeEnabled: boolean;
|
|
52
52
|
objectsSnapModeEnabled: boolean;
|
|
@@ -55,17 +55,17 @@ export declare const actionClearCanvas: {
|
|
|
55
55
|
isLoading: boolean;
|
|
56
56
|
errorMessage: React.ReactNode;
|
|
57
57
|
activeEmbeddable: {
|
|
58
|
-
element: import("
|
|
58
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
59
59
|
state: "hover" | "active";
|
|
60
60
|
} | null;
|
|
61
|
-
newElement: import("
|
|
62
|
-
resizingElement: import("
|
|
63
|
-
multiElement: import("
|
|
64
|
-
selectionElement: import("
|
|
61
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
62
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
63
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
64
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
65
65
|
isBindingEnabled: boolean;
|
|
66
|
-
startBoundElement: import("
|
|
67
|
-
suggestedBinding: import("
|
|
68
|
-
frameToHighlight: import("
|
|
66
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
67
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
68
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
69
69
|
frameRendering: {
|
|
70
70
|
enabled: boolean;
|
|
71
71
|
name: boolean;
|
|
@@ -73,8 +73,8 @@ export declare const actionClearCanvas: {
|
|
|
73
73
|
clip: boolean;
|
|
74
74
|
};
|
|
75
75
|
editingFrame: string | null;
|
|
76
|
-
elementsToHighlight: import("
|
|
77
|
-
editingTextElement: import("
|
|
76
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
77
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
78
78
|
preferredSelectionTool: {
|
|
79
79
|
type: "selection" | "lasso";
|
|
80
80
|
initialized: boolean;
|
|
@@ -88,13 +88,13 @@ export declare const actionClearCanvas: {
|
|
|
88
88
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
89
89
|
currentItemRoughness: number;
|
|
90
90
|
currentItemOpacity: number;
|
|
91
|
-
currentItemFontFamily: import("
|
|
91
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
92
92
|
currentItemFontSize: number;
|
|
93
|
-
currentItemTextAlign: import("
|
|
94
|
-
currentItemStartArrowhead: import("
|
|
95
|
-
currentItemEndArrowhead: import("
|
|
96
|
-
currentHoveredFontFamily: import("
|
|
97
|
-
currentItemRoundness: import("
|
|
93
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
94
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
95
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
96
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
97
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
98
98
|
viewBackgroundColor: string;
|
|
99
99
|
scrollX: number;
|
|
100
100
|
scrollY: number;
|
|
@@ -105,8 +105,8 @@ export declare const actionClearCanvas: {
|
|
|
105
105
|
openMenu: "canvas" | null;
|
|
106
106
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
107
107
|
openSidebar: {
|
|
108
|
-
name: import("
|
|
109
|
-
tab?: import("
|
|
108
|
+
name: import("../interface").SidebarName;
|
|
109
|
+
tab?: import("../interface").SidebarTabName;
|
|
110
110
|
} | null;
|
|
111
111
|
openDialog: null | {
|
|
112
112
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -119,7 +119,7 @@ export declare const actionClearCanvas: {
|
|
|
119
119
|
sourceElementId: DrawElement["id"];
|
|
120
120
|
};
|
|
121
121
|
defaultSidebarDockedPreference: boolean;
|
|
122
|
-
lastPointerDownWith: import("
|
|
122
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
123
123
|
selectedElementIds: Readonly<{
|
|
124
124
|
[id: string]: true;
|
|
125
125
|
}>;
|
|
@@ -139,28 +139,28 @@ export declare const actionClearCanvas: {
|
|
|
139
139
|
selectedGroupIds: {
|
|
140
140
|
[groupId: string]: boolean;
|
|
141
141
|
};
|
|
142
|
-
editingGroupId: import("
|
|
143
|
-
fileHandle: import("../
|
|
144
|
-
collaborators: Map<import("
|
|
145
|
-
currentChartType: import("
|
|
146
|
-
selectedLinearElement: import("
|
|
142
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
143
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
144
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
145
|
+
currentChartType: import("../element/types").ChartType;
|
|
146
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
147
147
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
148
148
|
originSnapOffset: {
|
|
149
149
|
x: number;
|
|
150
150
|
y: number;
|
|
151
151
|
} | null;
|
|
152
|
-
followedBy: Set<import("
|
|
152
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
153
153
|
isCropping: boolean;
|
|
154
154
|
croppingElementId: DrawElement["id"] | null;
|
|
155
155
|
searchMatches: Readonly<{
|
|
156
156
|
focusedId: DrawElement["id"] | null;
|
|
157
|
-
matches: readonly import("
|
|
157
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
158
158
|
}> | null;
|
|
159
159
|
activeLockedId: string | null;
|
|
160
160
|
lockedMultiSelections: {
|
|
161
161
|
[groupId: string]: true;
|
|
162
162
|
};
|
|
163
|
-
bindMode: import("
|
|
163
|
+
bindMode: import("../element/types").BindMode;
|
|
164
164
|
};
|
|
165
165
|
captureUpdate: "IMMEDIATELY";
|
|
166
166
|
};
|
|
@@ -174,12 +174,12 @@ export declare const actionZoomIn: {
|
|
|
174
174
|
trackEvent: {
|
|
175
175
|
category: "canvas";
|
|
176
176
|
};
|
|
177
|
-
perform: (_elements: readonly import("
|
|
177
|
+
perform: (_elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
178
178
|
appState: {
|
|
179
179
|
scrollX: number;
|
|
180
180
|
scrollY: number;
|
|
181
181
|
zoom: {
|
|
182
|
-
value: import("
|
|
182
|
+
value: import("../interface").NormalizedZoomValue;
|
|
183
183
|
};
|
|
184
184
|
contextMenu: {
|
|
185
185
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -190,17 +190,17 @@ export declare const actionZoomIn: {
|
|
|
190
190
|
isLoading: boolean;
|
|
191
191
|
errorMessage: React.ReactNode;
|
|
192
192
|
activeEmbeddable: {
|
|
193
|
-
element: import("
|
|
193
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
194
194
|
state: "hover" | "active";
|
|
195
195
|
} | null;
|
|
196
|
-
newElement: import("
|
|
197
|
-
resizingElement: import("
|
|
198
|
-
multiElement: import("
|
|
199
|
-
selectionElement: import("
|
|
196
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
197
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
198
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
199
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
200
200
|
isBindingEnabled: boolean;
|
|
201
|
-
startBoundElement: import("
|
|
202
|
-
suggestedBinding: import("
|
|
203
|
-
frameToHighlight: import("
|
|
201
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
202
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
203
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
204
204
|
frameRendering: {
|
|
205
205
|
enabled: boolean;
|
|
206
206
|
name: boolean;
|
|
@@ -208,13 +208,13 @@ export declare const actionZoomIn: {
|
|
|
208
208
|
clip: boolean;
|
|
209
209
|
};
|
|
210
210
|
editingFrame: string | null;
|
|
211
|
-
elementsToHighlight: import("
|
|
212
|
-
editingTextElement: import("
|
|
211
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
212
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
213
213
|
activeTool: {
|
|
214
|
-
lastActiveTool: import("
|
|
214
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
215
215
|
locked: boolean;
|
|
216
216
|
fromSelection: boolean;
|
|
217
|
-
} & import("
|
|
217
|
+
} & import("../interface").ActiveTool;
|
|
218
218
|
preferredSelectionTool: {
|
|
219
219
|
type: "selection" | "lasso";
|
|
220
220
|
initialized: boolean;
|
|
@@ -232,13 +232,13 @@ export declare const actionZoomIn: {
|
|
|
232
232
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
233
233
|
currentItemRoughness: number;
|
|
234
234
|
currentItemOpacity: number;
|
|
235
|
-
currentItemFontFamily: import("
|
|
235
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
236
236
|
currentItemFontSize: number;
|
|
237
|
-
currentItemTextAlign: import("
|
|
238
|
-
currentItemStartArrowhead: import("
|
|
239
|
-
currentItemEndArrowhead: import("
|
|
240
|
-
currentHoveredFontFamily: import("
|
|
241
|
-
currentItemRoundness: import("
|
|
237
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
238
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
239
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
240
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
241
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
242
242
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
243
243
|
viewBackgroundColor: string;
|
|
244
244
|
cursorButton: "up" | "down";
|
|
@@ -249,8 +249,8 @@ export declare const actionZoomIn: {
|
|
|
249
249
|
openMenu: "canvas" | null;
|
|
250
250
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
251
251
|
openSidebar: {
|
|
252
|
-
name: import("
|
|
253
|
-
tab?: import("
|
|
252
|
+
name: import("../interface").SidebarName;
|
|
253
|
+
tab?: import("../interface").SidebarTabName;
|
|
254
254
|
} | null;
|
|
255
255
|
openDialog: null | {
|
|
256
256
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -263,7 +263,7 @@ export declare const actionZoomIn: {
|
|
|
263
263
|
sourceElementId: DrawElement["id"];
|
|
264
264
|
};
|
|
265
265
|
defaultSidebarDockedPreference: boolean;
|
|
266
|
-
lastPointerDownWith: import("
|
|
266
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
267
267
|
selectedElementIds: Readonly<{
|
|
268
268
|
[id: string]: true;
|
|
269
269
|
}>;
|
|
@@ -281,7 +281,7 @@ export declare const actionZoomIn: {
|
|
|
281
281
|
duration?: number;
|
|
282
282
|
} | null;
|
|
283
283
|
zenModeEnabled: boolean;
|
|
284
|
-
theme: import("
|
|
284
|
+
theme: import("../element/types").Theme;
|
|
285
285
|
gridSize: number;
|
|
286
286
|
gridStep: number;
|
|
287
287
|
gridModeEnabled: boolean;
|
|
@@ -289,18 +289,18 @@ export declare const actionZoomIn: {
|
|
|
289
289
|
selectedGroupIds: {
|
|
290
290
|
[groupId: string]: boolean;
|
|
291
291
|
};
|
|
292
|
-
editingGroupId: import("
|
|
292
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
293
293
|
width: number;
|
|
294
294
|
height: number;
|
|
295
295
|
offsetTop: number;
|
|
296
296
|
offsetLeft: number;
|
|
297
|
-
fileHandle: import("../
|
|
298
|
-
collaborators: Map<import("
|
|
297
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
298
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
299
299
|
stats: {
|
|
300
300
|
open: boolean;
|
|
301
301
|
panels: number;
|
|
302
302
|
};
|
|
303
|
-
currentChartType: import("
|
|
303
|
+
currentChartType: import("../element/types").ChartType;
|
|
304
304
|
pasteDialog: {
|
|
305
305
|
shown: false;
|
|
306
306
|
data: null;
|
|
@@ -308,25 +308,25 @@ export declare const actionZoomIn: {
|
|
|
308
308
|
shown: true;
|
|
309
309
|
data: import("../charts").Spreadsheet;
|
|
310
310
|
};
|
|
311
|
-
selectedLinearElement: import("
|
|
311
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
312
312
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
313
313
|
originSnapOffset: {
|
|
314
314
|
x: number;
|
|
315
315
|
y: number;
|
|
316
316
|
} | null;
|
|
317
317
|
objectsSnapModeEnabled: boolean;
|
|
318
|
-
followedBy: Set<import("
|
|
318
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
319
319
|
isCropping: boolean;
|
|
320
320
|
croppingElementId: DrawElement["id"] | null;
|
|
321
321
|
searchMatches: Readonly<{
|
|
322
322
|
focusedId: DrawElement["id"] | null;
|
|
323
|
-
matches: readonly import("
|
|
323
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
324
324
|
}> | null;
|
|
325
325
|
activeLockedId: string | null;
|
|
326
326
|
lockedMultiSelections: {
|
|
327
327
|
[groupId: string]: true;
|
|
328
328
|
};
|
|
329
|
-
bindMode: import("
|
|
329
|
+
bindMode: import("../element/types").BindMode;
|
|
330
330
|
};
|
|
331
331
|
captureUpdate: "EVENTUALLY";
|
|
332
332
|
};
|
|
@@ -341,12 +341,12 @@ export declare const actionZoomOut: {
|
|
|
341
341
|
trackEvent: {
|
|
342
342
|
category: "canvas";
|
|
343
343
|
};
|
|
344
|
-
perform: (_elements: readonly import("
|
|
344
|
+
perform: (_elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
345
345
|
appState: {
|
|
346
346
|
scrollX: number;
|
|
347
347
|
scrollY: number;
|
|
348
348
|
zoom: {
|
|
349
|
-
value: import("
|
|
349
|
+
value: import("../interface").NormalizedZoomValue;
|
|
350
350
|
};
|
|
351
351
|
contextMenu: {
|
|
352
352
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -357,17 +357,17 @@ export declare const actionZoomOut: {
|
|
|
357
357
|
isLoading: boolean;
|
|
358
358
|
errorMessage: React.ReactNode;
|
|
359
359
|
activeEmbeddable: {
|
|
360
|
-
element: import("
|
|
360
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
361
361
|
state: "hover" | "active";
|
|
362
362
|
} | null;
|
|
363
|
-
newElement: import("
|
|
364
|
-
resizingElement: import("
|
|
365
|
-
multiElement: import("
|
|
366
|
-
selectionElement: import("
|
|
363
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
364
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
365
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
366
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
367
367
|
isBindingEnabled: boolean;
|
|
368
|
-
startBoundElement: import("
|
|
369
|
-
suggestedBinding: import("
|
|
370
|
-
frameToHighlight: import("
|
|
368
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
369
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
370
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
371
371
|
frameRendering: {
|
|
372
372
|
enabled: boolean;
|
|
373
373
|
name: boolean;
|
|
@@ -375,13 +375,13 @@ export declare const actionZoomOut: {
|
|
|
375
375
|
clip: boolean;
|
|
376
376
|
};
|
|
377
377
|
editingFrame: string | null;
|
|
378
|
-
elementsToHighlight: import("
|
|
379
|
-
editingTextElement: import("
|
|
378
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
379
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
380
380
|
activeTool: {
|
|
381
|
-
lastActiveTool: import("
|
|
381
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
382
382
|
locked: boolean;
|
|
383
383
|
fromSelection: boolean;
|
|
384
|
-
} & import("
|
|
384
|
+
} & import("../interface").ActiveTool;
|
|
385
385
|
preferredSelectionTool: {
|
|
386
386
|
type: "selection" | "lasso";
|
|
387
387
|
initialized: boolean;
|
|
@@ -399,13 +399,13 @@ export declare const actionZoomOut: {
|
|
|
399
399
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
400
400
|
currentItemRoughness: number;
|
|
401
401
|
currentItemOpacity: number;
|
|
402
|
-
currentItemFontFamily: import("
|
|
402
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
403
403
|
currentItemFontSize: number;
|
|
404
|
-
currentItemTextAlign: import("
|
|
405
|
-
currentItemStartArrowhead: import("
|
|
406
|
-
currentItemEndArrowhead: import("
|
|
407
|
-
currentHoveredFontFamily: import("
|
|
408
|
-
currentItemRoundness: import("
|
|
404
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
405
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
406
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
407
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
408
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
409
409
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
410
410
|
viewBackgroundColor: string;
|
|
411
411
|
cursorButton: "up" | "down";
|
|
@@ -416,8 +416,8 @@ export declare const actionZoomOut: {
|
|
|
416
416
|
openMenu: "canvas" | null;
|
|
417
417
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
418
418
|
openSidebar: {
|
|
419
|
-
name: import("
|
|
420
|
-
tab?: import("
|
|
419
|
+
name: import("../interface").SidebarName;
|
|
420
|
+
tab?: import("../interface").SidebarTabName;
|
|
421
421
|
} | null;
|
|
422
422
|
openDialog: null | {
|
|
423
423
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -430,7 +430,7 @@ export declare const actionZoomOut: {
|
|
|
430
430
|
sourceElementId: DrawElement["id"];
|
|
431
431
|
};
|
|
432
432
|
defaultSidebarDockedPreference: boolean;
|
|
433
|
-
lastPointerDownWith: import("
|
|
433
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
434
434
|
selectedElementIds: Readonly<{
|
|
435
435
|
[id: string]: true;
|
|
436
436
|
}>;
|
|
@@ -448,7 +448,7 @@ export declare const actionZoomOut: {
|
|
|
448
448
|
duration?: number;
|
|
449
449
|
} | null;
|
|
450
450
|
zenModeEnabled: boolean;
|
|
451
|
-
theme: import("
|
|
451
|
+
theme: import("../element/types").Theme;
|
|
452
452
|
gridSize: number;
|
|
453
453
|
gridStep: number;
|
|
454
454
|
gridModeEnabled: boolean;
|
|
@@ -456,18 +456,18 @@ export declare const actionZoomOut: {
|
|
|
456
456
|
selectedGroupIds: {
|
|
457
457
|
[groupId: string]: boolean;
|
|
458
458
|
};
|
|
459
|
-
editingGroupId: import("
|
|
459
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
460
460
|
width: number;
|
|
461
461
|
height: number;
|
|
462
462
|
offsetTop: number;
|
|
463
463
|
offsetLeft: number;
|
|
464
|
-
fileHandle: import("../
|
|
465
|
-
collaborators: Map<import("
|
|
464
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
465
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
466
466
|
stats: {
|
|
467
467
|
open: boolean;
|
|
468
468
|
panels: number;
|
|
469
469
|
};
|
|
470
|
-
currentChartType: import("
|
|
470
|
+
currentChartType: import("../element/types").ChartType;
|
|
471
471
|
pasteDialog: {
|
|
472
472
|
shown: false;
|
|
473
473
|
data: null;
|
|
@@ -475,25 +475,25 @@ export declare const actionZoomOut: {
|
|
|
475
475
|
shown: true;
|
|
476
476
|
data: import("../charts").Spreadsheet;
|
|
477
477
|
};
|
|
478
|
-
selectedLinearElement: import("
|
|
478
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
479
479
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
480
480
|
originSnapOffset: {
|
|
481
481
|
x: number;
|
|
482
482
|
y: number;
|
|
483
483
|
} | null;
|
|
484
484
|
objectsSnapModeEnabled: boolean;
|
|
485
|
-
followedBy: Set<import("
|
|
485
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
486
486
|
isCropping: boolean;
|
|
487
487
|
croppingElementId: DrawElement["id"] | null;
|
|
488
488
|
searchMatches: Readonly<{
|
|
489
489
|
focusedId: DrawElement["id"] | null;
|
|
490
|
-
matches: readonly import("
|
|
490
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
491
491
|
}> | null;
|
|
492
492
|
activeLockedId: string | null;
|
|
493
493
|
lockedMultiSelections: {
|
|
494
494
|
[groupId: string]: true;
|
|
495
495
|
};
|
|
496
|
-
bindMode: import("
|
|
496
|
+
bindMode: import("../element/types").BindMode;
|
|
497
497
|
};
|
|
498
498
|
captureUpdate: "EVENTUALLY";
|
|
499
499
|
};
|
|
@@ -508,12 +508,12 @@ export declare const actionResetZoom: {
|
|
|
508
508
|
trackEvent: {
|
|
509
509
|
category: "canvas";
|
|
510
510
|
};
|
|
511
|
-
perform: (_elements: readonly import("
|
|
511
|
+
perform: (_elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
512
512
|
appState: {
|
|
513
513
|
scrollX: number;
|
|
514
514
|
scrollY: number;
|
|
515
515
|
zoom: {
|
|
516
|
-
value: import("
|
|
516
|
+
value: import("../interface").NormalizedZoomValue;
|
|
517
517
|
};
|
|
518
518
|
contextMenu: {
|
|
519
519
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -524,17 +524,17 @@ export declare const actionResetZoom: {
|
|
|
524
524
|
isLoading: boolean;
|
|
525
525
|
errorMessage: React.ReactNode;
|
|
526
526
|
activeEmbeddable: {
|
|
527
|
-
element: import("
|
|
527
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
528
528
|
state: "hover" | "active";
|
|
529
529
|
} | null;
|
|
530
|
-
newElement: import("
|
|
531
|
-
resizingElement: import("
|
|
532
|
-
multiElement: import("
|
|
533
|
-
selectionElement: import("
|
|
530
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
531
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
532
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
533
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
534
534
|
isBindingEnabled: boolean;
|
|
535
|
-
startBoundElement: import("
|
|
536
|
-
suggestedBinding: import("
|
|
537
|
-
frameToHighlight: import("
|
|
535
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
536
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
537
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
538
538
|
frameRendering: {
|
|
539
539
|
enabled: boolean;
|
|
540
540
|
name: boolean;
|
|
@@ -542,13 +542,13 @@ export declare const actionResetZoom: {
|
|
|
542
542
|
clip: boolean;
|
|
543
543
|
};
|
|
544
544
|
editingFrame: string | null;
|
|
545
|
-
elementsToHighlight: import("
|
|
546
|
-
editingTextElement: import("
|
|
545
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
546
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
547
547
|
activeTool: {
|
|
548
|
-
lastActiveTool: import("
|
|
548
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
549
549
|
locked: boolean;
|
|
550
550
|
fromSelection: boolean;
|
|
551
|
-
} & import("
|
|
551
|
+
} & import("../interface").ActiveTool;
|
|
552
552
|
preferredSelectionTool: {
|
|
553
553
|
type: "selection" | "lasso";
|
|
554
554
|
initialized: boolean;
|
|
@@ -566,13 +566,13 @@ export declare const actionResetZoom: {
|
|
|
566
566
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
567
567
|
currentItemRoughness: number;
|
|
568
568
|
currentItemOpacity: number;
|
|
569
|
-
currentItemFontFamily: import("
|
|
569
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
570
570
|
currentItemFontSize: number;
|
|
571
|
-
currentItemTextAlign: import("
|
|
572
|
-
currentItemStartArrowhead: import("
|
|
573
|
-
currentItemEndArrowhead: import("
|
|
574
|
-
currentHoveredFontFamily: import("
|
|
575
|
-
currentItemRoundness: import("
|
|
571
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
572
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
573
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
574
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
575
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
576
576
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
577
577
|
viewBackgroundColor: string;
|
|
578
578
|
cursorButton: "up" | "down";
|
|
@@ -583,8 +583,8 @@ export declare const actionResetZoom: {
|
|
|
583
583
|
openMenu: "canvas" | null;
|
|
584
584
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
585
585
|
openSidebar: {
|
|
586
|
-
name: import("
|
|
587
|
-
tab?: import("
|
|
586
|
+
name: import("../interface").SidebarName;
|
|
587
|
+
tab?: import("../interface").SidebarTabName;
|
|
588
588
|
} | null;
|
|
589
589
|
openDialog: null | {
|
|
590
590
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -597,7 +597,7 @@ export declare const actionResetZoom: {
|
|
|
597
597
|
sourceElementId: DrawElement["id"];
|
|
598
598
|
};
|
|
599
599
|
defaultSidebarDockedPreference: boolean;
|
|
600
|
-
lastPointerDownWith: import("
|
|
600
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
601
601
|
selectedElementIds: Readonly<{
|
|
602
602
|
[id: string]: true;
|
|
603
603
|
}>;
|
|
@@ -615,7 +615,7 @@ export declare const actionResetZoom: {
|
|
|
615
615
|
duration?: number;
|
|
616
616
|
} | null;
|
|
617
617
|
zenModeEnabled: boolean;
|
|
618
|
-
theme: import("
|
|
618
|
+
theme: import("../element/types").Theme;
|
|
619
619
|
gridSize: number;
|
|
620
620
|
gridStep: number;
|
|
621
621
|
gridModeEnabled: boolean;
|
|
@@ -623,18 +623,18 @@ export declare const actionResetZoom: {
|
|
|
623
623
|
selectedGroupIds: {
|
|
624
624
|
[groupId: string]: boolean;
|
|
625
625
|
};
|
|
626
|
-
editingGroupId: import("
|
|
626
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
627
627
|
width: number;
|
|
628
628
|
height: number;
|
|
629
629
|
offsetTop: number;
|
|
630
630
|
offsetLeft: number;
|
|
631
|
-
fileHandle: import("../
|
|
632
|
-
collaborators: Map<import("
|
|
631
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
632
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
633
633
|
stats: {
|
|
634
634
|
open: boolean;
|
|
635
635
|
panels: number;
|
|
636
636
|
};
|
|
637
|
-
currentChartType: import("
|
|
637
|
+
currentChartType: import("../element/types").ChartType;
|
|
638
638
|
pasteDialog: {
|
|
639
639
|
shown: false;
|
|
640
640
|
data: null;
|
|
@@ -642,25 +642,25 @@ export declare const actionResetZoom: {
|
|
|
642
642
|
shown: true;
|
|
643
643
|
data: import("../charts").Spreadsheet;
|
|
644
644
|
};
|
|
645
|
-
selectedLinearElement: import("
|
|
645
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
646
646
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
647
647
|
originSnapOffset: {
|
|
648
648
|
x: number;
|
|
649
649
|
y: number;
|
|
650
650
|
} | null;
|
|
651
651
|
objectsSnapModeEnabled: boolean;
|
|
652
|
-
followedBy: Set<import("
|
|
652
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
653
653
|
isCropping: boolean;
|
|
654
654
|
croppingElementId: DrawElement["id"] | null;
|
|
655
655
|
searchMatches: Readonly<{
|
|
656
656
|
focusedId: DrawElement["id"] | null;
|
|
657
|
-
matches: readonly import("
|
|
657
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
658
658
|
}> | null;
|
|
659
659
|
activeLockedId: string | null;
|
|
660
660
|
lockedMultiSelections: {
|
|
661
661
|
[groupId: string]: true;
|
|
662
662
|
};
|
|
663
|
-
bindMode: import("
|
|
663
|
+
bindMode: import("../element/types").BindMode;
|
|
664
664
|
};
|
|
665
665
|
captureUpdate: "EVENTUALLY";
|
|
666
666
|
};
|
|
@@ -675,12 +675,12 @@ export declare const actionManualZoom: {
|
|
|
675
675
|
trackEvent: {
|
|
676
676
|
category: "canvas";
|
|
677
677
|
};
|
|
678
|
-
perform: (_elements: readonly import("
|
|
678
|
+
perform: (_elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
679
679
|
appState: {
|
|
680
680
|
scrollX: number;
|
|
681
681
|
scrollY: number;
|
|
682
682
|
zoom: {
|
|
683
|
-
value: import("
|
|
683
|
+
value: import("../interface").NormalizedZoomValue;
|
|
684
684
|
};
|
|
685
685
|
contextMenu: {
|
|
686
686
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -691,17 +691,17 @@ export declare const actionManualZoom: {
|
|
|
691
691
|
isLoading: boolean;
|
|
692
692
|
errorMessage: React.ReactNode;
|
|
693
693
|
activeEmbeddable: {
|
|
694
|
-
element: import("
|
|
694
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
695
695
|
state: "hover" | "active";
|
|
696
696
|
} | null;
|
|
697
|
-
newElement: import("
|
|
698
|
-
resizingElement: import("
|
|
699
|
-
multiElement: import("
|
|
700
|
-
selectionElement: import("
|
|
697
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
698
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
699
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
700
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
701
701
|
isBindingEnabled: boolean;
|
|
702
|
-
startBoundElement: import("
|
|
703
|
-
suggestedBinding: import("
|
|
704
|
-
frameToHighlight: import("
|
|
702
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
703
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
704
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
705
705
|
frameRendering: {
|
|
706
706
|
enabled: boolean;
|
|
707
707
|
name: boolean;
|
|
@@ -709,13 +709,13 @@ export declare const actionManualZoom: {
|
|
|
709
709
|
clip: boolean;
|
|
710
710
|
};
|
|
711
711
|
editingFrame: string | null;
|
|
712
|
-
elementsToHighlight: import("
|
|
713
|
-
editingTextElement: import("
|
|
712
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
713
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
714
714
|
activeTool: {
|
|
715
|
-
lastActiveTool: import("
|
|
715
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
716
716
|
locked: boolean;
|
|
717
717
|
fromSelection: boolean;
|
|
718
|
-
} & import("
|
|
718
|
+
} & import("../interface").ActiveTool;
|
|
719
719
|
preferredSelectionTool: {
|
|
720
720
|
type: "selection" | "lasso";
|
|
721
721
|
initialized: boolean;
|
|
@@ -733,13 +733,13 @@ export declare const actionManualZoom: {
|
|
|
733
733
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
734
734
|
currentItemRoughness: number;
|
|
735
735
|
currentItemOpacity: number;
|
|
736
|
-
currentItemFontFamily: import("
|
|
736
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
737
737
|
currentItemFontSize: number;
|
|
738
|
-
currentItemTextAlign: import("
|
|
739
|
-
currentItemStartArrowhead: import("
|
|
740
|
-
currentItemEndArrowhead: import("
|
|
741
|
-
currentHoveredFontFamily: import("
|
|
742
|
-
currentItemRoundness: import("
|
|
738
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
739
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
740
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
741
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
742
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
743
743
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
744
744
|
viewBackgroundColor: string;
|
|
745
745
|
cursorButton: "up" | "down";
|
|
@@ -750,8 +750,8 @@ export declare const actionManualZoom: {
|
|
|
750
750
|
openMenu: "canvas" | null;
|
|
751
751
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
752
752
|
openSidebar: {
|
|
753
|
-
name: import("
|
|
754
|
-
tab?: import("
|
|
753
|
+
name: import("../interface").SidebarName;
|
|
754
|
+
tab?: import("../interface").SidebarTabName;
|
|
755
755
|
} | null;
|
|
756
756
|
openDialog: null | {
|
|
757
757
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -764,7 +764,7 @@ export declare const actionManualZoom: {
|
|
|
764
764
|
sourceElementId: DrawElement["id"];
|
|
765
765
|
};
|
|
766
766
|
defaultSidebarDockedPreference: boolean;
|
|
767
|
-
lastPointerDownWith: import("
|
|
767
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
768
768
|
selectedElementIds: Readonly<{
|
|
769
769
|
[id: string]: true;
|
|
770
770
|
}>;
|
|
@@ -782,7 +782,7 @@ export declare const actionManualZoom: {
|
|
|
782
782
|
duration?: number;
|
|
783
783
|
} | null;
|
|
784
784
|
zenModeEnabled: boolean;
|
|
785
|
-
theme: import("
|
|
785
|
+
theme: import("../element/types").Theme;
|
|
786
786
|
gridSize: number;
|
|
787
787
|
gridStep: number;
|
|
788
788
|
gridModeEnabled: boolean;
|
|
@@ -790,18 +790,18 @@ export declare const actionManualZoom: {
|
|
|
790
790
|
selectedGroupIds: {
|
|
791
791
|
[groupId: string]: boolean;
|
|
792
792
|
};
|
|
793
|
-
editingGroupId: import("
|
|
793
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
794
794
|
width: number;
|
|
795
795
|
height: number;
|
|
796
796
|
offsetTop: number;
|
|
797
797
|
offsetLeft: number;
|
|
798
|
-
fileHandle: import("../
|
|
799
|
-
collaborators: Map<import("
|
|
798
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
799
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
800
800
|
stats: {
|
|
801
801
|
open: boolean;
|
|
802
802
|
panels: number;
|
|
803
803
|
};
|
|
804
|
-
currentChartType: import("
|
|
804
|
+
currentChartType: import("../element/types").ChartType;
|
|
805
805
|
pasteDialog: {
|
|
806
806
|
shown: false;
|
|
807
807
|
data: null;
|
|
@@ -809,25 +809,25 @@ export declare const actionManualZoom: {
|
|
|
809
809
|
shown: true;
|
|
810
810
|
data: import("../charts").Spreadsheet;
|
|
811
811
|
};
|
|
812
|
-
selectedLinearElement: import("
|
|
812
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
813
813
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
814
814
|
originSnapOffset: {
|
|
815
815
|
x: number;
|
|
816
816
|
y: number;
|
|
817
817
|
} | null;
|
|
818
818
|
objectsSnapModeEnabled: boolean;
|
|
819
|
-
followedBy: Set<import("
|
|
819
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
820
820
|
isCropping: boolean;
|
|
821
821
|
croppingElementId: DrawElement["id"] | null;
|
|
822
822
|
searchMatches: Readonly<{
|
|
823
823
|
focusedId: DrawElement["id"] | null;
|
|
824
|
-
matches: readonly import("
|
|
824
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
825
825
|
}> | null;
|
|
826
826
|
activeLockedId: string | null;
|
|
827
827
|
lockedMultiSelections: {
|
|
828
828
|
[groupId: string]: true;
|
|
829
829
|
};
|
|
830
|
-
bindMode: import("
|
|
830
|
+
bindMode: import("../element/types").BindMode;
|
|
831
831
|
};
|
|
832
832
|
captureUpdate: "EVENTUALLY";
|
|
833
833
|
};
|
|
@@ -849,7 +849,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
849
849
|
scrollX: number;
|
|
850
850
|
scrollY: number;
|
|
851
851
|
zoom: {
|
|
852
|
-
value: import("
|
|
852
|
+
value: import("../interface").NormalizedZoomValue;
|
|
853
853
|
};
|
|
854
854
|
contextMenu: {
|
|
855
855
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -860,17 +860,17 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
860
860
|
isLoading: boolean;
|
|
861
861
|
errorMessage: React.ReactNode;
|
|
862
862
|
activeEmbeddable: {
|
|
863
|
-
element: import("
|
|
863
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
864
864
|
state: "hover" | "active";
|
|
865
865
|
} | null;
|
|
866
|
-
newElement: import("
|
|
867
|
-
resizingElement: import("
|
|
868
|
-
multiElement: import("
|
|
869
|
-
selectionElement: import("
|
|
866
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
867
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
868
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
869
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
870
870
|
isBindingEnabled: boolean;
|
|
871
|
-
startBoundElement: import("
|
|
872
|
-
suggestedBinding: import("
|
|
873
|
-
frameToHighlight: import("
|
|
871
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
872
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
873
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
874
874
|
frameRendering: {
|
|
875
875
|
enabled: boolean;
|
|
876
876
|
name: boolean;
|
|
@@ -878,13 +878,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
878
878
|
clip: boolean;
|
|
879
879
|
};
|
|
880
880
|
editingFrame: string | null;
|
|
881
|
-
elementsToHighlight: import("
|
|
882
|
-
editingTextElement: import("
|
|
881
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
882
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
883
883
|
activeTool: {
|
|
884
|
-
lastActiveTool: import("
|
|
884
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
885
885
|
locked: boolean;
|
|
886
886
|
fromSelection: boolean;
|
|
887
|
-
} & import("
|
|
887
|
+
} & import("../interface").ActiveTool;
|
|
888
888
|
preferredSelectionTool: {
|
|
889
889
|
type: "selection" | "lasso";
|
|
890
890
|
initialized: boolean;
|
|
@@ -902,13 +902,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
902
902
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
903
903
|
currentItemRoughness: number;
|
|
904
904
|
currentItemOpacity: number;
|
|
905
|
-
currentItemFontFamily: import("
|
|
905
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
906
906
|
currentItemFontSize: number;
|
|
907
|
-
currentItemTextAlign: import("
|
|
908
|
-
currentItemStartArrowhead: import("
|
|
909
|
-
currentItemEndArrowhead: import("
|
|
910
|
-
currentHoveredFontFamily: import("
|
|
911
|
-
currentItemRoundness: import("
|
|
907
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
908
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
909
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
910
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
911
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
912
912
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
913
913
|
viewBackgroundColor: string;
|
|
914
914
|
cursorButton: "up" | "down";
|
|
@@ -919,8 +919,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
919
919
|
openMenu: "canvas" | null;
|
|
920
920
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
921
921
|
openSidebar: {
|
|
922
|
-
name: import("
|
|
923
|
-
tab?: import("
|
|
922
|
+
name: import("../interface").SidebarName;
|
|
923
|
+
tab?: import("../interface").SidebarTabName;
|
|
924
924
|
} | null;
|
|
925
925
|
openDialog: null | {
|
|
926
926
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -933,7 +933,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
933
933
|
sourceElementId: DrawElement["id"];
|
|
934
934
|
};
|
|
935
935
|
defaultSidebarDockedPreference: boolean;
|
|
936
|
-
lastPointerDownWith: import("
|
|
936
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
937
937
|
selectedElementIds: Readonly<{
|
|
938
938
|
[id: string]: true;
|
|
939
939
|
}>;
|
|
@@ -951,7 +951,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
951
951
|
duration?: number;
|
|
952
952
|
} | null;
|
|
953
953
|
zenModeEnabled: boolean;
|
|
954
|
-
theme: import("
|
|
954
|
+
theme: import("../element/types").Theme;
|
|
955
955
|
gridSize: number;
|
|
956
956
|
gridStep: number;
|
|
957
957
|
gridModeEnabled: boolean;
|
|
@@ -959,18 +959,18 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
959
959
|
selectedGroupIds: {
|
|
960
960
|
[groupId: string]: boolean;
|
|
961
961
|
};
|
|
962
|
-
editingGroupId: import("
|
|
962
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
963
963
|
width: number;
|
|
964
964
|
height: number;
|
|
965
965
|
offsetTop: number;
|
|
966
966
|
offsetLeft: number;
|
|
967
|
-
fileHandle: import("../
|
|
968
|
-
collaborators: Map<import("
|
|
967
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
968
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
969
969
|
stats: {
|
|
970
970
|
open: boolean;
|
|
971
971
|
panels: number;
|
|
972
972
|
};
|
|
973
|
-
currentChartType: import("
|
|
973
|
+
currentChartType: import("../element/types").ChartType;
|
|
974
974
|
pasteDialog: {
|
|
975
975
|
shown: false;
|
|
976
976
|
data: null;
|
|
@@ -978,25 +978,25 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
978
978
|
shown: true;
|
|
979
979
|
data: import("../charts").Spreadsheet;
|
|
980
980
|
};
|
|
981
|
-
selectedLinearElement: import("
|
|
981
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
982
982
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
983
983
|
originSnapOffset: {
|
|
984
984
|
x: number;
|
|
985
985
|
y: number;
|
|
986
986
|
} | null;
|
|
987
987
|
objectsSnapModeEnabled: boolean;
|
|
988
|
-
followedBy: Set<import("
|
|
988
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
989
989
|
isCropping: boolean;
|
|
990
990
|
croppingElementId: DrawElement["id"] | null;
|
|
991
991
|
searchMatches: Readonly<{
|
|
992
992
|
focusedId: DrawElement["id"] | null;
|
|
993
|
-
matches: readonly import("
|
|
993
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
994
994
|
}> | null;
|
|
995
995
|
activeLockedId: string | null;
|
|
996
996
|
lockedMultiSelections: {
|
|
997
997
|
[groupId: string]: true;
|
|
998
998
|
};
|
|
999
|
-
bindMode: import("
|
|
999
|
+
bindMode: import("../element/types").BindMode;
|
|
1000
1000
|
};
|
|
1001
1001
|
captureUpdate: "EVENTUALLY";
|
|
1002
1002
|
};
|
|
@@ -1015,7 +1015,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1015
1015
|
scrollX: number;
|
|
1016
1016
|
scrollY: number;
|
|
1017
1017
|
zoom: {
|
|
1018
|
-
value: import("
|
|
1018
|
+
value: import("../interface").NormalizedZoomValue;
|
|
1019
1019
|
};
|
|
1020
1020
|
contextMenu: {
|
|
1021
1021
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1026,17 +1026,17 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1026
1026
|
isLoading: boolean;
|
|
1027
1027
|
errorMessage: React.ReactNode;
|
|
1028
1028
|
activeEmbeddable: {
|
|
1029
|
-
element: import("
|
|
1029
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
1030
1030
|
state: "hover" | "active";
|
|
1031
1031
|
} | null;
|
|
1032
|
-
newElement: import("
|
|
1033
|
-
resizingElement: import("
|
|
1034
|
-
multiElement: import("
|
|
1035
|
-
selectionElement: import("
|
|
1032
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1033
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1034
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1035
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1036
1036
|
isBindingEnabled: boolean;
|
|
1037
|
-
startBoundElement: import("
|
|
1038
|
-
suggestedBinding: import("
|
|
1039
|
-
frameToHighlight: import("
|
|
1037
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1038
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1039
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1040
1040
|
frameRendering: {
|
|
1041
1041
|
enabled: boolean;
|
|
1042
1042
|
name: boolean;
|
|
@@ -1044,13 +1044,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1044
1044
|
clip: boolean;
|
|
1045
1045
|
};
|
|
1046
1046
|
editingFrame: string | null;
|
|
1047
|
-
elementsToHighlight: import("
|
|
1048
|
-
editingTextElement: import("
|
|
1047
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1048
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1049
1049
|
activeTool: {
|
|
1050
|
-
lastActiveTool: import("
|
|
1050
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1051
1051
|
locked: boolean;
|
|
1052
1052
|
fromSelection: boolean;
|
|
1053
|
-
} & import("
|
|
1053
|
+
} & import("../interface").ActiveTool;
|
|
1054
1054
|
preferredSelectionTool: {
|
|
1055
1055
|
type: "selection" | "lasso";
|
|
1056
1056
|
initialized: boolean;
|
|
@@ -1068,13 +1068,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1068
1068
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1069
1069
|
currentItemRoughness: number;
|
|
1070
1070
|
currentItemOpacity: number;
|
|
1071
|
-
currentItemFontFamily: import("
|
|
1071
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1072
1072
|
currentItemFontSize: number;
|
|
1073
|
-
currentItemTextAlign: import("
|
|
1074
|
-
currentItemStartArrowhead: import("
|
|
1075
|
-
currentItemEndArrowhead: import("
|
|
1076
|
-
currentHoveredFontFamily: import("
|
|
1077
|
-
currentItemRoundness: import("
|
|
1073
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1074
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1075
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1076
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1077
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1078
1078
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1079
1079
|
viewBackgroundColor: string;
|
|
1080
1080
|
cursorButton: "up" | "down";
|
|
@@ -1085,8 +1085,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1085
1085
|
openMenu: "canvas" | null;
|
|
1086
1086
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1087
1087
|
openSidebar: {
|
|
1088
|
-
name: import("
|
|
1089
|
-
tab?: import("
|
|
1088
|
+
name: import("../interface").SidebarName;
|
|
1089
|
+
tab?: import("../interface").SidebarTabName;
|
|
1090
1090
|
} | null;
|
|
1091
1091
|
openDialog: null | {
|
|
1092
1092
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1099,7 +1099,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1099
1099
|
sourceElementId: DrawElement["id"];
|
|
1100
1100
|
};
|
|
1101
1101
|
defaultSidebarDockedPreference: boolean;
|
|
1102
|
-
lastPointerDownWith: import("
|
|
1102
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1103
1103
|
selectedElementIds: Readonly<{
|
|
1104
1104
|
[id: string]: true;
|
|
1105
1105
|
}>;
|
|
@@ -1117,7 +1117,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1117
1117
|
duration?: number;
|
|
1118
1118
|
} | null;
|
|
1119
1119
|
zenModeEnabled: boolean;
|
|
1120
|
-
theme: import("
|
|
1120
|
+
theme: import("../element/types").Theme;
|
|
1121
1121
|
gridSize: number;
|
|
1122
1122
|
gridStep: number;
|
|
1123
1123
|
gridModeEnabled: boolean;
|
|
@@ -1125,18 +1125,18 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1125
1125
|
selectedGroupIds: {
|
|
1126
1126
|
[groupId: string]: boolean;
|
|
1127
1127
|
};
|
|
1128
|
-
editingGroupId: import("
|
|
1128
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1129
1129
|
width: number;
|
|
1130
1130
|
height: number;
|
|
1131
1131
|
offsetTop: number;
|
|
1132
1132
|
offsetLeft: number;
|
|
1133
|
-
fileHandle: import("../
|
|
1134
|
-
collaborators: Map<import("
|
|
1133
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1134
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1135
1135
|
stats: {
|
|
1136
1136
|
open: boolean;
|
|
1137
1137
|
panels: number;
|
|
1138
1138
|
};
|
|
1139
|
-
currentChartType: import("
|
|
1139
|
+
currentChartType: import("../element/types").ChartType;
|
|
1140
1140
|
pasteDialog: {
|
|
1141
1141
|
shown: false;
|
|
1142
1142
|
data: null;
|
|
@@ -1144,25 +1144,25 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1144
1144
|
shown: true;
|
|
1145
1145
|
data: import("../charts").Spreadsheet;
|
|
1146
1146
|
};
|
|
1147
|
-
selectedLinearElement: import("
|
|
1147
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1148
1148
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1149
1149
|
originSnapOffset: {
|
|
1150
1150
|
x: number;
|
|
1151
1151
|
y: number;
|
|
1152
1152
|
} | null;
|
|
1153
1153
|
objectsSnapModeEnabled: boolean;
|
|
1154
|
-
followedBy: Set<import("
|
|
1154
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1155
1155
|
isCropping: boolean;
|
|
1156
1156
|
croppingElementId: DrawElement["id"] | null;
|
|
1157
1157
|
searchMatches: Readonly<{
|
|
1158
1158
|
focusedId: DrawElement["id"] | null;
|
|
1159
|
-
matches: readonly import("
|
|
1159
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1160
1160
|
}> | null;
|
|
1161
1161
|
activeLockedId: string | null;
|
|
1162
1162
|
lockedMultiSelections: {
|
|
1163
1163
|
[groupId: string]: true;
|
|
1164
1164
|
};
|
|
1165
|
-
bindMode: import("
|
|
1165
|
+
bindMode: import("../element/types").BindMode;
|
|
1166
1166
|
};
|
|
1167
1167
|
captureUpdate: "EVENTUALLY";
|
|
1168
1168
|
};
|
|
@@ -1173,12 +1173,12 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1173
1173
|
trackEvent: {
|
|
1174
1174
|
category: "canvas";
|
|
1175
1175
|
};
|
|
1176
|
-
perform: (elements: readonly import("
|
|
1176
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1177
1177
|
appState: {
|
|
1178
1178
|
scrollX: number;
|
|
1179
1179
|
scrollY: number;
|
|
1180
1180
|
zoom: {
|
|
1181
|
-
value: import("
|
|
1181
|
+
value: import("../interface").NormalizedZoomValue;
|
|
1182
1182
|
};
|
|
1183
1183
|
contextMenu: {
|
|
1184
1184
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1189,17 +1189,17 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1189
1189
|
isLoading: boolean;
|
|
1190
1190
|
errorMessage: React.ReactNode;
|
|
1191
1191
|
activeEmbeddable: {
|
|
1192
|
-
element: import("
|
|
1192
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
1193
1193
|
state: "hover" | "active";
|
|
1194
1194
|
} | null;
|
|
1195
|
-
newElement: import("
|
|
1196
|
-
resizingElement: import("
|
|
1197
|
-
multiElement: import("
|
|
1198
|
-
selectionElement: import("
|
|
1195
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1196
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1197
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1198
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1199
1199
|
isBindingEnabled: boolean;
|
|
1200
|
-
startBoundElement: import("
|
|
1201
|
-
suggestedBinding: import("
|
|
1202
|
-
frameToHighlight: import("
|
|
1200
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1201
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1202
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1203
1203
|
frameRendering: {
|
|
1204
1204
|
enabled: boolean;
|
|
1205
1205
|
name: boolean;
|
|
@@ -1207,13 +1207,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1207
1207
|
clip: boolean;
|
|
1208
1208
|
};
|
|
1209
1209
|
editingFrame: string | null;
|
|
1210
|
-
elementsToHighlight: import("
|
|
1211
|
-
editingTextElement: import("
|
|
1210
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1211
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1212
1212
|
activeTool: {
|
|
1213
|
-
lastActiveTool: import("
|
|
1213
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1214
1214
|
locked: boolean;
|
|
1215
1215
|
fromSelection: boolean;
|
|
1216
|
-
} & import("
|
|
1216
|
+
} & import("../interface").ActiveTool;
|
|
1217
1217
|
preferredSelectionTool: {
|
|
1218
1218
|
type: "selection" | "lasso";
|
|
1219
1219
|
initialized: boolean;
|
|
@@ -1231,13 +1231,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1231
1231
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1232
1232
|
currentItemRoughness: number;
|
|
1233
1233
|
currentItemOpacity: number;
|
|
1234
|
-
currentItemFontFamily: import("
|
|
1234
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1235
1235
|
currentItemFontSize: number;
|
|
1236
|
-
currentItemTextAlign: import("
|
|
1237
|
-
currentItemStartArrowhead: import("
|
|
1238
|
-
currentItemEndArrowhead: import("
|
|
1239
|
-
currentHoveredFontFamily: import("
|
|
1240
|
-
currentItemRoundness: import("
|
|
1236
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1237
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1238
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1239
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1240
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1241
1241
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1242
1242
|
viewBackgroundColor: string;
|
|
1243
1243
|
cursorButton: "up" | "down";
|
|
@@ -1248,8 +1248,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1248
1248
|
openMenu: "canvas" | null;
|
|
1249
1249
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1250
1250
|
openSidebar: {
|
|
1251
|
-
name: import("
|
|
1252
|
-
tab?: import("
|
|
1251
|
+
name: import("../interface").SidebarName;
|
|
1252
|
+
tab?: import("../interface").SidebarTabName;
|
|
1253
1253
|
} | null;
|
|
1254
1254
|
openDialog: null | {
|
|
1255
1255
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1262,7 +1262,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1262
1262
|
sourceElementId: DrawElement["id"];
|
|
1263
1263
|
};
|
|
1264
1264
|
defaultSidebarDockedPreference: boolean;
|
|
1265
|
-
lastPointerDownWith: import("
|
|
1265
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1266
1266
|
selectedElementIds: Readonly<{
|
|
1267
1267
|
[id: string]: true;
|
|
1268
1268
|
}>;
|
|
@@ -1280,7 +1280,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1280
1280
|
duration?: number;
|
|
1281
1281
|
} | null;
|
|
1282
1282
|
zenModeEnabled: boolean;
|
|
1283
|
-
theme: import("
|
|
1283
|
+
theme: import("../element/types").Theme;
|
|
1284
1284
|
gridSize: number;
|
|
1285
1285
|
gridStep: number;
|
|
1286
1286
|
gridModeEnabled: boolean;
|
|
@@ -1288,18 +1288,18 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1288
1288
|
selectedGroupIds: {
|
|
1289
1289
|
[groupId: string]: boolean;
|
|
1290
1290
|
};
|
|
1291
|
-
editingGroupId: import("
|
|
1291
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1292
1292
|
width: number;
|
|
1293
1293
|
height: number;
|
|
1294
1294
|
offsetTop: number;
|
|
1295
1295
|
offsetLeft: number;
|
|
1296
|
-
fileHandle: import("../
|
|
1297
|
-
collaborators: Map<import("
|
|
1296
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1297
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1298
1298
|
stats: {
|
|
1299
1299
|
open: boolean;
|
|
1300
1300
|
panels: number;
|
|
1301
1301
|
};
|
|
1302
|
-
currentChartType: import("
|
|
1302
|
+
currentChartType: import("../element/types").ChartType;
|
|
1303
1303
|
pasteDialog: {
|
|
1304
1304
|
shown: false;
|
|
1305
1305
|
data: null;
|
|
@@ -1307,25 +1307,25 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1307
1307
|
shown: true;
|
|
1308
1308
|
data: import("../charts").Spreadsheet;
|
|
1309
1309
|
};
|
|
1310
|
-
selectedLinearElement: import("
|
|
1310
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1311
1311
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1312
1312
|
originSnapOffset: {
|
|
1313
1313
|
x: number;
|
|
1314
1314
|
y: number;
|
|
1315
1315
|
} | null;
|
|
1316
1316
|
objectsSnapModeEnabled: boolean;
|
|
1317
|
-
followedBy: Set<import("
|
|
1317
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1318
1318
|
isCropping: boolean;
|
|
1319
1319
|
croppingElementId: DrawElement["id"] | null;
|
|
1320
1320
|
searchMatches: Readonly<{
|
|
1321
1321
|
focusedId: DrawElement["id"] | null;
|
|
1322
|
-
matches: readonly import("
|
|
1322
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1323
1323
|
}> | null;
|
|
1324
1324
|
activeLockedId: string | null;
|
|
1325
1325
|
lockedMultiSelections: {
|
|
1326
1326
|
[groupId: string]: true;
|
|
1327
1327
|
};
|
|
1328
|
-
bindMode: import("
|
|
1328
|
+
bindMode: import("../element/types").BindMode;
|
|
1329
1329
|
};
|
|
1330
1330
|
captureUpdate: "EVENTUALLY";
|
|
1331
1331
|
};
|
|
@@ -1340,12 +1340,12 @@ export declare const actionZoomToFitSelection: {
|
|
|
1340
1340
|
trackEvent: {
|
|
1341
1341
|
category: "canvas";
|
|
1342
1342
|
};
|
|
1343
|
-
perform: (elements: readonly import("
|
|
1343
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1344
1344
|
appState: {
|
|
1345
1345
|
scrollX: number;
|
|
1346
1346
|
scrollY: number;
|
|
1347
1347
|
zoom: {
|
|
1348
|
-
value: import("
|
|
1348
|
+
value: import("../interface").NormalizedZoomValue;
|
|
1349
1349
|
};
|
|
1350
1350
|
contextMenu: {
|
|
1351
1351
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1356,17 +1356,17 @@ export declare const actionZoomToFitSelection: {
|
|
|
1356
1356
|
isLoading: boolean;
|
|
1357
1357
|
errorMessage: React.ReactNode;
|
|
1358
1358
|
activeEmbeddable: {
|
|
1359
|
-
element: import("
|
|
1359
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
1360
1360
|
state: "hover" | "active";
|
|
1361
1361
|
} | null;
|
|
1362
|
-
newElement: import("
|
|
1363
|
-
resizingElement: import("
|
|
1364
|
-
multiElement: import("
|
|
1365
|
-
selectionElement: import("
|
|
1362
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1363
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1364
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1365
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1366
1366
|
isBindingEnabled: boolean;
|
|
1367
|
-
startBoundElement: import("
|
|
1368
|
-
suggestedBinding: import("
|
|
1369
|
-
frameToHighlight: import("
|
|
1367
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1368
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1369
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1370
1370
|
frameRendering: {
|
|
1371
1371
|
enabled: boolean;
|
|
1372
1372
|
name: boolean;
|
|
@@ -1374,13 +1374,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1374
1374
|
clip: boolean;
|
|
1375
1375
|
};
|
|
1376
1376
|
editingFrame: string | null;
|
|
1377
|
-
elementsToHighlight: import("
|
|
1378
|
-
editingTextElement: import("
|
|
1377
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1378
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1379
1379
|
activeTool: {
|
|
1380
|
-
lastActiveTool: import("
|
|
1380
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1381
1381
|
locked: boolean;
|
|
1382
1382
|
fromSelection: boolean;
|
|
1383
|
-
} & import("
|
|
1383
|
+
} & import("../interface").ActiveTool;
|
|
1384
1384
|
preferredSelectionTool: {
|
|
1385
1385
|
type: "selection" | "lasso";
|
|
1386
1386
|
initialized: boolean;
|
|
@@ -1398,13 +1398,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1398
1398
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1399
1399
|
currentItemRoughness: number;
|
|
1400
1400
|
currentItemOpacity: number;
|
|
1401
|
-
currentItemFontFamily: import("
|
|
1401
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1402
1402
|
currentItemFontSize: number;
|
|
1403
|
-
currentItemTextAlign: import("
|
|
1404
|
-
currentItemStartArrowhead: import("
|
|
1405
|
-
currentItemEndArrowhead: import("
|
|
1406
|
-
currentHoveredFontFamily: import("
|
|
1407
|
-
currentItemRoundness: import("
|
|
1403
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1404
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1405
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1406
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1407
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1408
1408
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1409
1409
|
viewBackgroundColor: string;
|
|
1410
1410
|
cursorButton: "up" | "down";
|
|
@@ -1415,8 +1415,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1415
1415
|
openMenu: "canvas" | null;
|
|
1416
1416
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1417
1417
|
openSidebar: {
|
|
1418
|
-
name: import("
|
|
1419
|
-
tab?: import("
|
|
1418
|
+
name: import("../interface").SidebarName;
|
|
1419
|
+
tab?: import("../interface").SidebarTabName;
|
|
1420
1420
|
} | null;
|
|
1421
1421
|
openDialog: null | {
|
|
1422
1422
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1429,7 +1429,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1429
1429
|
sourceElementId: DrawElement["id"];
|
|
1430
1430
|
};
|
|
1431
1431
|
defaultSidebarDockedPreference: boolean;
|
|
1432
|
-
lastPointerDownWith: import("
|
|
1432
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1433
1433
|
selectedElementIds: Readonly<{
|
|
1434
1434
|
[id: string]: true;
|
|
1435
1435
|
}>;
|
|
@@ -1447,7 +1447,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1447
1447
|
duration?: number;
|
|
1448
1448
|
} | null;
|
|
1449
1449
|
zenModeEnabled: boolean;
|
|
1450
|
-
theme: import("
|
|
1450
|
+
theme: import("../element/types").Theme;
|
|
1451
1451
|
gridSize: number;
|
|
1452
1452
|
gridStep: number;
|
|
1453
1453
|
gridModeEnabled: boolean;
|
|
@@ -1455,18 +1455,18 @@ export declare const actionZoomToFitSelection: {
|
|
|
1455
1455
|
selectedGroupIds: {
|
|
1456
1456
|
[groupId: string]: boolean;
|
|
1457
1457
|
};
|
|
1458
|
-
editingGroupId: import("
|
|
1458
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1459
1459
|
width: number;
|
|
1460
1460
|
height: number;
|
|
1461
1461
|
offsetTop: number;
|
|
1462
1462
|
offsetLeft: number;
|
|
1463
|
-
fileHandle: import("../
|
|
1464
|
-
collaborators: Map<import("
|
|
1463
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1464
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1465
1465
|
stats: {
|
|
1466
1466
|
open: boolean;
|
|
1467
1467
|
panels: number;
|
|
1468
1468
|
};
|
|
1469
|
-
currentChartType: import("
|
|
1469
|
+
currentChartType: import("../element/types").ChartType;
|
|
1470
1470
|
pasteDialog: {
|
|
1471
1471
|
shown: false;
|
|
1472
1472
|
data: null;
|
|
@@ -1474,25 +1474,25 @@ export declare const actionZoomToFitSelection: {
|
|
|
1474
1474
|
shown: true;
|
|
1475
1475
|
data: import("../charts").Spreadsheet;
|
|
1476
1476
|
};
|
|
1477
|
-
selectedLinearElement: import("
|
|
1477
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1478
1478
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1479
1479
|
originSnapOffset: {
|
|
1480
1480
|
x: number;
|
|
1481
1481
|
y: number;
|
|
1482
1482
|
} | null;
|
|
1483
1483
|
objectsSnapModeEnabled: boolean;
|
|
1484
|
-
followedBy: Set<import("
|
|
1484
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1485
1485
|
isCropping: boolean;
|
|
1486
1486
|
croppingElementId: DrawElement["id"] | null;
|
|
1487
1487
|
searchMatches: Readonly<{
|
|
1488
1488
|
focusedId: DrawElement["id"] | null;
|
|
1489
|
-
matches: readonly import("
|
|
1489
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1490
1490
|
}> | null;
|
|
1491
1491
|
activeLockedId: string | null;
|
|
1492
1492
|
lockedMultiSelections: {
|
|
1493
1493
|
[groupId: string]: true;
|
|
1494
1494
|
};
|
|
1495
|
-
bindMode: import("
|
|
1495
|
+
bindMode: import("../element/types").BindMode;
|
|
1496
1496
|
};
|
|
1497
1497
|
captureUpdate: "EVENTUALLY";
|
|
1498
1498
|
};
|
|
@@ -1508,12 +1508,12 @@ export declare const actionZoomToFit: {
|
|
|
1508
1508
|
trackEvent: {
|
|
1509
1509
|
category: "canvas";
|
|
1510
1510
|
};
|
|
1511
|
-
perform: (elements: readonly import("
|
|
1511
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1512
1512
|
appState: {
|
|
1513
1513
|
scrollX: number;
|
|
1514
1514
|
scrollY: number;
|
|
1515
1515
|
zoom: {
|
|
1516
|
-
value: import("
|
|
1516
|
+
value: import("../interface").NormalizedZoomValue;
|
|
1517
1517
|
};
|
|
1518
1518
|
contextMenu: {
|
|
1519
1519
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1524,17 +1524,17 @@ export declare const actionZoomToFit: {
|
|
|
1524
1524
|
isLoading: boolean;
|
|
1525
1525
|
errorMessage: React.ReactNode;
|
|
1526
1526
|
activeEmbeddable: {
|
|
1527
|
-
element: import("
|
|
1527
|
+
element: import("../element/types").NonDeletedDrawElement;
|
|
1528
1528
|
state: "hover" | "active";
|
|
1529
1529
|
} | null;
|
|
1530
|
-
newElement: import("
|
|
1531
|
-
resizingElement: import("
|
|
1532
|
-
multiElement: import("
|
|
1533
|
-
selectionElement: import("
|
|
1530
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1531
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1532
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1533
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1534
1534
|
isBindingEnabled: boolean;
|
|
1535
|
-
startBoundElement: import("
|
|
1536
|
-
suggestedBinding: import("
|
|
1537
|
-
frameToHighlight: import("
|
|
1535
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1536
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1537
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1538
1538
|
frameRendering: {
|
|
1539
1539
|
enabled: boolean;
|
|
1540
1540
|
name: boolean;
|
|
@@ -1542,13 +1542,13 @@ export declare const actionZoomToFit: {
|
|
|
1542
1542
|
clip: boolean;
|
|
1543
1543
|
};
|
|
1544
1544
|
editingFrame: string | null;
|
|
1545
|
-
elementsToHighlight: import("
|
|
1546
|
-
editingTextElement: import("
|
|
1545
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1546
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1547
1547
|
activeTool: {
|
|
1548
|
-
lastActiveTool: import("
|
|
1548
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1549
1549
|
locked: boolean;
|
|
1550
1550
|
fromSelection: boolean;
|
|
1551
|
-
} & import("
|
|
1551
|
+
} & import("../interface").ActiveTool;
|
|
1552
1552
|
preferredSelectionTool: {
|
|
1553
1553
|
type: "selection" | "lasso";
|
|
1554
1554
|
initialized: boolean;
|
|
@@ -1566,13 +1566,13 @@ export declare const actionZoomToFit: {
|
|
|
1566
1566
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1567
1567
|
currentItemRoughness: number;
|
|
1568
1568
|
currentItemOpacity: number;
|
|
1569
|
-
currentItemFontFamily: import("
|
|
1569
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1570
1570
|
currentItemFontSize: number;
|
|
1571
|
-
currentItemTextAlign: import("
|
|
1572
|
-
currentItemStartArrowhead: import("
|
|
1573
|
-
currentItemEndArrowhead: import("
|
|
1574
|
-
currentHoveredFontFamily: import("
|
|
1575
|
-
currentItemRoundness: import("
|
|
1571
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1572
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1573
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1574
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1575
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1576
1576
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1577
1577
|
viewBackgroundColor: string;
|
|
1578
1578
|
cursorButton: "up" | "down";
|
|
@@ -1583,8 +1583,8 @@ export declare const actionZoomToFit: {
|
|
|
1583
1583
|
openMenu: "canvas" | null;
|
|
1584
1584
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1585
1585
|
openSidebar: {
|
|
1586
|
-
name: import("
|
|
1587
|
-
tab?: import("
|
|
1586
|
+
name: import("../interface").SidebarName;
|
|
1587
|
+
tab?: import("../interface").SidebarTabName;
|
|
1588
1588
|
} | null;
|
|
1589
1589
|
openDialog: null | {
|
|
1590
1590
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1597,7 +1597,7 @@ export declare const actionZoomToFit: {
|
|
|
1597
1597
|
sourceElementId: DrawElement["id"];
|
|
1598
1598
|
};
|
|
1599
1599
|
defaultSidebarDockedPreference: boolean;
|
|
1600
|
-
lastPointerDownWith: import("
|
|
1600
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1601
1601
|
selectedElementIds: Readonly<{
|
|
1602
1602
|
[id: string]: true;
|
|
1603
1603
|
}>;
|
|
@@ -1615,7 +1615,7 @@ export declare const actionZoomToFit: {
|
|
|
1615
1615
|
duration?: number;
|
|
1616
1616
|
} | null;
|
|
1617
1617
|
zenModeEnabled: boolean;
|
|
1618
|
-
theme: import("
|
|
1618
|
+
theme: import("../element/types").Theme;
|
|
1619
1619
|
gridSize: number;
|
|
1620
1620
|
gridStep: number;
|
|
1621
1621
|
gridModeEnabled: boolean;
|
|
@@ -1623,18 +1623,18 @@ export declare const actionZoomToFit: {
|
|
|
1623
1623
|
selectedGroupIds: {
|
|
1624
1624
|
[groupId: string]: boolean;
|
|
1625
1625
|
};
|
|
1626
|
-
editingGroupId: import("
|
|
1626
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1627
1627
|
width: number;
|
|
1628
1628
|
height: number;
|
|
1629
1629
|
offsetTop: number;
|
|
1630
1630
|
offsetLeft: number;
|
|
1631
|
-
fileHandle: import("../
|
|
1632
|
-
collaborators: Map<import("
|
|
1631
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1632
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1633
1633
|
stats: {
|
|
1634
1634
|
open: boolean;
|
|
1635
1635
|
panels: number;
|
|
1636
1636
|
};
|
|
1637
|
-
currentChartType: import("
|
|
1637
|
+
currentChartType: import("../element/types").ChartType;
|
|
1638
1638
|
pasteDialog: {
|
|
1639
1639
|
shown: false;
|
|
1640
1640
|
data: null;
|
|
@@ -1642,25 +1642,25 @@ export declare const actionZoomToFit: {
|
|
|
1642
1642
|
shown: true;
|
|
1643
1643
|
data: import("../charts").Spreadsheet;
|
|
1644
1644
|
};
|
|
1645
|
-
selectedLinearElement: import("
|
|
1645
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1646
1646
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1647
1647
|
originSnapOffset: {
|
|
1648
1648
|
x: number;
|
|
1649
1649
|
y: number;
|
|
1650
1650
|
} | null;
|
|
1651
1651
|
objectsSnapModeEnabled: boolean;
|
|
1652
|
-
followedBy: Set<import("
|
|
1652
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1653
1653
|
isCropping: boolean;
|
|
1654
1654
|
croppingElementId: DrawElement["id"] | null;
|
|
1655
1655
|
searchMatches: Readonly<{
|
|
1656
1656
|
focusedId: DrawElement["id"] | null;
|
|
1657
|
-
matches: readonly import("
|
|
1657
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1658
1658
|
}> | null;
|
|
1659
1659
|
activeLockedId: string | null;
|
|
1660
1660
|
lockedMultiSelections: {
|
|
1661
1661
|
[groupId: string]: true;
|
|
1662
1662
|
};
|
|
1663
|
-
bindMode: import("
|
|
1663
|
+
bindMode: import("../element/types").BindMode;
|
|
1664
1664
|
};
|
|
1665
1665
|
captureUpdate: "EVENTUALLY";
|
|
1666
1666
|
};
|
|
@@ -1668,8 +1668,8 @@ export declare const actionZoomToFit: {
|
|
|
1668
1668
|
} & {
|
|
1669
1669
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1670
1670
|
};
|
|
1671
|
-
export declare const actionToggleTheme: import("./types").Action<import("
|
|
1672
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly DrawElement[], app: import("
|
|
1671
|
+
export declare const actionToggleTheme: import("./types").Action<import("../element/types").Theme> & {
|
|
1672
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly DrawElement[], app: import("../interface").AppClassProperties) => boolean) | undefined;
|
|
1673
1673
|
};
|
|
1674
1674
|
export declare const actionToggleEraserTool: {
|
|
1675
1675
|
name: "toggleEraserTool";
|
|
@@ -1677,16 +1677,16 @@ export declare const actionToggleEraserTool: {
|
|
|
1677
1677
|
trackEvent: {
|
|
1678
1678
|
category: "toolbar";
|
|
1679
1679
|
};
|
|
1680
|
-
perform: (elements: readonly import("
|
|
1680
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1681
1681
|
appState: {
|
|
1682
1682
|
selectedElementIds: {};
|
|
1683
1683
|
selectedGroupIds: {};
|
|
1684
1684
|
activeEmbeddable: null;
|
|
1685
1685
|
activeTool: {
|
|
1686
|
-
lastActiveTool: import("
|
|
1686
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1687
1687
|
locked: boolean;
|
|
1688
1688
|
fromSelection: boolean;
|
|
1689
|
-
} & import("
|
|
1689
|
+
} & import("../interface").ActiveTool;
|
|
1690
1690
|
contextMenu: {
|
|
1691
1691
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1692
1692
|
top: number;
|
|
@@ -1695,14 +1695,14 @@ export declare const actionToggleEraserTool: {
|
|
|
1695
1695
|
showWelcomeScreen: boolean;
|
|
1696
1696
|
isLoading: boolean;
|
|
1697
1697
|
errorMessage: React.ReactNode;
|
|
1698
|
-
newElement: import("
|
|
1699
|
-
resizingElement: import("
|
|
1700
|
-
multiElement: import("
|
|
1701
|
-
selectionElement: import("
|
|
1698
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1699
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1700
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1701
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1702
1702
|
isBindingEnabled: boolean;
|
|
1703
|
-
startBoundElement: import("
|
|
1704
|
-
suggestedBinding: import("
|
|
1705
|
-
frameToHighlight: import("
|
|
1703
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1704
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1705
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1706
1706
|
frameRendering: {
|
|
1707
1707
|
enabled: boolean;
|
|
1708
1708
|
name: boolean;
|
|
@@ -1710,8 +1710,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1710
1710
|
clip: boolean;
|
|
1711
1711
|
};
|
|
1712
1712
|
editingFrame: string | null;
|
|
1713
|
-
elementsToHighlight: import("
|
|
1714
|
-
editingTextElement: import("
|
|
1713
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1714
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1715
1715
|
preferredSelectionTool: {
|
|
1716
1716
|
type: "selection" | "lasso";
|
|
1717
1717
|
initialized: boolean;
|
|
@@ -1729,13 +1729,13 @@ export declare const actionToggleEraserTool: {
|
|
|
1729
1729
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1730
1730
|
currentItemRoughness: number;
|
|
1731
1731
|
currentItemOpacity: number;
|
|
1732
|
-
currentItemFontFamily: import("
|
|
1732
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1733
1733
|
currentItemFontSize: number;
|
|
1734
|
-
currentItemTextAlign: import("
|
|
1735
|
-
currentItemStartArrowhead: import("
|
|
1736
|
-
currentItemEndArrowhead: import("
|
|
1737
|
-
currentHoveredFontFamily: import("
|
|
1738
|
-
currentItemRoundness: import("
|
|
1734
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1735
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1736
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1737
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1738
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1739
1739
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1740
1740
|
viewBackgroundColor: string;
|
|
1741
1741
|
scrollX: number;
|
|
@@ -1745,12 +1745,12 @@ export declare const actionToggleEraserTool: {
|
|
|
1745
1745
|
name: string | null;
|
|
1746
1746
|
isResizing: boolean;
|
|
1747
1747
|
isRotating: boolean;
|
|
1748
|
-
zoom: import("
|
|
1748
|
+
zoom: import("../interface").Zoom;
|
|
1749
1749
|
openMenu: "canvas" | null;
|
|
1750
1750
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1751
1751
|
openSidebar: {
|
|
1752
|
-
name: import("
|
|
1753
|
-
tab?: import("
|
|
1752
|
+
name: import("../interface").SidebarName;
|
|
1753
|
+
tab?: import("../interface").SidebarTabName;
|
|
1754
1754
|
} | null;
|
|
1755
1755
|
openDialog: null | {
|
|
1756
1756
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1763,7 +1763,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1763
1763
|
sourceElementId: DrawElement["id"];
|
|
1764
1764
|
};
|
|
1765
1765
|
defaultSidebarDockedPreference: boolean;
|
|
1766
|
-
lastPointerDownWith: import("
|
|
1766
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1767
1767
|
hoveredElementIds: Readonly<{
|
|
1768
1768
|
[id: string]: true;
|
|
1769
1769
|
}>;
|
|
@@ -1778,23 +1778,23 @@ export declare const actionToggleEraserTool: {
|
|
|
1778
1778
|
duration?: number;
|
|
1779
1779
|
} | null;
|
|
1780
1780
|
zenModeEnabled: boolean;
|
|
1781
|
-
theme: import("
|
|
1781
|
+
theme: import("../element/types").Theme;
|
|
1782
1782
|
gridSize: number;
|
|
1783
1783
|
gridStep: number;
|
|
1784
1784
|
gridModeEnabled: boolean;
|
|
1785
1785
|
viewModeEnabled: boolean;
|
|
1786
|
-
editingGroupId: import("
|
|
1786
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1787
1787
|
width: number;
|
|
1788
1788
|
height: number;
|
|
1789
1789
|
offsetTop: number;
|
|
1790
1790
|
offsetLeft: number;
|
|
1791
|
-
fileHandle: import("../
|
|
1792
|
-
collaborators: Map<import("
|
|
1791
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1792
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1793
1793
|
stats: {
|
|
1794
1794
|
open: boolean;
|
|
1795
1795
|
panels: number;
|
|
1796
1796
|
};
|
|
1797
|
-
currentChartType: import("
|
|
1797
|
+
currentChartType: import("../element/types").ChartType;
|
|
1798
1798
|
pasteDialog: {
|
|
1799
1799
|
shown: false;
|
|
1800
1800
|
data: null;
|
|
@@ -1802,25 +1802,25 @@ export declare const actionToggleEraserTool: {
|
|
|
1802
1802
|
shown: true;
|
|
1803
1803
|
data: import("../charts").Spreadsheet;
|
|
1804
1804
|
};
|
|
1805
|
-
selectedLinearElement: import("
|
|
1805
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1806
1806
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1807
1807
|
originSnapOffset: {
|
|
1808
1808
|
x: number;
|
|
1809
1809
|
y: number;
|
|
1810
1810
|
} | null;
|
|
1811
1811
|
objectsSnapModeEnabled: boolean;
|
|
1812
|
-
followedBy: Set<import("
|
|
1812
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1813
1813
|
isCropping: boolean;
|
|
1814
1814
|
croppingElementId: DrawElement["id"] | null;
|
|
1815
1815
|
searchMatches: Readonly<{
|
|
1816
1816
|
focusedId: DrawElement["id"] | null;
|
|
1817
|
-
matches: readonly import("
|
|
1817
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1818
1818
|
}> | null;
|
|
1819
1819
|
activeLockedId: string | null;
|
|
1820
1820
|
lockedMultiSelections: {
|
|
1821
1821
|
[groupId: string]: true;
|
|
1822
1822
|
};
|
|
1823
|
-
bindMode: import("
|
|
1823
|
+
bindMode: import("../element/types").BindMode;
|
|
1824
1824
|
};
|
|
1825
1825
|
captureUpdate: "IMMEDIATELY";
|
|
1826
1826
|
};
|
|
@@ -1835,17 +1835,17 @@ export declare const actionToggleLassoTool: {
|
|
|
1835
1835
|
trackEvent: {
|
|
1836
1836
|
category: "toolbar";
|
|
1837
1837
|
};
|
|
1838
|
-
predicate: (elements: readonly DrawElement[], appState: AppState, props: import("
|
|
1839
|
-
perform: (elements: readonly import("
|
|
1838
|
+
predicate: (elements: readonly DrawElement[], appState: AppState, props: import("..").DrawProps, app: import("../interface").AppClassProperties) => boolean;
|
|
1839
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1840
1840
|
appState: {
|
|
1841
1841
|
selectedElementIds: {};
|
|
1842
1842
|
selectedGroupIds: {};
|
|
1843
1843
|
activeEmbeddable: null;
|
|
1844
1844
|
activeTool: {
|
|
1845
|
-
lastActiveTool: import("
|
|
1845
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
1846
1846
|
locked: boolean;
|
|
1847
1847
|
fromSelection: boolean;
|
|
1848
|
-
} & import("
|
|
1848
|
+
} & import("../interface").ActiveTool;
|
|
1849
1849
|
contextMenu: {
|
|
1850
1850
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1851
1851
|
top: number;
|
|
@@ -1854,14 +1854,14 @@ export declare const actionToggleLassoTool: {
|
|
|
1854
1854
|
showWelcomeScreen: boolean;
|
|
1855
1855
|
isLoading: boolean;
|
|
1856
1856
|
errorMessage: React.ReactNode;
|
|
1857
|
-
newElement: import("
|
|
1858
|
-
resizingElement: import("
|
|
1859
|
-
multiElement: import("
|
|
1860
|
-
selectionElement: import("
|
|
1857
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
1858
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1859
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
1860
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1861
1861
|
isBindingEnabled: boolean;
|
|
1862
|
-
startBoundElement: import("
|
|
1863
|
-
suggestedBinding: import("
|
|
1864
|
-
frameToHighlight: import("
|
|
1862
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1863
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
1864
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
1865
1865
|
frameRendering: {
|
|
1866
1866
|
enabled: boolean;
|
|
1867
1867
|
name: boolean;
|
|
@@ -1869,8 +1869,8 @@ export declare const actionToggleLassoTool: {
|
|
|
1869
1869
|
clip: boolean;
|
|
1870
1870
|
};
|
|
1871
1871
|
editingFrame: string | null;
|
|
1872
|
-
elementsToHighlight: import("
|
|
1873
|
-
editingTextElement: import("
|
|
1872
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
1873
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
1874
1874
|
preferredSelectionTool: {
|
|
1875
1875
|
type: "selection" | "lasso";
|
|
1876
1876
|
initialized: boolean;
|
|
@@ -1888,13 +1888,13 @@ export declare const actionToggleLassoTool: {
|
|
|
1888
1888
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
1889
1889
|
currentItemRoughness: number;
|
|
1890
1890
|
currentItemOpacity: number;
|
|
1891
|
-
currentItemFontFamily: import("
|
|
1891
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
1892
1892
|
currentItemFontSize: number;
|
|
1893
|
-
currentItemTextAlign: import("
|
|
1894
|
-
currentItemStartArrowhead: import("
|
|
1895
|
-
currentItemEndArrowhead: import("
|
|
1896
|
-
currentHoveredFontFamily: import("
|
|
1897
|
-
currentItemRoundness: import("
|
|
1893
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
1894
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1895
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1896
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
1897
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1898
1898
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1899
1899
|
viewBackgroundColor: string;
|
|
1900
1900
|
scrollX: number;
|
|
@@ -1904,12 +1904,12 @@ export declare const actionToggleLassoTool: {
|
|
|
1904
1904
|
name: string | null;
|
|
1905
1905
|
isResizing: boolean;
|
|
1906
1906
|
isRotating: boolean;
|
|
1907
|
-
zoom: import("
|
|
1907
|
+
zoom: import("../interface").Zoom;
|
|
1908
1908
|
openMenu: "canvas" | null;
|
|
1909
1909
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1910
1910
|
openSidebar: {
|
|
1911
|
-
name: import("
|
|
1912
|
-
tab?: import("
|
|
1911
|
+
name: import("../interface").SidebarName;
|
|
1912
|
+
tab?: import("../interface").SidebarTabName;
|
|
1913
1913
|
} | null;
|
|
1914
1914
|
openDialog: null | {
|
|
1915
1915
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -1922,7 +1922,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1922
1922
|
sourceElementId: DrawElement["id"];
|
|
1923
1923
|
};
|
|
1924
1924
|
defaultSidebarDockedPreference: boolean;
|
|
1925
|
-
lastPointerDownWith: import("
|
|
1925
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1926
1926
|
hoveredElementIds: Readonly<{
|
|
1927
1927
|
[id: string]: true;
|
|
1928
1928
|
}>;
|
|
@@ -1937,23 +1937,23 @@ export declare const actionToggleLassoTool: {
|
|
|
1937
1937
|
duration?: number;
|
|
1938
1938
|
} | null;
|
|
1939
1939
|
zenModeEnabled: boolean;
|
|
1940
|
-
theme: import("
|
|
1940
|
+
theme: import("../element/types").Theme;
|
|
1941
1941
|
gridSize: number;
|
|
1942
1942
|
gridStep: number;
|
|
1943
1943
|
gridModeEnabled: boolean;
|
|
1944
1944
|
viewModeEnabled: boolean;
|
|
1945
|
-
editingGroupId: import("
|
|
1945
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
1946
1946
|
width: number;
|
|
1947
1947
|
height: number;
|
|
1948
1948
|
offsetTop: number;
|
|
1949
1949
|
offsetLeft: number;
|
|
1950
|
-
fileHandle: import("../
|
|
1951
|
-
collaborators: Map<import("
|
|
1950
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
1951
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
1952
1952
|
stats: {
|
|
1953
1953
|
open: boolean;
|
|
1954
1954
|
panels: number;
|
|
1955
1955
|
};
|
|
1956
|
-
currentChartType: import("
|
|
1956
|
+
currentChartType: import("../element/types").ChartType;
|
|
1957
1957
|
pasteDialog: {
|
|
1958
1958
|
shown: false;
|
|
1959
1959
|
data: null;
|
|
@@ -1961,25 +1961,25 @@ export declare const actionToggleLassoTool: {
|
|
|
1961
1961
|
shown: true;
|
|
1962
1962
|
data: import("../charts").Spreadsheet;
|
|
1963
1963
|
};
|
|
1964
|
-
selectedLinearElement: import("
|
|
1964
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
1965
1965
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1966
1966
|
originSnapOffset: {
|
|
1967
1967
|
x: number;
|
|
1968
1968
|
y: number;
|
|
1969
1969
|
} | null;
|
|
1970
1970
|
objectsSnapModeEnabled: boolean;
|
|
1971
|
-
followedBy: Set<import("
|
|
1971
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
1972
1972
|
isCropping: boolean;
|
|
1973
1973
|
croppingElementId: DrawElement["id"] | null;
|
|
1974
1974
|
searchMatches: Readonly<{
|
|
1975
1975
|
focusedId: DrawElement["id"] | null;
|
|
1976
|
-
matches: readonly import("
|
|
1976
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
1977
1977
|
}> | null;
|
|
1978
1978
|
activeLockedId: string | null;
|
|
1979
1979
|
lockedMultiSelections: {
|
|
1980
1980
|
[groupId: string]: true;
|
|
1981
1981
|
};
|
|
1982
|
-
bindMode: import("
|
|
1982
|
+
bindMode: import("../element/types").BindMode;
|
|
1983
1983
|
};
|
|
1984
1984
|
captureUpdate: "NEVER";
|
|
1985
1985
|
};
|
|
@@ -1994,16 +1994,16 @@ export declare const actionToggleHandTool: {
|
|
|
1994
1994
|
};
|
|
1995
1995
|
icon: import("react").JSX.Element;
|
|
1996
1996
|
viewMode: false;
|
|
1997
|
-
perform: (elements: readonly import("
|
|
1997
|
+
perform: (elements: readonly import("../element/types").OrderedDrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../interface").AppClassProperties) => {
|
|
1998
1998
|
appState: {
|
|
1999
1999
|
selectedElementIds: {};
|
|
2000
2000
|
selectedGroupIds: {};
|
|
2001
2001
|
activeEmbeddable: null;
|
|
2002
2002
|
activeTool: {
|
|
2003
|
-
lastActiveTool: import("
|
|
2003
|
+
lastActiveTool: import("../interface").ActiveTool | null;
|
|
2004
2004
|
locked: boolean;
|
|
2005
2005
|
fromSelection: boolean;
|
|
2006
|
-
} & import("
|
|
2006
|
+
} & import("../interface").ActiveTool;
|
|
2007
2007
|
contextMenu: {
|
|
2008
2008
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2009
2009
|
top: number;
|
|
@@ -2012,14 +2012,14 @@ export declare const actionToggleHandTool: {
|
|
|
2012
2012
|
showWelcomeScreen: boolean;
|
|
2013
2013
|
isLoading: boolean;
|
|
2014
2014
|
errorMessage: React.ReactNode;
|
|
2015
|
-
newElement: import("
|
|
2016
|
-
resizingElement: import("
|
|
2017
|
-
multiElement: import("
|
|
2018
|
-
selectionElement: import("
|
|
2015
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").DrawNonSelectionElement> | null;
|
|
2016
|
+
resizingElement: import("../element/types").NonDeletedDrawElement | null;
|
|
2017
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").DrawLinearElement> | null;
|
|
2018
|
+
selectionElement: import("../element/types").NonDeletedDrawElement | null;
|
|
2019
2019
|
isBindingEnabled: boolean;
|
|
2020
|
-
startBoundElement: import("
|
|
2021
|
-
suggestedBinding: import("
|
|
2022
|
-
frameToHighlight: import("
|
|
2020
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
2021
|
+
suggestedBinding: import("../element/types").NonDeleted<import("../element/types").DrawBindableElement> | null;
|
|
2022
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").DrawFrameLikeElement> | null;
|
|
2023
2023
|
frameRendering: {
|
|
2024
2024
|
enabled: boolean;
|
|
2025
2025
|
name: boolean;
|
|
@@ -2027,8 +2027,8 @@ export declare const actionToggleHandTool: {
|
|
|
2027
2027
|
clip: boolean;
|
|
2028
2028
|
};
|
|
2029
2029
|
editingFrame: string | null;
|
|
2030
|
-
elementsToHighlight: import("
|
|
2031
|
-
editingTextElement: import("
|
|
2030
|
+
elementsToHighlight: import("../element/types").NonDeleted<DrawElement>[] | null;
|
|
2031
|
+
editingTextElement: import("../element/types").NonDeletedDrawElement | null;
|
|
2032
2032
|
preferredSelectionTool: {
|
|
2033
2033
|
type: "selection" | "lasso";
|
|
2034
2034
|
initialized: boolean;
|
|
@@ -2046,13 +2046,13 @@ export declare const actionToggleHandTool: {
|
|
|
2046
2046
|
currentItemStrokeStyle: DrawElement["strokeStyle"];
|
|
2047
2047
|
currentItemRoughness: number;
|
|
2048
2048
|
currentItemOpacity: number;
|
|
2049
|
-
currentItemFontFamily: import("
|
|
2049
|
+
currentItemFontFamily: import("../element/types").FontFamilyValues;
|
|
2050
2050
|
currentItemFontSize: number;
|
|
2051
|
-
currentItemTextAlign: import("
|
|
2052
|
-
currentItemStartArrowhead: import("
|
|
2053
|
-
currentItemEndArrowhead: import("
|
|
2054
|
-
currentHoveredFontFamily: import("
|
|
2055
|
-
currentItemRoundness: import("
|
|
2051
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
2052
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
2053
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
2054
|
+
currentHoveredFontFamily: import("../element/types").FontFamilyValues | null;
|
|
2055
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
2056
2056
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2057
2057
|
viewBackgroundColor: string;
|
|
2058
2058
|
scrollX: number;
|
|
@@ -2062,12 +2062,12 @@ export declare const actionToggleHandTool: {
|
|
|
2062
2062
|
name: string | null;
|
|
2063
2063
|
isResizing: boolean;
|
|
2064
2064
|
isRotating: boolean;
|
|
2065
|
-
zoom: import("
|
|
2065
|
+
zoom: import("../interface").Zoom;
|
|
2066
2066
|
openMenu: "canvas" | null;
|
|
2067
2067
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2068
2068
|
openSidebar: {
|
|
2069
|
-
name: import("
|
|
2070
|
-
tab?: import("
|
|
2069
|
+
name: import("../interface").SidebarName;
|
|
2070
|
+
tab?: import("../interface").SidebarTabName;
|
|
2071
2071
|
} | null;
|
|
2072
2072
|
openDialog: null | {
|
|
2073
2073
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -2080,7 +2080,7 @@ export declare const actionToggleHandTool: {
|
|
|
2080
2080
|
sourceElementId: DrawElement["id"];
|
|
2081
2081
|
};
|
|
2082
2082
|
defaultSidebarDockedPreference: boolean;
|
|
2083
|
-
lastPointerDownWith: import("
|
|
2083
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
2084
2084
|
hoveredElementIds: Readonly<{
|
|
2085
2085
|
[id: string]: true;
|
|
2086
2086
|
}>;
|
|
@@ -2095,23 +2095,23 @@ export declare const actionToggleHandTool: {
|
|
|
2095
2095
|
duration?: number;
|
|
2096
2096
|
} | null;
|
|
2097
2097
|
zenModeEnabled: boolean;
|
|
2098
|
-
theme: import("
|
|
2098
|
+
theme: import("../element/types").Theme;
|
|
2099
2099
|
gridSize: number;
|
|
2100
2100
|
gridStep: number;
|
|
2101
2101
|
gridModeEnabled: boolean;
|
|
2102
2102
|
viewModeEnabled: boolean;
|
|
2103
|
-
editingGroupId: import("
|
|
2103
|
+
editingGroupId: import("../element/types").GroupId | null;
|
|
2104
2104
|
width: number;
|
|
2105
2105
|
height: number;
|
|
2106
2106
|
offsetTop: number;
|
|
2107
2107
|
offsetLeft: number;
|
|
2108
|
-
fileHandle: import("../
|
|
2109
|
-
collaborators: Map<import("
|
|
2108
|
+
fileHandle: import("../libs/browser-fs-access").FileSystemHandle | null;
|
|
2109
|
+
collaborators: Map<import("../interface").SocketId, import("../interface").Collaborator>;
|
|
2110
2110
|
stats: {
|
|
2111
2111
|
open: boolean;
|
|
2112
2112
|
panels: number;
|
|
2113
2113
|
};
|
|
2114
|
-
currentChartType: import("
|
|
2114
|
+
currentChartType: import("../element/types").ChartType;
|
|
2115
2115
|
pasteDialog: {
|
|
2116
2116
|
shown: false;
|
|
2117
2117
|
data: null;
|
|
@@ -2119,25 +2119,25 @@ export declare const actionToggleHandTool: {
|
|
|
2119
2119
|
shown: true;
|
|
2120
2120
|
data: import("../charts").Spreadsheet;
|
|
2121
2121
|
};
|
|
2122
|
-
selectedLinearElement: import("
|
|
2122
|
+
selectedLinearElement: import("../element").LinearElementEditor | null;
|
|
2123
2123
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2124
2124
|
originSnapOffset: {
|
|
2125
2125
|
x: number;
|
|
2126
2126
|
y: number;
|
|
2127
2127
|
} | null;
|
|
2128
2128
|
objectsSnapModeEnabled: boolean;
|
|
2129
|
-
followedBy: Set<import("
|
|
2129
|
+
followedBy: Set<import("../interface").SocketId>;
|
|
2130
2130
|
isCropping: boolean;
|
|
2131
2131
|
croppingElementId: DrawElement["id"] | null;
|
|
2132
2132
|
searchMatches: Readonly<{
|
|
2133
2133
|
focusedId: DrawElement["id"] | null;
|
|
2134
|
-
matches: readonly import("
|
|
2134
|
+
matches: readonly import("../interface").SearchMatch[];
|
|
2135
2135
|
}> | null;
|
|
2136
2136
|
activeLockedId: string | null;
|
|
2137
2137
|
lockedMultiSelections: {
|
|
2138
2138
|
[groupId: string]: true;
|
|
2139
2139
|
};
|
|
2140
|
-
bindMode: import("
|
|
2140
|
+
bindMode: import("../element/types").BindMode;
|
|
2141
2141
|
};
|
|
2142
2142
|
captureUpdate: "IMMEDIATELY";
|
|
2143
2143
|
};
|