oolong-engine 0.0.1
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/AppStage.d.ts +5 -0
- package/dist/ability/copyPaste/copy/CopyWorker.d.ts +7 -0
- package/dist/ability/copyPaste/duplicate/DuplicateWorker.d.ts +7 -0
- package/dist/ability/copyPaste/paste/AbsPasteWorker.d.ts +16 -0
- package/dist/ability/copyPaste/paste/CrossPasteWorker.d.ts +5 -0
- package/dist/ability/copyPaste/paste/PasteWorker.d.ts +5 -0
- package/dist/ability/copyPaste/paste/propsHandler/AbsPropsHandler.d.ts +5 -0
- package/dist/ability/copyPaste/paste/propsHandler/BasePropsHandler.d.ts +6 -0
- package/dist/ability/copyPaste/paste/propsHandler/ConnectPropsHandler.d.ts +6 -0
- package/dist/ability/copyPaste/paste/propsHandler/ImgPropsHandler.d.ts +6 -0
- package/dist/ability/copyPaste/paste/propsHandler/LinePropsHandler.d.ts +6 -0
- package/dist/ability/copyPaste/paste/propsHandler/SvgPropsHandler.d.ts +6 -0
- package/dist/ability/crop/CropWorker.d.ts +6 -0
- package/dist/ability/delete/DeleteWorker.d.ts +5 -0
- package/dist/ability/drawer/FallbackDrawer.d.ts +4 -0
- package/dist/ability/group/GroupWorker.d.ts +7 -0
- package/dist/ability/group/RelatedGroupBaseWorker.d.ts +7 -0
- package/dist/ability/image/ImageWorker.d.ts +5 -0
- package/dist/ability/index.d.ts +1 -0
- package/dist/ability/line/LayoutConst.d.ts +1 -0
- package/dist/ability/line/LayoutUtils.d.ts +17 -0
- package/dist/ability/line/LayoutWorker.d.ts +11 -0
- package/dist/ability/line/handler/AbsLineLayoutHandler.d.ts +13 -0
- package/dist/ability/line/handler/CurveLayoutHandler.d.ts +13 -0
- package/dist/ability/line/handler/SimpleLineLayoutHandler.d.ts +10 -0
- package/dist/ability/line/handler/polyline/PolyLineLayoutHandler.d.ts +20 -0
- package/dist/ability/line/handler/polyline/handler/AbsLayoutHandler.d.ts +11 -0
- package/dist/ability/line/handler/polyline/handler/BottomLayoutHandler.d.ts +12 -0
- package/dist/ability/line/handler/polyline/handler/FreePointLayoutHandler.d.ts +10 -0
- package/dist/ability/line/handler/polyline/handler/LeftLayoutHandler.d.ts +12 -0
- package/dist/ability/line/handler/polyline/handler/RightLayoutHandler.d.ts +12 -0
- package/dist/ability/line/handler/polyline/handler/TopLayoutHandler.d.ts +12 -0
- package/dist/ability/moveLayer/MoveLayerWorker.d.ts +15 -0
- package/dist/ability/quickCreate/QuickCreateWorker.d.ts +14 -0
- package/dist/ability/svg/CreateSvgWorker.d.ts +10 -0
- package/dist/ability/svg/GenSvgBitmapWorker.d.ts +5 -0
- package/dist/action/ActionConfig.d.ts +2 -0
- package/dist/action/ActionManager.d.ts +45 -0
- package/dist/action/base/ActionType.d.ts +9 -0
- package/dist/action/cache/ActionCache.d.ts +8 -0
- package/dist/action/executor/AbsActionExecutor.d.ts +10 -0
- package/dist/action/executor/ExecutorContext.d.ts +21 -0
- package/dist/action/executor/ExecutorManager.d.ts +10 -0
- package/dist/action/executor/common/EndExecutor.d.ts +9 -0
- package/dist/action/executor/common/StartExecutor.d.ts +9 -0
- package/dist/action/executor/node/AddExecutor.d.ts +13 -0
- package/dist/action/executor/node/SelectNodeExecutor.d.ts +14 -0
- package/dist/action/executor/node/TextFocusExecutor.d.ts +11 -0
- package/dist/action/executor/node/remove/RemoveExecutor.d.ts +10 -0
- package/dist/action/executor/node/update/UpdateExecutor.d.ts +17 -0
- package/dist/action/executor/node/update/handler/AbsPropsHandler.d.ts +5 -0
- package/dist/action/executor/node/update/handler/ConnectPropsHandler.d.ts +6 -0
- package/dist/action/executor/node/update/handler/ImagePropsHandler.d.ts +6 -0
- package/dist/action/executor/node/update/handler/SvgPropsHandler.d.ts +6 -0
- package/dist/action/index.d.ts +35 -0
- package/dist/action/log/AbsActionLog.d.ts +12 -0
- package/dist/action/log/ActionLogGroup.d.ts +6 -0
- package/dist/action/log/ActionMeta.d.ts +4 -0
- package/dist/action/log/ActionOp.d.ts +6 -0
- package/dist/action/log/IActionLog.d.ts +11 -0
- package/dist/action/log/common/EndLog.d.ts +8 -0
- package/dist/action/log/common/StartLog.d.ts +8 -0
- package/dist/action/log/data/AddNodeData.d.ts +12 -0
- package/dist/action/log/data/RemoveNodeData.d.ts +3 -0
- package/dist/action/log/data/SelectNodeData.d.ts +3 -0
- package/dist/action/log/data/TextFocusData.d.ts +25 -0
- package/dist/action/log/data/UpdateNodeData.d.ts +10 -0
- package/dist/action/log/node/AddNodeLog.d.ts +9 -0
- package/dist/action/log/node/RemoveNodeLog.d.ts +9 -0
- package/dist/action/log/node/SelectNodeLog.d.ts +9 -0
- package/dist/action/log/node/TextFocusLog.d.ts +13 -0
- package/dist/action/log/node/UpdateNodeLog.d.ts +11 -0
- package/dist/action/msgPack/NodeMsgPkg.d.ts +9 -0
- package/dist/action/render/RenderConst.d.ts +2 -0
- package/dist/action/render/RenderManager.d.ts +34 -0
- package/dist/action/render/export/ExportWorker.d.ts +5 -0
- package/dist/action/render/zoom/ZoomWorker.d.ts +13 -0
- package/dist/action/undo/UndoRedoManager.d.ts +10 -0
- package/dist/app/AbsNetworkPlugin.d.ts +12 -0
- package/dist/app/AppEventContext.d.ts +56 -0
- package/dist/app/IPlugin.d.ts +14 -0
- package/dist/app/OolongApp.d.ts +52 -0
- package/dist/app/api/OolongAPI.d.ts +37 -0
- package/dist/app/api/module/CopyPasteAPI.d.ts +8 -0
- package/dist/app/api/module/CropAPI.d.ts +8 -0
- package/dist/app/api/module/ImageAPI.d.ts +8 -0
- package/dist/app/api/module/createAPI.d.ts +20 -0
- package/dist/app/docState/DocState.d.ts +26 -0
- package/dist/app/docState/Permission.d.ts +3 -0
- package/dist/app/index.d.ts +7 -0
- package/dist/application/AbsNodeManager.d.ts +33 -0
- package/dist/application/CanvasRender.d.ts +27 -0
- package/dist/application/GMLRender.d.ts +85 -0
- package/dist/application/IApplication.d.ts +41 -0
- package/dist/application/index.d.ts +5 -0
- package/dist/application/nodeManager/ConnectInfo.d.ts +14 -0
- package/dist/application/nodeManager/NodeManager.d.ts +26 -0
- package/dist/asyncRender/AsyncRenderNodeManager.d.ts +23 -0
- package/dist/asyncRender/ImgTextureTask.d.ts +6 -0
- package/dist/asyncRender/SvgTextureTask.d.ts +6 -0
- package/dist/asyncRender/TextureTaskType.d.ts +4 -0
- package/dist/auxiliary/AuxGraphicFactory.d.ts +8 -0
- package/dist/auxiliary/AuxUtils.d.ts +4 -0
- package/dist/auxiliary/AuxiliaryManager.d.ts +29 -0
- package/dist/auxiliary/AuxiliaryStyleConst.d.ts +18 -0
- package/dist/auxiliary/CollaborationManager.d.ts +2 -0
- package/dist/auxiliary/graphics/AbsAuxGraphic.d.ts +7 -0
- package/dist/auxiliary/graphics/AuxiliaryType.d.ts +32 -0
- package/dist/auxiliary/graphics/align/AlignLine.d.ts +13 -0
- package/dist/auxiliary/graphics/align/AlignStretchLine.d.ts +12 -0
- package/dist/auxiliary/graphics/create/CreateRectBound.d.ts +12 -0
- package/dist/auxiliary/graphics/crop/CropBounds.d.ts +12 -0
- package/dist/auxiliary/graphics/crop/CropOriginImg.d.ts +15 -0
- package/dist/auxiliary/graphics/group/SelectGroup.d.ts +13 -0
- package/dist/auxiliary/graphics/hover/HoverAnchorPoint.d.ts +12 -0
- package/dist/auxiliary/graphics/hover/HoverBound.d.ts +12 -0
- package/dist/auxiliary/graphics/hover/HoverConnectAnchor.d.ts +10 -0
- package/dist/auxiliary/graphics/hover/HoverConnectAnchorPoint.d.ts +10 -0
- package/dist/auxiliary/graphics/hover/HoverConnectPoint.d.ts +10 -0
- package/dist/auxiliary/graphics/hover/HoverContainer.d.ts +10 -0
- package/dist/auxiliary/graphics/hover/HoverLine.d.ts +12 -0
- package/dist/auxiliary/graphics/hover/HoverSizer.d.ts +12 -0
- package/dist/auxiliary/graphics/preview/PreviewGraphics.d.ts +13 -0
- package/dist/auxiliary/graphics/select/ExpandShapeButton.d.ts +12 -0
- package/dist/auxiliary/graphics/select/HighlightRects.d.ts +10 -0
- package/dist/auxiliary/graphics/select/MultiSelectBound.d.ts +13 -0
- package/dist/auxiliary/graphics/select/SelectConnectAnchor.d.ts +10 -0
- package/dist/auxiliary/graphics/select/SelectLine.d.ts +10 -0
- package/dist/auxiliary/graphics/select/SelectLineEnd.d.ts +16 -0
- package/dist/auxiliary/graphics/select/SelectLineTextRect.d.ts +10 -0
- package/dist/auxiliary/graphics/select/SelectPolyLineControlPoint.d.ts +12 -0
- package/dist/auxiliary/graphics/select/SingleSelectBound.d.ts +17 -0
- package/dist/auxiliary/graphics/select/StretchRect.d.ts +12 -0
- package/dist/auxiliary/graphics/text/PlaceHolder.d.ts +10 -0
- package/dist/auxiliary/graphics/text/TextSelection.d.ts +12 -0
- package/dist/auxiliary/index.d.ts +18 -0
- package/dist/common/IRectNode.d.ts +9 -0
- package/dist/common/LinkNode.d.ts +24 -0
- package/dist/common/OSType.d.ts +8 -0
- package/dist/common/Point.d.ts +7 -0
- package/dist/common/Rect.d.ts +19 -0
- package/dist/common/RectNode.d.ts +10 -0
- package/dist/common/detect/AbsDetector.d.ts +13 -0
- package/dist/common/detect/DetectorEnum.d.ts +21 -0
- package/dist/common/index.d.ts +11 -0
- package/dist/common/interact/IConfig.d.ts +5 -0
- package/dist/common/interact/InteractiveEvent.d.ts +14 -0
- package/dist/common/interact/StretchType.d.ts +10 -0
- package/dist/common/paste/PasteData.d.ts +29 -0
- package/dist/component/canvas/CanvasConfig.d.ts +4 -0
- package/dist/component/canvas/CanvasContainer.d.ts +8 -0
- package/dist/component/canvas/dhp/DHPCanvas.d.ts +7 -0
- package/dist/component/canvasInput/CanvasInput.d.ts +7 -0
- package/dist/component/index.d.ts +4 -0
- package/dist/config/ShapeCategoryType.d.ts +10 -0
- package/dist/config/defaultBorderConfig.d.ts +10 -0
- package/dist/config/defaultColorConfig.d.ts +10 -0
- package/dist/config/defaultSectionConfig.d.ts +9 -0
- package/dist/config/shapeCategory.d.ts +4 -0
- package/dist/crop/CropManager.d.ts +5 -0
- package/dist/cursor/CursorManager.d.ts +4 -0
- package/dist/cursor/CursorStyle.d.ts +7 -0
- package/dist/engine.js +23371 -0
- package/dist/engine.umd.cjs +54 -0
- package/dist/file/DocSettingDO.d.ts +6 -0
- package/dist/file/SerializeManager.d.ts +10 -0
- package/dist/graphics/ConnectorPoint.d.ts +13 -0
- package/dist/graphics/ControlPoint.d.ts +4 -0
- package/dist/graphics/GraphicConst.d.ts +2 -0
- package/dist/graphics/IDrawer.d.ts +9 -0
- package/dist/graphics/OolongGroup.d.ts +22 -0
- package/dist/graphics/OolongImgNode.d.ts +10 -0
- package/dist/graphics/OolongNode.d.ts +51 -0
- package/dist/graphics/OolongSVGNode.d.ts +13 -0
- package/dist/graphics/OolongSVGUtils.d.ts +15 -0
- package/dist/graphics/OolongSection.d.ts +16 -0
- package/dist/graphics/base/LineShapeType.d.ts +6 -0
- package/dist/graphics/base/NodeConnectEndType.d.ts +16 -0
- package/dist/graphics/base/SectionType.d.ts +6 -0
- package/dist/graphics/base/ShapeType.d.ts +28 -0
- package/dist/graphics/drawer/AbsDrawer.d.ts +12 -0
- package/dist/graphics/drawer/BasePolyLineDrawer.d.ts +13 -0
- package/dist/graphics/drawer/EllipseDrawer.d.ts +11 -0
- package/dist/graphics/drawer/LingxingDrawer.d.ts +10 -0
- package/dist/graphics/drawer/PureTextDrawer.d.ts +7 -0
- package/dist/graphics/drawer/RectDrawer.d.ts +5 -0
- package/dist/graphics/drawer/RoundRectDrawer.d.ts +8 -0
- package/dist/graphics/drawer/TriangleDrawer.d.ts +12 -0
- package/dist/graphics/drawer/line/CurveDrawer.d.ts +12 -0
- package/dist/graphics/drawer/line/PolyLineDrawer.d.ts +12 -0
- package/dist/graphics/drawer/line/RoundPolyLineDrawer.d.ts +24 -0
- package/dist/graphics/drawer/line/SimpleLineDrawer.d.ts +11 -0
- package/dist/graphics/img/AbsImgNode.d.ts +28 -0
- package/dist/graphics/index.d.ts +29 -0
- package/dist/graphics/line/LineIntersectionUtils.d.ts +10 -0
- package/dist/graphics/line/OolongLine.d.ts +69 -0
- package/dist/graphics/line/arrow/AbsArrowDrawer.d.ts +4 -0
- package/dist/graphics/line/arrow/ArrowConst.d.ts +4 -0
- package/dist/graphics/line/arrow/DiamondArrowDrawer.d.ts +5 -0
- package/dist/graphics/line/arrow/EmptyDiamondArrowDrawer.d.ts +5 -0
- package/dist/graphics/line/arrow/EmptyTriangleArrowDrawer.d.ts +5 -0
- package/dist/graphics/line/arrow/SimpleArrowDrawer.d.ts +8 -0
- package/dist/graphics/line/arrow/TriangleArrowDrawer.d.ts +5 -0
- package/dist/graphics/node/GraphicNode.d.ts +84 -0
- package/dist/graphics/node/NodeFactory.d.ts +10 -0
- package/dist/graphics/node/RootNode.d.ts +15 -0
- package/dist/graphics/props/AbsProps.d.ts +6 -0
- package/dist/graphics/props/ArrowProps.d.ts +13 -0
- package/dist/graphics/props/BaseProps.d.ts +15 -0
- package/dist/graphics/props/BorderProps.d.ts +15 -0
- package/dist/graphics/props/ColorProps.d.ts +12 -0
- package/dist/graphics/props/ConnectProps.d.ts +11 -0
- package/dist/graphics/props/CropProps.d.ts +11 -0
- package/dist/graphics/props/ImageProps.d.ts +10 -0
- package/dist/graphics/props/LineProps.d.ts +16 -0
- package/dist/graphics/props/LineTextRectProps.d.ts +12 -0
- package/dist/graphics/props/PropType.d.ts +14 -0
- package/dist/graphics/props/ShapeProps.d.ts +11 -0
- package/dist/graphics/props/SvgProps.d.ts +10 -0
- package/dist/graphics/props/TextProps.d.ts +24 -0
- package/dist/graphics/utils/GraphicUtils.d.ts +184 -0
- package/dist/graphics/utils/GroupUtils.d.ts +7 -0
- package/dist/graphics/utils/ImageUtils.d.ts +6 -0
- package/dist/idl/DocumentInfo.d.ts +5 -0
- package/dist/idl/NodeInfo.d.ts +23 -0
- package/dist/idl/NodeType.d.ts +9 -0
- package/dist/idl/capInfo/IArrowProps.d.ts +11 -0
- package/dist/idl/capInfo/IBaseProps.d.ts +7 -0
- package/dist/idl/capInfo/IBorderProps.d.ts +7 -0
- package/dist/idl/capInfo/ICapInfo.d.ts +26 -0
- package/dist/idl/capInfo/IColorProps.d.ts +4 -0
- package/dist/idl/capInfo/IConnectProps.d.ts +9 -0
- package/dist/idl/capInfo/ICropProps.d.ts +16 -0
- package/dist/idl/capInfo/IImageProps.d.ts +3 -0
- package/dist/idl/capInfo/ILineProps.d.ts +5 -0
- package/dist/idl/capInfo/ILineTextRectProps.d.ts +5 -0
- package/dist/idl/capInfo/IShapeProps.d.ts +3 -0
- package/dist/idl/capInfo/ISvgProps.d.ts +3 -0
- package/dist/idl/capInfo/ITextProps.d.ts +16 -0
- package/dist/idl/capInfo/LineDashType.d.ts +6 -0
- package/dist/idl/common/IPoint.d.ts +4 -0
- package/dist/idl/common/LineArrowType.d.ts +17 -0
- package/dist/idl/common/TextAlignType.d.ts +5 -0
- package/dist/idl/common/TextSizeMode.d.ts +5 -0
- package/dist/idl/index.d.ts +18 -0
- package/dist/idl/ws/MsgPkg.d.ts +24 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/input/EditTextInfo.d.ts +8 -0
- package/dist/input/InputManager.d.ts +24 -0
- package/dist/input/RenderInput.d.ts +15 -0
- package/dist/input/selection/TextSelectionInfo.d.ts +7 -0
- package/dist/input/selection/TextSelectionManager.d.ts +12 -0
- package/dist/math/AffineMatrix.d.ts +51 -0
- package/dist/math/QuadBezierCurve.d.ts +28 -0
- package/dist/math/index.d.ts +2 -0
- package/dist/plugin-copy-paste/CopyPastePlugin.d.ts +13 -0
- package/dist/plugin-copy-paste/copy-paste/CopyPasteManager.d.ts +12 -0
- package/dist/plugin-copy-paste/copy-paste/copy/CopyNodeHandler.d.ts +7 -0
- package/dist/plugin-copy-paste/copy-paste/copy/ICopyHandler.d.ts +4 -0
- package/dist/plugin-copy-paste/copy-paste/paste/IPasteHandler.d.ts +4 -0
- package/dist/plugin-copy-paste/copy-paste/paste/img/ImgPasteHandler.d.ts +8 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/IOolongDataHandler.d.ts +5 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/OolongDataPasteHandler.d.ts +7 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/PasteNodeHandler.d.ts +13 -0
- package/dist/plugin-copy-paste/copy-paste/paste/svg/OolongSvgPasteHandler.d.ts +7 -0
- package/dist/plugin-copy-paste/copy-paste/utils/CopyPasteUtils.d.ts +6 -0
- package/dist/plugin-copy-paste/index.d.ts +7 -0
- package/dist/plugin-hotkey/KeyEventPlugin.d.ts +12 -0
- package/dist/plugin-hotkey/hotkey/HotKey.d.ts +10 -0
- package/dist/plugin-hotkey/hotkey/HotKeyManager.d.ts +12 -0
- package/dist/plugin-hotkey/hotkey/common/RedoKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/common/UndoKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/config/HotKeyConfig.d.ts +6 -0
- package/dist/plugin-hotkey/hotkey/config/KeyCodeConfig.d.ts +50 -0
- package/dist/plugin-hotkey/hotkey/config/NormalConfig.d.ts +2 -0
- package/dist/plugin-hotkey/hotkey/config/TextConfig.d.ts +2 -0
- package/dist/plugin-hotkey/hotkey/normal/AKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/BackspaceKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/CKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/CopyKey.d.ts +8 -0
- package/dist/plugin-hotkey/hotkey/normal/CropKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/DKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/DeleteKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/EscKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/FKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/HKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/LKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/PasteKey.d.ts +8 -0
- package/dist/plugin-hotkey/hotkey/normal/RKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/SKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/SelectAllKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/SpaceKey.d.ts +8 -0
- package/dist/plugin-hotkey/hotkey/normal/TKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/group/GKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/group/UnGroupKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/moveLayer/BracketLeft.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/moveLayer/BracketRight.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/moveLayer/MoveToBack.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/moveLayer/MoveToTop.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/normal/zoom/ZoomTo100Key.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/zoom/ZoomToFitKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/normal/zoom/ZoomToSelectKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/text/AbsArrowKey.d.ts +9 -0
- package/dist/plugin-hotkey/hotkey/text/ArrowDownKey.d.ts +6 -0
- package/dist/plugin-hotkey/hotkey/text/ArrowLeftKey.d.ts +6 -0
- package/dist/plugin-hotkey/hotkey/text/ArrowRightKey.d.ts +6 -0
- package/dist/plugin-hotkey/hotkey/text/ArrowUpKey.d.ts +6 -0
- package/dist/plugin-hotkey/hotkey/text/EnterHotKey.d.ts +10 -0
- package/dist/plugin-hotkey/hotkey/text/SelectAllKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/text/TextDeleteKey.d.ts +11 -0
- package/dist/plugin-hotkey/index.d.ts +21 -0
- package/dist/plugin-input/InputEventPlugin.d.ts +20 -0
- package/dist/plugin-input/common/ICompositionRecord.d.ts +5 -0
- package/dist/plugin-input/handler/AbsInputHandler.d.ts +15 -0
- package/dist/plugin-input/handler/InputCompositionEndHandler.d.ts +13 -0
- package/dist/plugin-input/handler/InputCompositionHandler.d.ts +10 -0
- package/dist/plugin-input/handler/InputNormalHandler.d.ts +9 -0
- package/dist/plugin-input/index.d.ts +6 -0
- package/dist/plugin-network/EmptyNetworkPlugin.d.ts +12 -0
- package/dist/plugin-network/index.d.ts +1 -0
- package/dist/plugin-pointer/PointerEventPlugin.d.ts +17 -0
- package/dist/plugin-pointer/index.d.ts +72 -0
- package/dist/plugin-pointer/interact/InteractiveManager.d.ts +17 -0
- package/dist/plugin-pointer/interact/InteractiveUtils.d.ts +51 -0
- package/dist/plugin-pointer/interact/align/AlignConst.d.ts +3 -0
- package/dist/plugin-pointer/interact/align/AlignResult.d.ts +54 -0
- package/dist/plugin-pointer/interact/align/AlignWorker.d.ts +19 -0
- package/dist/plugin-pointer/interact/align/common/AbsAlignCommonHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/common/AlignHorizonHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/align/common/AlignVerticalHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/align/lineEnd/AlignLineEndWorker.d.ts +9 -0
- package/dist/plugin-pointer/interact/align/move/AlignMoveWorker.d.ts +12 -0
- package/dist/plugin-pointer/interact/align/move/handler/AbsAlignHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignBottomHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignHorizonMidHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignLeftHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignRightHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignTopHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/move/handler/AlignVerticalMidHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/align/stretch/AlignStretchWorker.d.ts +9 -0
- package/dist/plugin-pointer/interact/align/stretch/handler/AbsAlignSideHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/align/stretch/handler/AlignHeightSideHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/align/stretch/handler/AlignWidthSideHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/basic/ClickHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/basic/ClickMode.d.ts +13 -0
- package/dist/plugin-pointer/interact/basic/ClickProcessor.d.ts +16 -0
- package/dist/plugin-pointer/interact/basic/DbClickMode.d.ts +13 -0
- package/dist/plugin-pointer/interact/basic/DownAndMoveStreamMode.d.ts +17 -0
- package/dist/plugin-pointer/interact/basic/IProcessor.d.ts +7 -0
- package/dist/plugin-pointer/interact/basic/MainMode.d.ts +13 -0
- package/dist/plugin-pointer/interact/basic/StreamMode.d.ts +15 -0
- package/dist/plugin-pointer/interact/basic/StreamProcessor.d.ts +10 -0
- package/dist/plugin-pointer/interact/basic/SubMode.d.ts +12 -0
- package/dist/plugin-pointer/interact/basic/constants.d.ts +1 -0
- package/dist/plugin-pointer/interact/basic/cursor/AbsCursorProcessor.d.ts +9 -0
- package/dist/plugin-pointer/interact/basic/cursor/handler/AbsCursorHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/basic/cursor/handler/ToolCursorHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/config/AbsInteractConfig.d.ts +6 -0
- package/dist/plugin-pointer/interact/config/InteractConfig.d.ts +11 -0
- package/dist/plugin-pointer/interact/crop/CropCursorProcessor.d.ts +5 -0
- package/dist/plugin-pointer/interact/crop/CropMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/crop/CropNormalMode.d.ts +8 -0
- package/dist/plugin-pointer/interact/crop/cropClick/CancelCropHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/crop/cropClick/CropClickMode.d.ts +4 -0
- package/dist/plugin-pointer/interact/crop/cropClick/CropClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/crop/cropStretch/CropStretchProcessorV2.d.ts +19 -0
- package/dist/plugin-pointer/interact/crop/cropStretch/CropStretchStreamMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/crop/dragCrop/DragCropMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/crop/dragCrop/DragCropProcessor.d.ts +19 -0
- package/dist/plugin-pointer/interact/crop/originImgStretch/OriginImgProcessor.d.ts +26 -0
- package/dist/plugin-pointer/interact/crop/originImgStretch/OriginImgStretchHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/crop/originImgStretch/OriginImgStretchMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/crop/processor/OriginImgStretchCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/DefaultMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/click/AnchorClickMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/click/AnchorClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/click/DefaultClickMode.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/click/DefaultClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/click/handler/AbsFocusNodeHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/click/handler/AnchorQuickCreateHandler.d.ts +17 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClearFocusNodeHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickCreateTextHandler.d.ts +16 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickExpandShapeHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickImageHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickTextHandler.d.ts +17 -0
- package/dist/plugin-pointer/interact/default/click/handler/FocusNodeHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/default/click/handler/ShiftDownNodeHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/click/handler/ShiftUpClickHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/click/handler/UpFocusNodeHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/default/connectAnchor/ConnectAnchorMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/connectAnchor/ConnectAnchorProcessor.d.ts +16 -0
- package/dist/plugin-pointer/interact/default/create/CreateColorConfig.d.ts +50 -0
- package/dist/plugin-pointer/interact/default/create/CreateCursorProcessor.d.ts +5 -0
- package/dist/plugin-pointer/interact/default/create/CreateMainMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/CreateRectMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/CreateTextMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/RectCreateDragProcessor.d.ts +18 -0
- package/dist/plugin-pointer/interact/default/create/TextCreateDragProcessor.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/create/base/AbsCreateDragProcessor.d.ts +28 -0
- package/dist/plugin-pointer/interact/default/create/click/create/CreateClickMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/click/create/CreateClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/create/click/create/TextToolClickTextHandler.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/create/click/createLine/CreateLineClickMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/click/createLine/CreateLineClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/create/click/handler/ClickCreateEndLineHandler.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/create/click/handler/UpClickCreateLineHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/create/line/CreateLineMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/line/LineCreateDragProcessor.d.ts +17 -0
- package/dist/plugin-pointer/interact/default/create/line/handler/AbsLineCreateHandler.d.ts +18 -0
- package/dist/plugin-pointer/interact/default/create/line/handler/CurveCreateHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/default/create/line/handler/LineCreateHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/default/create/line/handler/PolyLineCreateHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/create/normal/CreateNormalMode.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/CreateUpProcessor.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/AbsCreateUpHandler.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpResourceHandler.d.ts +13 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpSectionHandler.d.ts +13 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpShapeHandler.d.ts +13 -0
- package/dist/plugin-pointer/interact/default/create/normal/hover/CreateHoverNodeProcessor.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/normal/hover/CreateHoverProcessor.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/normal/hover/CreateLineMoveProcessor.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/create/normal/hover/HoverNodeAnchorProcessor.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/normal/preview/NormalPreviewProcessor.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/create/section/CreateSectionMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/section/SectionCreateDragProcessor.d.ts +20 -0
- package/dist/plugin-pointer/interact/default/dbClick/DbClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/dbClick/DefaultDbClickMode.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/dbClick/handler/DBClickTextHandler.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/dbClick/handler/FocusInGroupHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/drag/DragMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/drag/DragProcessor.d.ts +31 -0
- package/dist/plugin-pointer/interact/default/drag/handler/AbsMoveHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/drag/handler/GroupNodeMoveHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/drag/handler/HandlerCtx.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/drag/handler/LineMoveHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/drag/handler/NormalNodeMoveHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/dragSelectText/DragSelectTextMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/dragSelectText/DragSelectTextProcessor.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/group/GroupMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/group/GroupProcessor.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/LineControlPointMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/LineControlPointProcessor.d.ts +14 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/handler/AbsControlPointHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/handler/EndPolyControlPointHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/handler/MidControlPointHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/handler/StartPolyControlPointHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/handler/StraightLineControlPointHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/lineEnd/DragLineEndMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/lineEnd/DragLineEndProcessor.d.ts +28 -0
- package/dist/plugin-pointer/interact/default/lineEnd/handler/AbsDragLineEndHandler.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/lineEnd/handler/DragPolyLineEndHandler.d.ts +17 -0
- package/dist/plugin-pointer/interact/default/lineEnd/handler/DragSimpleLineEndHandler.d.ts +13 -0
- package/dist/plugin-pointer/interact/default/normal/NormalMode.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/CursorProcessor.d.ts +5 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/EditTextCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/ExpandCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/HoverNodeCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/ImgCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/LineEndCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/NormalCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/PolyLineControlPointCursorHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/RotateCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/StretchCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/hover/HoverProcessor.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/normal/hover/handler/AbsHoverHandler.d.ts +6 -0
- package/dist/plugin-pointer/interact/default/normal/hover/handler/HoverGroupHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/hover/handler/HoverLineHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/hover/handler/HoverNodeHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/hover/handler/HoverSectionHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/rightClick/FocusAndContextMenuHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/rightClick/RightClickMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/rightClick/RightClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/rotate/RotateMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/rotate/RotateProcessor.d.ts +25 -0
- package/dist/plugin-pointer/interact/default/rotate/handler/AbsRotateHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/rotate/handler/RotateLineHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/rotate/handler/RotateNodeHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/rotate/handler/RotatePolyLineHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/stretch/AbsStretchProcessor.d.ts +69 -0
- package/dist/plugin-pointer/interact/default/stretch/SingleStretchMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/stretch/SingleStretchProcessorV2.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/stretch/StretchMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/stretch/StretchProcessorV2.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/AbsStretchHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/SingleStretchNodeHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/StretchCropNodeHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/StretchLineHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/StretchNodeHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/detector/CropOriginImgDetector.d.ts +8 -0
- package/dist/plugin-pointer/interact/detector/DetectorResult.d.ts +34 -0
- package/dist/plugin-pointer/interact/detector/ExpandDetector.d.ts +10 -0
- package/dist/plugin-pointer/interact/detector/LineEndPointDetector.d.ts +12 -0
- package/dist/plugin-pointer/interact/detector/PolyLineControlPointDetector.d.ts +14 -0
- package/dist/plugin-pointer/interact/detector/RotateDetector.d.ts +12 -0
- package/dist/plugin-pointer/interact/detector/connect/HoverConnectAnchorDetector.d.ts +13 -0
- package/dist/plugin-pointer/interact/detector/connect/HoverNodeAnchorDetector.d.ts +12 -0
- package/dist/plugin-pointer/interact/detector/connect/NodeEdgeDetector.d.ts +13 -0
- package/dist/plugin-pointer/interact/detector/hover/BufferHoverNodeDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/hover/HoverContainerDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/hover/HoverNodeDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/img/ImgDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/node/BufferNodeDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/node/NodeDetector.d.ts +6 -0
- package/dist/plugin-pointer/interact/detector/stretch/StretchDetector.d.ts +16 -0
- package/dist/plugin-pointer/interact/dragCanvas/DragCanvasCursorProcessor.d.ts +7 -0
- package/dist/plugin-pointer/interact/dragCanvas/DragCanvasMainMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/dragCanvas/DragCanvasProcessor.d.ts +10 -0
- package/dist/plugin-pointer/interact/dragCanvas/submode/ContextDragCanvasMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/dragCanvas/submode/DragCanvasMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/dragCanvas/submode/DragCanvasNormalMode.d.ts +8 -0
- package/dist/plugin-pointer/interact/utils/RectUtils.d.ts +7 -0
- package/dist/plugin-pointer/interact/viewOnly/ViewOnlyMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/viewOnly/click/ViewOnlyClickMode.d.ts +4 -0
- package/dist/plugin-pointer/interact/viewOnly/click/ViewOnlyClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/viewOnly/click/ViewOnlyDbClickMode.d.ts +4 -0
- package/dist/plugin-pointer/interact/viewOnly/click/ViewOnlyDbClickProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/viewOnly/normal/ViewOnlyCursorProcessor.d.ts +5 -0
- package/dist/plugin-pointer/interact/viewOnly/normal/ViewOnlyNormalMode.d.ts +8 -0
- package/dist/plugin-resize/WindowResizePlugin.d.ts +13 -0
- package/dist/plugin-resize/index.d.ts +1 -0
- package/dist/plugin-wheel/WheelEventPlugin.d.ts +11 -0
- package/dist/plugin-wheel/WheelUtils.d.ts +12 -0
- package/dist/plugin-wheel/index.d.ts +2 -0
- package/dist/preview/PreviewManager.d.ts +13 -0
- package/dist/preview/PreviewQuickCreateManager.d.ts +22 -0
- package/dist/preview/PreviewResourceManager.d.ts +6 -0
- package/dist/preview/previewCreate/PreviewCreateManager.d.ts +15 -0
- package/dist/preview/previewCreate/handler/AbsPreviewHandler.d.ts +7 -0
- package/dist/preview/previewCreate/handler/PreviewResourceHandler.d.ts +12 -0
- package/dist/preview/previewCreate/handler/PreviewSectionHandler.d.ts +10 -0
- package/dist/preview/previewCreate/handler/PreviewShapeHandler.d.ts +10 -0
- package/dist/renderText/RenderText.d.ts +63 -0
- package/dist/renderText/TextCharacter.d.ts +16 -0
- package/dist/renderText/TextConstants.d.ts +8 -0
- package/dist/renderText/TextLine.d.ts +40 -0
- package/dist/renderText/TextParagraph.d.ts +36 -0
- package/dist/renderText/TextWord.d.ts +6 -0
- package/dist/renderText/cursor/TextCursorMoveWorker.d.ts +17 -0
- package/dist/renderText/editInfo/EditTextWorker.d.ts +23 -0
- package/dist/renderText/editInfo/TextCursorPosition.d.ts +14 -0
- package/dist/renderText/index.d.ts +18 -0
- package/dist/renderText/measure/MeasureWorker.d.ts +5 -0
- package/dist/renderText/selection/TextSelectionDeleteWorker.d.ts +8 -0
- package/dist/renderText/selection/TextSelectionWorker.d.ts +9 -0
- package/dist/renderText/selection/handler/AbsTextSelectionHandler.d.ts +7 -0
- package/dist/renderText/selection/handler/DiffParaHandler.d.ts +10 -0
- package/dist/renderText/selection/handler/SameParaDiffLineHandler.d.ts +11 -0
- package/dist/renderText/selection/handler/SameParaSameLineHandler.d.ts +11 -0
- package/dist/renderText/split/GraphemeSplit.d.ts +4 -0
- package/dist/renderText/split/IntlSplit.d.ts +4 -0
- package/dist/resource-manager/AbsResourceInstance.d.ts +12 -0
- package/dist/resource-manager/IResourceInfo.d.ts +4 -0
- package/dist/resource-manager/NormalResourceInstance.d.ts +13 -0
- package/dist/resource-manager/ResourceManager.d.ts +21 -0
- package/dist/resource-manager/index.d.ts +5 -0
- package/dist/resource-manager/resourceTypes.d.ts +4 -0
- package/dist/select/OptionHelper.d.ts +10 -0
- package/dist/select/SelectManager.d.ts +26 -0
- package/dist/select/index.d.ts +5 -0
- package/dist/select/status/AbsStatusHandler.d.ts +7 -0
- package/dist/select/status/SelectStatusContext.d.ts +6 -0
- package/dist/select/status/multi/MultiSelectHandler.d.ts +7 -0
- package/dist/select/status/single/CropStatusHandler.d.ts +8 -0
- package/dist/select/status/single/SingleEditLineTextStatusHandler.d.ts +8 -0
- package/dist/select/status/single/SingleGroupStatusHandler.d.ts +7 -0
- package/dist/select/status/single/SingleLineStatusHandler.d.ts +7 -0
- package/dist/select/status/single/SinglePolyLineStatusHandler.d.ts +7 -0
- package/dist/select/status/single/SingleStatusHandler.d.ts +7 -0
- package/dist/slot/ISlotInfo.d.ts +4 -0
- package/dist/slot/SlotKeyType.d.ts +11 -0
- package/dist/slot/SlotManager.d.ts +10 -0
- package/dist/slot/index.d.ts +6 -0
- package/dist/slot/info/ContextMenuInfo.d.ts +6 -0
- package/dist/slot/info/ImageInfo.d.ts +5 -0
- package/dist/slot/info/QuickCreateInfo.d.ts +6 -0
- package/dist/tool/ToolEnum.d.ts +10 -0
- package/dist/tool/ToolManager.d.ts +20 -0
- package/dist/tool/index.d.ts +2 -0
- package/dist/utils/CommonUtils.d.ts +4 -0
- package/dist/utils/IdGenerator.d.ts +25 -0
- package/package.json +85 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbsProps, OolongSVGNode } from "../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../idl";
|
|
3
|
+
import { ToolEnum } from "../../../tool";
|
|
4
|
+
import { AppEventContext } from "../../../app";
|
|
5
|
+
import { AbsPreviewHandler } from "./AbsPreviewHandler";
|
|
6
|
+
import { CreateSvgWorker } from "../../../ability/svg/CreateSvgWorker";
|
|
7
|
+
export declare class PreviewResourceHandler extends AbsPreviewHandler {
|
|
8
|
+
svgWorker: CreateSvgWorker;
|
|
9
|
+
enable(tool: ToolEnum): boolean;
|
|
10
|
+
handle(id: string, ctx: AppEventContext): Promise<OolongSVGNode>;
|
|
11
|
+
protected makeupShapeDefaultProps(shapeType: number, startPos: IPoint, isGrab: boolean): AbsProps[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsProps } from "../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../idl";
|
|
3
|
+
import { ToolEnum } from "../../../tool";
|
|
4
|
+
import { AppEventContext } from "../../../app";
|
|
5
|
+
import { AbsPreviewHandler } from "./AbsPreviewHandler";
|
|
6
|
+
export declare class PreviewSectionHandler extends AbsPreviewHandler {
|
|
7
|
+
enable(tool: ToolEnum): boolean;
|
|
8
|
+
handle(id: string, ctx: AppEventContext): Promise<import("../../..").GraphicNode>;
|
|
9
|
+
protected makeupShapeDefaultProps(startPos: IPoint, isGrab: boolean, shapeType: number): AbsProps[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsProps } from "../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../idl";
|
|
3
|
+
import { ToolEnum } from "../../../tool";
|
|
4
|
+
import { AppEventContext } from "../../../app";
|
|
5
|
+
import { AbsPreviewHandler } from "./AbsPreviewHandler";
|
|
6
|
+
export declare class PreviewShapeHandler extends AbsPreviewHandler {
|
|
7
|
+
enable(tool: ToolEnum): boolean;
|
|
8
|
+
handle(id: string, ctx: AppEventContext): Promise<import("../../..").GraphicNode>;
|
|
9
|
+
protected makeupShapeDefaultProps(shapeType: number, startPos: IPoint, isGrab: boolean): AbsProps[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { TextParagraph } from "./TextParagraph";
|
|
2
|
+
import { TextProps } from "../graphics/index";
|
|
3
|
+
import { IRect } from "../common/Rect";
|
|
4
|
+
import { IntlSplit } from "./split/IntlSplit";
|
|
5
|
+
import { MeasureWorker } from "./measure/MeasureWorker";
|
|
6
|
+
import { Point } from "../common/Point";
|
|
7
|
+
import { IPoint } from "../idl/index";
|
|
8
|
+
import { TextCursorPosition } from "./editInfo/TextCursorPosition";
|
|
9
|
+
export declare class RenderText {
|
|
10
|
+
paragraphs: TextParagraph[];
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
textProps: TextProps;
|
|
16
|
+
rect: IRect;
|
|
17
|
+
splitWorker: IntlSplit;
|
|
18
|
+
measureWorker: MeasureWorker;
|
|
19
|
+
/**
|
|
20
|
+
* 绘制
|
|
21
|
+
* @param glCtx
|
|
22
|
+
* @param pos
|
|
23
|
+
*/
|
|
24
|
+
draw(glCtx: CanvasRenderingContext2D, pos: Point): void;
|
|
25
|
+
contains(point: IPoint): boolean;
|
|
26
|
+
detect(point: IPoint): TextCursorPosition;
|
|
27
|
+
headTextCursorPosition(): TextCursorPosition;
|
|
28
|
+
tailTextCursorPosition(): TextCursorPosition;
|
|
29
|
+
protected addParagraph(paragraph: TextParagraph): void;
|
|
30
|
+
/**
|
|
31
|
+
* 字符位置,
|
|
32
|
+
* 返回参数为相对该段的坐标
|
|
33
|
+
* @param paraIndex
|
|
34
|
+
*/
|
|
35
|
+
getParagraph(paraIndex: number): TextParagraph | null;
|
|
36
|
+
/**
|
|
37
|
+
* 根据光标位置获取相对节点的位置
|
|
38
|
+
* @param cursorPosition
|
|
39
|
+
*/
|
|
40
|
+
getPosByCursorPosition(cursorPosition: TextCursorPosition): {
|
|
41
|
+
relativePos: Point;
|
|
42
|
+
height: number;
|
|
43
|
+
};
|
|
44
|
+
reset(): void;
|
|
45
|
+
/**
|
|
46
|
+
* 排版
|
|
47
|
+
*/
|
|
48
|
+
typesetting(glCtx: CanvasRenderingContext2D, textProps: TextProps | undefined, rect: IRect): void;
|
|
49
|
+
protected typesettingParagraph(glCtx: CanvasRenderingContext2D, text: string, width: number, autoWidth: boolean): TextParagraph;
|
|
50
|
+
protected alignVertical(rect: IRect): void;
|
|
51
|
+
protected alignHorizon(rect: IRect): void;
|
|
52
|
+
/**
|
|
53
|
+
* 判断光标位置是否在视窗范围外,需要修正显示内容
|
|
54
|
+
* @param rect
|
|
55
|
+
* @param cursor
|
|
56
|
+
*/
|
|
57
|
+
modifyPosInEditing(rect: IRect, cursor: TextCursorPosition): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 从编辑状态中恢复
|
|
60
|
+
*/
|
|
61
|
+
resetFromEditing(rect: IRect): void;
|
|
62
|
+
isEmptyText(): boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPoint } from "../idl/common/IPoint";
|
|
2
|
+
export declare class TextCharacter {
|
|
3
|
+
charText: string;
|
|
4
|
+
/**
|
|
5
|
+
* 字符定位
|
|
6
|
+
*/
|
|
7
|
+
index: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
boxAscent: number;
|
|
13
|
+
constructor(text: string, x: number, y: number, width: number, height: number, boxAscent: number);
|
|
14
|
+
contains(point: IPoint): boolean;
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DefaultFont = "pingfang";
|
|
2
|
+
export declare const NodeTextPadding = 5;
|
|
3
|
+
export declare const LineSpacing = 2;
|
|
4
|
+
export declare const ParagraphSpacing = 5;
|
|
5
|
+
export declare const limitLineWidth: number;
|
|
6
|
+
export declare const MainTextId = "main_text_id";
|
|
7
|
+
export declare const DefaultLineHeight: number;
|
|
8
|
+
export declare const VisibleBuffer: number;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { TextCharacter } from "./TextCharacter";
|
|
2
|
+
import { IPoint } from "../idl/common/IPoint";
|
|
3
|
+
import { Point } from "../common/Point";
|
|
4
|
+
import { TextProps } from "../graphics/index";
|
|
5
|
+
export declare class TextLine {
|
|
6
|
+
characters: TextCharacter[];
|
|
7
|
+
/**
|
|
8
|
+
* 行定位
|
|
9
|
+
*/
|
|
10
|
+
index: number;
|
|
11
|
+
/**
|
|
12
|
+
* 相对段落的位置
|
|
13
|
+
*/
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
boxAscent: number;
|
|
19
|
+
/**
|
|
20
|
+
* 引用文字的样式,用于绘制使用
|
|
21
|
+
*/
|
|
22
|
+
textProps: TextProps;
|
|
23
|
+
constructor(textProps: TextProps);
|
|
24
|
+
contains(point: IPoint): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 探测位于第几个char位置,
|
|
27
|
+
* 返回charIndex
|
|
28
|
+
* @param point
|
|
29
|
+
*/
|
|
30
|
+
detect(point: IPoint): number;
|
|
31
|
+
addCharacter(character: TextCharacter): void;
|
|
32
|
+
/**
|
|
33
|
+
* 字符位置,
|
|
34
|
+
* 返回参数为相对该行的坐标
|
|
35
|
+
* @param charIndex
|
|
36
|
+
*/
|
|
37
|
+
getCharacter(charIndex: number): TextCharacter | null;
|
|
38
|
+
draw(glCtx: CanvasRenderingContext2D, pos: Point): void;
|
|
39
|
+
toString(): string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TextLine } from "./TextLine";
|
|
2
|
+
import { IPoint } from "../idl/common/IPoint";
|
|
3
|
+
import { TextCursorPosition } from "./editInfo/TextCursorPosition";
|
|
4
|
+
import { Point } from "../common/Point";
|
|
5
|
+
import { TextAlignType } from "../idl/index";
|
|
6
|
+
export declare class TextParagraph {
|
|
7
|
+
lines: TextLine[];
|
|
8
|
+
/**
|
|
9
|
+
* 段落定位
|
|
10
|
+
*/
|
|
11
|
+
index: number;
|
|
12
|
+
/**
|
|
13
|
+
* 相对文本的位置
|
|
14
|
+
*/
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
addLine(line: TextLine): void;
|
|
20
|
+
contains(point: IPoint): boolean;
|
|
21
|
+
headCursorPosition(): TextCursorPosition;
|
|
22
|
+
tailCursorPosition(): TextCursorPosition;
|
|
23
|
+
detect(point: IPoint): {
|
|
24
|
+
lineIndex: number;
|
|
25
|
+
charIndex: number;
|
|
26
|
+
} | null;
|
|
27
|
+
/**
|
|
28
|
+
* 字符位置,
|
|
29
|
+
* 返回参数为相对该段的坐标
|
|
30
|
+
* @param lineIndex
|
|
31
|
+
*/
|
|
32
|
+
getLine(lineIndex: number): TextLine | null;
|
|
33
|
+
draw(glCtx: CanvasRenderingContext2D, pos: Point): void;
|
|
34
|
+
alignHorizon(horizonAlign: TextAlignType, width: number): void;
|
|
35
|
+
toString(): string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RenderText } from "../RenderText";
|
|
2
|
+
import { TextCursorPosition } from "../editInfo/TextCursorPosition";
|
|
3
|
+
export declare class TextCursorMoveWorker {
|
|
4
|
+
/**
|
|
5
|
+
* 检查是否为异常情况,异常情况返回null
|
|
6
|
+
* @param renderText
|
|
7
|
+
* @param cursorPosition
|
|
8
|
+
*/
|
|
9
|
+
checkValid(renderText: RenderText, cursorPosition: TextCursorPosition): {
|
|
10
|
+
paragraph: import("..").TextParagraph;
|
|
11
|
+
line: import("..").TextLine;
|
|
12
|
+
} | null;
|
|
13
|
+
moveRight(renderText: RenderText, cursorPosition: TextCursorPosition): TextCursorPosition;
|
|
14
|
+
moveLeft(renderText: RenderText, cursorPosition: TextCursorPosition): TextCursorPosition;
|
|
15
|
+
moveUp(renderText: RenderText, cursorPosition: TextCursorPosition): TextCursorPosition;
|
|
16
|
+
moveDown(renderText: RenderText, cursorPosition: TextCursorPosition): TextCursorPosition;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TextCursorPosition } from "./TextCursorPosition";
|
|
2
|
+
import { RenderText } from "../RenderText";
|
|
3
|
+
import { GraphicNode } from "../../graphics";
|
|
4
|
+
import { AppEventContext } from "../../app";
|
|
5
|
+
import { LayoutWorker } from "../../ability/line/LayoutWorker";
|
|
6
|
+
interface StringBuilder {
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class EditTextWorker {
|
|
10
|
+
prevStringBuilder: StringBuilder;
|
|
11
|
+
nextStringBuilder: StringBuilder;
|
|
12
|
+
currentbuilder: StringBuilder;
|
|
13
|
+
layoutWorker: LayoutWorker;
|
|
14
|
+
switchCurrentBuilder(textCursor: TextCursorPosition, other: TextCursorPosition): boolean;
|
|
15
|
+
splitText(renderText: RenderText, textCursor: TextCursorPosition): {
|
|
16
|
+
prev: string;
|
|
17
|
+
next: string;
|
|
18
|
+
index: number;
|
|
19
|
+
};
|
|
20
|
+
getTextCursorPosByIndex(renderText: RenderText, index: number): TextCursorPosition;
|
|
21
|
+
modifyBaseProps(renderText: RenderText, node: GraphicNode, eventCtx: AppEventContext): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class TextCursorPosition {
|
|
2
|
+
paragraphIndex: number;
|
|
3
|
+
lineIndex: number;
|
|
4
|
+
charIndex: number;
|
|
5
|
+
constructor(paragraphIndex: number, lineIndex: number, charIndex: number);
|
|
6
|
+
static head(): TextCursorPosition;
|
|
7
|
+
clone(): TextCursorPosition;
|
|
8
|
+
equal(other: TextCursorPosition): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 判断this和other的大小关系,大于返回true
|
|
11
|
+
* @param other
|
|
12
|
+
*/
|
|
13
|
+
greaterThan(other: TextCursorPosition): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./RenderText";
|
|
2
|
+
export * from "./TextCharacter";
|
|
3
|
+
export * from "./TextConstants";
|
|
4
|
+
export * from "./TextLine";
|
|
5
|
+
export * from "./TextParagraph";
|
|
6
|
+
export * from "./TextWord";
|
|
7
|
+
export * from "./cursor/TextCursorMoveWorker";
|
|
8
|
+
export * from "./editInfo/EditTextWorker";
|
|
9
|
+
export * from "./editInfo/TextCursorPosition";
|
|
10
|
+
export * from "./measure/MeasureWorker";
|
|
11
|
+
export * from "./selection/TextSelectionDeleteWorker";
|
|
12
|
+
export * from "./selection/TextSelectionWorker";
|
|
13
|
+
export * from "./selection/handler/AbsTextSelectionHandler";
|
|
14
|
+
export * from "./selection/handler/DiffParaHandler";
|
|
15
|
+
export * from "./selection/handler/SameParaDiffLineHandler";
|
|
16
|
+
export * from "./selection/handler/SameParaSameLineHandler";
|
|
17
|
+
export * from "./split/GraphemeSplit";
|
|
18
|
+
export * from "./split/IntlSplit";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EditTextWorker } from "../editInfo/EditTextWorker";
|
|
2
|
+
import { EditTextInfo } from "../../input/EditTextInfo";
|
|
3
|
+
import { TextSelectionInfo } from "../../input/selection/TextSelectionInfo";
|
|
4
|
+
import { AppEventContext } from "../../app/index";
|
|
5
|
+
export declare class TextSelectionDeleteWorker {
|
|
6
|
+
editTextWorker: EditTextWorker;
|
|
7
|
+
work(editTextInfo: EditTextInfo, selectInfo: TextSelectionInfo, eventCtx: AppEventContext): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbsTextSelectionHandler } from "./handler/AbsTextSelectionHandler";
|
|
2
|
+
import { RenderText } from "../RenderText";
|
|
3
|
+
import { TextCursorPosition } from "../editInfo/TextCursorPosition";
|
|
4
|
+
import { Rect } from "../../common/Rect";
|
|
5
|
+
export declare class TextSelectionWorker {
|
|
6
|
+
handlers: AbsTextSelectionHandler[];
|
|
7
|
+
protected handleTextSelection(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
8
|
+
computeTextSelection(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextCursorPosition } from "../../editInfo/TextCursorPosition";
|
|
2
|
+
import { RenderText } from "../../RenderText";
|
|
3
|
+
import { Rect } from "../../../common/Rect";
|
|
4
|
+
export declare abstract class AbsTextSelectionHandler {
|
|
5
|
+
abstract enable(start: TextCursorPosition, end: TextCursorPosition): boolean;
|
|
6
|
+
abstract handle(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsTextSelectionHandler } from "./AbsTextSelectionHandler";
|
|
2
|
+
import { TextCursorPosition } from "../../editInfo/TextCursorPosition";
|
|
3
|
+
import { RenderText } from "../../RenderText";
|
|
4
|
+
import { Rect } from "../../../common/Rect";
|
|
5
|
+
export declare class DiffParaHandler extends AbsTextSelectionHandler {
|
|
6
|
+
handlers: AbsTextSelectionHandler[];
|
|
7
|
+
enable(start: TextCursorPosition, end: TextCursorPosition): boolean;
|
|
8
|
+
protected handleSamePara(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
9
|
+
handle(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbsTextSelectionHandler } from "./AbsTextSelectionHandler";
|
|
2
|
+
import { TextCursorPosition } from "../../editInfo/TextCursorPosition";
|
|
3
|
+
import { RenderText } from "../../RenderText";
|
|
4
|
+
import { Rect } from "../../../common/Rect";
|
|
5
|
+
/**
|
|
6
|
+
* 相同段落+不同行
|
|
7
|
+
*/
|
|
8
|
+
export declare class SameParaDiffLineHandler extends AbsTextSelectionHandler {
|
|
9
|
+
enable(start: TextCursorPosition, end: TextCursorPosition): boolean;
|
|
10
|
+
handle(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbsTextSelectionHandler } from "./AbsTextSelectionHandler";
|
|
2
|
+
import { TextCursorPosition } from "../../editInfo/TextCursorPosition";
|
|
3
|
+
import { RenderText } from "../../RenderText";
|
|
4
|
+
import { Rect } from "../../../common/Rect";
|
|
5
|
+
/**
|
|
6
|
+
* 相同段落+相同行
|
|
7
|
+
*/
|
|
8
|
+
export declare class SameParaSameLineHandler extends AbsTextSelectionHandler {
|
|
9
|
+
enable(start: TextCursorPosition, end: TextCursorPosition): boolean;
|
|
10
|
+
handle(renderText: RenderText, start: TextCursorPosition, end: TextCursorPosition): Rect[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IResourceInfo } from "./IResourceInfo";
|
|
2
|
+
import { ResourceInfo } from "../common";
|
|
3
|
+
import { ICopyResourceInfo } from "./resourceTypes";
|
|
4
|
+
export declare abstract class AbsResourceInstance {
|
|
5
|
+
abstract downloadAsImageBitmap(fileKey: string): Promise<IResourceInfo>;
|
|
6
|
+
abstract uploadBlobImg(fileName: string, file: File | Blob): Promise<string>;
|
|
7
|
+
abstract downloadSvgCode(fileKey: string): Promise<string>;
|
|
8
|
+
abstract uploadSvgFile(fileName: string, file: File): Promise<string>;
|
|
9
|
+
abstract uploadSvgString(fileName: string, svgContent: string): Promise<string>;
|
|
10
|
+
abstract deleteMultipleImages(fileKeys: string[]): Promise<void>;
|
|
11
|
+
abstract copyImage(resourceInfo: ResourceInfo[], originDocId: string, currentDocId: string): Promise<ICopyResourceInfo>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbsResourceInstance } from "./AbsResourceInstance";
|
|
2
|
+
import { IResourceInfo } from "./IResourceInfo";
|
|
3
|
+
import { ResourceInfo } from "../common";
|
|
4
|
+
import { ICopyResourceInfo } from "./resourceTypes";
|
|
5
|
+
export declare class NormalResourceInstance extends AbsResourceInstance {
|
|
6
|
+
downloadAsImageBitmap(url: string): Promise<IResourceInfo>;
|
|
7
|
+
uploadBlobImg(fileName: string, blobImg: Blob): Promise<string>;
|
|
8
|
+
downloadSvgCode(fileKey: string): Promise<string>;
|
|
9
|
+
uploadSvgFile(fileName: string, file: File): Promise<any>;
|
|
10
|
+
deleteMultipleImages(fileKeys: string[]): Promise<void>;
|
|
11
|
+
uploadSvgString(fileName: string, svgContent: string): Promise<string>;
|
|
12
|
+
copyImage(resourceInfo: ResourceInfo[], originDocId: string, currentDocId: string): Promise<ICopyResourceInfo>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbsResourceInstance } from "./AbsResourceInstance";
|
|
2
|
+
import { IResourceInfo } from "./IResourceInfo";
|
|
3
|
+
import { ResourceInfo } from "../common";
|
|
4
|
+
export declare class ResourceManager {
|
|
5
|
+
resourceMap: Map<string, IResourceInfo>;
|
|
6
|
+
nodeResourceMap: Map<string, IResourceInfo>;
|
|
7
|
+
svgMap: Map<string, string>;
|
|
8
|
+
instance: AbsResourceInstance;
|
|
9
|
+
constructor();
|
|
10
|
+
loadResourceInstance(resourceInstance: AbsResourceInstance): void;
|
|
11
|
+
getBlobUrl(fileKey: string): string;
|
|
12
|
+
getImgUrls(): string[];
|
|
13
|
+
addNodeResourceInfo(nodeId: string, info: IResourceInfo): void;
|
|
14
|
+
loadImgUrl(fileKey: string): Promise<IResourceInfo>;
|
|
15
|
+
uploadFileBlob(fileName: string, file: File | Blob): Promise<string>;
|
|
16
|
+
loadSvgUrl(fileKey: string): Promise<string>;
|
|
17
|
+
uploadSvgFile(fileName: string, file: File): Promise<string>;
|
|
18
|
+
uploadSvgString(fileName: string, svgContent: string): Promise<string>;
|
|
19
|
+
deleteMultipleImages(fileKeys: string[]): Promise<void>;
|
|
20
|
+
copyImage(resourceInfo: ResourceInfo[], originDocId: string, currentDocId: string): Promise<import("./resourceTypes").ICopyResourceInfo>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GraphicNode } from "../graphics/node/GraphicNode";
|
|
2
|
+
export declare class OptionHelper {
|
|
3
|
+
isWorking: boolean;
|
|
4
|
+
idList: string[];
|
|
5
|
+
originX: number;
|
|
6
|
+
originY: number;
|
|
7
|
+
startWorking(idList: string[], x: number, y: number): void;
|
|
8
|
+
selectChange(nodes: Set<GraphicNode>): void;
|
|
9
|
+
stopWork(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GraphicNode } from "../graphics";
|
|
2
|
+
import { OptionHelper } from "./OptionHelper";
|
|
3
|
+
import { AuxiliaryManager } from "../auxiliary";
|
|
4
|
+
import { AbsStatusHandler } from "./status/AbsStatusHandler";
|
|
5
|
+
import { GMLRender } from "../application";
|
|
6
|
+
import { RectNode } from "../common";
|
|
7
|
+
import { InputManager } from "../input/InputManager";
|
|
8
|
+
import { SelectStatusContext } from "./status/SelectStatusContext";
|
|
9
|
+
import { CropManager } from "../crop/CropManager";
|
|
10
|
+
export declare class SelectManager {
|
|
11
|
+
selectNodes: Set<GraphicNode>;
|
|
12
|
+
optionHelper: OptionHelper;
|
|
13
|
+
auxiliaryManager: AuxiliaryManager;
|
|
14
|
+
inputManager: InputManager;
|
|
15
|
+
cropManager: CropManager;
|
|
16
|
+
statusHandlers: AbsStatusHandler[];
|
|
17
|
+
constructor(render: GMLRender, auxiliaryManager: AuxiliaryManager, cropManager: CropManager);
|
|
18
|
+
register(inputManager: InputManager): void;
|
|
19
|
+
refreshSelectStatus(): void;
|
|
20
|
+
selectStatusContext(): SelectStatusContext;
|
|
21
|
+
getSelectNodes(): GraphicNode[];
|
|
22
|
+
getSelectBounds(): RectNode;
|
|
23
|
+
set(nodes: Set<GraphicNode>): void;
|
|
24
|
+
startOptWorking(idList: string[], x: number, y: number): void;
|
|
25
|
+
include(node: GraphicNode): boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GraphicNode } from "../../graphics";
|
|
2
|
+
import { AuxiliaryManager } from "../../auxiliary";
|
|
3
|
+
import { SelectStatusContext } from "./SelectStatusContext";
|
|
4
|
+
export declare abstract class AbsStatusHandler {
|
|
5
|
+
abstract enable(nodes: GraphicNode[], ctx: SelectStatusContext): boolean;
|
|
6
|
+
abstract handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
export declare class MultiSelectHandler extends AbsStatusHandler {
|
|
5
|
+
enable(nodes: GraphicNode[]): boolean;
|
|
6
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
import { SelectStatusContext } from "../SelectStatusContext";
|
|
5
|
+
export declare class CropStatusHandler extends AbsStatusHandler {
|
|
6
|
+
enable(nodes: GraphicNode[], ctx: SelectStatusContext): boolean;
|
|
7
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
import { SelectStatusContext } from "../SelectStatusContext";
|
|
5
|
+
export declare class SingleEditLineTextStatusHandler extends AbsStatusHandler {
|
|
6
|
+
enable(nodes: GraphicNode[], ctx: SelectStatusContext): boolean;
|
|
7
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
export declare class SingleGroupStatusHandler extends AbsStatusHandler {
|
|
5
|
+
enable(nodes: GraphicNode[]): boolean;
|
|
6
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
export declare class SingleLineStatusHandler extends AbsStatusHandler {
|
|
5
|
+
enable(nodes: GraphicNode[]): boolean;
|
|
6
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics/index";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary/index";
|
|
4
|
+
export declare class SinglePolyLineStatusHandler extends AbsStatusHandler {
|
|
5
|
+
enable(nodes: GraphicNode[]): boolean;
|
|
6
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsStatusHandler } from "../AbsStatusHandler";
|
|
2
|
+
import { GraphicNode } from "../../../graphics";
|
|
3
|
+
import { AuxiliaryManager } from "../../../auxiliary";
|
|
4
|
+
export declare class SingleStatusHandler extends AbsStatusHandler {
|
|
5
|
+
enable(nodes: GraphicNode[]): boolean;
|
|
6
|
+
handle(nodes: GraphicNode[], auxiliary: AuxiliaryManager): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SlotKeyType } from "./SlotKeyType";
|
|
2
|
+
export type SlotCallback = (param: any) => void;
|
|
3
|
+
export declare class SlotManager {
|
|
4
|
+
private slotMap;
|
|
5
|
+
private slotCallBack;
|
|
6
|
+
start(): void;
|
|
7
|
+
addSlotState(type: SlotKeyType, state: any): void;
|
|
8
|
+
registerSlotCallback(type: SlotKeyType, callback: SlotCallback): void;
|
|
9
|
+
private tickerRun;
|
|
10
|
+
}
|