@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,25 +1,25 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { applyDarkModeFilter as e } from "
|
|
3
|
-
import { EXPORT_DATA_TYPES as t, FONT_FAMILY as n, FRAME_STYLE as r, MIME_TYPES as i, SVG_NS as a, THEME as o, exportDataTypesCompatibility as s } from "
|
|
4
|
-
import { arrayToMap as c, distance as l, getFontString as u, toBrandedType as d } from "
|
|
5
|
-
import "
|
|
6
|
-
import f from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import "
|
|
15
|
-
import
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { applyDarkModeFilter as e } from "../common/colors.js";
|
|
3
|
+
import { EXPORT_DATA_TYPES as t, FONT_FAMILY as n, FRAME_STYLE as r, MIME_TYPES as i, SVG_NS as a, THEME as o, exportDataTypesCompatibility as s } from "../common/constants.js";
|
|
4
|
+
import { arrayToMap as c, distance as l, getFontString as u, toBrandedType as d } from "../common/utils.js";
|
|
5
|
+
import "../common/index.js";
|
|
6
|
+
import { getDefaultAppState as f } from "../appState.js";
|
|
7
|
+
import p from "../libs/roughjs/rough.js";
|
|
8
|
+
import { isFrameLikeElement as m } from "../element/typeChecks.js";
|
|
9
|
+
import { newElementWith as h } from "../element/mutateElement.js";
|
|
10
|
+
import { getElementsOverlappingFrame as g, getFrameLikeElements as _, getFrameLikeTitle as v, getRootElements as y } from "../element/frame.js";
|
|
11
|
+
import { syncInvalidIndices as b } from "../element/fractionalIndex.js";
|
|
12
|
+
import { getCommonBounds as x, getElementAbsoluteCoords as S } from "../element/bounds.js";
|
|
13
|
+
import { newTextElement as C } from "../element/newElement.js";
|
|
14
|
+
import { getInitializedImageElements as w, updateImageCache as T } from "../element/image.js";
|
|
15
|
+
import "../element/index.js";
|
|
16
16
|
import { base64ToString as E, decode as D, encode as O, stringToBase64 as k } from "../data/encode.js";
|
|
17
17
|
import { serializeAsJSON as A } from "../data/json.js";
|
|
18
18
|
import { Fonts as j } from "../fonts/Fonts.js";
|
|
19
19
|
import "../fonts/index.js";
|
|
20
20
|
import { renderStaticScene as M } from "../renderer/staticScene.js";
|
|
21
21
|
import { renderSceneToSvg as N } from "../renderer/staticSvgScene.js";
|
|
22
|
-
//#region components/pc/draw/
|
|
22
|
+
//#region components/pc/draw/scene/export.ts
|
|
23
23
|
var P = (e, t) => {
|
|
24
24
|
if (e.width <= t) return e;
|
|
25
25
|
let n = document.createElement("canvas").getContext("2d");
|
|
@@ -35,36 +35,36 @@ var P = (e, t) => {
|
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return h(e, {
|
|
39
39
|
text: r,
|
|
40
40
|
width: t
|
|
41
41
|
});
|
|
42
42
|
}, F = (e, t) => {
|
|
43
43
|
let i = [];
|
|
44
44
|
for (let a of e) {
|
|
45
|
-
if (
|
|
46
|
-
let e =
|
|
45
|
+
if (m(a)) {
|
|
46
|
+
let e = C({
|
|
47
47
|
x: a.x,
|
|
48
48
|
y: a.y - r.nameOffsetY,
|
|
49
49
|
fontFamily: n.Helvetica,
|
|
50
50
|
fontSize: r.nameFontSize,
|
|
51
51
|
lineHeight: r.nameLineHeight,
|
|
52
52
|
strokeColor: t.exportWithDarkMode ? r.nameColorDarkTheme : r.nameColorLightTheme,
|
|
53
|
-
text:
|
|
53
|
+
text: v(a)
|
|
54
54
|
});
|
|
55
55
|
e.y -= e.height, e = P(e, a.width), i.push(e);
|
|
56
56
|
}
|
|
57
57
|
i.push(a);
|
|
58
58
|
}
|
|
59
59
|
return i;
|
|
60
|
-
}, I = (e, t) => (t ||=
|
|
60
|
+
}, I = (e, t) => (t ||= f().frameRendering, {
|
|
61
61
|
enabled: e ? !0 : t.enabled,
|
|
62
62
|
outline: e ? !1 : t.outline,
|
|
63
63
|
name: e ? !1 : t.name,
|
|
64
64
|
clip: e ? !0 : t.clip
|
|
65
65
|
}), L = ({ elements: e, exportingFrame: t, frameRendering: n, exportWithDarkMode: r }) => {
|
|
66
66
|
let i;
|
|
67
|
-
return i = t ?
|
|
67
|
+
return i = t ? g(e, t) : n.enabled && n.name ? F(e, { exportWithDarkMode: r }) : e, i;
|
|
68
68
|
}, R = async (e, t, n, { exportBackground: r, exportPadding: i = 10, viewBackgroundColor: a, exportingFrame: s }, l = (e, n) => {
|
|
69
69
|
let r = document.createElement("canvas");
|
|
70
70
|
return r.width = e * t.exportScale, r.height = n * t.exportScale, {
|
|
@@ -75,33 +75,33 @@ var P = (e, t) => {
|
|
|
75
75
|
await j.loadElementsFonts(e);
|
|
76
76
|
}) => {
|
|
77
77
|
await u();
|
|
78
|
-
let
|
|
79
|
-
s && (
|
|
80
|
-
let
|
|
78
|
+
let m = I(s ?? null, t.frameRendering ?? null);
|
|
79
|
+
s && (m.clip = !1);
|
|
80
|
+
let h = L({
|
|
81
81
|
elements: e,
|
|
82
82
|
exportingFrame: s,
|
|
83
83
|
exportWithDarkMode: t.exportWithDarkMode,
|
|
84
|
-
frameRendering:
|
|
84
|
+
frameRendering: m
|
|
85
85
|
});
|
|
86
86
|
s && (i = 0);
|
|
87
|
-
let [
|
|
87
|
+
let [g, _, v, x] = U(s ? [s] : y(h), i), { canvas: S, scale: C = 1 } = l(v, x), E = f(), { imageCache: D } = await T({
|
|
88
88
|
imageCache: /* @__PURE__ */ new Map(),
|
|
89
|
-
fileIds:
|
|
89
|
+
fileIds: w(h).map((e) => e.fileId),
|
|
90
90
|
files: n
|
|
91
91
|
});
|
|
92
92
|
return M({
|
|
93
|
-
canvas:
|
|
94
|
-
rc:
|
|
95
|
-
elementsMap: d(c(
|
|
96
|
-
allElementsMap: d(c(
|
|
97
|
-
visibleElements:
|
|
98
|
-
scale:
|
|
93
|
+
canvas: S,
|
|
94
|
+
rc: p.canvas(S),
|
|
95
|
+
elementsMap: d(c(h)),
|
|
96
|
+
allElementsMap: d(c(b(e))),
|
|
97
|
+
visibleElements: h,
|
|
98
|
+
scale: C,
|
|
99
99
|
appState: {
|
|
100
100
|
...t,
|
|
101
|
-
frameRendering:
|
|
101
|
+
frameRendering: m,
|
|
102
102
|
viewBackgroundColor: r ? a : null,
|
|
103
|
-
scrollX: -
|
|
104
|
-
scrollY: -
|
|
103
|
+
scrollX: -g + i,
|
|
104
|
+
scrollY: -_ + i,
|
|
105
105
|
zoom: E.zoom,
|
|
106
106
|
shouldCacheIgnoreZoom: !1,
|
|
107
107
|
theme: t.exportWithDarkMode ? o.DARK : o.LIGHT
|
|
@@ -116,19 +116,19 @@ var P = (e, t) => {
|
|
|
116
116
|
pendingFlowchartNodes: null,
|
|
117
117
|
theme: t.exportWithDarkMode ? o.DARK : o.LIGHT
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), S;
|
|
120
120
|
}, z = (e) => document.createComment(` ${e} `), B = async (t, n, i, s) => {
|
|
121
|
-
let l = I(s?.exportingFrame ?? null, n.frameRendering ?? null), { exportPadding: u = 10, exportWithDarkMode:
|
|
121
|
+
let l = I(s?.exportingFrame ?? null, n.frameRendering ?? null), { exportPadding: u = 10, exportWithDarkMode: f = !1, viewBackgroundColor: h, exportScale: g = 1, exportEmbedScene: v } = n, { exportingFrame: b = null } = s || {}, x = L({
|
|
122
122
|
elements: t,
|
|
123
123
|
exportingFrame: b,
|
|
124
|
-
exportWithDarkMode:
|
|
124
|
+
exportWithDarkMode: f,
|
|
125
125
|
frameRendering: l
|
|
126
126
|
});
|
|
127
127
|
b && (u = 0);
|
|
128
|
-
let [C, w, T, E] = U(b ? [b] :
|
|
129
|
-
k.setAttribute("version", "1.1"), k.setAttribute("xmlns", a), k.setAttribute("viewBox", `0 0 ${T} ${E}`), k.setAttribute("width", `${T *
|
|
128
|
+
let [C, w, T, E] = U(b ? [b] : y(x), u), D = -C + u, O = -w + u, k = document.createElementNS(a, "svg");
|
|
129
|
+
k.setAttribute("version", "1.1"), k.setAttribute("xmlns", a), k.setAttribute("viewBox", `0 0 ${T} ${E}`), k.setAttribute("width", `${T * g}`), k.setAttribute("height", `${E * g}`);
|
|
130
130
|
let j = k.ownerDocument.createElementNS(a, "defs"), M = k.ownerDocument.createElementNS(a, "metadata");
|
|
131
|
-
if (k.appendChild(z("svg-source:draw")), k.appendChild(M), k.appendChild(j),
|
|
131
|
+
if (k.appendChild(z("svg-source:draw")), k.appendChild(M), k.appendChild(j), v) try {
|
|
132
132
|
V({
|
|
133
133
|
metadataElement: M,
|
|
134
134
|
payload: A(t, n, i || {}, "local")
|
|
@@ -136,33 +136,33 @@ var P = (e, t) => {
|
|
|
136
136
|
} catch (e) {
|
|
137
137
|
console.error(e);
|
|
138
138
|
}
|
|
139
|
-
let P =
|
|
139
|
+
let P = _(t);
|
|
140
140
|
if (P.length) {
|
|
141
141
|
let e = c(t);
|
|
142
142
|
for (let t of P) {
|
|
143
143
|
let n = k.ownerDocument.createElementNS(a, "clipPath");
|
|
144
144
|
n.setAttribute("id", t.id);
|
|
145
|
-
let [i, o, s, c] =
|
|
145
|
+
let [i, o, s, c] = S(t, e), l = (s - i) / 2 - (t.x - i), u = (c - o) / 2 - (t.y - o), d = k.ownerDocument.createElementNS(a, "rect");
|
|
146
146
|
d.setAttribute("transform", `translate(${t.x + D} ${t.y + O}) rotate(${t.angle} ${l} ${u})`), d.setAttribute("width", `${t.width}`), d.setAttribute("height", `${t.height}`), b || (d.setAttribute("rx", `${r.radius}`), d.setAttribute("ry", `${r.radius}`)), n.appendChild(d), j.appendChild(n);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
let F = [], R = "\n ", B = k.ownerDocument.createElementNS(a, "style");
|
|
150
150
|
if (B.classList.add("style-fonts"), B.appendChild(document.createTextNode(`${R}${F.join(R)}`)), j.appendChild(B), n.exportBackground && h) {
|
|
151
151
|
let t = k.ownerDocument.createElementNS(a, "rect");
|
|
152
|
-
t.setAttribute("x", "0"), t.setAttribute("y", "0"), t.setAttribute("width", `${T}`), t.setAttribute("height", `${E}`), t.setAttribute("fill",
|
|
152
|
+
t.setAttribute("x", "0"), t.setAttribute("y", "0"), t.setAttribute("width", `${T}`), t.setAttribute("height", `${E}`), t.setAttribute("fill", f ? e(h) : h), k.appendChild(t);
|
|
153
153
|
}
|
|
154
|
-
let H =
|
|
155
|
-
return N(
|
|
154
|
+
let H = p.svg(k), W = s?.renderEmbeddables ?? !1;
|
|
155
|
+
return N(x, d(c(x)), H, k, i || {}, {
|
|
156
156
|
offsetX: D,
|
|
157
157
|
offsetY: O,
|
|
158
158
|
isExporting: !0,
|
|
159
|
-
exportWithDarkMode:
|
|
159
|
+
exportWithDarkMode: f,
|
|
160
160
|
renderEmbeddables: W,
|
|
161
161
|
frameRendering: l,
|
|
162
162
|
canvasBackgroundColor: h,
|
|
163
|
-
embedsValidationStatus: W ? new Map(
|
|
163
|
+
embedsValidationStatus: W ? new Map(x.filter((e) => m(e)).map((e) => [e.id, !0])) : /* @__PURE__ */ new Map(),
|
|
164
164
|
reuseImages: s?.reuseImages ?? !0,
|
|
165
|
-
theme:
|
|
165
|
+
theme: f ? o.DARK : o.LIGHT
|
|
166
166
|
}), k;
|
|
167
167
|
}, V = ({ payload: e, metadataElement: t }) => {
|
|
168
168
|
let n = k(JSON.stringify(O({ text: e })), !0);
|
|
@@ -185,7 +185,7 @@ var P = (e, t) => {
|
|
|
185
185
|
}
|
|
186
186
|
throw Error("INVALID");
|
|
187
187
|
}, U = (e, t) => {
|
|
188
|
-
let [n, r, i, a] =
|
|
188
|
+
let [n, r, i, a] = x(e);
|
|
189
189
|
return [
|
|
190
190
|
n,
|
|
191
191
|
r,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { canChangeRoundness, canHaveArrowheads, getElementsWithinSelection, getSelectedElements, getTargetElements, hasBackground, hasStrokeStyle, hasStrokeWidth, isSomeElementSelected, } from '
|
|
1
|
+
export { canChangeRoundness, canHaveArrowheads, getElementsWithinSelection, getSelectedElements, getTargetElements, hasBackground, hasStrokeStyle, hasStrokeWidth, isSomeElementSelected, } from '../element';
|
|
2
2
|
export { getNormalizedGridSize, getNormalizedGridStep, getNormalizedZoom, } from './normalize';
|
|
3
3
|
export { calculateScrollCenter } from './scroll';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NormalizedZoomValue } from '
|
|
1
|
+
import type { NormalizedZoomValue } from '../interface';
|
|
2
2
|
export declare const getNormalizedZoom: (zoom: number) => NormalizedZoomValue;
|
|
3
3
|
export declare const getNormalizedGridSize: (gridStep: number) => number;
|
|
4
4
|
export declare const getNormalizedGridStep: (gridStep: number) => number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { clamp as e, round as t } from "../libs/math/utils.js";
|
|
3
|
+
import { MIN_ZOOM as n } from "../common/constants.js";
|
|
4
|
+
import "../libs/math/index.js";
|
|
5
|
+
import "../common/index.js";
|
|
6
|
+
//#region components/pc/draw/scene/normalize.ts
|
|
7
|
+
var r = (r) => e(t(r, 6), n, 30), i = (t) => e(Math.round(t), 1, 100), a = (t) => e(Math.round(t), 1, 100);
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as getNormalizedGridSize, a as getNormalizedGridStep, r as getNormalizedZoom };
|
|
10
|
+
/* 独立思考,明辨是非 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DrawElement } from '
|
|
2
|
-
import type { AppState, Offsets, PointerCoords, Zoom } from '
|
|
1
|
+
import type { DrawElement } from '../element/types';
|
|
2
|
+
import type { AppState, Offsets, PointerCoords, Zoom } from '../interface';
|
|
3
3
|
export declare const centerScrollOn: ({ scenePoint, viewportDimensions, zoom, offsets, }: {
|
|
4
4
|
scenePoint: PointerCoords;
|
|
5
5
|
viewportDimensions: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { sceneCoordsToViewportCoords as e, viewportCoordsToSceneCoords as t } from "
|
|
3
|
-
import "
|
|
4
|
-
import { getClosestElementBounds as n, getCommonBounds as r } from "
|
|
5
|
-
import { getVisibleElements as i } from "
|
|
6
|
-
//#region components/pc/draw/
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { sceneCoordsToViewportCoords as e, viewportCoordsToSceneCoords as t } from "../common/utils.js";
|
|
3
|
+
import "../common/index.js";
|
|
4
|
+
import { getClosestElementBounds as n, getCommonBounds as r } from "../element/bounds.js";
|
|
5
|
+
import { getVisibleElements as i } from "../element/index.js";
|
|
6
|
+
//#region components/pc/draw/scene/scroll.ts
|
|
7
7
|
var a = (t, n) => {
|
|
8
8
|
let [r, i, a, o] = n, { x: s, y: c } = e({
|
|
9
9
|
sceneX: r,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InteractiveCanvasAppState } from '
|
|
1
|
+
import type { InteractiveCanvasAppState } from '../interface';
|
|
2
2
|
import type { RenderableElementsMap, ScrollBars } from './types';
|
|
3
3
|
export declare const SCROLLBAR_MARGIN = 4;
|
|
4
4
|
export declare const SCROLLBAR_WIDTH = 6;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { getGlobalCSSVariable as e } from "
|
|
3
|
-
import "
|
|
4
|
-
import { getCommonBounds as t } from "
|
|
5
|
-
import "
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { getGlobalCSSVariable as e } from "../common/utils.js";
|
|
3
|
+
import "../common/index.js";
|
|
4
|
+
import { getCommonBounds as t } from "../element/bounds.js";
|
|
5
|
+
import "../element/index.js";
|
|
6
6
|
import { getLanguage as n } from "../i18n.js";
|
|
7
7
|
var r = "rgba(0,0,0,0.3)", i = (r, i, a, o) => {
|
|
8
8
|
if (!r.size) return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { EditorInterface } from '
|
|
2
|
-
import { UserIdleState } from '
|
|
3
|
-
import type { MakeBrand } from '
|
|
4
|
-
import type { DrawElement, NonDeletedDrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from '
|
|
5
|
-
import type { AppClassProperties, AppState, ElementsPendingErasure, EmbedsValidationStatus, InteractiveCanvasAppState, PendingDrawElements, SocketId, StaticCanvasAppState } from '
|
|
6
|
-
import type { RoughCanvas } from '
|
|
7
|
-
import type { Drawable } from '
|
|
1
|
+
import type { EditorInterface } from '../common';
|
|
2
|
+
import { UserIdleState } from '../common';
|
|
3
|
+
import type { MakeBrand } from '../common/utility-types';
|
|
4
|
+
import type { DrawElement, NonDeletedDrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from '../element/types';
|
|
5
|
+
import type { AppClassProperties, AppState, ElementsPendingErasure, EmbedsValidationStatus, InteractiveCanvasAppState, PendingDrawElements, SocketId, StaticCanvasAppState } from '../interface';
|
|
6
|
+
import type { RoughCanvas } from '../libs/roughjs/canvas';
|
|
7
|
+
import type { Drawable } from '../libs/roughjs/core';
|
|
8
8
|
export type RenderableElementsMap = NonDeletedElementsMap & MakeBrand<'RenderableElementsMap'>;
|
|
9
9
|
export type StaticCanvasRenderConfig = {
|
|
10
10
|
canvasBackgroundColor: AppState['viewBackgroundColor'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
//#region components/pc/draw/
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/scene/zoom.ts
|
|
3
3
|
var e = ({ viewportX: e, viewportY: t, nextZoom: n }, r) => {
|
|
4
4
|
let i = e - r.offsetLeft, a = t - r.offsetTop, o = r.zoom.value, s = r.scrollX + (i - i / o), c = r.scrollY + (a - a / o), l = -(i - i / n), u = -(a - a / n);
|
|
5
5
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { isDarwin as e } from "
|
|
3
|
-
import "
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { isDarwin as e } from "./common/editorInterface.js";
|
|
3
|
+
import "./common/index.js";
|
|
4
4
|
import { t } from "./i18n.js";
|
|
5
|
-
//#region components/pc/draw/
|
|
5
|
+
//#region components/pc/draw/shortcut.ts
|
|
6
6
|
var n = (n) => n.replace(/\b(Opt(?:ion)?|Alt)\b/i, t(e ? "keys.option" : "keys.alt")).replace(/\bShift\b/i, t("keys.shift")).replace(/\b(Enter|Return)\b/i, t("keys.enter")).replace(/\b(Ctrl|Cmd|Command|CtrlOrCmd)\b/gi, t(e ? "keys.cmd" : "keys.ctrl")).replace(/\b(Esc(?:ape)?)\b/i, t("keys.escape")).replace(/\b(Space(?:bar)?)\b/i, t("keys.spacebar")).replace(/\b(Del(?:ete)?)\b/i, t("keys.delete"));
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as getShortcutKey };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Bounds } from '
|
|
2
|
-
import type { MaybeTransformHandleType } from '
|
|
3
|
-
import type { DrawElement, ElementsMap, NonDeletedDrawElement } from '
|
|
4
|
-
import type { AppClassProperties, AppState, KeyboardModifiersObject } from '
|
|
5
|
-
import type { GlobalPoint, InclusiveRange } from '
|
|
1
|
+
import type { Bounds } from './common';
|
|
2
|
+
import type { MaybeTransformHandleType } from './element';
|
|
3
|
+
import type { DrawElement, ElementsMap, NonDeletedDrawElement } from './element/types';
|
|
4
|
+
import type { AppClassProperties, AppState, KeyboardModifiersObject } from './interface';
|
|
5
|
+
import type { GlobalPoint, InclusiveRange } from './libs/math';
|
|
6
6
|
export declare const getSnapDistance: (zoomValue: number) => number;
|
|
7
7
|
type Vector2D = {
|
|
8
8
|
x: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { TOOL_TYPE as e } from "
|
|
3
|
-
import { KEYS as t } from "
|
|
4
|
-
import { pointFrom as n, pointRotateRads as r } from "
|
|
5
|
-
import { rangeInclusive as i, rangeIntersection as a, rangesOverlap as o } from "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import { isBoundToContainer as s } from "
|
|
9
|
-
import { getSelectedElements as c, getVisibleAndNonSelectedElements as l } from "
|
|
10
|
-
import { getMaximumGroups as u } from "
|
|
11
|
-
import { getCommonBounds as d, getDraggedElementsBounds as f, getElementAbsoluteCoords as p } from "
|
|
12
|
-
import "
|
|
13
|
-
//#region components/pc/draw/
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { TOOL_TYPE as e } from "./common/constants.js";
|
|
3
|
+
import { KEYS as t } from "./common/keys.js";
|
|
4
|
+
import { pointFrom as n, pointRotateRads as r } from "./libs/math/point.js";
|
|
5
|
+
import { rangeInclusive as i, rangeIntersection as a, rangesOverlap as o } from "./libs/math/range.js";
|
|
6
|
+
import "./libs/math/index.js";
|
|
7
|
+
import "./common/index.js";
|
|
8
|
+
import { isBoundToContainer as s } from "./element/typeChecks.js";
|
|
9
|
+
import { getSelectedElements as c, getVisibleAndNonSelectedElements as l } from "./element/selection.js";
|
|
10
|
+
import { getMaximumGroups as u } from "./element/groups.js";
|
|
11
|
+
import { getCommonBounds as d, getDraggedElementsBounds as f, getElementAbsoluteCoords as p } from "./element/bounds.js";
|
|
12
|
+
import "./element/index.js";
|
|
13
|
+
//#region components/pc/draw/snapping.ts
|
|
14
14
|
var m = 8, h = 99999, g = (e) => m / e, _ = class e {
|
|
15
15
|
static #e = null;
|
|
16
16
|
static #t = null;
|
|
@@ -540,5 +540,5 @@ var m = 8, h = 99999, g = (e) => m / e, _ = class e {
|
|
|
540
540
|
};
|
|
541
541
|
}, I = (t) => t === e.rectangle || t === e.ellipse || t === e.diamond || t === e.frame || t === e.magicframe || t === e.image || t === e.text;
|
|
542
542
|
//#endregion
|
|
543
|
-
export { _ as SnapCache, T as getReferenceSnapPoints, F as getSnapLinesAtPointer, C as getVisibleGaps, I as isActiveToolNonLinearSnappable, v as isGridModeEnabled, y as isSnappingEnabled, D as snapDraggedElements, P as snapNewElement, N as snapResizingElements };
|
|
543
|
+
export { _ as SnapCache, b as areRoughlyEqual, x as getElementsCorners, T as getReferenceSnapPoints, g as getSnapDistance, F as getSnapLinesAtPointer, C as getVisibleGaps, I as isActiveToolNonLinearSnappable, v as isGridModeEnabled, y as isSnappingEnabled, D as snapDraggedElements, P as snapNewElement, N as snapResizingElements };
|
|
544
544
|
/* 独立思考,明辨是非 */
|
package/draw/style/index.js
CHANGED
package/draw/utils/bbox.js
CHANGED
package/draw/utils/export.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MIME_TYPES } from '../common';
|
|
2
|
-
import { serializeAsJSON } from '../
|
|
2
|
+
import { serializeAsJSON } from '../data/json';
|
|
3
3
|
import type { DrawElement, DrawFrameLikeElement, NonDeleted } from '../element/types';
|
|
4
4
|
import type { AppState, BinaryFiles } from '../interface';
|
|
5
5
|
export { MIME_TYPES };
|
package/draw/utils/export.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
2
|
import { MIME_TYPES as e } from "../common/constants.js";
|
|
3
3
|
import "../common/index.js";
|
|
4
|
-
import { getDefaultAppState as t } from "../
|
|
5
|
-
import { serializeAsJSON as n } from "../
|
|
6
|
-
import { exportToCanvas as r, exportToSvg as i } from "../
|
|
7
|
-
import { encodePngMetadata as a } from "../
|
|
8
|
-
import { restoreAppState as o, restoreElements as s } from "../
|
|
9
|
-
import { copyBlobToClipboardAsPng as c, copyTextToSystemClipboard as l, copyToClipboard as u } from "../
|
|
4
|
+
import { getDefaultAppState as t } from "../appState.js";
|
|
5
|
+
import { serializeAsJSON as n } from "../data/json.js";
|
|
6
|
+
import { exportToCanvas as r, exportToSvg as i } from "../scene/export.js";
|
|
7
|
+
import { encodePngMetadata as a } from "../data/image.js";
|
|
8
|
+
import { restoreAppState as o, restoreElements as s } from "../data/restore.js";
|
|
9
|
+
import { copyBlobToClipboardAsPng as c, copyTextToSystemClipboard as l, copyToClipboard as u } from "../clipboard.js";
|
|
10
10
|
//#region components/pc/draw/utils/export.ts
|
|
11
11
|
var d = ({ elements: e, appState: t, files: n, maxWidthOrHeight: i, getDimensions: a, exportPadding: c, exportingFrame: l }) => {
|
|
12
12
|
let u = s(e, null, { deleteInvisibleElements: !0 }), d = o(t, null), { exportBackground: f, viewBackgroundColor: p } = d;
|
package/draw/utils/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
2
|
import "../common/constants.js";
|
|
3
3
|
import "./bbox.js";
|
|
4
4
|
import "./withinBounds.js";
|
|
5
5
|
import "../element/bounds.js";
|
|
6
6
|
import "../element/index.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../data/json.js";
|
|
8
8
|
import "./export.js";
|
|
9
9
|
//#region components/pc/draw/utils/index.ts
|
|
10
10
|
function e() {
|
package/draw/utils/shape.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
2
|
import { vector as e, vectorAdd as t, vectorFromPoint as n } from "../libs/math/vector.js";
|
|
3
3
|
import { pointFrom as r, pointFromArray as i, pointFromVector as a, pointRotateRads as o } from "../libs/math/point.js";
|
|
4
4
|
import { curve as s } from "../libs/math/curve.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
2
|
import { pointFrom as e, pointRotateRads as t } from "../libs/math/point.js";
|
|
3
3
|
import { rangeIncludesValue as n, rangeInclusive as r } from "../libs/math/range.js";
|
|
4
4
|
import "../libs/math/index.js";
|
package/draw/workers.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { debounce as e } from "./common/utils.js";
|
|
3
|
+
import "./common/index.js";
|
|
4
|
+
import { WorkerInTheMainChunkError as t, WorkerUrlNotDefinedError as n } from "./errors.js";
|
|
5
|
+
//#region components/pc/draw/workers.ts
|
|
6
|
+
var r = class {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
this.instance = new Worker(e, { type: "module" });
|
|
9
|
+
}
|
|
10
|
+
}, i = class i {
|
|
11
|
+
#e = /* @__PURE__ */ new Set();
|
|
12
|
+
#t;
|
|
13
|
+
#n;
|
|
14
|
+
constructor(e, t) {
|
|
15
|
+
this.#t = e, this.#n = t.ttl || 1e3;
|
|
16
|
+
}
|
|
17
|
+
static create(e, r = {}) {
|
|
18
|
+
if (!e) throw new n();
|
|
19
|
+
if (!import.meta.url || e.toString() === import.meta.url) throw new t();
|
|
20
|
+
return new i(e, r);
|
|
21
|
+
}
|
|
22
|
+
async postMessage(e, t) {
|
|
23
|
+
let n, r = Array.from(this.#e).shift();
|
|
24
|
+
return r ? (this.#e.delete(r), n = r) : n = await this.#r(), new Promise((r, i) => {
|
|
25
|
+
n.instance.onmessage = this.#i(n, r), n.instance.onerror = this.#a(n, i), n.instance.postMessage(e, t), n.debounceTerminate(() => i(/* @__PURE__ */ Error(`Active worker did not respond for ${this.#n}ms!`)));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async clear() {
|
|
29
|
+
for (let e of this.#e) e.debounceTerminate.cancel(), e.instance.terminate();
|
|
30
|
+
this.#e.clear();
|
|
31
|
+
}
|
|
32
|
+
async #r() {
|
|
33
|
+
let t = new r(this.#t);
|
|
34
|
+
return t.debounceTerminate = e((e) => {
|
|
35
|
+
t.instance.terminate(), this.#e.has(t) ? (this.#e.delete(t), console.debug("Job finished! Idle worker has been released from the pool.")) : e ? e() : console.error("Worker has been terminated!");
|
|
36
|
+
}, this.#n), t;
|
|
37
|
+
}
|
|
38
|
+
#i(e, t) {
|
|
39
|
+
return (n) => {
|
|
40
|
+
e.debounceTerminate(), this.#e.add(e), t(n.data);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
#a(e, t) {
|
|
44
|
+
return (n) => {
|
|
45
|
+
e.debounceTerminate(() => t(n)), e.debounceTerminate.flush(), this.clear();
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { i as WorkerPool };
|
|
51
|
+
/* 独立思考,明辨是非 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DrawElement, DrawTextElement } from '../../element/types';
|
|
2
1
|
import type App from '../components/App';
|
|
2
|
+
import type { DrawElement, DrawTextElement } from '../element/types';
|
|
3
3
|
type SubmitHandler = () => void;
|
|
4
4
|
export declare const textWysiwyg: ({ id, onChange, onSubmit, getViewportCoords, element, canvas, drawContainer, app, autoSelect, }: {
|
|
5
5
|
id: DrawElement["id"];
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { applyDarkModeFilter as e } from "
|
|
3
|
-
import { CLASSES as t, MIME_TYPES as n, POINTER_BUTTON as r, THEME as i } from "
|
|
4
|
-
import { CODES as a, KEYS as o } from "
|
|
5
|
-
import { getFontFamilyString as s, getFontString as c, isTestEnv as l, isWritableElement as u } from "
|
|
6
|
-
import "
|
|
7
|
-
import { isArrowElement as d, isBoundToContainer as f, isTextElement as p } from "
|
|
8
|
-
import { originalContainerCache as ee, updateOriginalContainerCache as m } from "
|
|
9
|
-
import { getTextWidth as h, normalizeText as g } from "
|
|
10
|
-
import { wrapText as _ } from "
|
|
11
|
-
import { computeBoundTextPosition as te, computeContainerDimensionForBoundText as v, getBoundTextElement as y, getBoundTextElementId as b, getBoundTextMaxHeight as ne, getBoundTextMaxWidth as x, getContainerElement as S, getTextElementAngle as re, getTextFromElements as C, redrawTextBoundingBox as w } from "
|
|
12
|
-
import { bumpVersion as T } from "
|
|
13
|
-
import { updateBoundElements as E } from "
|
|
14
|
-
import { LinearElementEditor as ie } from "
|
|
15
|
-
import "
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
|
+
import { applyDarkModeFilter as e } from "../common/colors.js";
|
|
3
|
+
import { CLASSES as t, MIME_TYPES as n, POINTER_BUTTON as r, THEME as i } from "../common/constants.js";
|
|
4
|
+
import { CODES as a, KEYS as o } from "../common/keys.js";
|
|
5
|
+
import { getFontFamilyString as s, getFontString as c, isTestEnv as l, isWritableElement as u } from "../common/utils.js";
|
|
6
|
+
import "../common/index.js";
|
|
7
|
+
import { isArrowElement as d, isBoundToContainer as f, isTextElement as p } from "../element/typeChecks.js";
|
|
8
|
+
import { originalContainerCache as ee, updateOriginalContainerCache as m } from "../element/containerCache.js";
|
|
9
|
+
import { getTextWidth as h, normalizeText as g } from "../element/textMeasurements.js";
|
|
10
|
+
import { wrapText as _ } from "../element/textWrapping.js";
|
|
11
|
+
import { computeBoundTextPosition as te, computeContainerDimensionForBoundText as v, getBoundTextElement as y, getBoundTextElementId as b, getBoundTextMaxHeight as ne, getBoundTextMaxWidth as x, getContainerElement as S, getTextElementAngle as re, getTextFromElements as C, redrawTextBoundingBox as w } from "../element/textElement.js";
|
|
12
|
+
import { bumpVersion as T } from "../element/mutateElement.js";
|
|
13
|
+
import { updateBoundElements as E } from "../element/binding.js";
|
|
14
|
+
import { LinearElementEditor as ie } from "../element/linearElementEditor.js";
|
|
15
|
+
import "../element/index.js";
|
|
16
16
|
import { parseClipboard as D, parseDataTransferEvent as O, parseDataTransferEventMimeTypes as ae } from "../clipboard.js";
|
|
17
17
|
import { actionDecreaseFontSize as k, actionIncreaseFontSize as A } from "../actions/actionProperties.js";
|
|
18
18
|
import { actionResetZoom as j, actionZoomIn as M, actionZoomOut as N } from "../actions/actionCanvas.js";
|
|
19
19
|
import { actionSaveToActiveFile as P } from "../actions/actionExport.js";
|
|
20
20
|
import "../actions/index.js";
|
|
21
|
-
//#region components/pc/draw/
|
|
21
|
+
//#region components/pc/draw/wysiwyg/textWysiwyg.tsx
|
|
22
22
|
var oe = (e, t, n, r, i, a) => {
|
|
23
23
|
let { zoom: o } = r, s = 180 * n / Math.PI, c = e * (o.value - 1) / 2, l = t * (o.value - 1) / 2;
|
|
24
24
|
return e > i && o.value !== 1 && (c = i * (o.value - 1) / 2), t > a && o.value !== 1 && (l = a * (o.value - 1) / 2), `translate(${c}px, ${l}px) scale(${o.value}) rotate(${s}deg)`;
|
package/drawer/Drawer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
|
|
2
2
|
import { isFunction as e, isHTMLElement as t, isNaN as n, isNull as r, isServerRendering as ee, isUndefined as i } from "../utils/is.js";
|
|
3
3
|
import { Esc as te } from "../utils/keyboardCode.js";
|
|
4
4
|
import { dom_exports as a } from "../utils/dom.js";
|
package/drawer/constants.js
CHANGED
package/drawer/context.js
CHANGED
package/drawer/index.js
CHANGED
package/drawer/style/index.js
CHANGED