@unicom-cloud/ui 0.8.168 → 0.8.169
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.d.ts +1 -3
- package/affix/Affix.js +67 -64
- package/affix/constants.js +2 -0
- package/affix/context.d.ts +3 -0
- package/affix/context.js +7 -0
- package/affix/index.d.ts +4 -3
- package/affix/index.js +9 -4
- package/affix/interface.d.ts +2 -2
- package/affix/style/index.css +1 -0
- package/affix/style/index.d.ts +1 -0
- package/affix/style/index.js +3 -0
- package/alert/Alert.js +58 -57
- package/alert/constants.js +2 -0
- package/alert/context.d.ts +3 -0
- package/alert/context.js +10 -0
- package/alert/index.d.ts +3 -0
- package/alert/index.js +9 -4
- package/alert/style/index.css +1 -0
- package/alert/style/index.d.ts +1 -0
- package/alert/style/index.js +3 -0
- package/anchor/Anchor.js +48 -55
- package/anchor/Link.js +2 -2
- package/anchor/constants.js +2 -0
- package/anchor/context.d.ts +3 -2
- package/anchor/context.js +12 -3
- package/anchor/index.d.ts +4 -1
- package/anchor/index.js +10 -7
- package/anchor/style/index.css +1 -0
- package/anchor/style/index.d.ts +2 -0
- package/anchor/style/index.js +4 -0
- package/anchor/utils.js +1 -1
- package/animation/Animation.js +18 -14
- package/animation/constants.js +2 -0
- package/animation/context.d.ts +3 -0
- package/animation/context.js +7 -0
- package/animation/index.d.ts +2 -0
- package/animation/index.js +10 -5
- package/animation/style/index.d.ts +1 -0
- package/animation/style/index.js +3 -0
- package/app/App.js +25 -27
- package/app/constants.js +2 -0
- package/app/context.d.ts +4 -3
- package/app/context.js +5 -4
- package/app/index.d.ts +2 -1
- package/app/index.js +9 -7
- package/app/style/index.css +1 -0
- package/app/style/index.d.ts +1 -0
- package/app/style/index.js +3 -0
- package/app/useApp.js +2 -2
- package/auto-complete/AutoComplete.js +58 -54
- package/auto-complete/constants.d.ts +0 -0
- package/auto-complete/constants.js +2 -0
- package/auto-complete/context.d.ts +3 -0
- package/auto-complete/context.js +7 -0
- package/auto-complete/index.d.ts +2 -0
- package/auto-complete/index.js +9 -6
- package/auto-complete/style/index.css +1 -0
- package/auto-complete/style/index.d.ts +3 -0
- package/auto-complete/style/index.js +5 -0
- package/avatar/Avatar.d.ts +1 -3
- package/avatar/Avatar.js +49 -53
- package/avatar/Group.js +3 -3
- package/avatar/constants.d.ts +0 -0
- package/avatar/constants.js +2 -0
- package/avatar/context.d.ts +3 -2
- package/avatar/context.js +7 -3
- package/avatar/index.d.ts +4 -4
- package/avatar/index.js +9 -7
- package/avatar/interface.d.ts +2 -2
- package/avatar/style/index.css +1 -0
- package/avatar/style/index.d.ts +2 -0
- package/avatar/style/index.js +4 -0
- package/back-top/BackTop.d.ts +1 -3
- package/back-top/BackTop.js +44 -44
- package/back-top/constants.d.ts +0 -0
- package/back-top/constants.js +2 -0
- package/back-top/context.d.ts +3 -0
- package/back-top/context.js +11 -0
- package/back-top/index.d.ts +3 -3
- package/back-top/index.js +9 -4
- package/back-top/interface.d.ts +2 -2
- package/back-top/style/index.css +1 -0
- package/back-top/style/index.d.ts +1 -0
- package/back-top/style/index.js +3 -0
- package/badge/Badge.js +84 -85
- package/badge/Count.js +2 -2
- package/badge/constants.d.ts +0 -0
- package/badge/constants.js +2 -0
- package/badge/context.d.ts +3 -0
- package/badge/context.js +11 -0
- package/badge/index.d.ts +2 -0
- package/badge/index.js +10 -7
- package/badge/style/index.css +1 -0
- package/badge/style/index.d.ts +1 -0
- package/badge/style/index.js +3 -0
- package/badge/utils.js +1 -1
- package/border-beam/BorderBeam.js +20 -17
- package/border-beam/constants.d.ts +0 -0
- package/border-beam/constants.js +2 -0
- package/border-beam/context.d.ts +3 -0
- package/border-beam/context.js +7 -0
- package/border-beam/index.d.ts +2 -0
- package/border-beam/index.js +12 -7
- package/border-beam/style/index.css +1 -0
- package/border-beam/style/index.d.ts +1 -0
- package/border-beam/style/index.js +3 -0
- package/breadcrumb/Breadcrumb.js +46 -44
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/constants.d.ts +0 -0
- package/breadcrumb/constants.js +2 -0
- package/breadcrumb/context.d.ts +2 -0
- package/breadcrumb/context.js +5 -4
- package/breadcrumb/index.d.ts +2 -0
- package/breadcrumb/index.js +9 -7
- package/breadcrumb/style/index.css +1 -0
- package/breadcrumb/style/index.d.ts +2 -0
- package/breadcrumb/style/index.js +4 -0
- package/button/Button.js +48 -49
- package/button/Group.js +1 -1
- package/button/Toggle.js +1 -1
- package/button/constants.d.ts +0 -0
- package/button/constants.js +2 -0
- package/button/context.d.ts +9 -0
- package/button/context.js +11 -0
- package/button/index.d.ts +8 -0
- package/button/index.js +11 -8
- package/button/style/index.css +1 -0
- package/button/style/index.d.ts +1 -0
- package/button/style/index.js +3 -0
- package/calendar/Calendar.js +92 -95
- package/calendar/Month.js +4 -4
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +2 -2
- package/calendar/constants.d.ts +0 -0
- package/calendar/constants.js +2 -0
- package/calendar/context.d.ts +3 -0
- package/calendar/context.js +13 -0
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +3 -3
- package/calendar/hooks/useCellClassName.js +34 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +11 -8
- package/calendar/style/index.css +1 -0
- package/calendar/style/index.d.ts +3 -0
- package/calendar/style/index.js +5 -0
- package/card/Card.js +48 -48
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/constants.d.ts +0 -0
- package/card/constants.js +2 -0
- package/card/context.d.ts +3 -0
- package/card/context.js +10 -0
- package/card/index.d.ts +2 -0
- package/card/index.js +7 -4
- package/card/style/index.css +1 -0
- package/card/style/index.d.ts +2 -0
- package/card/style/index.js +4 -0
- package/carousel/Arrow.js +1 -1
- package/carousel/Carousel.js +82 -87
- package/carousel/Indicator.js +1 -1
- package/carousel/constants.d.ts +0 -0
- package/carousel/constants.js +2 -0
- package/carousel/context.d.ts +3 -0
- package/carousel/context.js +16 -0
- package/carousel/index.d.ts +2 -0
- package/carousel/index.js +9 -4
- package/carousel/style/index.css +1 -0
- package/carousel/style/index.d.ts +1 -0
- package/carousel/style/index.js +3 -0
- package/cascader/Cascader.js +151 -155
- package/cascader/base/node.js +2 -2
- package/cascader/base/store.js +1 -1
- package/cascader/constants.d.ts +7 -0
- package/cascader/constants.js +13 -0
- package/cascader/context.d.ts +3 -0
- package/cascader/context.js +17 -0
- package/cascader/hooks/useRefCurrent.js +14 -0
- package/cascader/index.d.ts +2 -0
- package/cascader/index.js +9 -4
- package/cascader/panel/List.js +28 -28
- package/cascader/panel/Option.js +2 -2
- package/cascader/panel/Search.js +16 -16
- package/cascader/style/index.css +1 -0
- package/cascader/style/index.d.ts +5 -0
- package/cascader/style/index.js +7 -0
- package/cascader/utils.d.ts +0 -7
- package/cascader/utils.js +25 -32
- package/checkbox/Checkbox.js +17 -14
- package/checkbox/Group.js +4 -4
- package/checkbox/GroupBlock.js +3 -3
- package/checkbox/constants.d.ts +0 -0
- package/checkbox/constants.js +2 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/context.js +3 -3
- package/checkbox/index.d.ts +2 -0
- package/checkbox/index.js +13 -11
- package/checkbox/style/index.css +1 -0
- package/checkbox/style/index.d.ts +1 -0
- package/checkbox/style/index.js +3 -0
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +45 -47
- package/collapse/Item.js +2 -2
- package/collapse/constants.d.ts +0 -0
- package/collapse/constants.js +2 -0
- package/collapse/context.d.ts +2 -0
- package/collapse/context.js +8 -3
- package/collapse/index.d.ts +2 -0
- package/collapse/index.js +9 -7
- package/collapse/style/index.css +1 -0
- package/collapse/style/index.d.ts +1 -0
- package/collapse/style/index.js +3 -0
- package/collapse/utils.js +1 -1
- package/color-picker/ColorPicker.js +79 -80
- 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 +74 -74
- package/color-picker/colors.js +1 -1
- package/color-picker/constants.d.ts +0 -0
- package/color-picker/constants.js +2 -0
- package/color-picker/context.d.ts +3 -0
- package/color-picker/context.js +11 -0
- package/color-picker/hooks/useColorPicker.d.ts +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.d.ts +2 -0
- package/color-picker/index.js +19 -16
- package/color-picker/interface.js +1 -1
- package/color-picker/style/index.css +1 -0
- package/color-picker/style/index.d.ts +3 -0
- package/color-picker/style/index.js +5 -0
- package/color-picker/utils.d.ts +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/Comment.js +52 -48
- package/comment/constants.d.ts +0 -0
- package/comment/constants.js +2 -0
- package/comment/context.d.ts +3 -0
- package/comment/context.js +7 -0
- package/comment/index.d.ts +2 -0
- package/comment/index.js +9 -4
- package/comment/style/index.css +1 -0
- package/comment/style/index.d.ts +1 -0
- package/comment/style/index.js +3 -0
- package/config-provider/ConfigProvider.js +11 -11
- package/config-provider/constants.d.ts +0 -0
- package/config-provider/constants.js +2 -0
- package/config-provider/context.d.ts +21 -0
- package/config-provider/context.js +4 -4
- package/config-provider/index.d.ts +1 -0
- package/config-provider/index.js +2 -1
- package/config-provider/initUI.js +1 -1
- package/config-provider/interface.d.ts +6 -0
- package/config-provider/style/index.d.ts +1 -0
- package/config-provider/style/index.js +3 -0
- package/config-provider/useConfigProvider.js +2 -2
- package/config-provider/utils.js +2 -2
- package/constants/index.d.ts +2 -0
- package/constants/index.js +6 -0
- package/copy/Copy.d.ts +1 -1
- package/copy/Copy.js +37 -35
- package/copy/constants.d.ts +0 -0
- package/copy/constants.js +2 -0
- package/copy/context.d.ts +3 -0
- package/copy/context.js +7 -0
- package/copy/index.d.ts +2 -0
- package/copy/index.js +9 -4
- package/copy/style/index.css +1 -0
- package/copy/style/index.d.ts +2 -0
- package/copy/style/index.js +4 -0
- package/countdown/Countdown.js +43 -42
- package/countdown/constants.d.ts +0 -0
- package/countdown/constants.js +2 -0
- package/countdown/context.d.ts +3 -0
- package/countdown/context.js +10 -0
- package/countdown/index.d.ts +2 -0
- package/countdown/index.js +9 -4
- package/countdown/style/index.css +1 -0
- package/countdown/style/index.d.ts +2 -0
- package/countdown/style/index.js +4 -0
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.d.ts +6 -5
- package/date-picker/DatePicker.js +5 -5
- package/date-picker/Picker.js +208 -211
- package/date-picker/Range.d.ts +3 -0
- package/date-picker/Range.js +404 -0
- package/date-picker/constants.d.ts +0 -0
- package/date-picker/constants.js +2 -0
- package/date-picker/context.d.ts +4 -2
- package/date-picker/context.js +9 -3
- package/date-picker/hooks/useCellClassName.js +53 -0
- package/date-picker/index.d.ts +4 -2
- package/date-picker/index.js +13 -18
- package/date-picker/panel/Body.js +2 -2
- package/date-picker/panel/Footer.js +4 -4
- package/date-picker/panel/Header.js +2 -2
- package/date-picker/panel/Shortcut.d.ts +1 -1
- package/date-picker/panel/Shortcut.js +2 -2
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +3 -3
- package/date-picker/panel/month/index.js +2 -2
- package/date-picker/panel/quarter/index.js +2 -2
- package/date-picker/panel/range/index.js +2 -2
- package/date-picker/panel/week/index.js +2 -2
- package/date-picker/panel/year/index.js +3 -3
- package/date-picker/style/index.css +1 -0
- package/date-picker/style/index.d.ts +6 -0
- package/date-picker/style/index.js +8 -0
- package/date-picker/utils.js +2 -2
- package/descriptions/Descriptions.js +83 -83
- package/descriptions/constants.d.ts +0 -0
- package/descriptions/constants.js +2 -0
- package/descriptions/context.d.ts +3 -0
- package/descriptions/context.js +11 -0
- package/descriptions/index.d.ts +2 -0
- package/descriptions/index.js +9 -4
- package/descriptions/style/index.css +1 -0
- package/descriptions/style/index.d.ts +1 -0
- package/descriptions/style/index.js +3 -0
- package/details/Details.js +57 -54
- package/details/constants.d.ts +0 -0
- package/details/constants.js +2 -0
- package/details/context.d.ts +3 -0
- package/details/context.js +7 -0
- package/details/index.d.ts +2 -0
- package/details/index.js +9 -4
- package/details/style/index.css +1 -0
- package/details/style/index.d.ts +1 -0
- package/details/style/index.js +3 -0
- package/development/Development.js +25 -20
- package/development/constants.d.ts +0 -0
- package/development/constants.js +2 -0
- package/development/context.d.ts +3 -0
- package/development/context.js +7 -0
- package/development/index.d.ts +2 -0
- package/development/index.js +9 -4
- package/development/style/index.css +1 -0
- package/development/style/index.d.ts +1 -0
- package/development/style/index.js +3 -0
- package/divider/Divider.js +34 -34
- package/divider/constants.d.ts +0 -0
- package/divider/constants.js +2 -0
- package/divider/context.d.ts +3 -0
- package/divider/context.js +10 -0
- package/divider/index.d.ts +2 -0
- package/divider/index.js +8 -5
- package/divider/style/index.css +1 -0
- package/divider/style/index.d.ts +1 -0
- package/divider/style/index.js +3 -0
- package/draggable/Draggable.js +27 -22
- package/draggable/Item.js +1 -1
- package/draggable/constants.d.ts +0 -0
- package/draggable/constants.js +2 -0
- package/draggable/context.d.ts +3 -0
- package/draggable/context.js +7 -0
- package/draggable/index.d.ts +2 -0
- package/draggable/index.js +9 -6
- package/draggable/style/index.css +1 -0
- package/draggable/style/index.d.ts +1 -0
- package/draggable/style/index.js +3 -0
- package/draw/Draw.d.ts +3 -1
- package/draw/Draw.js +102 -31
- package/draw/LICENSE +20 -0
- package/draw/common/binary-heap.d.ts +12 -0
- package/draw/common/binary-heap.js +52 -0
- package/draw/common/bounds.d.ts +10 -0
- package/draw/common/bounds.js +3 -0
- package/draw/common/colors.d.ts +21 -0
- package/draw/common/colors.js +109 -0
- package/draw/common/constants.d.ts +345 -0
- package/draw/common/constants.js +218 -0
- package/draw/common/editorInterface.d.ts +34 -0
- package/draw/common/editorInterface.js +39 -0
- package/draw/common/emitter.d.ts +16 -0
- package/draw/common/emitter.js +31 -0
- package/draw/common/font-metadata.d.ts +43 -0
- package/draw/common/font-metadata.js +94 -0
- package/draw/common/index.d.ts +14 -0
- package/draw/common/index.js +16 -0
- package/draw/common/keys.d.ts +187 -0
- package/draw/common/keys.js +87 -0
- package/draw/common/points.d.ts +9 -0
- package/draw/common/points.js +22 -0
- package/draw/common/promise-pool.d.ts +5 -0
- package/draw/common/promise-pool.js +24 -0
- package/draw/common/queue.d.ts +7 -0
- package/draw/common/queue.js +25 -0
- package/draw/common/random.d.ts +3 -0
- package/draw/common/random.js +9 -0
- package/draw/common/url.d.ts +7 -0
- package/draw/common/url.js +16 -0
- package/draw/common/utility-types.d.ts +37 -0
- package/draw/common/utils.d.ts +281 -0
- package/draw/common/utils.js +227 -0
- package/draw/constants.d.ts +1 -0
- package/draw/constants.js +6 -0
- package/draw/context.d.ts +3 -0
- package/draw/context.js +7 -0
- package/draw/core/actions/actionAddToLibrary.d.ts +467 -0
- package/draw/core/actions/actionAddToLibrary.js +50 -0
- package/draw/core/actions/actionAlign.d.ts +109 -0
- package/draw/core/actions/actionAlign.js +159 -0
- package/draw/core/actions/actionBoundText.d.ts +348 -0
- package/draw/core/actions/actionBoundText.js +160 -0
- package/draw/core/actions/actionCanvas.d.ts +2147 -0
- package/draw/core/actions/actionCanvas.js +332 -0
- package/draw/core/actions/actionClipboard.d.ts +387 -0
- package/draw/core/actions/actionClipboard.js +197 -0
- package/draw/core/actions/actionCropEditor.d.ts +168 -0
- package/draw/core/actions/actionCropEditor.js +48 -0
- package/draw/core/actions/actionDeleteSelected.d.ts +503 -0
- package/draw/core/actions/actionDeleteSelected.js +144 -0
- package/draw/core/actions/actionDistribute.d.ts +34 -0
- package/draw/core/actions/actionDistribute.js +68 -0
- package/draw/core/actions/actionDuplicateSelection.d.ts +17 -0
- package/draw/core/actions/actionDuplicateSelection.js +78 -0
- package/draw/core/actions/actionElementLink.d.ts +192 -0
- package/draw/core/actions/actionElementLink.js +79 -0
- package/draw/core/actions/actionElementLock.d.ts +335 -0
- package/draw/core/actions/actionElementLock.js +103 -0
- package/draw/core/actions/actionEmbeddable.d.ts +165 -0
- package/draw/core/actions/actionEmbeddable.js +29 -0
- package/draw/core/actions/actionExport.d.ts +341 -0
- package/draw/core/actions/actionExport.js +232 -0
- package/draw/core/actions/actionFinalize.d.ts +13 -0
- package/draw/core/actions/actionFinalize.js +143 -0
- package/draw/core/actions/actionFlip.d.ts +34 -0
- package/draw/core/actions/actionFlip.js +82 -0
- package/draw/core/actions/actionFrame.d.ts +1127 -0
- package/draw/core/actions/actionFrame.js +138 -0
- package/draw/core/actions/actionGroup.d.ts +338 -0
- package/draw/core/actions/actionGroup.js +130 -0
- package/draw/core/actions/actionHistory.d.ts +9 -0
- package/draw/core/actions/actionHistory.js +44 -0
- package/draw/core/actions/actionLinearEditor.d.ts +664 -0
- package/draw/core/actions/actionLinearEditor.js +104 -0
- package/draw/core/actions/actionMenu.d.ts +160 -0
- package/draw/core/actions/actionMenu.js +32 -0
- package/draw/core/actions/actionProperties.d.ts +384 -0
- package/draw/core/actions/actionProperties.js +792 -0
- package/draw/core/actions/actionSelectAll.d.ts +165 -0
- package/draw/core/actions/actionSelectAll.js +39 -0
- package/draw/core/actions/actionStyles.d.ts +183 -0
- package/draw/core/actions/actionStyles.js +93 -0
- package/draw/core/actions/actionTextAutoResize.d.ts +17 -0
- package/draw/core/actions/actionTextAutoResize.js +44 -0
- package/draw/core/actions/actionToggleGridMode.d.ts +171 -0
- package/draw/core/actions/actionToggleGridMode.js +37 -0
- package/draw/core/actions/actionToggleObjectsSnapMode.d.ts +169 -0
- package/draw/core/actions/actionToggleObjectsSnapMode.js +34 -0
- package/draw/core/actions/actionToggleSearchMenu.d.ts +164 -0
- package/draw/core/actions/actionToggleSearchMenu.js +45 -0
- package/draw/core/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/draw/core/actions/actionToggleStats.d.ts +168 -0
- package/draw/core/actions/actionToggleStats.js +37 -0
- package/draw/core/actions/actionToggleViewMode.d.ts +169 -0
- package/draw/core/actions/actionToggleViewMode.js +34 -0
- package/draw/core/actions/actionToggleZenMode.d.ts +169 -0
- package/draw/core/actions/actionToggleZenMode.js +34 -0
- package/draw/core/actions/actionZindex.d.ts +74 -0
- package/draw/core/actions/actionZindex.js +107 -0
- package/draw/core/actions/index.d.ts +26 -0
- package/draw/core/actions/index.js +28 -0
- package/draw/core/actions/manager.d.ts +21 -0
- package/draw/core/actions/manager.js +64 -0
- package/draw/core/actions/register.d.ts +5 -0
- package/draw/core/actions/register.js +6 -0
- package/draw/core/actions/shortcuts.d.ts +4 -0
- package/draw/core/actions/shortcuts.js +58 -0
- package/draw/core/actions/types.d.ts +47 -0
- package/draw/core/analytics.d.ts +1 -0
- package/draw/core/analytics.js +19 -0
- package/draw/core/animated-trail.d.ts +32 -0
- package/draw/core/animated-trail.js +83 -0
- package/draw/core/animation-frame-handler.d.ts +11 -0
- package/draw/core/animation-frame-handler.js +51 -0
- package/draw/core/appState.d.ts +101 -0
- package/draw/core/appState.js +569 -0
- package/draw/core/charts.d.ts +27 -0
- package/draw/core/charts.js +263 -0
- package/draw/core/clients.d.ts +14 -0
- package/draw/core/clients.js +38 -0
- package/draw/core/clipboard.d.ts +107 -0
- package/draw/core/clipboard.js +250 -0
- package/draw/core/components/Actions.d.ts +28 -0
- package/draw/core/components/Actions.js +493 -0
- package/draw/core/components/ActiveConfirmDialog.d.ts +4 -0
- package/draw/core/components/ActiveConfirmDialog.js +32 -0
- package/draw/core/components/App.d.ts +363 -0
- package/draw/core/components/App.js +4076 -0
- package/draw/core/components/BraveMeasureTextError.d.ts +2 -0
- package/draw/core/components/BraveMeasureTextError.js +23 -0
- package/draw/core/components/ButtonIconCycle.d.ts +11 -0
- package/draw/core/components/ButtonSeparator.d.ts +1 -0
- package/draw/core/components/ContextMenu.d.ts +14 -0
- package/draw/core/components/ContextMenu.js +59 -0
- package/draw/core/components/ConvertElementTypePopup.d.ts +22 -0
- package/draw/core/components/ConvertElementTypePopup.js +318 -0
- package/draw/core/components/DarkModeToggle.d.ts +6 -0
- package/draw/core/components/DarkModeToggle.js +22 -0
- package/draw/core/components/DiagramToCodePlugin/index.d.ts +4 -0
- package/draw/core/components/DiagramToCodePlugin/index.js +13 -0
- package/draw/core/components/ElementCanvasButtons.d.ts +6 -0
- package/draw/core/components/ElementCanvasButtons.js +34 -0
- package/draw/core/components/ElementLinkDialog.d.ts +11 -0
- package/draw/core/components/ElementLinkDialog.js +112 -0
- package/draw/core/components/Ellipsify.d.ts +3 -0
- package/draw/core/components/Ellipsify.js +16 -0
- package/draw/core/components/ErrorDialog.d.ts +5 -0
- package/draw/core/components/ErrorDialog.js +36 -0
- package/draw/core/components/ExportDialog.d.ts +14 -0
- package/draw/core/components/ExportDialog.js +34 -0
- package/draw/core/components/EyeDropper.d.ts +25 -0
- package/draw/core/components/EyeDropper.js +84 -0
- package/draw/core/components/FixedSideContainer.d.ts +8 -0
- package/draw/core/components/FixedSideContainer.js +12 -0
- package/draw/core/components/Footer.d.ts +13 -0
- package/draw/core/components/Footer.js +118 -0
- package/draw/core/components/HandButton.d.ts +9 -0
- package/draw/core/components/HandButton.js +26 -0
- package/draw/core/components/HelpDialog.d.ts +2 -0
- package/draw/core/components/HelpDialog.js +407 -0
- package/draw/core/components/HintViewer.d.ts +10 -0
- package/draw/core/components/HintViewer.js +96 -0
- package/draw/core/components/ImageExportDialog.d.ts +14 -0
- package/draw/core/components/ImageExportDialog.js +243 -0
- package/draw/core/components/InitializeApp.d.ts +10 -0
- package/draw/core/components/InitializeApp.js +25 -0
- package/draw/core/components/InlineIcon.d.ts +5 -0
- package/draw/core/components/InlineIcon.js +19 -0
- package/draw/core/components/Island.d.ts +9 -0
- package/draw/core/components/Island.js +17 -0
- package/draw/core/components/LaserPointerButton.d.ts +9 -0
- package/draw/core/components/LaserPointerButton.js +24 -0
- package/draw/core/components/LayerUI.d.ts +30 -0
- package/draw/core/components/LayerUI.js +373 -0
- package/draw/core/components/LibraryMenu.d.ts +9 -0
- package/draw/core/components/LibraryMenu.js +133 -0
- package/draw/core/components/LibraryMenuItems.d.ts +14 -0
- package/draw/core/components/LibraryMenuItems.js +274 -0
- package/draw/core/components/LibraryMenuSection.d.ts +23 -0
- package/draw/core/components/LibraryMenuSection.js +37 -0
- package/draw/core/components/LibraryUnit.d.ts +13 -0
- package/draw/core/components/LibraryUnit.js +52 -0
- package/draw/core/components/LinkButton.d.ts +4 -0
- package/draw/core/components/LoadingMessage.d.ts +5 -0
- package/draw/core/components/LoadingMessage.js +32 -0
- package/draw/core/components/LockButton.d.ts +9 -0
- package/draw/core/components/LockButton.js +25 -0
- package/draw/core/components/MagicButton.d.ts +9 -0
- package/draw/core/components/MagicButton.js +22 -0
- package/draw/core/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/draw/core/components/OverwriteConfirm/OverwriteConfirmState.js +22 -0
- package/draw/core/components/OverwriteConfirm/index.d.ts +4 -0
- package/draw/core/components/OverwriteConfirm/index.js +94 -0
- package/draw/core/components/PasteChartDialog.d.ts +7 -0
- package/draw/core/components/PasteChartDialog.js +78 -0
- package/draw/core/components/PenModeButton.d.ts +11 -0
- package/draw/core/components/PenModeButton.js +23 -0
- package/draw/core/components/Popover.d.ts +15 -0
- package/draw/core/components/Popover.js +58 -0
- package/draw/core/components/ProjectName.d.ts +9 -0
- package/draw/core/components/ProjectName.js +39 -0
- package/draw/core/components/Range.d.ts +7 -0
- package/draw/core/components/Range.js +37 -0
- package/draw/core/components/SVGLayer.d.ts +6 -0
- package/draw/core/components/SVGLayer.js +19 -0
- package/draw/core/components/ScrollableList.d.ts +7 -0
- package/draw/core/components/SearchMenu.d.ts +4 -0
- package/draw/core/components/SearchMenu.js +381 -0
- package/draw/core/components/Stack.d.ts +14 -0
- package/draw/core/components/Stack.js +31 -0
- package/draw/core/components/Stats/Angle.d.ts +11 -0
- package/draw/core/components/Stats/Angle.js +45 -0
- package/draw/core/components/Stats/CanvasGrid.d.ts +10 -0
- package/draw/core/components/Stats/CanvasGrid.js +25 -0
- package/draw/core/components/Stats/Collapsible.d.ts +10 -0
- package/draw/core/components/Stats/Collapsible.js +26 -0
- package/draw/core/components/Stats/Dimension.d.ts +11 -0
- package/draw/core/components/Stats/Dimension.js +106 -0
- package/draw/core/components/Stats/DragInput.d.ts +43 -0
- package/draw/core/components/Stats/DragInput.js +133 -0
- package/draw/core/components/Stats/FontSize.d.ts +11 -0
- package/draw/core/components/Stats/FontSize.js +38 -0
- package/draw/core/components/Stats/MultiAngle.d.ts +11 -0
- package/draw/core/components/Stats/MultiAngle.js +53 -0
- package/draw/core/components/Stats/MultiDimension.d.ts +14 -0
- package/draw/core/components/Stats/MultiDimension.js +125 -0
- package/draw/core/components/Stats/MultiFontSize.d.ts +12 -0
- package/draw/core/components/Stats/MultiFontSize.js +51 -0
- package/draw/core/components/Stats/MultiPosition.d.ts +14 -0
- package/draw/core/components/Stats/MultiPosition.js +73 -0
- package/draw/core/components/Stats/Position.d.ts +12 -0
- package/draw/core/components/Stats/Position.js +67 -0
- package/draw/core/components/Stats/index.d.ts +34 -0
- package/draw/core/components/Stats/index.js +263 -0
- package/draw/core/components/Stats/utils.d.ts +19 -0
- package/draw/core/components/Stats/utils.js +67 -0
- package/draw/core/components/Toast.d.ts +6 -0
- package/draw/core/components/Toast.js +21 -0
- package/draw/core/components/Tooltip.d.ts +7 -0
- package/draw/core/components/Trans.d.ts +7 -0
- package/draw/core/components/Trans.js +33 -0
- package/draw/core/components/UnlockPopup.d.ts +7 -0
- package/draw/core/components/UnlockPopup.js +46 -0
- package/draw/core/components/canvases/InteractiveCanvas.d.ts +33 -0
- package/draw/core/components/canvases/InteractiveCanvas.js +119 -0
- package/draw/core/components/canvases/NewElementCanvas.d.ts +14 -0
- package/draw/core/components/canvases/NewElementCanvas.js +33 -0
- package/draw/core/components/canvases/StaticCanvas.d.ts +19 -0
- package/draw/core/components/canvases/StaticCanvas.js +64 -0
- package/draw/core/components/canvases/index.d.ts +3 -0
- package/draw/core/components/canvases/index.js +4 -0
- package/draw/core/components/context.d.ts +29 -0
- package/draw/core/components/context.js +43 -0
- package/draw/core/components/hoc/withInternalFallback.d.ts +4 -0
- package/draw/core/components/hooks.d.ts +23 -0
- package/draw/core/components/hooks.js +10 -0
- package/draw/core/components/icons.d.ts +62 -0
- package/draw/core/components/icons.js +584 -0
- package/draw/core/components/main-menu/DefaultItems.d.ts +38 -0
- package/draw/core/components/main-menu/DefaultItems.js +145 -0
- package/draw/core/components/main-menu/MenuItem.d.ts +24 -0
- package/draw/core/components/main-menu/MenuItem.js +55 -0
- package/draw/core/components/main-menu/common.d.ts +6 -0
- package/draw/core/components/main-menu/common.js +20 -0
- package/draw/core/components/shapes.d.ts +190 -0
- package/draw/core/components/shapes.js +96 -0
- package/draw/core/context/tunnels.d.ts +132 -0
- package/draw/core/context/tunnels.js +30 -0
- package/draw/core/context/ui-appState.d.ts +4 -0
- package/draw/core/context/ui-appState.js +7 -0
- package/draw/core/cursor.d.ts +5 -0
- package/draw/core/cursor.js +28 -0
- package/draw/core/data/EditorLocalStorage.d.ts +8 -0
- package/draw/core/data/ai/types.d.ts +242 -0
- package/draw/core/data/blob.d.ts +357 -0
- package/draw/core/data/blob.js +171 -0
- package/draw/core/data/encode.d.ts +55 -0
- package/draw/core/data/encode.js +38 -0
- package/draw/core/data/encryption.d.ts +9 -0
- package/draw/core/data/encryption.js +4 -0
- package/draw/core/data/filesystem.d.ts +21 -0
- package/draw/core/data/filesystem.js +44 -0
- package/draw/core/data/image.d.ts +9 -0
- package/draw/core/data/image.js +35 -0
- package/draw/core/data/index.d.ts +3 -0
- package/draw/core/data/index.js +5 -0
- package/draw/core/data/json.d.ts +168 -0
- package/draw/core/data/json.js +51 -0
- package/draw/core/data/library.d.ts +116 -0
- package/draw/core/data/library.js +279 -0
- package/draw/core/data/reconcile.d.ts +7 -0
- package/draw/core/data/reconcile.js +32 -0
- package/draw/core/data/resave.d.ts +5 -0
- package/draw/core/data/resave.js +23 -0
- package/draw/core/data/restore.d.ts +39 -0
- package/draw/core/data/restore.js +331 -0
- package/draw/core/data/types.d.ts +48 -0
- package/draw/core/data/utils.d.ts +20 -0
- package/draw/core/data/utils.js +84 -0
- package/draw/core/deburr.d.ts +1 -0
- package/draw/core/deburr.js +197 -0
- package/draw/core/editor-jotai.d.ts +7 -0
- package/draw/core/editor-jotai.js +11 -0
- package/draw/core/eraser/index.d.ts +10 -0
- package/draw/core/eraser/index.js +109 -0
- package/draw/core/errors.d.ts +43 -0
- package/draw/core/errors.js +22 -0
- package/draw/core/fonts/DrawFontFace.d.ts +8 -0
- package/draw/core/fonts/DrawFontFace.js +29 -0
- package/draw/core/fonts/Fonts.d.ts +42 -0
- package/draw/core/fonts/Fonts.js +100 -0
- package/draw/core/fonts/index.d.ts +1 -0
- package/draw/core/fonts/index.js +3 -0
- package/draw/core/gesture.d.ts +6 -0
- package/draw/core/gesture.js +12 -0
- package/draw/core/history.d.ts +46 -0
- package/draw/core/history.js +90 -0
- package/draw/core/hooks/useCallbackRefState.d.ts +1 -0
- package/draw/core/hooks/useCopiedIndicator.d.ts +5 -0
- package/draw/core/hooks/useCopiedIndicator.js +20 -0
- package/draw/core/hooks/useCreatePortalContainer.d.ts +4 -0
- package/draw/core/hooks/useCreatePortalContainer.js +28 -0
- package/draw/core/hooks/useEmitter.d.ts +2 -0
- package/draw/core/hooks/useEmitter.js +17 -0
- package/draw/core/hooks/useLibraryItemSvg.d.ts +11 -0
- package/draw/core/hooks/useLibraryItemSvg.js +52 -0
- package/draw/core/hooks/useOutsideClick.d.ts +21 -0
- package/draw/core/hooks/useOutsideClick.js +28 -0
- package/draw/core/hooks/useScrollPosition.d.ts +1 -0
- package/draw/core/hooks/useScrollPosition.js +23 -0
- package/draw/core/hooks/useStable.d.ts +1 -0
- package/draw/core/hooks/useStable.js +10 -0
- package/draw/core/hooks/useStableCallback.d.ts +4 -0
- package/draw/core/hooks/useTextEditorFocus.d.ts +14 -0
- package/draw/core/hooks/useTextEditorFocus.js +39 -0
- package/draw/core/hooks/useTransition.d.ts +2 -0
- package/draw/core/hooks/useTransition.js +10 -0
- package/draw/core/i18n.d.ts +24 -0
- package/draw/core/i18n.js +40 -0
- package/draw/core/laser-trails.d.ts +17 -0
- package/draw/core/laser-trails.js +60 -0
- package/draw/core/lasso/index.d.ts +11 -0
- package/draw/core/lasso/index.js +104 -0
- package/draw/core/lasso/utils.d.ts +13 -0
- package/draw/core/lasso/utils.js +41 -0
- package/draw/core/locales/percentages.json.js +62 -0
- package/draw/core/locales/zh-CN.json.js +704 -0
- package/draw/core/mermaid.d.ts +1 -0
- package/draw/core/polyfill.d.ts +2 -0
- package/draw/core/polyfill.js +6 -0
- package/draw/core/reactUtils.d.ts +14 -0
- package/draw/core/reactUtils.js +24 -0
- package/draw/core/renderer/animation.d.ts +10 -0
- package/draw/core/renderer/animation.js +43 -0
- package/draw/core/renderer/helpers.d.ts +16 -0
- package/draw/core/renderer/helpers.js +16 -0
- package/draw/core/renderer/interactiveScene.d.ts +14 -0
- package/draw/core/renderer/interactiveScene.js +392 -0
- package/draw/core/renderer/renderNewElementScene.d.ts +7 -0
- package/draw/core/renderer/renderNewElementScene.js +40 -0
- package/draw/core/renderer/renderSnaps.d.ts +2 -0
- package/draw/core/renderer/renderSnaps.js +39 -0
- package/draw/core/renderer/roundRect.d.ts +11 -0
- package/draw/core/renderer/roundRect.js +8 -0
- package/draw/core/renderer/staticScene.d.ts +14 -0
- package/draw/core/renderer/staticScene.js +106 -0
- package/draw/core/renderer/staticSvgScene.d.ts +5 -0
- package/draw/core/renderer/staticSvgScene.js +200 -0
- package/draw/core/scene/Renderer.d.ts +30 -0
- package/draw/core/scene/Renderer.js +55 -0
- package/draw/core/scene/export.d.ts +35 -0
- package/draw/core/scene/export.js +198 -0
- package/draw/core/scene/index.d.ts +3 -0
- package/draw/core/scene/index.js +7 -0
- package/draw/core/scene/normalize.d.ts +4 -0
- package/draw/core/scene/normalize.js +10 -0
- package/draw/core/scene/scroll.d.ts +18 -0
- package/draw/core/scene/scroll.js +52 -0
- package/draw/core/scene/scrollbars.d.ts +11 -0
- package/draw/core/scene/scrollbars.js +44 -0
- package/draw/core/scene/types.d.ts +138 -0
- package/draw/core/scene/zoom.d.ts +12 -0
- package/draw/core/scene/zoom.js +13 -0
- package/draw/core/shortcut.d.ts +1 -0
- package/draw/core/shortcut.js +9 -0
- package/draw/core/snapping.d.ts +109 -0
- package/draw/core/snapping.js +544 -0
- package/draw/core/workers.d.ts +28 -0
- package/draw/core/wysiwyg/textWysiwyg.d.ts +24 -0
- package/draw/core/wysiwyg/textWysiwyg.js +223 -0
- package/draw/element/Scene.d.ts +66 -0
- package/draw/element/Scene.js +157 -0
- package/draw/element/align.d.ts +8 -0
- package/draw/element/align.js +36 -0
- package/draw/element/arrows/focus.d.ts +27 -0
- package/draw/element/arrows/focus.js +142 -0
- package/draw/element/arrows/helpers.d.ts +6 -0
- package/draw/element/arrows/helpers.js +16 -0
- package/draw/element/binding.d.ts +128 -0
- package/draw/element/binding.js +550 -0
- package/draw/element/bounds.d.ts +79 -0
- package/draw/element/bounds.js +492 -0
- package/draw/element/collision.d.ts +37 -0
- package/draw/element/collision.js +179 -0
- package/draw/element/comparisons.d.ts +8 -0
- package/draw/element/comparisons.js +6 -0
- package/draw/element/containerCache.d.ts +11 -0
- package/draw/element/containerCache.js +11 -0
- package/draw/element/cropElement.d.ts +19 -0
- package/draw/element/cropElement.js +165 -0
- package/draw/element/delta.d.ts +166 -0
- package/draw/element/delta.js +544 -0
- package/draw/element/distance.d.ts +3 -0
- package/draw/element/distance.js +41 -0
- package/draw/element/distribute.d.ts +8 -0
- package/draw/element/distribute.js +53 -0
- package/draw/element/dragElements.d.ts +33 -0
- package/draw/element/dragElements.js +93 -0
- package/draw/element/duplicate.d.ts +63 -0
- package/draw/element/duplicate.js +107 -0
- package/draw/element/elbowArrow.d.ts +16 -0
- package/draw/element/elbowArrow.js +555 -0
- package/draw/element/elementLink.d.ts +13 -0
- package/draw/element/elementLink.js +50 -0
- package/draw/element/embeddable.d.ts +6 -0
- package/draw/element/embeddable.js +58 -0
- package/draw/element/flowchart.d.ts +22 -0
- package/draw/element/flowchart.js +246 -0
- package/draw/element/fractionalIndex.d.ts +57 -0
- package/draw/element/fractionalIndex.js +102 -0
- package/draw/element/frame.d.ts +74 -0
- package/draw/element/frame.js +194 -0
- package/draw/element/groups.d.ts +34 -0
- package/draw/element/groups.js +137 -0
- package/draw/element/heading.d.ts +16 -0
- package/draw/element/heading.js +38 -0
- package/draw/element/image.d.ts +22 -0
- package/draw/element/image.js +59 -0
- package/draw/element/index.d.ts +58 -0
- package/draw/element/index.js +65 -0
- package/draw/element/is.d.ts +2 -0
- package/draw/element/is.js +6 -0
- package/draw/element/linearElementEditor.d.ts +114 -0
- package/draw/element/linearElementEditor.js +602 -0
- package/draw/element/mutateElement.d.ts +23 -0
- package/draw/element/mutateElement.js +68 -0
- package/draw/element/newElement.d.ts +62 -0
- package/draw/element/newElement.js +165 -0
- package/draw/element/positionElementsOnGrid.d.ts +2 -0
- package/draw/element/positionElementsOnGrid.js +47 -0
- package/draw/element/renderElement.d.ts +25 -0
- package/draw/element/renderElement.js +235 -0
- package/draw/element/resizeElements.d.ts +32 -0
- package/draw/element/resizeElements.js +401 -0
- package/draw/element/resizeTest.d.ts +15 -0
- package/draw/element/resizeTest.js +93 -0
- package/draw/element/selection.d.ts +474 -0
- package/draw/element/selection.js +75 -0
- package/draw/element/shape.d.ts +41 -0
- package/draw/element/shape.js +366 -0
- package/draw/element/showSelectedShapeActions.d.ts +3 -0
- package/draw/element/showSelectedShapeActions.js +7 -0
- package/draw/element/sizeHelpers.d.ts +35 -0
- package/draw/element/sizeHelpers.js +74 -0
- package/draw/element/sortElements.d.ts +2 -0
- package/draw/element/sortElements.js +31 -0
- package/draw/element/store.d.ts +196 -0
- package/draw/element/store.js +332 -0
- package/draw/element/textElement.d.ts +40 -0
- package/draw/element/textElement.js +131 -0
- package/draw/element/textMeasurements.d.ts +39 -0
- package/draw/element/textMeasurements.js +66 -0
- package/draw/element/textWrapping.d.ts +13 -0
- package/draw/element/textWrapping.js +149 -0
- package/draw/element/transform.d.ts +81 -0
- package/draw/element/transform.js +288 -0
- package/draw/element/transformHandles.d.ts +35 -0
- package/draw/element/transformHandles.js +67 -0
- package/draw/element/typeChecks.d.ts +54 -0
- package/draw/element/typeChecks.js +30 -0
- package/draw/element/types.d.ts +291 -0
- package/draw/element/utils.d.ts +33 -0
- package/draw/element/utils.js +137 -0
- package/draw/element/visualdebug.d.ts +58 -0
- package/draw/element/zindex.d.ts +13 -0
- package/draw/element/zindex.js +149 -0
- package/draw/index.d.ts +48 -2
- package/draw/index.js +63 -4
- package/draw/interface.d.ts +707 -1
- package/draw/libs/browser-fs-access/directory-open.d.mts +5 -0
- package/draw/libs/browser-fs-access/directory-open.js +12 -0
- package/draw/libs/browser-fs-access/file-open.d.mts +5 -0
- package/draw/libs/browser-fs-access/file-open.js +12 -0
- package/draw/libs/browser-fs-access/file-save.d.mts +5 -0
- package/draw/libs/browser-fs-access/file-save.js +12 -0
- package/draw/libs/browser-fs-access/fs-access/directory-open.d.mts +8 -0
- package/draw/libs/browser-fs-access/fs-access/directory-open.js +25 -0
- package/draw/libs/browser-fs-access/fs-access/file-open.d.mts +2 -0
- package/draw/libs/browser-fs-access/fs-access/file-open.js +28 -0
- package/draw/libs/browser-fs-access/fs-access/file-save.d.mts +2 -0
- package/draw/libs/browser-fs-access/fs-access/file-save.js +31 -0
- package/draw/libs/browser-fs-access/index.d.ts +10 -0
- package/draw/libs/browser-fs-access/index.js +28 -0
- package/draw/libs/browser-fs-access/legacy/directory-open.d.mts +8 -0
- package/draw/libs/browser-fs-access/legacy/directory-open.js +18 -0
- package/draw/libs/browser-fs-access/legacy/file-open.d.mts +2 -0
- package/draw/libs/browser-fs-access/legacy/file-open.js +15 -0
- package/draw/libs/browser-fs-access/legacy/file-save.d.mts +2 -0
- package/draw/libs/browser-fs-access/legacy/file-save.js +31 -0
- package/draw/libs/browser-fs-access/supported.d.mts +22 -0
- package/draw/libs/browser-fs-access/supported.js +14 -0
- package/draw/libs/canvas-roundrect-polyfill/LICENSE +21 -0
- package/draw/libs/canvas-roundrect-polyfill/index.d.ts +2 -0
- package/draw/libs/canvas-roundrect-polyfill/index.js +74 -0
- package/draw/libs/fractional-indexing/index.d.ts +23 -0
- package/draw/libs/fractional-indexing/index.js +110 -0
- package/draw/libs/fuzzy/index.d.ts +10 -0
- package/draw/libs/fuzzy/index.js +40 -0
- package/draw/libs/glur/LICENSE +20 -0
- package/draw/libs/glur/index.d.ts +2 -0
- package/draw/libs/glur/index.js +37 -0
- package/draw/libs/glur/mono16.d.ts +2 -0
- package/draw/libs/glur/mono16.js +33 -0
- package/draw/libs/hachure-fill/index.d.ts +4 -0
- package/draw/libs/hachure-fill/index.js +79 -0
- package/draw/libs/image-blob-reduce/index.d.ts +36 -0
- package/draw/libs/image-blob-reduce/index.js +96 -0
- package/draw/libs/image-blob-reduce/lib/image_traverse.d.ts +6 -0
- package/draw/libs/image-blob-reduce/lib/image_traverse.js +212 -0
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.d.ts +11 -0
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +57 -0
- package/draw/libs/image-blob-reduce/lib/utils.d.ts +14 -0
- package/draw/libs/image-blob-reduce/lib/utils.js +21 -0
- package/draw/libs/jotai/index.d.ts +2 -0
- package/draw/libs/jotai/index.js +24 -0
- package/draw/libs/jotai/react/Provider.d.ts +16 -0
- package/draw/libs/jotai/react/Provider.js +16 -0
- package/draw/libs/jotai/react/useAtom.d.ts +13 -0
- package/draw/libs/jotai/react/useAtom.js +10 -0
- package/draw/libs/jotai/react/useAtomValue.d.ts +9 -0
- package/draw/libs/jotai/react/useAtomValue.js +73 -0
- package/draw/libs/jotai/react/useSetAtom.d.ts +7 -0
- package/draw/libs/jotai/react/useSetAtom.js +11 -0
- package/draw/libs/jotai/react/utils/useAtomCallback.d.ts +5 -0
- package/draw/libs/jotai/react/utils/useAtomCallback.js +4 -0
- package/draw/libs/jotai/react/utils/useHydrateAtoms.d.ts +14 -0
- package/draw/libs/jotai/react/utils/useHydrateAtoms.js +16 -0
- package/draw/libs/jotai/react/utils/useReducerAtom.d.ts +14 -0
- package/draw/libs/jotai/react/utils/useReducerAtom.js +4 -0
- package/draw/libs/jotai/react/utils/useResetAtom.d.ts +6 -0
- package/draw/libs/jotai/react/utils/useResetAtom.js +5 -0
- package/draw/libs/jotai/react/utils.d.ts +4 -0
- package/draw/libs/jotai/react/utils.js +6 -0
- package/draw/libs/jotai/react.d.ts +4 -0
- package/draw/libs/jotai/react.js +6 -0
- package/draw/libs/jotai/utils.d.ts +2 -0
- package/draw/libs/jotai/utils.js +6 -0
- package/draw/libs/jotai/vanilla/atom.d.ts +47 -0
- package/draw/libs/jotai/vanilla/atom.js +18 -0
- package/draw/libs/jotai/vanilla/internals.d.ts +165 -0
- package/draw/libs/jotai/vanilla/internals.js +303 -0
- package/draw/libs/jotai/vanilla/store.d.ts +5 -0
- package/draw/libs/jotai/vanilla/store.js +17 -0
- package/draw/libs/jotai/vanilla/typeUtils.d.ts +7 -0
- package/draw/libs/jotai/vanilla/utils/atomFamily.d.ts +55 -0
- package/draw/libs/jotai/vanilla/utils/atomFamily.js +3 -0
- package/draw/libs/jotai/vanilla/utils/atomWithDefault.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/atomWithLazy.d.ts +2 -0
- package/draw/libs/jotai/vanilla/utils/atomWithObservable.d.ts +32 -0
- package/draw/libs/jotai/vanilla/utils/atomWithReducer.d.ts +3 -0
- package/draw/libs/jotai/vanilla/utils/atomWithRefresh.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/atomWithReset.d.ts +8 -0
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.d.ts +50 -0
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +53 -0
- package/draw/libs/jotai/vanilla/utils/constants.d.ts +1 -0
- package/draw/libs/jotai/vanilla/utils/freezeAtom.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/loadable.d.ts +33 -0
- package/draw/libs/jotai/vanilla/utils/selectAtom.d.ts +2 -0
- package/draw/libs/jotai/vanilla/utils/splitAtom.d.ts +16 -0
- package/draw/libs/jotai/vanilla/utils/unwrap.d.ts +5 -0
- package/draw/libs/jotai/vanilla/utils.d.ts +14 -0
- package/draw/libs/jotai/vanilla/utils.js +4 -0
- package/draw/libs/jotai/vanilla.d.ts +4 -0
- package/draw/libs/jotai-scope/ScopeProvider/index.d.ts +27 -0
- package/draw/libs/jotai-scope/ScopeProvider/index.js +47 -0
- package/draw/libs/jotai-scope/ScopeProvider/scope.d.ts +16 -0
- package/draw/libs/jotai-scope/ScopeProvider/scope.js +264 -0
- package/draw/libs/jotai-scope/createIsolation.d.ts +19 -0
- package/draw/libs/jotai-scope/createIsolation.js +50 -0
- package/draw/libs/jotai-scope/index.d.ts +3 -0
- package/draw/libs/jotai-scope/index.js +14 -0
- package/draw/libs/jotai-scope/types.d.ts +53 -0
- package/draw/libs/jotai-scope/utils.d.ts +6 -0
- package/draw/libs/jotai-scope/utils.js +12 -0
- package/draw/libs/laser-pointer/index.d.ts +2 -0
- package/draw/libs/laser-pointer/index.js +8 -0
- package/draw/libs/laser-pointer/math.d.ts +16 -0
- package/draw/libs/laser-pointer/math.js +72 -0
- package/draw/libs/laser-pointer/simplify.d.ts +2 -0
- package/draw/libs/laser-pointer/simplify.js +29 -0
- package/draw/libs/laser-pointer/state.d.ts +31 -0
- package/draw/libs/laser-pointer/state.js +155 -0
- package/draw/libs/markdown-to-text/index.d.ts +20 -0
- package/draw/libs/markdown-to-text/index.js +17 -0
- package/draw/libs/math/angle.d.ts +19 -0
- package/draw/libs/math/angle.js +24 -0
- package/draw/libs/math/constants.d.ts +3 -0
- package/draw/libs/math/constants.js +56 -0
- package/draw/libs/math/curve.d.ts +74 -0
- package/draw/libs/math/curve.js +126 -0
- package/draw/libs/math/ellipse.d.ts +44 -0
- package/draw/libs/math/ellipse.js +44 -0
- package/draw/libs/math/index.d.ts +13 -0
- package/draw/libs/math/index.js +105 -0
- package/draw/libs/math/line.d.ts +17 -0
- package/draw/libs/math/line.js +17 -0
- package/draw/libs/math/point.d.ts +122 -0
- package/draw/libs/math/point.js +48 -0
- package/draw/libs/math/polygon.d.ts +6 -0
- package/draw/libs/math/polygon.js +42 -0
- package/draw/libs/math/range.d.ts +42 -0
- package/draw/libs/math/range.js +17 -0
- package/draw/libs/math/rectangle.d.ts +5 -0
- package/draw/libs/math/rectangle.js +25 -0
- package/draw/libs/math/segment.d.ts +40 -0
- package/draw/libs/math/segment.js +38 -0
- package/draw/libs/math/triangle.d.ts +11 -0
- package/draw/libs/math/triangle.js +9 -0
- package/draw/libs/math/types.d.ts +106 -0
- package/draw/libs/math/utils.d.ts +7 -0
- package/draw/libs/math/utils.js +12 -0
- package/draw/libs/math/vector.d.ts +94 -0
- package/draw/libs/math/vector.js +41 -0
- package/draw/libs/multimath/index.d.ts +21 -0
- package/draw/libs/multimath/index.js +66 -0
- package/draw/libs/multimath/lib/base64decode.d.ts +1 -0
- package/draw/libs/multimath/lib/base64decode.js +8 -0
- package/draw/libs/multimath/lib/wa_detect.d.ts +1 -0
- package/draw/libs/multimath/lib/wa_detect.js +68 -0
- package/draw/libs/nanoid/index.d.ts +5 -0
- package/draw/libs/nanoid/index.js +23 -0
- package/draw/libs/nanoid/nanoid.d.ts +1 -0
- package/draw/libs/nanoid/url-alphabet/index.d.ts +1 -0
- package/draw/libs/nanoid/url-alphabet/index.js +6 -0
- package/draw/libs/pako/index.d.ts +323 -0
- package/draw/libs/pako/index.js +1445 -0
- package/draw/libs/path-data-parser/absolutize.d.ts +2 -0
- package/draw/libs/path-data-parser/absolutize.js +140 -0
- package/draw/libs/path-data-parser/index.d.ts +3 -0
- package/draw/libs/path-data-parser/index.js +15 -0
- package/draw/libs/path-data-parser/normalize.d.ts +2 -0
- package/draw/libs/path-data-parser/normalize.js +168 -0
- package/draw/libs/path-data-parser/parser.d.ts +6 -0
- package/draw/libs/path-data-parser/parser.js +90 -0
- package/draw/libs/perfect-freehand/getStroke.d.ts +20 -0
- package/draw/libs/perfect-freehand/getStroke.js +10 -0
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.d.ts +16 -0
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +73 -0
- package/draw/libs/perfect-freehand/getStrokePoints.d.ts +20 -0
- package/draw/libs/perfect-freehand/getStrokePoints.js +45 -0
- package/draw/libs/perfect-freehand/getStrokeRadius.d.ts +9 -0
- package/draw/libs/perfect-freehand/getStrokeRadius.js +8 -0
- package/draw/libs/perfect-freehand/index.d.ts +6 -0
- package/draw/libs/perfect-freehand/index.js +15 -0
- package/draw/libs/perfect-freehand/types.d.ts +42 -0
- package/draw/libs/perfect-freehand/vec.d.ts +117 -0
- package/draw/libs/perfect-freehand/vec.js +54 -0
- package/draw/libs/pica/index.d.ts +29 -0
- package/draw/libs/pica/index.js +250 -0
- package/draw/libs/pica/lib/mathlib.d.ts +10 -0
- package/draw/libs/pica/lib/mathlib.js +22 -0
- package/draw/libs/pica/lib/mm_resize/convolve.d.ts +11 -0
- package/draw/libs/pica/lib/mm_resize/convolve.js +51 -0
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.d.ts +2 -0
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +6 -0
- package/draw/libs/pica/lib/mm_resize/index.d.ts +11 -0
- package/draw/libs/pica/lib/mm_resize/index.js +14 -0
- package/draw/libs/pica/lib/mm_resize/resize.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize.js +23 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +24 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_info.d.ts +45 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_info.js +58 -0
- package/draw/libs/pica/lib/mm_resize/resize_wasm.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize_wasm.js +46 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/index.d.ts +10 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/index.js +14 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.d.ts +1 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +19 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.d.ts +1 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +14 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.d.ts +2 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +6 -0
- package/draw/libs/pica/lib/pool.d.ts +14 -0
- package/draw/libs/pica/lib/pool.js +18 -0
- package/draw/libs/pica/lib/stepper.d.ts +1 -0
- package/draw/libs/pica/lib/stepper.js +15 -0
- package/draw/libs/pica/lib/tiler.d.ts +18 -0
- package/draw/libs/pica/lib/tiler.js +38 -0
- package/draw/libs/pica/lib/utils.d.ts +9 -0
- package/draw/libs/pica/lib/utils.js +91 -0
- package/draw/libs/pica/lib/worker.d.ts +1 -0
- package/draw/libs/pica/lib/worker.js +19 -0
- package/draw/libs/png-chunk-text/decode.d.ts +5 -0
- package/draw/libs/png-chunk-text/decode.js +18 -0
- package/draw/libs/png-chunk-text/encode.d.ts +5 -0
- package/draw/libs/png-chunk-text/encode.js +22 -0
- package/draw/libs/png-chunk-text/index.d.ts +8 -0
- package/draw/libs/png-chunk-text/index.js +16 -0
- package/draw/libs/png-chunks-encode/index.d.ts +2 -0
- package/draw/libs/png-chunks-encode/index.js +30 -0
- package/draw/libs/png-chunks-extract/index.d.ts +5 -0
- package/draw/libs/png-chunks-extract/index.js +39 -0
- package/draw/libs/points-on-curve/curve-to-bezier.d.ts +2 -0
- package/draw/libs/points-on-curve/curve-to-bezier.js +26 -0
- package/draw/libs/points-on-curve/index.d.ts +4 -0
- package/draw/libs/points-on-curve/index.js +73 -0
- package/draw/libs/points-on-path/index.d.ts +3 -0
- package/draw/libs/points-on-path/index.js +43 -0
- package/draw/libs/promise-pool/LICENSE +19 -0
- package/draw/libs/promise-pool/index.js +93 -0
- package/draw/libs/roughjs/canvas.d.ts +19 -0
- package/draw/libs/roughjs/canvas.js +95 -0
- package/draw/libs/roughjs/core.d.ts +85 -0
- package/draw/libs/roughjs/core.js +6 -0
- package/draw/libs/roughjs/fillers/dashed-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/dashed-filler.js +32 -0
- package/draw/libs/roughjs/fillers/dot-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/dot-filler.js +36 -0
- package/draw/libs/roughjs/fillers/filler-interface.d.ts +11 -0
- package/draw/libs/roughjs/fillers/filler.d.ts +3 -0
- package/draw/libs/roughjs/fillers/filler.js +36 -0
- package/draw/libs/roughjs/fillers/hachure-filler.d.ts +10 -0
- package/draw/libs/roughjs/fillers/hachure-filler.js +27 -0
- package/draw/libs/roughjs/fillers/hatch-filler.d.ts +6 -0
- package/draw/libs/roughjs/fillers/hatch-filler.js +12 -0
- package/draw/libs/roughjs/fillers/index.d.ts +9 -0
- package/draw/libs/roughjs/fillers/scan-line-hachure.d.ts +3 -0
- package/draw/libs/roughjs/fillers/scan-line-hachure.js +12 -0
- package/draw/libs/roughjs/fillers/zigzag-filler.d.ts +6 -0
- package/draw/libs/roughjs/fillers/zigzag-filler.js +20 -0
- package/draw/libs/roughjs/fillers/zigzag-line-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/zigzag-line-filler.js +34 -0
- package/draw/libs/roughjs/generator.d.ts +19 -0
- package/draw/libs/roughjs/generator.js +204 -0
- package/draw/libs/roughjs/geometry.d.ts +9 -0
- package/draw/libs/roughjs/geometry.js +9 -0
- package/draw/libs/roughjs/index.d.ts +9 -0
- package/draw/libs/roughjs/index.js +54 -0
- package/draw/libs/roughjs/math.d.ts +6 -0
- package/draw/libs/roughjs/math.js +17 -0
- package/draw/libs/roughjs/renderer.d.ts +28 -0
- package/draw/libs/roughjs/renderer.js +336 -0
- package/draw/libs/roughjs/rough.d.ts +11 -0
- package/draw/libs/roughjs/rough.js +22 -0
- package/draw/libs/roughjs/svg.d.ts +20 -0
- package/draw/libs/roughjs/svg.js +84 -0
- package/draw/libs/sliced/index.d.ts +9 -0
- package/draw/libs/sliced/index.js +14 -0
- package/draw/libs/webworkify/index.d.ts +3 -0
- package/draw/libs/webworkify/index.js +18 -0
- package/draw/style/index.css +1 -0
- package/draw/style/index.d.ts +1 -0
- package/draw/style/index.js +3 -0
- package/draw/utils/bbox.d.ts +9 -0
- package/draw/utils/bbox.js +32 -0
- package/draw/utils/export.d.ts +36 -0
- package/draw/utils/export.js +77 -0
- package/draw/utils/index.d.ts +12 -0
- package/draw/utils/index.js +22 -0
- package/draw/utils/shape.d.ts +57 -0
- package/draw/utils/shape.js +81 -0
- package/draw/utils/withinBounds.d.ts +19 -0
- package/draw/utils/withinBounds.js +61 -0
- package/drawer/Drawer.js +95 -103
- package/drawer/constants.d.ts +4 -0
- package/drawer/constants.js +6 -0
- package/drawer/context.d.ts +3 -0
- package/drawer/context.js +19 -0
- package/drawer/index.d.ts +2 -0
- package/drawer/index.js +9 -6
- package/drawer/style/index.css +1 -0
- package/drawer/style/index.d.ts +2 -0
- package/drawer/style/index.js +4 -0
- package/drawer/use-drawer/Hook.js +11 -9
- package/drawer/use-drawer/index.js +1 -1
- package/dropdown/Button.d.ts +1 -1
- package/dropdown/Button.js +2 -2
- package/dropdown/Dropdown.js +55 -55
- package/dropdown/constants.d.ts +0 -0
- package/dropdown/constants.js +2 -0
- package/dropdown/context.d.ts +3 -0
- package/dropdown/context.js +11 -0
- package/dropdown/index.d.ts +3 -1
- package/dropdown/index.js +9 -6
- package/dropdown/style/index.css +1 -0
- package/dropdown/style/index.d.ts +3 -0
- package/dropdown/style/index.js +5 -0
- package/empty/Empty.js +22 -18
- package/empty/constants.d.ts +0 -0
- package/empty/constants.js +2 -0
- package/empty/context.d.ts +3 -0
- package/empty/context.js +7 -0
- package/empty/index.d.ts +2 -0
- package/empty/index.js +9 -4
- package/empty/style/index.css +1 -0
- package/empty/style/index.d.ts +1 -0
- package/empty/style/index.js +3 -0
- package/flex/Flex.js +24 -20
- package/flex/constants.d.ts +0 -0
- package/flex/constants.js +2 -0
- package/flex/context.d.ts +3 -0
- package/flex/context.js +7 -0
- package/flex/index.d.ts +2 -0
- package/flex/index.js +8 -5
- package/flex/style/index.d.ts +1 -0
- package/flex/style/index.js +3 -0
- package/form/Control.d.ts +31 -32
- package/form/Control.js +248 -200
- package/form/Form.js +78 -90
- package/form/Item.js +192 -0
- package/form/ItemLabel.js +48 -0
- package/form/ItemTip.js +41 -0
- package/form/LabelSymbol.js +20 -0
- package/form/List.js +83 -0
- package/form/Provider.js +29 -0
- package/form/constants.js +9 -0
- package/form/context.d.ts +3 -1
- package/form/context.js +19 -5
- package/form/hooks/useForm.js +56 -0
- package/form/hooks/useFormContext.js +34 -0
- package/form/hooks/useFormState.js +31 -0
- package/form/hooks/useWatch.js +34 -0
- package/form/index.d.ts +14 -12
- package/form/index.js +31 -29
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.d.ts +1 -1
- package/form/store.js +36 -36
- package/form/style/index.css +1 -0
- package/form/style/index.d.ts +2 -0
- package/form/style/index.js +4 -0
- package/form/utils.js +14 -14
- package/global-provider/GlobalProvider.js +1 -1
- package/global-provider/constants.d.ts +0 -0
- package/global-provider/constants.js +2 -0
- package/global-provider/context.js +1 -1
- package/global-provider/index.d.ts +1 -0
- package/global-provider/index.js +2 -1
- package/global-provider/style/index.d.ts +1 -0
- package/global-provider/style/index.js +3 -0
- package/grid/Grid.js +33 -34
- package/grid/Item.d.ts +1 -1
- package/grid/Item.js +3 -3
- package/grid/constants.d.ts +0 -0
- package/grid/constants.js +2 -0
- package/grid/context.d.ts +2 -0
- package/grid/context.js +8 -3
- package/grid/index.d.ts +4 -1
- package/grid/index.js +9 -7
- package/grid/style/index.css +1 -0
- package/grid/style/index.d.ts +1 -0
- package/grid/style/index.js +3 -0
- 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-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 +18 -18
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useUnmountOnExit.js +1 -1
- package/icon/Icon.d.ts +2 -4
- package/icon/Icon.js +22 -23
- package/icon/addIconFromCdn.js +1 -1
- package/icon/constants.d.ts +0 -0
- package/icon/constants.js +2 -0
- package/icon/context.d.ts +3 -0
- package/icon/context.js +11 -0
- package/icon/index.d.ts +12 -1
- package/icon/index.js +12 -9
- package/icon/style/index.css +1 -0
- package/icon/style/index.d.ts +1 -0
- package/icon/style/index.js +3 -0
- package/icon-hover/IconHover.js +26 -24
- package/icon-hover/constants.d.ts +0 -0
- package/icon-hover/constants.js +2 -0
- package/icon-hover/context.d.ts +3 -0
- package/icon-hover/context.js +7 -0
- package/icon-hover/index.d.ts +2 -0
- package/icon-hover/index.js +9 -4
- package/icon-hover/style/index.css +1 -0
- package/icon-hover/style/index.d.ts +1 -0
- package/icon-hover/style/index.js +3 -0
- package/icons/file/File.js +20 -16
- package/icons/file/constants.d.ts +0 -0
- package/icons/file/context.d.ts +3 -0
- package/icons/file/context.js +7 -0
- package/icons/file/index.d.ts +1 -0
- package/icons/file/index.js +3 -2
- package/icons/file/style/index.d.ts +0 -1
- package/icons/file/style/index.js +3 -0
- package/icons.js +1 -1
- package/image/Footer.d.ts +13 -0
- package/image/Footer.js +58 -0
- package/image/Image.js +66 -66
- package/image/Preview.js +371 -0
- package/image/PreviewArrow.js +30 -0
- package/image/PreviewGroup.js +112 -0
- package/image/PreviewToolbar.js +61 -0
- package/image/TriggerForToolbar.js +1 -1
- package/image/constants.d.ts +0 -0
- package/image/constants.js +2 -0
- package/image/context.d.ts +5 -1
- package/image/context.js +31 -5
- package/image/hooks/useImageStatus.js +18 -0
- package/image/hooks/useShowFooter.js +13 -0
- package/image/index.d.ts +6 -4
- package/image/index.js +11 -9
- package/image/style/index.css +1 -0
- package/image/style/index.d.ts +1 -0
- package/image/style/index.js +3 -0
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/index.d.ts +0 -2
- package/index.js +485 -505
- package/input/Button.js +2 -2
- package/input/Core.js +8 -6
- package/input/Group.js +2 -2
- package/input/Input.js +52 -48
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/constants.js +1 -1
- package/input/context.d.ts +3 -0
- package/input/context.js +7 -0
- package/input/index.d.ts +4 -0
- package/input/index.js +23 -24
- package/input/style/index.css +1 -0
- package/input/style/index.d.ts +2 -0
- package/input/style/index.js +4 -0
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/InputNumber.js +56 -58
- package/input-number/constants.d.ts +0 -0
- package/input-number/constants.js +2 -0
- package/input-number/context.d.ts +3 -0
- package/input-number/context.js +13 -0
- package/input-number/decimal.js +1 -1
- package/input-number/hooks/useSelectionRange.js +25 -0
- package/input-number/index.d.ts +2 -0
- package/input-number/index.js +9 -4
- package/input-number/style/index.css +1 -0
- package/input-number/style/index.d.ts +2 -0
- package/input-number/style/index.js +4 -0
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +163 -159
- package/input-tag/constants.js +6 -0
- package/input-tag/context.d.ts +3 -0
- package/input-tag/context.js +7 -0
- package/input-tag/hooks/useComputeAutoWidthDelay.js +12 -0
- package/input-tag/index.d.ts +2 -0
- package/input-tag/index.js +9 -4
- package/input-tag/style/index.css +1 -0
- package/input-tag/style/index.d.ts +2 -0
- package/input-tag/style/index.js +4 -0
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Layout.js +24 -20
- package/layout/Sider.js +3 -3
- package/layout/constants.d.ts +0 -0
- package/layout/constants.js +2 -0
- package/layout/context.d.ts +3 -0
- package/layout/context.js +3 -3
- package/layout/index.d.ts +2 -0
- package/layout/index.js +15 -13
- package/layout/style/index.css +1 -0
- package/layout/style/index.d.ts +3 -0
- package/layout/style/index.js +5 -0
- package/link/Link.js +35 -32
- package/link/constants.d.ts +0 -0
- package/link/constants.js +2 -0
- package/link/context.d.ts +3 -0
- package/link/context.js +7 -0
- package/link/index.d.ts +2 -0
- package/link/index.js +9 -4
- package/link/style/index.css +1 -0
- package/link/style/index.d.ts +1 -0
- package/link/style/index.js +3 -0
- package/liquid-fill/LiquidFill.js +73 -87
- package/liquid-fill/constants.d.ts +0 -0
- package/liquid-fill/constants.js +2 -0
- package/liquid-fill/context.d.ts +3 -0
- package/liquid-fill/context.js +25 -0
- package/liquid-fill/index.d.ts +2 -0
- package/liquid-fill/index.js +9 -4
- package/liquid-fill/style/index.css +1 -0
- package/liquid-fill/style/index.d.ts +1 -0
- package/liquid-fill/style/index.js +3 -0
- package/list/Item.js +2 -2
- package/list/List.js +44 -46
- package/list/Meta.js +1 -1
- package/list/constants.d.ts +0 -0
- package/list/constants.js +2 -0
- package/list/context.d.ts +3 -0
- package/list/context.js +13 -0
- package/list/index.d.ts +2 -0
- package/list/index.js +7 -4
- package/list/style/index.css +1 -0
- package/list/style/index.d.ts +5 -0
- package/list/style/index.js +7 -0
- package/loading/Loading.js +40 -36
- package/loading/constants.d.ts +0 -0
- package/loading/constants.js +2 -0
- package/loading/context.d.ts +3 -0
- package/loading/context.js +7 -0
- package/loading/index.d.ts +2 -0
- package/loading/index.js +9 -4
- package/loading/style/index.d.ts +1 -0
- package/loading/style/index.js +3 -0
- 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 +20 -20
- 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 +19 -19
- package/locale/zh-HK.js +20 -20
- package/locale/zh-TW.js +20 -20
- package/marquee/Marquee.js +44 -50
- package/marquee/constants.d.ts +0 -0
- package/marquee/constants.js +2 -0
- package/marquee/context.d.ts +3 -0
- package/marquee/context.js +16 -0
- package/marquee/index.d.ts +2 -0
- package/marquee/index.js +9 -4
- package/marquee/style/index.css +1 -0
- package/marquee/style/index.d.ts +1 -0
- package/marquee/style/index.js +3 -0
- package/mask/Mask.d.ts +1 -3
- package/mask/Mask.js +28 -29
- package/mask/constants.js +10 -0
- package/mask/context.d.ts +3 -0
- package/mask/context.js +11 -0
- package/mask/index.d.ts +3 -3
- package/mask/index.js +9 -4
- package/mask/interface.d.ts +2 -2
- package/mask/style/index.css +1 -0
- package/mask/style/index.d.ts +1 -0
- package/mask/style/index.js +3 -0
- package/masonry/Item.js +1 -1
- package/masonry/Masonry.js +57 -54
- package/masonry/constants.d.ts +0 -0
- package/masonry/constants.js +2 -0
- package/masonry/context.d.ts +3 -0
- package/masonry/context.js +7 -0
- 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.d.ts +2 -0
- package/masonry/index.js +7 -4
- package/masonry/style/index.css +1 -0
- package/masonry/style/index.d.ts +1 -0
- package/masonry/style/index.js +3 -0
- package/mentions/Mentions.js +37 -39
- package/mentions/constants.d.ts +0 -0
- package/mentions/constants.js +2 -0
- package/mentions/context.d.ts +3 -0
- package/mentions/context.js +13 -0
- package/mentions/index.d.ts +2 -0
- package/mentions/index.js +9 -4
- package/mentions/style/index.css +1 -0
- package/mentions/style/index.d.ts +1 -0
- package/mentions/style/index.js +3 -0
- 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 +75 -81
- package/menu/OverflowWrap.js +2 -2
- package/menu/constants.d.ts +0 -0
- package/menu/constants.js +2 -0
- package/menu/context.d.ts +3 -1
- package/menu/context.js +12 -3
- package/menu/index.d.ts +3 -1
- package/menu/index.js +14 -12
- package/menu/style/index.css +1 -0
- package/menu/style/index.d.ts +3 -0
- package/menu/style/index.js +5 -0
- package/menu/sub-menu/Inline.d.ts +2 -1
- package/menu/sub-menu/Inline.js +2 -2
- package/menu/sub-menu/Pop.d.ts +2 -1
- package/menu/sub-menu/Pop.js +3 -3
- package/menu/sub-menu/index.d.ts +1 -1
- package/menu/sub-menu/index.js +2 -2
- package/menu/utils.js +1 -1
- package/message/Message.js +76 -72
- package/message/config.js +1 -1
- package/message/constants.js +1 -1
- package/message/context.d.ts +3 -0
- package/message/context.js +7 -0
- package/message/hooks/useMessage.d.ts +4 -0
- package/message/hooks/useMessage.js +52 -0
- package/message/index.d.ts +3 -1
- package/message/index.js +9 -6
- package/message/interface.d.ts +3 -5
- package/message/style/index.css +1 -0
- package/message/style/index.d.ts +1 -0
- package/message/style/index.js +3 -0
- package/message/utils.js +1 -1
- package/modal/Modal.js +189 -207
- package/modal/config.js +1 -1
- package/modal/confirm.js +12 -12
- package/modal/constants.js +1 -1
- package/modal/context.d.ts +3 -0
- package/modal/context.js +17 -0
- package/modal/index.d.ts +2 -0
- package/modal/index.js +11 -8
- package/modal/interface.d.ts +3 -0
- package/modal/style/index.css +1 -0
- package/modal/style/index.d.ts +2 -0
- package/modal/style/index.js +4 -0
- package/modal/use-modal/Hook.js +11 -9
- package/modal/use-modal/index.js +1 -1
- package/modal/utils.js +1 -1
- package/notice/Notice.js +47 -49
- package/notice/config.js +1 -1
- package/notice/constants.js +1 -1
- package/notice/context.d.ts +3 -0
- package/notice/context.js +13 -0
- package/notice/index.d.ts +2 -0
- package/notice/index.js +10 -7
- package/notice/style/index.d.ts +1 -0
- package/notice/style/index.js +3 -0
- package/notice/utils.js +1 -1
- package/notice/withNotice.js +1 -1
- package/notification/Notification.js +77 -73
- package/notification/config.js +1 -1
- package/notification/constants.js +1 -1
- package/notification/context.d.ts +3 -0
- package/notification/context.js +7 -0
- package/notification/hooks/useNotification.d.ts +4 -0
- package/notification/hooks/useNotification.js +53 -0
- package/notification/index.d.ts +3 -1
- package/notification/index.js +9 -6
- package/notification/style/index.css +1 -0
- package/notification/style/index.d.ts +1 -0
- package/notification/style/index.js +3 -0
- package/notification/utils.js +1 -1
- package/overflow-ellipsis/Item.js +22 -0
- package/overflow-ellipsis/OverflowEllipsis.js +42 -37
- package/overflow-ellipsis/constants.d.ts +0 -0
- package/overflow-ellipsis/constants.js +2 -0
- package/overflow-ellipsis/context.d.ts +3 -0
- package/overflow-ellipsis/context.js +7 -0
- package/overflow-ellipsis/index.d.ts +4 -2
- package/overflow-ellipsis/index.js +10 -5
- package/overflow-ellipsis/style/index.css +1 -0
- package/overflow-ellipsis/style/index.d.ts +1 -0
- package/overflow-ellipsis/style/index.js +3 -0
- package/package.json +1 -1
- package/page-header/PageHeader.js +74 -70
- package/page-header/constants.d.ts +0 -0
- package/page-header/constants.js +2 -0
- package/page-header/context.d.ts +3 -0
- package/page-header/context.js +7 -0
- package/page-header/index.d.ts +2 -0
- package/page-header/index.js +9 -4
- package/page-header/style/index.css +1 -0
- package/page-header/style/index.d.ts +2 -0
- package/page-header/style/index.js +4 -0
- package/pagination/Item.js +2 -2
- package/pagination/Jumper.js +2 -2
- package/pagination/Pagination.js +98 -99
- package/pagination/PreNextButton.js +2 -2
- package/pagination/PreNextJump.js +2 -2
- package/pagination/SizeOption.js +3 -3
- package/pagination/constants.d.ts +0 -0
- package/pagination/constants.js +2 -0
- package/pagination/context.d.ts +3 -0
- package/pagination/context.js +11 -0
- package/pagination/index.d.ts +2 -0
- package/pagination/index.js +10 -5
- package/pagination/interface.js +1 -1
- package/pagination/style/index.css +1 -0
- package/pagination/style/index.d.ts +3 -0
- package/pagination/style/index.js +5 -0
- package/pagination/utils.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/constants.d.ts +0 -0
- package/picker/constants.js +2 -0
- package/picker/context.d.ts +0 -0
- package/picker/context.js +2 -0
- package/picker/index.d.ts +1 -0
- package/picker/index.js +7 -6
- package/picker/style/index.css +1 -0
- package/picker/style/index.d.ts +1 -0
- package/picker/style/index.js +3 -0
- package/popconfirm/Popconfirm.js +40 -43
- package/popconfirm/constants.d.ts +0 -0
- package/popconfirm/constants.js +2 -0
- package/popconfirm/context.d.ts +3 -0
- package/popconfirm/context.js +16 -0
- package/popconfirm/index.d.ts +2 -0
- package/popconfirm/index.js +9 -4
- package/popconfirm/style/index.css +1 -0
- package/popconfirm/style/index.d.ts +4 -0
- package/popconfirm/style/index.js +6 -0
- package/popover/Popover.js +36 -37
- package/popover/constants.d.ts +0 -0
- package/popover/constants.js +2 -0
- package/popover/context.d.ts +3 -0
- package/popover/context.js +11 -0
- package/popover/index.d.ts +2 -0
- package/popover/index.js +9 -4
- package/popover/style/index.css +1 -0
- package/popover/style/index.d.ts +2 -0
- package/popover/style/index.js +4 -0
- package/portal/Portal.js +25 -23
- package/portal/constants.d.ts +0 -0
- package/portal/constants.js +2 -0
- package/portal/context.d.ts +3 -0
- package/portal/context.js +7 -0
- package/portal/index.d.ts +2 -0
- package/portal/index.js +9 -4
- package/portal/style/index.d.ts +1 -0
- package/portal/style/index.js +3 -0
- package/progress/Circle.js +102 -0
- package/progress/Line.js +74 -0
- package/progress/Progress.js +51 -54
- package/progress/Step.js +51 -0
- package/progress/constants.d.ts +0 -0
- package/progress/constants.js +2 -0
- package/progress/context.d.ts +3 -0
- package/progress/context.js +13 -0
- package/progress/index.d.ts +6 -31
- package/progress/index.js +12 -9
- package/progress/style/index.css +1 -0
- package/progress/style/index.d.ts +2 -0
- package/progress/style/index.js +4 -0
- package/qr-code/QRCode.js +31 -37
- package/qr-code/constants.d.ts +0 -0
- package/qr-code/constants.js +2 -0
- package/qr-code/context.d.ts +3 -0
- package/qr-code/context.js +17 -0
- package/qr-code/index.d.ts +2 -0
- package/qr-code/index.js +9 -6
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/qr-code/style/index.css +1 -0
- package/qr-code/style/index.d.ts +1 -0
- package/qr-code/style/index.js +3 -0
- package/radio/Group.js +3 -3
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +62 -59
- package/radio/constants.d.ts +0 -0
- package/radio/constants.js +2 -0
- package/radio/context.d.ts +3 -1
- package/radio/context.js +3 -3
- package/radio/index.d.ts +2 -0
- package/radio/index.js +12 -10
- package/radio/style/index.css +1 -0
- package/radio/style/index.d.ts +1 -0
- package/radio/style/index.js +3 -0
- package/rate/Rate.js +32 -33
- package/rate/constants.d.ts +0 -0
- package/rate/constants.js +2 -0
- package/rate/context.d.ts +3 -0
- package/rate/context.js +11 -0
- package/rate/index.d.ts +2 -0
- package/rate/index.js +9 -4
- package/rate/style/index.css +1 -0
- package/rate/style/index.d.ts +2 -0
- package/rate/style/index.js +4 -0
- package/resize-box/ResizeBox.js +75 -76
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +13 -13
- package/resize-box/SplitGroup.js +14 -14
- package/resize-box/constants.d.ts +0 -0
- package/resize-box/constants.js +2 -0
- package/resize-box/context.d.ts +3 -0
- package/resize-box/context.js +12 -0
- package/resize-box/index.d.ts +2 -0
- package/resize-box/index.js +11 -8
- package/resize-box/style/index.css +1 -0
- package/resize-box/style/index.d.ts +1 -0
- package/resize-box/style/index.js +3 -0
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/Result.js +57 -53
- package/result/constants.d.ts +0 -0
- package/result/constants.js +2 -0
- package/result/context.d.ts +3 -0
- package/result/context.js +7 -0
- package/result/index.d.ts +2 -0
- package/result/index.js +9 -4
- package/result/style/index.css +1 -0
- package/result/style/index.d.ts +1 -0
- package/result/style/index.js +3 -0
- package/rich-text/RichText.d.ts +1 -1
- package/rich-text/RichText.js +110 -106
- package/rich-text/Toolbar.d.ts +2 -1
- package/rich-text/Toolbar.js +234 -250
- package/rich-text/constants.js +7 -0
- package/rich-text/context.d.ts +3 -0
- package/rich-text/context.js +7 -0
- package/rich-text/index.d.ts +9 -7
- package/rich-text/index.js +25 -22
- package/rich-text/interface.d.ts +4 -2
- package/rich-text/libs/blots/block.js +115 -0
- package/rich-text/libs/blots/break.js +20 -0
- package/rich-text/libs/blots/container.js +8 -0
- package/rich-text/libs/blots/cursor.js +97 -0
- package/rich-text/libs/blots/embed.js +47 -0
- package/rich-text/libs/blots/inline.js +50 -0
- package/rich-text/libs/blots/scroll.js +249 -0
- package/rich-text/libs/blots/text.js +17 -0
- package/rich-text/libs/core/composition.js +38 -0
- package/rich-text/libs/core/editor.js +248 -0
- package/rich-text/libs/core/emitter.d.ts +38 -0
- package/rich-text/libs/core/emitter.js +47 -0
- package/rich-text/libs/core/logger.js +20 -0
- package/rich-text/libs/core/module.js +14 -0
- package/rich-text/libs/core/rich.d.ts +183 -0
- package/rich-text/libs/core/rich.js +369 -0
- package/rich-text/libs/core/selection.js +222 -0
- package/rich-text/libs/core/theme.js +32 -0
- package/rich-text/libs/core/utils/createRegistryWithFormats.js +29 -0
- package/rich-text/libs/core/utils/scrollRectIntoView.js +59 -0
- package/rich-text/libs/delta/AttributeMap.js +37 -0
- package/rich-text/libs/delta/Op.js +10 -0
- package/rich-text/libs/delta/OpIterator.js +45 -0
- package/rich-text/libs/delta/index.js +235 -0
- package/rich-text/libs/diff/index.js +285 -0
- package/rich-text/libs/formats/align.js +20 -0
- package/rich-text/libs/formats/background.js +11 -0
- package/rich-text/libs/formats/blockquote.js +16 -0
- package/rich-text/libs/formats/bold.js +25 -0
- package/rich-text/libs/formats/code.js +37 -0
- package/rich-text/libs/formats/color.js +16 -0
- package/rich-text/libs/formats/direction.js +15 -0
- package/rich-text/libs/formats/emoji.js +20 -0
- package/rich-text/libs/formats/font.js +51 -0
- package/rich-text/libs/formats/formula.js +35 -0
- package/rich-text/libs/formats/header.js +25 -0
- package/rich-text/libs/formats/hr.js +17 -0
- package/rich-text/libs/formats/image.js +46 -0
- package/rich-text/libs/formats/indent.js +38 -0
- package/rich-text/libs/formats/italic.js +16 -0
- package/rich-text/libs/formats/lineHeight.js +12 -0
- package/rich-text/libs/formats/link.js +47 -0
- package/rich-text/libs/formats/list.js +37 -0
- package/rich-text/libs/formats/script.js +23 -0
- package/rich-text/libs/formats/size.js +27 -0
- package/rich-text/libs/formats/strike.js +16 -0
- package/rich-text/libs/formats/table.js +134 -0
- package/rich-text/libs/formats/underline.js +16 -0
- package/rich-text/libs/formats/video.js +40 -0
- package/rich-text/libs/index.js +117 -0
- package/rich-text/libs/modules/clipboard.js +295 -0
- package/rich-text/libs/modules/history.js +119 -0
- package/rich-text/libs/modules/image-resize/index.js +80 -0
- package/rich-text/libs/modules/image-resize/modules/Base.js +14 -0
- package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +41 -0
- package/rich-text/libs/modules/image-resize/modules/Resize.js +62 -0
- package/rich-text/libs/modules/image-resize/options.js +11 -0
- package/rich-text/libs/modules/input.js +54 -0
- package/rich-text/libs/modules/keyboard.js +423 -0
- package/rich-text/libs/modules/normalizeExternalHTML/index.js +12 -0
- package/rich-text/libs/modules/normalizeExternalHTML/normalizers/googleDocs.js +22 -0
- package/rich-text/libs/modules/normalizeExternalHTML/normalizers/msWord.js +39 -0
- package/rich-text/libs/modules/table.js +113 -0
- package/rich-text/libs/modules/toolbar copy.d.ts +0 -0
- package/rich-text/libs/modules/toolbar.js +18 -0
- package/rich-text/libs/modules/uiNode.js +52 -0
- package/rich-text/libs/modules/uploader.js +46 -0
- package/rich-text/libs/parchment/attributor/attributor.js +30 -0
- package/rich-text/libs/parchment/attributor/class.js +26 -0
- package/rich-text/libs/parchment/attributor/store.js +44 -0
- package/rich-text/libs/parchment/attributor/style.js +25 -0
- package/rich-text/libs/parchment/blot/abstract/container.js +32 -0
- package/rich-text/libs/parchment/blot/abstract/leaf.js +25 -0
- package/rich-text/libs/parchment/blot/abstract/parent.js +156 -0
- package/rich-text/libs/parchment/blot/abstract/shadow.js +78 -0
- package/rich-text/libs/parchment/blot/block.js +71 -0
- package/rich-text/libs/parchment/blot/embed.js +18 -0
- package/rich-text/libs/parchment/blot/inline.js +73 -0
- package/rich-text/libs/parchment/blot/scroll.js +100 -0
- package/rich-text/libs/parchment/blot/text.js +56 -0
- package/rich-text/libs/parchment/collection/linked-list.js +86 -0
- package/rich-text/libs/parchment/error.js +10 -0
- package/rich-text/libs/parchment/index.js +36 -0
- package/rich-text/libs/parchment/registry.js +56 -0
- package/rich-text/libs/parchment/scope.js +8 -0
- package/rich-text/style/index.css +1 -0
- package/rich-text/style/index.d.ts +1 -0
- package/rich-text/style/index.js +3 -0
- package/router-error/RouterError.d.ts +4 -0
- package/router-error/RouterError.js +82 -0
- package/router-error/constants.d.ts +0 -0
- package/router-error/constants.js +2 -0
- package/router-error/context.d.ts +3 -0
- package/router-error/context.js +7 -0
- package/router-error/index.d.ts +3 -1
- package/router-error/index.js +5 -75
- package/router-error/interface.d.ts +8 -0
- package/router-error/style/index.d.ts +0 -1
- package/router-error/style/index.js +1 -2
- package/row-col/Col.js +65 -96
- package/row-col/Row.js +36 -39
- package/row-col/constants.d.ts +1 -0
- package/row-col/constants.js +6 -0
- package/row-col/context.d.ts +5 -0
- package/row-col/context.js +8 -3
- package/row-col/index.d.ts +2 -0
- package/row-col/index.js +11 -9
- package/row-col/style/index.css +1 -0
- package/row-col/style/index.d.ts +1 -0
- package/row-col/style/index.js +3 -0
- package/segmented/Segmented.js +82 -89
- package/segmented/constants.d.ts +0 -0
- package/segmented/constants.js +2 -0
- package/segmented/context.d.ts +3 -0
- package/segmented/context.js +18 -0
- package/segmented/index.d.ts +2 -0
- package/segmented/index.js +9 -4
- package/segmented/style/index.css +1 -0
- package/segmented/style/index.d.ts +1 -0
- package/segmented/style/index.js +3 -0
- package/select/Option.js +1 -1
- package/select/OptionGroup.js +1 -1
- package/select/Select.js +195 -197
- package/select/constants.d.ts +0 -0
- package/select/constants.js +2 -0
- package/select/context.d.ts +3 -0
- package/select/context.js +13 -0
- package/select/index.d.ts +2 -0
- package/select/index.js +7 -4
- package/select/style/index.css +1 -0
- package/select/style/index.d.ts +5 -0
- package/select/style/index.js +7 -0
- package/select/utils.js +1 -1
- package/select-view/Core.js +3 -3
- package/select-view/SelectView.js +43 -39
- package/select-view/constants.d.ts +0 -0
- package/select-view/constants.js +2 -0
- package/select-view/context.d.ts +3 -0
- package/select-view/context.js +7 -0
- package/select-view/index.d.ts +2 -0
- package/select-view/index.js +10 -7
- package/select-view/style/index.d.ts +1 -0
- package/select-view/style/index.js +3 -0
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.js +42 -42
- package/skeleton/Text.d.ts +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/constants.d.ts +0 -0
- package/skeleton/constants.js +2 -0
- package/skeleton/context.d.ts +3 -0
- package/skeleton/context.js +10 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/index.js +11 -8
- package/skeleton/style/index.css +1 -0
- package/skeleton/style/index.d.ts +1 -0
- package/skeleton/style/index.js +3 -0
- package/slider/Button.js +7 -7
- package/slider/Dot.d.ts +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.d.ts +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Slider.js +188 -189
- package/slider/Tick.d.ts +1 -1
- package/slider/Tick.js +1 -1
- package/slider/constants.d.ts +0 -0
- package/slider/constants.js +2 -0
- package/slider/context.d.ts +3 -0
- package/slider/context.js +11 -0
- package/slider/hooks/useInterval.js +94 -0
- package/slider/hooks/useLegalValue.js +58 -0
- package/slider/index.d.ts +2 -0
- package/slider/index.js +15 -12
- package/slider/style/index.css +1 -0
- package/slider/style/index.d.ts +4 -0
- package/slider/style/index.js +6 -0
- package/slider/utils.d.ts +1 -1
- package/slider/utils.js +1 -1
- package/space/Space.js +29 -29
- package/space/constants.d.ts +0 -0
- package/space/constants.js +2 -0
- package/space/context.d.ts +3 -0
- package/space/context.js +10 -0
- package/space/index.d.ts +2 -0
- package/space/index.js +8 -5
- package/space/style/index.d.ts +1 -0
- package/space/style/index.js +3 -0
- package/speech-synthesis/SpeechSynthesis.js +18 -10
- package/speech-synthesis/constants.d.ts +0 -0
- package/speech-synthesis/constants.js +2 -0
- package/speech-synthesis/context.d.ts +3 -0
- package/speech-synthesis/context.js +7 -0
- package/speech-synthesis/index.d.ts +2 -0
- package/speech-synthesis/index.js +9 -4
- package/speech-synthesis/style/index.d.ts +1 -0
- package/speech-synthesis/style/index.js +3 -0
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.js +69 -65
- package/spin/constants.d.ts +0 -0
- package/spin/constants.js +2 -0
- package/spin/context.d.ts +3 -0
- package/spin/context.js +7 -0
- package/spin/index.d.ts +2 -0
- package/spin/index.js +9 -6
- package/spin/style/index.css +1 -0
- package/spin/style/index.d.ts +1 -0
- package/spin/style/index.js +3 -0
- package/splitter/Bar.js +97 -0
- package/splitter/Panel.js +5 -5
- package/splitter/Splitter.js +61 -58
- package/splitter/constants.d.ts +0 -0
- package/splitter/constants.js +2 -0
- package/splitter/context.d.ts +3 -0
- package/splitter/context.js +7 -0
- 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.d.ts +2 -0
- package/splitter/index.js +9 -6
- package/splitter/style/index.css +1 -0
- package/splitter/style/index.d.ts +1 -0
- package/splitter/style/index.js +3 -0
- package/statistic/Statistic.js +32 -31
- package/statistic/constants.d.ts +0 -0
- package/statistic/constants.js +2 -0
- package/statistic/context.d.ts +3 -0
- package/statistic/context.js +10 -0
- package/statistic/index.d.ts +3 -0
- package/statistic/index.js +7 -4
- package/statistic/interface.js +1 -1
- package/statistic/style/index.css +1 -0
- package/statistic/style/index.d.ts +2 -0
- package/statistic/style/index.js +4 -0
- package/steps/Item.js +64 -0
- package/steps/Steps.js +39 -42
- package/steps/constants.d.ts +0 -0
- package/steps/constants.js +2 -0
- package/steps/context.d.ts +3 -0
- package/steps/context.js +13 -0
- package/steps/index.d.ts +4 -2
- package/steps/index.js +10 -7
- package/steps/style/index.css +1 -0
- package/steps/style/index.d.ts +1 -0
- package/steps/style/index.js +3 -0
- package/style/constants.d.ts +0 -0
- package/style/constants.js +2 -0
- package/style/constants.ts +0 -0
- package/style/global.less +24 -0
- package/style/index.less +1 -0
- package/style/variables-css.less +1079 -0
- package/style/variables.less +0 -1109
- package/style.css +1 -2
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.d.ts +0 -0
- package/suspense-fallback-test/constants.js +2 -0
- package/suspense-fallback-test/context.d.ts +0 -0
- package/suspense-fallback-test/context.js +2 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +2 -1
- package/suspense-fallback-test/style/index.d.ts +1 -0
- package/suspense-fallback-test/style/index.js +3 -0
- package/switch/Switch.js +61 -59
- package/switch/constants.d.ts +0 -0
- package/switch/constants.js +2 -0
- package/switch/context.d.ts +3 -0
- package/switch/context.js +10 -0
- package/switch/index.d.ts +2 -0
- package/switch/index.js +7 -4
- package/switch/interface.d.ts +7 -0
- package/switch/style/index.css +1 -0
- package/switch/style/index.d.ts +1 -0
- package/switch/style/index.js +3 -0
- package/table/ColGroup.js +2 -2
- package/table/Table.js +250 -261
- package/table/constants.js +36 -0
- package/table/context.d.ts +2 -0
- package/table/context.js +15 -4
- package/table/hooks/useColumns.js +115 -0
- package/table/hooks/useComponent.js +27 -0
- package/table/hooks/useExpand.js +33 -0
- package/table/hooks/useRowSelection.js +73 -0
- package/table/hooks/useSorter.js +51 -0
- package/table/hooks/useStickyClassNames.js +25 -0
- package/table/hooks/useStickyOffsets.js +28 -0
- package/table/hooks/useThResizable.js +31 -0
- package/table/index.d.ts +11 -9
- package/table/index.js +37 -35
- package/table/style/index.css +1 -0
- package/table/style/index.d.ts +11 -0
- package/table/style/index.js +13 -0
- 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 +3 -3
- package/table/tbody/Td.js +4 -4
- package/table/tbody/Tr.js +6 -6
- package/table/tbody/index.js +2 -2
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +8 -7
- package/table/th-resizable/style/index.css +1 -0
- package/table/th-resizable/style/index.d.ts +1 -0
- package/table/th-resizable/style/index.js +3 -0
- package/table/thead/Column.js +10 -10
- package/table/thead/index.js +4 -4
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +23 -22
- package/tabs/TabPane.js +1 -1
- package/tabs/Tabs.js +80 -76
- package/tabs/constants.d.ts +1 -0
- package/tabs/constants.js +11 -0
- package/tabs/context.d.ts +5 -3
- package/tabs/context.js +12 -4
- package/tabs/hooks/useDomSize.js +23 -0
- package/tabs/hooks/useHeaderScroll.d.ts +13 -0
- package/tabs/hooks/useHeaderScroll.js +76 -0
- package/tabs/index.d.ts +4 -2
- package/tabs/index.js +13 -11
- package/tabs/interface.d.ts +1 -6
- package/tabs/style/index.css +1 -0
- package/tabs/style/index.d.ts +2 -0
- package/tabs/style/index.js +4 -0
- package/tabs/tab-header/DropdownIcon.js +34 -33
- package/tabs/tab-header/TabInk.js +16 -16
- package/tabs/tab-header/TabNavIcon.d.ts +2 -2
- package/tabs/tab-header/TabNavIcon.js +45 -44
- package/tabs/tab-header/TabTitle.d.ts +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +115 -117
- package/tabs/utils.d.ts +5 -1
- package/tabs/utils.js +12 -3
- package/tag/Tag.js +73 -70
- package/tag/constants.d.ts +0 -0
- package/tag/constants.js +2 -0
- package/tag/context.d.ts +3 -0
- package/tag/context.js +7 -0
- package/tag/index.d.ts +2 -0
- package/tag/index.js +10 -5
- package/tag/style/index.css +1 -0
- package/tag/style/index.d.ts +1 -0
- package/tag/style/index.js +3 -0
- package/tag/utils.js +1 -1
- package/time-picker/Picker.js +76 -79
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +69 -67
- package/time-picker/TimePickerRange.js +1 -1
- package/time-picker/constants.d.ts +0 -0
- package/time-picker/constants.js +2 -0
- package/time-picker/context.d.ts +3 -1
- package/time-picker/context.js +9 -3
- package/time-picker/index.d.ts +1 -0
- package/time-picker/index.js +10 -8
- package/time-picker/style/index.css +1 -0
- package/time-picker/style/index.d.ts +4 -0
- package/time-picker/style/index.js +6 -0
- package/time-picker/utils.js +1 -1
- package/time-picker/withTimePicker.js +1 -1
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +33 -35
- package/timeline/constants.d.ts +0 -0
- package/timeline/constants.js +2 -0
- package/timeline/context.d.ts +3 -0
- package/timeline/context.js +13 -0
- package/timeline/index.d.ts +2 -0
- package/timeline/index.js +9 -6
- package/timeline/style/index.css +1 -0
- package/timeline/style/index.d.ts +1 -0
- package/timeline/style/index.js +3 -0
- package/timer/Timer.js +19 -15
- package/timer/constants.d.ts +0 -0
- package/timer/constants.js +2 -0
- package/timer/context.d.ts +3 -0
- package/timer/context.js +7 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +9 -4
- package/timer/style/index.d.ts +1 -0
- package/timer/style/index.js +3 -0
- package/toast/Toast.d.ts +1 -0
- package/toast/Toast.js +1 -1
- package/toast/constants.d.ts +0 -0
- package/toast/constants.js +2 -0
- package/toast/context.d.ts +0 -0
- package/toast/context.js +2 -0
- package/toast/index.d.ts +2 -0
- package/toast/index.js +3 -2
- package/toast/style/index.d.ts +1 -0
- package/toast/style/index.js +3 -0
- package/tooltip/Tooltip.js +59 -62
- package/tooltip/constants.d.ts +0 -0
- package/tooltip/constants.js +2 -0
- package/tooltip/context.d.ts +3 -0
- package/tooltip/context.js +14 -0
- package/tooltip/index.d.ts +2 -0
- package/tooltip/index.js +9 -4
- package/tooltip/style/index.css +1 -0
- package/tooltip/style/index.d.ts +2 -0
- package/tooltip/style/index.js +4 -0
- package/tour/Tour.js +97 -105
- package/tour/constants.d.ts +0 -0
- package/tour/constants.js +2 -0
- package/tour/context.d.ts +3 -0
- package/tour/context.js +18 -0
- package/tour/index.d.ts +2 -0
- package/tour/index.js +9 -4
- package/tour/style/index.css +1 -0
- package/tour/style/index.d.ts +1 -0
- package/tour/style/index.js +3 -0
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +77 -80
- package/transfer/constants.d.ts +0 -0
- package/transfer/constants.js +2 -0
- package/transfer/context.d.ts +3 -0
- package/transfer/context.js +14 -0
- package/transfer/index.d.ts +2 -0
- package/transfer/index.js +9 -4
- package/transfer/style/index.css +1 -0
- package/transfer/style/index.d.ts +5 -0
- package/transfer/style/index.js +7 -0
- package/transition/constants.d.ts +0 -0
- package/transition/constants.js +2 -0
- package/transition/context.d.ts +0 -0
- package/transition/context.js +2 -0
- package/transition/index.d.ts +1 -0
- package/transition/index.js +2 -1
- package/transition/style/index.d.ts +1 -0
- package/transition/style/index.js +3 -0
- package/tree/Animation.js +2 -2
- package/tree/Node.js +1 -1
- package/tree/NodeList.d.ts +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +221 -232
- package/tree/constants.d.ts +10 -0
- package/tree/constants.js +16 -0
- package/tree/context.d.ts +2 -0
- package/tree/context.js +14 -4
- package/tree/index.d.ts +3 -1
- package/tree/index.js +15 -13
- package/tree/interface.d.ts +1 -1
- package/tree/style/index.css +1 -0
- package/tree/style/index.d.ts +2 -0
- package/tree/style/index.js +4 -0
- package/tree/utils.js +2 -2
- package/tree-select/List.js +1 -1
- package/tree-select/TreeSelect.js +135 -136
- package/tree-select/constants.d.ts +10 -0
- package/tree-select/constants.js +7 -0
- package/tree-select/context.d.ts +3 -0
- package/tree-select/context.js +13 -0
- package/tree-select/hooks/useKeyCache.js +49 -0
- package/tree-select/hooks/useStateValue.js +69 -0
- package/tree-select/hooks/useTreeData.js +15 -0
- package/tree-select/index.d.ts +2 -0
- package/tree-select/index.js +12 -9
- package/tree-select/style/index.css +1 -0
- package/tree-select/style/index.d.ts +4 -0
- package/tree-select/style/index.js +6 -0
- package/tree-select/utils.d.ts +0 -10
- package/tree-select/utils.js +3 -12
- package/trigger/Trigger.js +135 -154
- package/trigger/constants.d.ts +0 -0
- package/trigger/constants.js +2 -0
- package/trigger/context.d.ts +3 -0
- package/trigger/context.js +27 -0
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.d.ts +2 -0
- package/trigger/index.js +10 -5
- package/trigger/style/index.css +1 -0
- package/trigger/style/index.d.ts +1 -0
- package/trigger/style/index.js +3 -0
- package/trigger/utils.js +1 -1
- package/typewriter/Typewriter.js +19 -16
- package/typewriter/constants.d.ts +0 -0
- package/typewriter/constants.js +2 -0
- package/typewriter/context.d.ts +3 -0
- package/typewriter/context.js +7 -0
- package/typewriter/index.d.ts +2 -0
- package/typewriter/index.js +9 -4
- package/typewriter/style/index.d.ts +1 -0
- package/typewriter/style/index.js +3 -0
- package/typography/Base.js +67 -62
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +2 -2
- 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 +21 -16
- package/typography/constants.d.ts +0 -0
- package/typography/constants.js +2 -0
- package/typography/context.d.ts +3 -0
- package/typography/context.js +7 -0
- package/typography/hooks/useCssEllipsis.d.ts +6 -0
- package/typography/hooks/useCssEllipsis.js +41 -0
- package/typography/hooks/useEllipsis.d.ts +21 -0
- package/typography/hooks/useEllipsis.js +149 -0
- package/typography/index.d.ts +4 -2
- package/typography/index.js +19 -16
- package/typography/style/index.css +1 -0
- package/typography/style/index.d.ts +4 -0
- package/typography/style/index.js +6 -0
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +48 -50
- package/upload/Uploader.js +2 -2
- package/upload/constants.js +11 -0
- package/upload/context.d.ts +3 -0
- package/upload/context.js +13 -0
- package/upload/index.d.ts +3 -1
- package/upload/index.js +14 -11
- package/upload/list/PictureItem.js +3 -3
- package/upload/list/TextItem.js +4 -4
- package/upload/list/UploadProgress.js +5 -5
- package/upload/list/index.js +2 -2
- package/upload/list/utils.js +1 -1
- package/upload/request.js +2 -2
- package/upload/style/index.css +1 -0
- package/upload/style/index.d.ts +5 -0
- package/upload/style/index.js +7 -0
- 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.d.ts +5 -0
- package/utils/constants.js +24 -0
- 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 +2 -2
- package/utils/document.d.ts +1 -0
- package/utils/document.js +10 -0
- 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.d.ts +1 -1
- package/utils/index.js +53 -53
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.d.ts +3 -3
- package/utils/keyboardCode.js +4 -4
- 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.d.ts +1 -0
- package/utils/names.js +2 -2
- 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 +2 -2
- package/utils/setPrimaryColor.js +2 -2
- package/utils/setTheme.js +2 -2
- package/utils/string.d.ts +1 -1
- package/utils/string.js +2 -2
- package/utils/style.js +1 -1
- package/utils/throttleByRequestAnimationFrame.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 +8 -2
- 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 +51 -48
- package/verification-code/constants.d.ts +0 -0
- package/verification-code/constants.js +2 -0
- package/verification-code/context.d.ts +3 -0
- package/verification-code/context.js +7 -0
- package/verification-code/index.d.ts +2 -0
- package/verification-code/index.js +7 -4
- package/verification-code/style/index.css +1 -0
- package/verification-code/style/index.d.ts +2 -0
- package/verification-code/style/index.js +4 -0
- package/version/index.js +8 -8
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +159 -154
- package/virtual-list/constants.js +7 -0
- package/virtual-list/context.d.ts +3 -0
- package/virtual-list/context.js +7 -0
- package/virtual-list/hooks/useCacheChildrenNodes.js +13 -0
- package/virtual-list/hooks/useComputeVirtualItemHeight.js +17 -0
- package/virtual-list/index.d.ts +2 -0
- package/virtual-list/index.js +9 -6
- package/virtual-list/style/index.d.ts +1 -0
- package/virtual-list/style/index.js +3 -0
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +38 -34
- package/watermark/constants.d.ts +0 -0
- package/watermark/constants.js +2 -0
- package/watermark/context.d.ts +3 -0
- package/watermark/context.js +7 -0
- package/watermark/index.d.ts +2 -0
- package/watermark/index.js +7 -4
- package/watermark/style/index.d.ts +1 -0
- package/watermark/style/index.js +3 -0
- package/.vite/license.md +0 -3
- package/.vite/manifest.json +0 -8807
- package/calendar/hook/useCellClassName.js +0 -34
- package/cascader/hook/useRefCurrent.js +0 -14
- package/constant/index.d.ts +0 -3
- package/constant/index.js +0 -6
- package/date-picker/DatePickerRange.d.ts +0 -3
- package/date-picker/DatePickerRange.js +0 -404
- package/date-picker/hook/useCellClassName.js +0 -53
- package/draw/constant.js +0 -2
- package/form/FormControl.d.ts +0 -50
- package/form/FormControl.js +0 -256
- package/form/FormItem.js +0 -192
- package/form/FormItemLabel.js +0 -48
- package/form/FormItemTip.js +0 -41
- package/form/FormLabelSymbol.js +0 -20
- package/form/FormList.js +0 -83
- package/form/FormProvider.js +0 -29
- package/form/constant.js +0 -9
- package/form/hook/useForm.js +0 -56
- package/form/hook/useFormContext.js +0 -34
- package/form/hook/useFormState.js +0 -31
- package/form/hook/useWatch.js +0 -34
- package/image/ImageFooter.d.ts +0 -13
- package/image/ImageFooter.js +0 -58
- package/image/ImagePreview.js +0 -418
- package/image/ImagePreviewArrow.js +0 -30
- package/image/ImagePreviewGroup.js +0 -112
- package/image/ImagePreviewToolbar.js +0 -61
- package/image/hook/useImageStatus.js +0 -18
- package/image/hook/useShowFooter.js +0 -13
- package/input-number/useSelectionRange.js +0 -25
- package/input-tag/constant.js +0 -6
- package/input-tag/hook/useComputeAutoWidthDelay.js +0 -12
- package/mask/constant.js +0 -10
- package/message/useMessage.d.ts +0 -4
- package/message/useMessage.js +0 -52
- package/notification/useNotification.d.ts +0 -4
- package/notification/useNotification.js +0 -53
- package/overflow-ellipsis/OverflowItem.js +0 -22
- package/progress/CircleProgress.js +0 -102
- package/progress/LineProgess.js +0 -74
- package/progress/StepProgress.js +0 -51
- package/rich-text/constant.js +0 -7
- package/rich-text/lib/blots/block.js +0 -115
- package/rich-text/lib/blots/break.js +0 -20
- package/rich-text/lib/blots/container.js +0 -8
- package/rich-text/lib/blots/cursor.js +0 -97
- package/rich-text/lib/blots/embed.js +0 -47
- package/rich-text/lib/blots/inline.js +0 -50
- package/rich-text/lib/blots/scroll.js +0 -249
- package/rich-text/lib/blots/text.js +0 -17
- package/rich-text/lib/core/composition.js +0 -38
- package/rich-text/lib/core/editor.js +0 -248
- package/rich-text/lib/core/emitter.d.ts +0 -38
- package/rich-text/lib/core/emitter.js +0 -47
- package/rich-text/lib/core/logger.js +0 -20
- package/rich-text/lib/core/module.js +0 -14
- package/rich-text/lib/core/rich.d.ts +0 -183
- package/rich-text/lib/core/rich.js +0 -369
- package/rich-text/lib/core/selection.js +0 -222
- package/rich-text/lib/core/theme.js +0 -32
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +0 -29
- package/rich-text/lib/core/utils/scrollRectIntoView.js +0 -59
- package/rich-text/lib/delta/AttributeMap.js +0 -37
- package/rich-text/lib/delta/Op.js +0 -10
- package/rich-text/lib/delta/OpIterator.js +0 -45
- package/rich-text/lib/delta/index.js +0 -235
- package/rich-text/lib/diff/index.js +0 -285
- package/rich-text/lib/formats/align.js +0 -20
- package/rich-text/lib/formats/background.js +0 -11
- package/rich-text/lib/formats/blockquote.js +0 -16
- package/rich-text/lib/formats/bold.js +0 -25
- package/rich-text/lib/formats/code.js +0 -37
- package/rich-text/lib/formats/color.js +0 -16
- package/rich-text/lib/formats/direction.js +0 -15
- package/rich-text/lib/formats/emoji.js +0 -20
- package/rich-text/lib/formats/font.js +0 -51
- package/rich-text/lib/formats/formula.js +0 -35
- package/rich-text/lib/formats/header.js +0 -25
- package/rich-text/lib/formats/hr.js +0 -17
- package/rich-text/lib/formats/image.js +0 -46
- package/rich-text/lib/formats/indent.js +0 -38
- package/rich-text/lib/formats/italic.js +0 -16
- package/rich-text/lib/formats/lineHeight.js +0 -12
- package/rich-text/lib/formats/link.js +0 -47
- package/rich-text/lib/formats/list.js +0 -37
- package/rich-text/lib/formats/script.js +0 -23
- package/rich-text/lib/formats/size.js +0 -27
- package/rich-text/lib/formats/strike.js +0 -16
- package/rich-text/lib/formats/table.js +0 -134
- package/rich-text/lib/formats/underline.js +0 -16
- package/rich-text/lib/formats/video.js +0 -40
- package/rich-text/lib/index.js +0 -117
- package/rich-text/lib/modules/clipboard.js +0 -295
- package/rich-text/lib/modules/history.js +0 -119
- package/rich-text/lib/modules/image-resize/index.js +0 -80
- package/rich-text/lib/modules/image-resize/modules/Base.js +0 -14
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +0 -41
- package/rich-text/lib/modules/image-resize/modules/Resize.js +0 -62
- package/rich-text/lib/modules/image-resize/options.js +0 -11
- package/rich-text/lib/modules/input.js +0 -54
- package/rich-text/lib/modules/keyboard.js +0 -423
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +0 -12
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +0 -22
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +0 -39
- package/rich-text/lib/modules/table.js +0 -113
- package/rich-text/lib/modules/toolbar.js +0 -18
- package/rich-text/lib/modules/uiNode.js +0 -52
- package/rich-text/lib/modules/uploader.js +0 -46
- package/rich-text/lib/parchment/attributor/attributor.js +0 -30
- package/rich-text/lib/parchment/attributor/class.js +0 -26
- package/rich-text/lib/parchment/attributor/store.js +0 -44
- package/rich-text/lib/parchment/attributor/style.js +0 -25
- package/rich-text/lib/parchment/blot/abstract/container.js +0 -32
- package/rich-text/lib/parchment/blot/abstract/leaf.js +0 -25
- package/rich-text/lib/parchment/blot/abstract/parent.js +0 -156
- package/rich-text/lib/parchment/blot/abstract/shadow.js +0 -78
- package/rich-text/lib/parchment/blot/block.js +0 -71
- package/rich-text/lib/parchment/blot/embed.js +0 -18
- package/rich-text/lib/parchment/blot/inline.js +0 -73
- package/rich-text/lib/parchment/blot/scroll.js +0 -100
- package/rich-text/lib/parchment/blot/text.js +0 -56
- package/rich-text/lib/parchment/collection/linked-list.js +0 -86
- package/rich-text/lib/parchment/error.js +0 -10
- package/rich-text/lib/parchment/index.js +0 -36
- package/rich-text/lib/parchment/registry.js +0 -56
- package/rich-text/lib/parchment/scope.js +0 -8
- package/row-col/Col-.d.ts +0 -4
- package/row-col/Col-.js +0 -65
- package/slider/hook/useInterval.js +0 -94
- package/slider/hook/useLegalValue.js +0 -58
- package/splitter/SplitBar.js +0 -97
- package/steps/Step.js +0 -64
- package/table/constant.js +0 -36
- package/table/hook/useColumns.js +0 -115
- package/table/hook/useComponent.js +0 -27
- package/table/hook/useExpand.js +0 -33
- package/table/hook/useRowSelection.js +0 -73
- package/table/hook/useSorter.js +0 -51
- package/table/hook/useStickyClassNames.js +0 -25
- package/table/hook/useStickyOffsets.js +0 -28
- package/table/hook/useThResizable.js +0 -31
- package/tabs/hook/useDomSize.js +0 -23
- package/tabs/hook/useHeaderScroll.d.ts +0 -12
- package/tabs/hook/useHeaderScroll.js +0 -75
- package/tree-select/hook/useKeyCache.js +0 -49
- package/tree-select/hook/useStateValue.js +0 -70
- package/tree-select/hook/useTreeData.js +0 -15
- package/typography/useCssEllipsis.d.ts +0 -6
- package/typography/useCssEllipsis.js +0 -41
- package/typography/useEllipsis.d.ts +0 -21
- package/typography/useEllipsis.js +0 -149
- package/upload/constant.js +0 -11
- package/utils/constant.d.ts +0 -5
- package/utils/constant.js +0 -24
- package/virtual-list/constant.js +0 -7
- package/virtual-list/hook/useCacheChildrenNodes.js +0 -13
- package/virtual-list/hook/useComputeVirtualItemHeight.js +0 -17
- /package/{draw/constant.d.ts → affix/constants.d.ts} +0 -0
- /package/{rich-text/lib/modules/toolbar copy.d.ts → alert/constants.d.ts} +0 -0
- /package/{rich-text/lib/themes/base.d.ts → anchor/constants.d.ts} +0 -0
- /package/{rich-text/lib/themes/pqb.d.ts → animation/constants.d.ts} +0 -0
- /package/{rich-text/lib/ui/tooltip.d.ts → app/constants.d.ts} +0 -0
- /package/calendar/{hook → hooks}/useCellClassName.d.ts +0 -0
- /package/cascader/{hook → hooks}/useRefCurrent.d.ts +0 -0
- /package/date-picker/{hook → hooks}/useCellClassName.d.ts +0 -0
- /package/form/{FormItem.d.ts → Item.d.ts} +0 -0
- /package/form/{FormItemLabel.d.ts → ItemLabel.d.ts} +0 -0
- /package/form/{FormItemTip.d.ts → ItemTip.d.ts} +0 -0
- /package/form/{FormLabelSymbol.d.ts → LabelSymbol.d.ts} +0 -0
- /package/form/{FormList.d.ts → List.d.ts} +0 -0
- /package/form/{FormProvider.d.ts → Provider.d.ts} +0 -0
- /package/form/{constant.d.ts → constants.d.ts} +0 -0
- /package/form/{hook → hooks}/useForm.d.ts +0 -0
- /package/form/{hook → hooks}/useFormContext.d.ts +0 -0
- /package/form/{hook → hooks}/useFormState.d.ts +0 -0
- /package/form/{hook → hooks}/useWatch.d.ts +0 -0
- /package/image/{ImagePreview.d.ts → Preview.d.ts} +0 -0
- /package/image/{ImagePreviewArrow.d.ts → PreviewArrow.d.ts} +0 -0
- /package/image/{ImagePreviewGroup.d.ts → PreviewGroup.d.ts} +0 -0
- /package/image/{ImagePreviewToolbar.d.ts → PreviewToolbar.d.ts} +0 -0
- /package/image/{hook → hooks}/useImageStatus.d.ts +0 -0
- /package/image/{hook → hooks}/useShowFooter.d.ts +0 -0
- /package/input-number/{useSelectionRange.d.ts → hooks/useSelectionRange.d.ts} +0 -0
- /package/input-tag/{constant.d.ts → constants.d.ts} +0 -0
- /package/input-tag/{hook → hooks}/useComputeAutoWidthDelay.d.ts +0 -0
- /package/mask/{constant.d.ts → constants.d.ts} +0 -0
- /package/overflow-ellipsis/{OverflowItem.d.ts → Item.d.ts} +0 -0
- /package/progress/{CircleProgress.d.ts → Circle.d.ts} +0 -0
- /package/progress/{LineProgess.d.ts → Line.d.ts} +0 -0
- /package/progress/{StepProgress.d.ts → Step.d.ts} +0 -0
- /package/rich-text/{constant.d.ts → constants.d.ts} +0 -0
- /package/rich-text/{lib → libs}/LICENSE +0 -0
- /package/rich-text/{lib → libs}/blots/block.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/break.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/container.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/cursor.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/embed.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/inline.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/scroll.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/text.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/composition.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/editor.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/logger.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/module.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/selection.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/theme.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/utils/createRegistryWithFormats.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/utils/scrollRectIntoView.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/AttributeMap.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/LICENSE +0 -0
- /package/rich-text/{lib → libs}/delta/Op.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/OpIterator.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/diff/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/align.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/background.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/blockquote.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/bold.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/code.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/color.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/direction.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/emoji.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/font.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/formula.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/header.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/hr.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/image.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/indent.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/italic.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/liOl.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/liUl.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/lineHeight.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/link.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/list.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/script.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/size.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/strike.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/table.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/underline.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/video.d.ts +0 -0
- /package/rich-text/{lib → libs}/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/clipboard.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/history.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/Base.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/DisplaySize.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/Resize.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/options.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/input.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/keyboard.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/table.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/tableEmbed.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/toolbar.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/uiNode.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/uploader.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/LICENSE +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/attributor.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/class.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/store.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/style.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/blot.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/container.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/leaf.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/parent.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/shadow.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/block.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/embed.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/inline.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/scroll.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/text.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/collection/linked-list.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/collection/linked-node.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/error.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/registry.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/scope.d.ts +0 -0
- /package/slider/{hook → hooks}/useInterval.d.ts +0 -0
- /package/slider/{hook → hooks}/useLegalValue.d.ts +0 -0
- /package/splitter/{SplitBar.d.ts → Bar.d.ts} +0 -0
- /package/steps/{Step.d.ts → Item.d.ts} +0 -0
- /package/table/{constant.d.ts → constants.d.ts} +0 -0
- /package/table/{hook → hooks}/useColumns.d.ts +0 -0
- /package/table/{hook → hooks}/useComponent.d.ts +0 -0
- /package/table/{hook → hooks}/useExpand.d.ts +0 -0
- /package/table/{hook → hooks}/useRowSelection.d.ts +0 -0
- /package/table/{hook → hooks}/useSorter.d.ts +0 -0
- /package/table/{hook → hooks}/useStickyClassNames.d.ts +0 -0
- /package/table/{hook → hooks}/useStickyOffsets.d.ts +0 -0
- /package/table/{hook → hooks}/useThResizable.d.ts +0 -0
- /package/tabs/{hook → hooks}/useDomSize.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useKeyCache.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useStateValue.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useTreeData.d.ts +0 -0
- /package/upload/{constant.d.ts → constants.d.ts} +0 -0
- /package/virtual-list/{constant.d.ts → constants.d.ts} +0 -0
- /package/virtual-list/{hook → hooks}/useCacheChildrenNodes.d.ts +0 -0
- /package/virtual-list/{hook → hooks}/useComputeVirtualItemHeight.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import e from "./resize_filter_info.js";
|
|
3
|
+
//#region components/pc/draw/libs/pica/lib/mm_resize/resize_filter_gen.js
|
|
4
|
+
var t = 14;
|
|
5
|
+
function n(e) {
|
|
6
|
+
return Math.round(e * ((1 << t) - 1));
|
|
7
|
+
}
|
|
8
|
+
function r(t, r, i, a, o) {
|
|
9
|
+
var s = e.filter[t].fn, c = 1 / a, l = Math.min(1, a), u = e.filter[t].win / l, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O = Math.floor((u + 1) * 2), k = new Int16Array((O + 2) * i), A = 0, j = !k.subarray || !k.set;
|
|
10
|
+
for (d = 0; d < i; d++) {
|
|
11
|
+
for (f = (d + .5) * c + o, p = Math.max(0, Math.floor(f - u)), m = Math.min(r - 1, Math.ceil(f + u)), h = m - p + 1, g = new Float32Array(h), _ = new Int16Array(h), v = 0, y = p, b = 0; y <= m; y++, b++) x = s((y + .5 - f) * l), v += x, g[b] = x;
|
|
12
|
+
for (S = 0, b = 0; b < g.length; b++) C = g[b] / v, S += C, _[b] = n(C);
|
|
13
|
+
for (_[i >> 1] += n(1 - S), w = 0; w < _.length && _[w] === 0;) w++;
|
|
14
|
+
if (w < _.length) {
|
|
15
|
+
for (T = _.length - 1; T > 0 && _[T] === 0;) T--;
|
|
16
|
+
if (E = p + w, D = T - w + 1, k[A++] = E, k[A++] = D, !j) k.set(_.subarray(w, T + 1), A), A += D;
|
|
17
|
+
else for (b = w; b <= T; b++) k[A++] = _[b];
|
|
18
|
+
} else k[A++] = 0, k[A++] = 0;
|
|
19
|
+
}
|
|
20
|
+
return k;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { r as default };
|
|
24
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { filter };
|
|
3
|
+
export namespace f2q {
|
|
4
|
+
let box: number;
|
|
5
|
+
let hamming: number;
|
|
6
|
+
let lanczos2: number;
|
|
7
|
+
let lanczos3: number;
|
|
8
|
+
}
|
|
9
|
+
export let q2f: string[];
|
|
10
|
+
}
|
|
11
|
+
export default _default;
|
|
12
|
+
declare namespace filter {
|
|
13
|
+
export namespace box_1 {
|
|
14
|
+
let win: number;
|
|
15
|
+
function fn(x: any): 0 | 1;
|
|
16
|
+
}
|
|
17
|
+
export { box_1 as box };
|
|
18
|
+
export namespace hamming_1 {
|
|
19
|
+
let win_1: number;
|
|
20
|
+
export { win_1 as win };
|
|
21
|
+
export function fn_1(x: any): number;
|
|
22
|
+
export { fn_1 as fn };
|
|
23
|
+
}
|
|
24
|
+
export { hamming_1 as hamming };
|
|
25
|
+
export namespace lanczos2_1 {
|
|
26
|
+
let win_2: number;
|
|
27
|
+
export { win_2 as win };
|
|
28
|
+
export function fn_2(x: any): number;
|
|
29
|
+
export { fn_2 as fn };
|
|
30
|
+
}
|
|
31
|
+
export { lanczos2_1 as lanczos2 };
|
|
32
|
+
export namespace lanczos3_1 {
|
|
33
|
+
let win_3: number;
|
|
34
|
+
export { win_3 as win };
|
|
35
|
+
export function fn_3(x: any): number;
|
|
36
|
+
export { fn_3 as fn };
|
|
37
|
+
}
|
|
38
|
+
export { lanczos3_1 as lanczos3 };
|
|
39
|
+
export namespace mks2013 {
|
|
40
|
+
let win_4: number;
|
|
41
|
+
export { win_4 as win };
|
|
42
|
+
export function fn_4(x: any): number;
|
|
43
|
+
export { fn_4 as fn };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var e = {
|
|
2
|
+
filter: {
|
|
3
|
+
box: {
|
|
4
|
+
win: .5,
|
|
5
|
+
fn: function(e) {
|
|
6
|
+
return e < 0 && (e = -e), +(e < .5);
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
hamming: {
|
|
10
|
+
win: 1,
|
|
11
|
+
fn: function(e) {
|
|
12
|
+
if (e < 0 && (e = -e), e >= 1) return 0;
|
|
13
|
+
if (e < 1.1920929e-7) return 1;
|
|
14
|
+
var t = e * Math.PI;
|
|
15
|
+
return Math.sin(t) / t * (.54 + .46 * Math.cos(t / 1));
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
lanczos2: {
|
|
19
|
+
win: 2,
|
|
20
|
+
fn: function(e) {
|
|
21
|
+
if (e < 0 && (e = -e), e >= 2) return 0;
|
|
22
|
+
if (e < 1.1920929e-7) return 1;
|
|
23
|
+
var t = e * Math.PI;
|
|
24
|
+
return Math.sin(t) / t * Math.sin(t / 2) / (t / 2);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
lanczos3: {
|
|
28
|
+
win: 3,
|
|
29
|
+
fn: function(e) {
|
|
30
|
+
if (e < 0 && (e = -e), e >= 3) return 0;
|
|
31
|
+
if (e < 1.1920929e-7) return 1;
|
|
32
|
+
var t = e * Math.PI;
|
|
33
|
+
return Math.sin(t) / t * Math.sin(t / 3) / (t / 3);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
mks2013: {
|
|
37
|
+
win: 2.5,
|
|
38
|
+
fn: function(e) {
|
|
39
|
+
return e < 0 && (e = -e), e >= 2.5 ? 0 : e >= 1.5 ? -.125 * (e - 2.5) * (e - 2.5) : e >= .5 ? .25 * (4 * e * e - 11 * e + 7) : 1.0625 - 1.75 * e * e;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
f2q: {
|
|
44
|
+
box: 0,
|
|
45
|
+
hamming: 1,
|
|
46
|
+
lanczos2: 2,
|
|
47
|
+
lanczos3: 3
|
|
48
|
+
},
|
|
49
|
+
q2f: [
|
|
50
|
+
"box",
|
|
51
|
+
"hamming",
|
|
52
|
+
"lanczos2",
|
|
53
|
+
"lanczos3"
|
|
54
|
+
]
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { e as default };
|
|
58
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function resize_wasm(options: any): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import e from "./resize_filter_gen.js";
|
|
3
|
+
//#region components/pc/draw/libs/pica/lib/mm_resize/resize_wasm.js
|
|
4
|
+
function t(e, t, n) {
|
|
5
|
+
let r = 3, i = t * n * 4 | 0;
|
|
6
|
+
for (; r < i;) {
|
|
7
|
+
if (e[r] !== 255) return !0;
|
|
8
|
+
r = r + 4 | 0;
|
|
9
|
+
}
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
function n(e, t, n) {
|
|
13
|
+
let r = 3, i = t * n * 4 | 0;
|
|
14
|
+
for (; r < i;) e[r] = 255, r = r + 4 | 0;
|
|
15
|
+
}
|
|
16
|
+
function r(e) {
|
|
17
|
+
return new Uint8Array(e.buffer, 0, e.byteLength);
|
|
18
|
+
}
|
|
19
|
+
var i = !0;
|
|
20
|
+
try {
|
|
21
|
+
i = new Uint32Array(new Uint8Array([
|
|
22
|
+
1,
|
|
23
|
+
0,
|
|
24
|
+
0,
|
|
25
|
+
0
|
|
26
|
+
]).buffer)[0] === 1;
|
|
27
|
+
} catch {}
|
|
28
|
+
function a(e, t, n) {
|
|
29
|
+
if (i) {
|
|
30
|
+
t.set(r(e), n);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
for (let r = n, i = 0; i < e.length; i++) {
|
|
34
|
+
let n = e[i];
|
|
35
|
+
t[r++] = n & 255, t[r++] = n >> 8 & 255;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function o(r) {
|
|
39
|
+
let i = r.src, o = r.width, s = r.height, c = r.toWidth, l = r.toHeight, u = r.scaleX || r.toWidth / r.width, d = r.scaleY || r.toHeight / r.height, f = r.offsetX || 0, p = r.offsetY || 0, m = r.dest || new Uint8Array(c * l * 4), h = r.filter === void 0 ? "mks2013" : r.filter, g = e(h, o, c, u, f), _ = e(h, s, l, d, p), v = Math.max(i.byteLength, m.byteLength), y = this.__align(0 + v), b = s * c * 4 * 2, x = this.__align(y + b), S = this.__align(x + g.byteLength), C = S + _.byteLength, w = this.__instance("resize", C), T = new Uint8Array(this.__memory.buffer), E = new Uint32Array(this.__memory.buffer), D = new Uint32Array(i.buffer);
|
|
40
|
+
E.set(D), a(g, T, x), a(_, T, S);
|
|
41
|
+
let O = w.exports.convolveHV || w.exports._convolveHV;
|
|
42
|
+
return t(i, o, s) ? O(x, S, y, o, s, c, l, 1) : (O(x, S, y, o, s, c, l, 0), n(m, c, l)), new Uint32Array(m.buffer).set(new Uint32Array(this.__memory.buffer, 0, l * c)), m;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { o as default };
|
|
46
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let name: string;
|
|
3
|
+
export { fn };
|
|
4
|
+
export { wasm_fn };
|
|
5
|
+
export { wasm_src };
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
import fn from './unsharp_mask';
|
|
9
|
+
import wasm_fn from './unsharp_mask_wasm';
|
|
10
|
+
import wasm_src from './unsharp_mask_wasm_base64';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import e from "./unsharp_mask.js";
|
|
3
|
+
import t from "./unsharp_mask_wasm.js";
|
|
4
|
+
import n from "./unsharp_mask_wasm_base64.js";
|
|
5
|
+
//#region components/pc/draw/libs/pica/lib/mm_unsharp_mask/index.js
|
|
6
|
+
var r = {
|
|
7
|
+
name: "unsharp_mask",
|
|
8
|
+
fn: e,
|
|
9
|
+
wasm_fn: t,
|
|
10
|
+
wasm_src: n
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as default };
|
|
14
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function unsharp(img: any, width: any, height: any, amount: any, radius: any, threshold: any): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import e from "../../../glur/mono16.js";
|
|
3
|
+
//#region components/pc/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js
|
|
4
|
+
function t(e, t, n) {
|
|
5
|
+
for (var r = t * n, i = new Uint16Array(r), a, o, s, c, l = 0; l < r; l++) a = e[4 * l], o = e[4 * l + 1], s = e[4 * l + 2], c = a >= o && a >= s ? a : o >= s && o >= a ? o : s, i[l] = c << 8;
|
|
6
|
+
return i;
|
|
7
|
+
}
|
|
8
|
+
function n(n, r, i, a, o, s) {
|
|
9
|
+
var c, l, u, d, f;
|
|
10
|
+
if (!(a === 0 || o < .5)) {
|
|
11
|
+
o > 2 && (o = 2);
|
|
12
|
+
var p = t(n, r, i), m = new Uint16Array(p);
|
|
13
|
+
e(m, r, i, o);
|
|
14
|
+
for (var h = a / 100 * 4096 + .5 | 0, g = s << 8, _ = r * i, v = 0; v < _; v++) c = p[v], d = c - m[v], Math.abs(d) >= g && (l = c + (h * d + 2048 >> 12), l = l > 65280 ? 65280 : l, l = l < 0 ? 0 : l, c = c === 0 ? 1 : c, u = (l << 12) / c | 0, f = v * 4, n[f] = n[f] * u + 2048 >> 12, n[f + 1] = n[f + 1] * u + 2048 >> 12, n[f + 2] = n[f + 2] * u + 2048 >> 12);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as default };
|
|
19
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function unsharp(img: any, width: any, height: any, amount: any, radius: any, threshold: any): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js
|
|
3
|
+
function e(e, t, n, r, i, a) {
|
|
4
|
+
if (!(r === 0 || i < .5)) {
|
|
5
|
+
i > 2 && (i = 2);
|
|
6
|
+
var o = t * n, s = o * 4, c = o * 2, l = o * 2, u = Math.max(t, n) * 4, d = 32, f = 0, p = s, m = p + c, h = m + l, g = h + l, _ = g + u, v = this.__instance("unsharp_mask", s + c + l * 2 + u + d, { exp: Math.exp }), y = new Uint32Array(e.buffer);
|
|
7
|
+
new Uint32Array(this.__memory.buffer).set(y);
|
|
8
|
+
var b = v.exports.hsv_v16 || v.exports._hsv_v16;
|
|
9
|
+
b(f, p, t, n), alert(b), b = v.exports.blurMono16 || v.exports._blurMono16, b(p, m, h, g, _, t, n, i), b = v.exports.unsharp || v.exports._unsharp, b(f, f, p, m, t, n, r, a), y.set(new Uint32Array(this.__memory.buffer, 0, o));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as default };
|
|
14
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export default s;
|
|
2
|
+
declare const s: "AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js
|
|
3
|
+
var e = "AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as default };
|
|
6
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default Pool;
|
|
2
|
+
declare function Pool(create: any, idle: any): void;
|
|
3
|
+
declare class Pool {
|
|
4
|
+
constructor(create: any, idle: any);
|
|
5
|
+
create: any;
|
|
6
|
+
available: any[];
|
|
7
|
+
acquired: {};
|
|
8
|
+
lastId: number;
|
|
9
|
+
timeoutId: number;
|
|
10
|
+
idle: any;
|
|
11
|
+
acquire(): any;
|
|
12
|
+
release(resource: any): void;
|
|
13
|
+
gc(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/pica/lib/pool.js
|
|
3
|
+
var e = 100;
|
|
4
|
+
function t(e, t) {
|
|
5
|
+
this.create = e, this.available = [], this.acquired = {}, this.lastId = 1, this.timeoutId = 0, this.idle = t || 2e3;
|
|
6
|
+
}
|
|
7
|
+
t.prototype.acquire = function() {
|
|
8
|
+
let e;
|
|
9
|
+
return this.available.length === 0 ? (e = this.create(), e.id = this.lastId++, e.release = () => this.release(e)) : e = this.available.pop(), this.acquired[e.id] = e, e;
|
|
10
|
+
}, t.prototype.release = function(t) {
|
|
11
|
+
delete this.acquired[t.id], t.lastUsed = Date.now(), this.available.push(t), this.timeoutId === 0 && (this.timeoutId = setTimeout(() => this.gc(), e));
|
|
12
|
+
}, t.prototype.gc = function() {
|
|
13
|
+
let t = Date.now();
|
|
14
|
+
this.available = this.available.filter((e) => t - e.lastUsed > this.idle ? (e.destroy(), !1) : !0), this.available.length === 0 ? this.timeoutId = 0 : this.timeoutId = setTimeout(() => this.gc(), e);
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t as default };
|
|
18
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function createStages(fromWidth: any, fromHeight: any, toWidth: any, toHeight: any, srcTileSize: any, destTileBorder: any): any[][];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function e(e, t, n, r, i, a) {
|
|
2
|
+
let o = n / e, s = r / t, c = (2 * a + 2 + 1) / i;
|
|
3
|
+
if (c > .5) return [[n, r]];
|
|
4
|
+
let l = Math.ceil(Math.log(Math.min(o, s)) / Math.log(c));
|
|
5
|
+
if (l <= 1) return [[n, r]];
|
|
6
|
+
let u = [];
|
|
7
|
+
for (let i = 0; i < l; i++) {
|
|
8
|
+
let a = Math.round((e ** (l - i - 1) * n ** +(i + 1)) ** (1 / l)), o = Math.round((t ** (l - i - 1) * r ** +(i + 1)) ** (1 / l));
|
|
9
|
+
u.push([a, o]);
|
|
10
|
+
}
|
|
11
|
+
return u;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as default };
|
|
15
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default function createRegions(options: any): {
|
|
2
|
+
toX: number;
|
|
3
|
+
toY: number;
|
|
4
|
+
toWidth: number;
|
|
5
|
+
toHeight: number;
|
|
6
|
+
toInnerX: number;
|
|
7
|
+
toInnerY: number;
|
|
8
|
+
toInnerWidth: number;
|
|
9
|
+
toInnerHeight: number;
|
|
10
|
+
offsetX: number;
|
|
11
|
+
offsetY: number;
|
|
12
|
+
scaleX: number;
|
|
13
|
+
scaleY: number;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/pica/lib/tiler.js
|
|
3
|
+
var e = 1e-5;
|
|
4
|
+
function t(t) {
|
|
5
|
+
var n = Math.round(t);
|
|
6
|
+
return Math.abs(t - n) < e ? n : Math.floor(t);
|
|
7
|
+
}
|
|
8
|
+
function n(t) {
|
|
9
|
+
var n = Math.round(t);
|
|
10
|
+
return Math.abs(t - n) < e ? n : Math.ceil(t);
|
|
11
|
+
}
|
|
12
|
+
function r(e) {
|
|
13
|
+
var r = e.toWidth / e.width, i = e.toHeight / e.height, a = t(e.srcTileSize * r) - 2 * e.destTileBorder, o = t(e.srcTileSize * i) - 2 * e.destTileBorder;
|
|
14
|
+
if (a < 1 || o < 1) throw Error("Internal error in pica: target tile width/height is too small.");
|
|
15
|
+
var s, c, l, u, d, f, p = [], m;
|
|
16
|
+
for (u = 0; u < e.toHeight; u += o) for (l = 0; l < e.toWidth; l += a) s = l - e.destTileBorder, s < 0 && (s = 0), d = l + a + e.destTileBorder - s, s + d >= e.toWidth && (d = e.toWidth - s), c = u - e.destTileBorder, c < 0 && (c = 0), f = u + o + e.destTileBorder - c, c + f >= e.toHeight && (f = e.toHeight - c), m = {
|
|
17
|
+
toX: s,
|
|
18
|
+
toY: c,
|
|
19
|
+
toWidth: d,
|
|
20
|
+
toHeight: f,
|
|
21
|
+
toInnerX: l,
|
|
22
|
+
toInnerY: u,
|
|
23
|
+
toInnerWidth: a,
|
|
24
|
+
toInnerHeight: o,
|
|
25
|
+
offsetX: s / r - t(s / r),
|
|
26
|
+
offsetY: c / i - t(c / i),
|
|
27
|
+
scaleX: r,
|
|
28
|
+
scaleY: i,
|
|
29
|
+
x: t(s / r),
|
|
30
|
+
y: t(c / i),
|
|
31
|
+
width: n(d / r),
|
|
32
|
+
height: n(f / i)
|
|
33
|
+
}, p.push(m);
|
|
34
|
+
return p;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { r as default };
|
|
38
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function isCanvas(element: any): boolean;
|
|
2
|
+
export function isImage(element: any): boolean;
|
|
3
|
+
export function isImageBitmap(element: any): boolean;
|
|
4
|
+
export function limiter(concurrency: any): (fn: any) => Promise<any>;
|
|
5
|
+
export function cib_quality_name(num: any): "medium" | "pixelated" | "high" | "low";
|
|
6
|
+
export function cib_support(createCanvas: any): Promise<boolean>;
|
|
7
|
+
export function worker_offscreen_canvas_support(): Promise<any>;
|
|
8
|
+
export function can_use_canvas(createCanvas: any): boolean;
|
|
9
|
+
export function cib_can_use_region(): Promise<any>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/pica/lib/utils.js
|
|
3
|
+
function e(e) {
|
|
4
|
+
return Object.prototype.toString.call(e);
|
|
5
|
+
}
|
|
6
|
+
var t = function(t) {
|
|
7
|
+
let n = e(t);
|
|
8
|
+
return n === "[object HTMLCanvasElement]" || n === "[object OffscreenCanvas]" || n === "[object Canvas]";
|
|
9
|
+
}, n = function(t) {
|
|
10
|
+
return e(t) === "[object HTMLImageElement]";
|
|
11
|
+
}, r = function(t) {
|
|
12
|
+
return e(t) === "[object ImageBitmap]";
|
|
13
|
+
}, i = function(e) {
|
|
14
|
+
let t = 0, n = [];
|
|
15
|
+
function r() {
|
|
16
|
+
t < e && n.length && (t++, n.shift()());
|
|
17
|
+
}
|
|
18
|
+
return function(e) {
|
|
19
|
+
return new Promise((i, a) => {
|
|
20
|
+
n.push(() => {
|
|
21
|
+
e().then((e) => {
|
|
22
|
+
i(e), t--, r();
|
|
23
|
+
}, (e) => {
|
|
24
|
+
a(e), t--, r();
|
|
25
|
+
});
|
|
26
|
+
}), r();
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}, a = function(e) {
|
|
30
|
+
switch (e) {
|
|
31
|
+
case 0: return "pixelated";
|
|
32
|
+
case 1: return "low";
|
|
33
|
+
case 2: return "medium";
|
|
34
|
+
}
|
|
35
|
+
return "high";
|
|
36
|
+
}, o = function(e) {
|
|
37
|
+
return Promise.resolve().then(() => {
|
|
38
|
+
if (typeof createImageBitmap > "u") return !1;
|
|
39
|
+
let t = e(100, 100);
|
|
40
|
+
return createImageBitmap(t, 0, 0, 100, 100, {
|
|
41
|
+
resizeWidth: 10,
|
|
42
|
+
resizeHeight: 10,
|
|
43
|
+
resizeQuality: "high"
|
|
44
|
+
}).then((e) => {
|
|
45
|
+
let n = e.width === 10;
|
|
46
|
+
return e.close(), t = null, n;
|
|
47
|
+
});
|
|
48
|
+
}).catch(() => !1);
|
|
49
|
+
}, s = function() {
|
|
50
|
+
return new Promise((e, t) => {
|
|
51
|
+
if (typeof OffscreenCanvas > "u") {
|
|
52
|
+
e(!1);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
function n(e) {
|
|
56
|
+
if (typeof createImageBitmap > "u") {
|
|
57
|
+
e.postMessage(!1);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
Promise.resolve().then(() => {
|
|
61
|
+
let e = new OffscreenCanvas(10, 10);
|
|
62
|
+
return e.getContext("2d").rect(0, 0, 1, 1), createImageBitmap(e, 0, 0, 1, 1);
|
|
63
|
+
}).then(() => e.postMessage(!0), () => e.postMessage(!1));
|
|
64
|
+
}
|
|
65
|
+
let r = btoa(`(${n.toString()})(self);`), i = new Worker(`data:text/javascript;base64,${r}`);
|
|
66
|
+
i.onmessage = (t) => e(t.data), i.onerror = t;
|
|
67
|
+
}).then((e) => e, () => !1);
|
|
68
|
+
}, c = function(e) {
|
|
69
|
+
let t = !1;
|
|
70
|
+
try {
|
|
71
|
+
let n = e(2, 1).getContext("2d"), r = n.createImageData(2, 1);
|
|
72
|
+
r.data[0] = 12, r.data[1] = 23, r.data[2] = 34, r.data[3] = 255, r.data[4] = 45, r.data[5] = 56, r.data[6] = 67, r.data[7] = 255, n.putImageData(r, 0, 0), r = null, r = n.getImageData(0, 0, 2, 1), r.data[0] === 12 && r.data[1] === 23 && r.data[2] === 34 && r.data[3] === 255 && r.data[4] === 45 && r.data[5] === 56 && r.data[6] === 67 && r.data[7] === 255 && (t = !0);
|
|
73
|
+
} catch {}
|
|
74
|
+
return t;
|
|
75
|
+
}, l = function() {
|
|
76
|
+
return new Promise((e) => {
|
|
77
|
+
if (typeof Image > "u" || typeof createImageBitmap > "u") {
|
|
78
|
+
e(!1);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let t = new Image();
|
|
82
|
+
t.src = "data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z", t.onload = () => {
|
|
83
|
+
createImageBitmap(t, 0, 0, t.width, t.height).then((n) => {
|
|
84
|
+
n.width === t.width && n.height === t.height ? e(!0) : e(!1);
|
|
85
|
+
}, () => e(!1));
|
|
86
|
+
}, t.onerror = () => e(!1);
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
export { c as can_use_canvas, l as cib_can_use_region, a as cib_quality_name, o as cib_support, t as isCanvas, n as isImage, r as isImageBitmap, i as limiter, s as worker_offscreen_canvas_support };
|
|
91
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import e from "./mathlib.js";
|
|
3
|
+
//#region components/pc/draw/libs/pica/lib/worker.js
|
|
4
|
+
function t() {
|
|
5
|
+
let t;
|
|
6
|
+
onmessage = function(n) {
|
|
7
|
+
let r = n.data.opts;
|
|
8
|
+
if (!r.src && r.srcBitmap) {
|
|
9
|
+
let e = new OffscreenCanvas(r.width, r.height), t = e.getContext("2d");
|
|
10
|
+
t.drawImage(r.srcBitmap, 0, 0), r.src = t.getImageData(0, 0, r.width, r.height).data, e.width = e.height = 0, e = null, r.srcBitmap.close(), r.srcBitmap = null;
|
|
11
|
+
}
|
|
12
|
+
t ||= new e(n.data.features);
|
|
13
|
+
let i = t.resizeAndUnsharp(r);
|
|
14
|
+
postMessage({ data: i }, [i.buffer]);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { t as default };
|
|
19
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/png-chunk-text/decode.js
|
|
3
|
+
function e(e) {
|
|
4
|
+
e.data && e.name && (e = e.data);
|
|
5
|
+
for (var t = !0, n = "", r = "", i = 0; i < e.length; i++) {
|
|
6
|
+
var a = e[i];
|
|
7
|
+
if (t) a ? r += String.fromCharCode(a) : t = !1;
|
|
8
|
+
else if (a) n += String.fromCharCode(a);
|
|
9
|
+
else throw Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
keyword: r,
|
|
13
|
+
text: n
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as default };
|
|
18
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
//#region components/pc/draw/libs/png-chunk-text/encode.js
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
if (e = String(e), t = String(t), !/^[\x00-\xFF]+$/.test(e) || !/^[\x00-\xFF]+$/.test(t)) throw Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");
|
|
5
|
+
if (e.length >= 80) throw Error("Keyword \"" + e + "\" is longer than the 79-character limit imposed by the PNG specification");
|
|
6
|
+
for (var n = e.length + t.length + 1, r = new Uint8Array(n), i = 0, a, o = 0; o < e.length; o++) {
|
|
7
|
+
if (!(a = e.charCodeAt(o))) throw Error("0x00 character is not permitted in tEXt keywords");
|
|
8
|
+
r[i++] = a;
|
|
9
|
+
}
|
|
10
|
+
r[i++] = 0;
|
|
11
|
+
for (var s = 0; s < t.length; s++) {
|
|
12
|
+
if (!(a = t.charCodeAt(s))) throw Error("0x00 character is not permitted in tEXt content");
|
|
13
|
+
r[i++] = a;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
name: "tEXt",
|
|
17
|
+
data: r
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { e as default };
|
|
22
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import { __exportAll as e } from "../../../.virtual/_rolldown/runtime.js";
|
|
3
|
+
import t from "./decode.js";
|
|
4
|
+
import n from "./encode.js";
|
|
5
|
+
//#region components/pc/draw/libs/png-chunk-text/index.js
|
|
6
|
+
var r = /* @__PURE__ */ e({
|
|
7
|
+
decode: () => t,
|
|
8
|
+
default: () => i,
|
|
9
|
+
encode: () => n
|
|
10
|
+
}), i = {
|
|
11
|
+
decode: t,
|
|
12
|
+
encode: n
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as default, r as png_chunk_text_exports };
|
|
16
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import { __exportAll as e } from "../../../.virtual/_rolldown/runtime.js";
|
|
3
|
+
import t from "../sliced/index.js";
|
|
4
|
+
import n from "@unicom-cloud/utils/xlsx/crc32";
|
|
5
|
+
//#region components/pc/draw/libs/png-chunks-encode/index.js
|
|
6
|
+
var r = /* @__PURE__ */ e({
|
|
7
|
+
default: () => s,
|
|
8
|
+
encodeChunks: () => s
|
|
9
|
+
}), i = /* @__PURE__ */ new Uint8Array(4), a = new Int32Array(i.buffer), o = new Uint32Array(i.buffer);
|
|
10
|
+
function s(e) {
|
|
11
|
+
var r = 8, s = r, c;
|
|
12
|
+
for (c = 0; c < e.length; c++) r += e[c].data.length, r += 12;
|
|
13
|
+
var l = new Uint8Array(r);
|
|
14
|
+
for (l[0] = 137, l[1] = 80, l[2] = 78, l[3] = 71, l[4] = 13, l[5] = 10, l[6] = 26, l[7] = 10, c = 0; c < e.length; c++) {
|
|
15
|
+
var u = e[c], d = u.name, f = u.data, p = f.length, m = [
|
|
16
|
+
d.charCodeAt(0),
|
|
17
|
+
d.charCodeAt(1),
|
|
18
|
+
d.charCodeAt(2),
|
|
19
|
+
d.charCodeAt(3)
|
|
20
|
+
];
|
|
21
|
+
o[0] = p, l[s++] = i[3], l[s++] = i[2], l[s++] = i[1], l[s++] = i[0], l[s++] = m[0], l[s++] = m[1], l[s++] = m[2], l[s++] = m[3];
|
|
22
|
+
for (var h = 0; h < p;) l[s++] = f[h++];
|
|
23
|
+
var g = m.concat(t(f));
|
|
24
|
+
a[0] = n.buf(g), l[s++] = i[3], l[s++] = i[2], l[s++] = i[1], l[s++] = i[0];
|
|
25
|
+
}
|
|
26
|
+
return l;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as default, r as png_chunks_encode_exports };
|
|
30
|
+
/* 独立思考,明辨是非 */
|