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,84 @@
|
|
|
1
|
+
import { NodeType } from "../../idl";
|
|
2
|
+
import { PropType } from "../props/PropType";
|
|
3
|
+
import { AbsProps } from "../props/AbsProps";
|
|
4
|
+
import { AffineMatrix } from "../../math";
|
|
5
|
+
import { BaseProps } from "../props/BaseProps";
|
|
6
|
+
import { Point } from "../../common";
|
|
7
|
+
import { RectNode } from "../../common";
|
|
8
|
+
import { IPoint } from "../../idl";
|
|
9
|
+
import { IRect } from "../../common";
|
|
10
|
+
import { NodeInfo } from "../../idl";
|
|
11
|
+
import { IRectNode } from "../../common";
|
|
12
|
+
import { TextCursorPosition } from "../../renderText";
|
|
13
|
+
/**
|
|
14
|
+
* 图形绘制节点基本数据类型
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class GraphicNode {
|
|
17
|
+
/**
|
|
18
|
+
* 图形节点类型
|
|
19
|
+
*/
|
|
20
|
+
type: NodeType;
|
|
21
|
+
/**
|
|
22
|
+
* 节点id
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* 父级节点
|
|
27
|
+
*/
|
|
28
|
+
parent: GraphicNode | null;
|
|
29
|
+
/**
|
|
30
|
+
* 孩子
|
|
31
|
+
*/
|
|
32
|
+
children: Set<GraphicNode>;
|
|
33
|
+
/**
|
|
34
|
+
* 节点z-index,表示层级
|
|
35
|
+
*/
|
|
36
|
+
zIndex: number;
|
|
37
|
+
/**
|
|
38
|
+
* 图形绘制
|
|
39
|
+
*/
|
|
40
|
+
graphicContext: CanvasRenderingContext2D;
|
|
41
|
+
/**
|
|
42
|
+
* 图形属性
|
|
43
|
+
*/
|
|
44
|
+
props: Map<PropType, AbsProps>;
|
|
45
|
+
transform: AffineMatrix;
|
|
46
|
+
get baseProps(): BaseProps;
|
|
47
|
+
get globalBaseProps(): BaseProps;
|
|
48
|
+
get pos(): IPoint;
|
|
49
|
+
get globalPos(): IPoint;
|
|
50
|
+
constructor(id: string, graphicContext: CanvasRenderingContext2D);
|
|
51
|
+
setParent(parent: GraphicNode): void;
|
|
52
|
+
updateProps(props: Partial<AbsProps>[]): void;
|
|
53
|
+
getProp<Prop extends AbsProps>(type: PropType): Prop | null;
|
|
54
|
+
updateTransformMatrix(): void;
|
|
55
|
+
contains(point: Point, scale?: number): boolean;
|
|
56
|
+
canBeConnected(): boolean;
|
|
57
|
+
getConnectAnchor(): IPoint[];
|
|
58
|
+
borderContains(globalPoint: IPoint, buffer: number): IPoint | null;
|
|
59
|
+
/**
|
|
60
|
+
* 节点绘制方法,默认空实现
|
|
61
|
+
*/
|
|
62
|
+
draw(): void;
|
|
63
|
+
/**
|
|
64
|
+
* 节点绘制方法,默认空实现,绘制在_ctx上
|
|
65
|
+
*/
|
|
66
|
+
abstract drawOnGLCtx(ctx: CanvasRenderingContext2D): void;
|
|
67
|
+
globalTransform(): AffineMatrix;
|
|
68
|
+
/**
|
|
69
|
+
* 返回节点外接矩形
|
|
70
|
+
*/
|
|
71
|
+
getRectNode(): RectNode;
|
|
72
|
+
getBounds(): RectNode;
|
|
73
|
+
getStretchMinSize(): IPoint;
|
|
74
|
+
overlapRect(rect: IRectNode): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 返回文字区域相对节点的矩形位置
|
|
77
|
+
*/
|
|
78
|
+
abstract getTextContentRect(): IRect;
|
|
79
|
+
toLocal(globalPoint: IPoint): IPoint;
|
|
80
|
+
toGlobal(localPoint: IPoint): IPoint;
|
|
81
|
+
modifyPosInEditing(cursor: TextCursorPosition): boolean;
|
|
82
|
+
resetFromEditing(): void;
|
|
83
|
+
serializeTo(): NodeInfo;
|
|
84
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeType } from "../../idl";
|
|
2
|
+
import { AbsProps } from "../props/AbsProps";
|
|
3
|
+
import { GraphicNode } from "./GraphicNode";
|
|
4
|
+
import { NodeInfo } from "../../idl";
|
|
5
|
+
export declare class NodeFactory {
|
|
6
|
+
static instance: NodeFactory | null;
|
|
7
|
+
static getInstance(): NodeFactory;
|
|
8
|
+
create(id: string, type: NodeType, zIndex: number, props: Partial<AbsProps>[], parent: GraphicNode, ctx: CanvasRenderingContext2D): GraphicNode;
|
|
9
|
+
createByNodeInfo(nodeInfo: NodeInfo, parent: GraphicNode, ctx: CanvasRenderingContext2D): GraphicNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GraphicNode } from "./GraphicNode";
|
|
2
|
+
import { Rect } from "../../common";
|
|
3
|
+
import { IPoint, NodeType } from "../../idl";
|
|
4
|
+
import { AffineMatrix } from "../../math";
|
|
5
|
+
import { AbsProps } from "../props/AbsProps";
|
|
6
|
+
export declare class RootNode extends GraphicNode {
|
|
7
|
+
type: NodeType;
|
|
8
|
+
transform: AffineMatrix;
|
|
9
|
+
constructor(id: string);
|
|
10
|
+
updateProps(props: Partial<AbsProps>[]): void;
|
|
11
|
+
drawOnGLCtx(ctx: CanvasRenderingContext2D): void;
|
|
12
|
+
getTextContentRect(): Rect;
|
|
13
|
+
toGlobal(localPoint: IPoint): IPoint;
|
|
14
|
+
toLocal(globalPoint: IPoint): IPoint;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { IArrowProps } from "../../idl/index";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
import { LineArrowType } from "../../idl/index";
|
|
5
|
+
export declare class ArrowProps extends AbsProps implements IArrowProps {
|
|
6
|
+
type: PropType;
|
|
7
|
+
lArrow: LineArrowType;
|
|
8
|
+
rArrow: LineArrowType;
|
|
9
|
+
static create(props: Partial<ArrowProps>): ArrowProps;
|
|
10
|
+
static from(iProps: IArrowProps): ArrowProps;
|
|
11
|
+
clone(): ArrowProps;
|
|
12
|
+
update(props: Partial<ArrowProps>): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { IBaseProps } from "../../idl/capInfo/IBaseProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class BaseProps extends AbsProps implements IBaseProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
angle: number;
|
|
11
|
+
static create(updateProps: Partial<BaseProps>): BaseProps;
|
|
12
|
+
static from(iProps: IBaseProps): BaseProps;
|
|
13
|
+
update(props: Partial<BaseProps>): void;
|
|
14
|
+
clone(): BaseProps;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { IBorderProps } from "../../idl/capInfo/IBorderProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
import { LineDashType } from "../../idl/capInfo/LineDashType";
|
|
5
|
+
export declare class BorderProps extends AbsProps implements IBorderProps {
|
|
6
|
+
type: PropType;
|
|
7
|
+
color: string;
|
|
8
|
+
alpha: number;
|
|
9
|
+
width: number;
|
|
10
|
+
dashType: LineDashType;
|
|
11
|
+
static create(updateProps: Partial<BorderProps>): BorderProps;
|
|
12
|
+
static from(iProps: IBorderProps): BorderProps;
|
|
13
|
+
update(props: Partial<BorderProps>): void;
|
|
14
|
+
clone(): BorderProps;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { IColorProps } from "../../idl/index";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class ColorProps extends AbsProps implements IColorProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
color: string;
|
|
7
|
+
alpha: number;
|
|
8
|
+
static create(updateProps: Partial<ColorProps>): ColorProps;
|
|
9
|
+
static from(iProps: IColorProps): ColorProps;
|
|
10
|
+
update(props: Partial<ColorProps>): void;
|
|
11
|
+
clone(): ColorProps;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IConnectEnd, IConnectProps } from "../../idl/capInfo/IConnectProps";
|
|
2
|
+
import { AbsProps } from "./AbsProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class ConnectProps extends AbsProps implements IConnectProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
start: IConnectEnd | null;
|
|
7
|
+
end: IConnectEnd | null;
|
|
8
|
+
static from(iProps: IConnectProps): ConnectProps;
|
|
9
|
+
clone(): ConnectProps;
|
|
10
|
+
update(props: Partial<ConnectProps>): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { CropType, ICropInfo, ICropProps } from "../../idl/capInfo/ICropProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class CropProps extends AbsProps implements ICropProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
cropType: CropType;
|
|
7
|
+
cropInfo: ICropInfo | undefined;
|
|
8
|
+
static from(iProps: ICropProps): CropProps;
|
|
9
|
+
clone(): CropProps;
|
|
10
|
+
update(props: Partial<CropProps>): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { PropType } from "./PropType";
|
|
3
|
+
import { IImageProps } from "../../idl/capInfo/IImageProps";
|
|
4
|
+
export declare class ImageProps extends AbsProps implements IImageProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
url: string;
|
|
7
|
+
static from(iProps: IImageProps): ImageProps;
|
|
8
|
+
clone(): ImageProps;
|
|
9
|
+
update(props: Partial<ImageProps>): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { ILineProps } from "../../idl/index";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
import { IPoint } from "../../idl/index";
|
|
5
|
+
export declare class LineProps extends AbsProps implements ILineProps {
|
|
6
|
+
type: PropType;
|
|
7
|
+
points: IPoint[];
|
|
8
|
+
/**
|
|
9
|
+
* 标识是否采用自动绕线布局
|
|
10
|
+
*/
|
|
11
|
+
auto: boolean;
|
|
12
|
+
static create(points: IPoint[], auto?: boolean): LineProps;
|
|
13
|
+
static from(iProps: ILineProps): LineProps;
|
|
14
|
+
clone(): LineProps;
|
|
15
|
+
update(props: Partial<LineProps>): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { ILineTextRectProps } from "../../idl/capInfo/ILineTextRectProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class LineTextRectProps extends AbsProps implements ILineTextRectProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
t: number;
|
|
9
|
+
static from(iProps: ILineTextRectProps): LineTextRectProps;
|
|
10
|
+
update(props: Partial<LineTextRectProps>): void;
|
|
11
|
+
clone(): LineTextRectProps;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { IShapeProps } from "../../idl/index";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class ShapeProps extends AbsProps implements IShapeProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
shapeCode: number;
|
|
7
|
+
constructor(shapeCode?: number);
|
|
8
|
+
static from(iProps: IShapeProps): ShapeProps;
|
|
9
|
+
update(props: Partial<ShapeProps>): void;
|
|
10
|
+
clone(): ShapeProps;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { ISvgProps } from "../../idl/capInfo/ISvgProps";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
export declare class SvgProps extends AbsProps implements ISvgProps {
|
|
5
|
+
type: PropType;
|
|
6
|
+
url: string;
|
|
7
|
+
static from(iProps: ISvgProps): SvgProps;
|
|
8
|
+
clone(): SvgProps;
|
|
9
|
+
update(props: Partial<SvgProps>): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbsProps } from "./AbsProps";
|
|
2
|
+
import { ITextProps } from "../../idl/index";
|
|
3
|
+
import { PropType } from "./PropType";
|
|
4
|
+
import { TextSizeMode } from "../../idl/common/TextSizeMode";
|
|
5
|
+
import { TextAlignType } from "../../idl/common/TextAlignType";
|
|
6
|
+
export declare class TextProps extends AbsProps implements ITextProps {
|
|
7
|
+
type: PropType;
|
|
8
|
+
text: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
fontColor: string;
|
|
12
|
+
fontBgColor: string;
|
|
13
|
+
bold: boolean;
|
|
14
|
+
italic: boolean;
|
|
15
|
+
underline: boolean;
|
|
16
|
+
strikethrough: boolean;
|
|
17
|
+
verticalAlign: TextAlignType;
|
|
18
|
+
horizonAlign: TextAlignType;
|
|
19
|
+
sizeMode: TextSizeMode;
|
|
20
|
+
static create(updateProps: Partial<TextProps>): TextProps;
|
|
21
|
+
static from(iProps: ITextProps): TextProps;
|
|
22
|
+
update(props: Partial<TextProps>): void;
|
|
23
|
+
clone(): TextProps;
|
|
24
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { GraphicNode } from "../node/GraphicNode";
|
|
2
|
+
import { BorderProps } from "../props/BorderProps";
|
|
3
|
+
import { ICapInfo, IPoint, ITextProps } from "../../idl";
|
|
4
|
+
import { PropType } from "../props/PropType";
|
|
5
|
+
import { AbsProps } from "../props/AbsProps";
|
|
6
|
+
import { BaseProps } from "../props/BaseProps";
|
|
7
|
+
import { IRect, IRectNode, Point, Rect, RectNode, StretchType } from "../../common";
|
|
8
|
+
import { NodeConnectEndType } from "../base/NodeConnectEndType";
|
|
9
|
+
import { OolongLine } from "../line/OolongLine";
|
|
10
|
+
import { AppEventContext } from "../../app";
|
|
11
|
+
/**
|
|
12
|
+
* 基本utils类
|
|
13
|
+
*/
|
|
14
|
+
export declare class GraphicUtils {
|
|
15
|
+
static makeSortGraphic(g: GraphicNode): {
|
|
16
|
+
graphics: GraphicNode[];
|
|
17
|
+
};
|
|
18
|
+
static sortGraphics(node: GraphicNode[]): GraphicNode[];
|
|
19
|
+
static setDashLine(borderProps: BorderProps, ctx: CanvasRenderingContext2D): void;
|
|
20
|
+
static convertPropsToCapInfo(props: Map<PropType, Partial<AbsProps>>): ICapInfo;
|
|
21
|
+
static convertCapInfoToProps(capInfo: ICapInfo): AbsProps[];
|
|
22
|
+
/**
|
|
23
|
+
* 获取中心点
|
|
24
|
+
*/
|
|
25
|
+
static centerPoint(node: GraphicNode): Point;
|
|
26
|
+
/**
|
|
27
|
+
* 获取矩形上方中点
|
|
28
|
+
*/
|
|
29
|
+
static topPoint(node: GraphicNode): Point;
|
|
30
|
+
/**
|
|
31
|
+
* 获取图形右方中点
|
|
32
|
+
*/
|
|
33
|
+
static rightPoint(node: GraphicNode): Point;
|
|
34
|
+
/**
|
|
35
|
+
* 获取图形下方中点
|
|
36
|
+
*/
|
|
37
|
+
static bottomPoint(node: GraphicNode): Point;
|
|
38
|
+
/**
|
|
39
|
+
* 获取图形左方中点
|
|
40
|
+
*/
|
|
41
|
+
static leftPoint(node: GraphicNode): Point;
|
|
42
|
+
/**
|
|
43
|
+
* 获取外接矩形形上方左角点
|
|
44
|
+
*/
|
|
45
|
+
static topLeft(node: GraphicNode): Point;
|
|
46
|
+
/**
|
|
47
|
+
* 获取外接矩形形上方右角点
|
|
48
|
+
*/
|
|
49
|
+
static topRight(node: GraphicNode): Point;
|
|
50
|
+
/**
|
|
51
|
+
* 获取外接矩形形下方左角点
|
|
52
|
+
*/
|
|
53
|
+
static bottomLeft(node: GraphicNode): Point;
|
|
54
|
+
/**
|
|
55
|
+
* 获取外接矩形形下方右角点
|
|
56
|
+
*/
|
|
57
|
+
static bottomRight(node: GraphicNode): Point;
|
|
58
|
+
/**
|
|
59
|
+
* 计算折线中间路径点方法
|
|
60
|
+
* 折线只折一次情况
|
|
61
|
+
* A----
|
|
62
|
+
* |
|
|
63
|
+
* |
|
|
64
|
+
* B
|
|
65
|
+
*/
|
|
66
|
+
static middleInsertPoint(start: Point, end: Point, points: Point[]): void;
|
|
67
|
+
/**
|
|
68
|
+
* 计算折线中间路径点方法
|
|
69
|
+
* 折线只折2次情况
|
|
70
|
+
* A----
|
|
71
|
+
* |
|
|
72
|
+
* |
|
|
73
|
+
* -----B
|
|
74
|
+
*/
|
|
75
|
+
static doubleMiddleInsertPoint(start: Point, end: Point, points: Point[]): void;
|
|
76
|
+
/**
|
|
77
|
+
* 判断点在矩形中的方法
|
|
78
|
+
*/
|
|
79
|
+
static rectContains(point: IPoint, rect: IRect | BaseProps): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 判断在矩形方法。入参为rect node
|
|
82
|
+
* @param point
|
|
83
|
+
* @param node
|
|
84
|
+
*/
|
|
85
|
+
static rectContains2(point: IPoint, node: IRectNode | RectNode): boolean;
|
|
86
|
+
static circleContains(point: IPoint, center: IPoint, r?: number): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* 判断两矩形是否相交
|
|
89
|
+
* @param rect1
|
|
90
|
+
* @param rect2
|
|
91
|
+
*/
|
|
92
|
+
static overlapRect(rect1: IRectNode, rect2: IRectNode): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* 判断rect1>rect2内,rect2在1内
|
|
95
|
+
* @param rect1
|
|
96
|
+
* @param rect2
|
|
97
|
+
*/
|
|
98
|
+
static containRect(rect1: IRectNode, rect2: IRectNode): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* 计算亮点之间距离
|
|
101
|
+
*/
|
|
102
|
+
static distance(a: IPoint, b: IPoint): number;
|
|
103
|
+
/**
|
|
104
|
+
* 计算两点连接的直线的角度
|
|
105
|
+
*/
|
|
106
|
+
static lineAngle(a: IPoint, b: IPoint): number;
|
|
107
|
+
/**
|
|
108
|
+
* 计算箭头坐标
|
|
109
|
+
*/
|
|
110
|
+
static basicGetArrowPoint(start: IPoint, end: IPoint, p1: IPoint, p2: IPoint): {
|
|
111
|
+
a: Point;
|
|
112
|
+
b: Point;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* 获取左边箭头坐标点
|
|
116
|
+
*/
|
|
117
|
+
static getLArrowPoint(start: IPoint, end: IPoint, l?: number): {
|
|
118
|
+
a: Point;
|
|
119
|
+
b: Point;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* 获取右边箭头点
|
|
123
|
+
*/
|
|
124
|
+
static getRArrowPoint(start: Point, end: Point, l?: number): {
|
|
125
|
+
a: Point;
|
|
126
|
+
b: Point;
|
|
127
|
+
};
|
|
128
|
+
static getNodeBounds(nodes: GraphicNode[]): Rect;
|
|
129
|
+
static cloneIRectNode(rectNode: IRectNode): IRectNode;
|
|
130
|
+
static cloneIPoint(point: IPoint): IPoint;
|
|
131
|
+
static getBoundsByBaseProps(baseProps: BaseProps): RectNode;
|
|
132
|
+
static getBoundsByBasePropsList(basePropsList: BaseProps[]): RectNode;
|
|
133
|
+
/**
|
|
134
|
+
* 获取外接矩形
|
|
135
|
+
*/
|
|
136
|
+
static getBounds(nodes: RectNode[], id?: string): RectNode;
|
|
137
|
+
/**
|
|
138
|
+
* 根据传入点获取外接矩形
|
|
139
|
+
*/
|
|
140
|
+
static getBoundsByPoints(points: IPoint[]): RectNode;
|
|
141
|
+
static calcFont(fontSize: number, fontFamily: string, bold?: boolean, italic?: boolean): string;
|
|
142
|
+
static calcFontByTextProps(textProps: ITextProps): string;
|
|
143
|
+
static measureText(glCtx: CanvasRenderingContext2D, text: string): {
|
|
144
|
+
width: number;
|
|
145
|
+
height: number;
|
|
146
|
+
boxAscent: number;
|
|
147
|
+
};
|
|
148
|
+
static measureTextByFont(glCtx: CanvasRenderingContext2D, text: string, fontSize: number, fontFamily: string, bold: boolean, italic: boolean): {
|
|
149
|
+
width: number;
|
|
150
|
+
height: number;
|
|
151
|
+
boxAscent: number;
|
|
152
|
+
};
|
|
153
|
+
static judgeHorizon(p1: IPoint, p2: IPoint, delta?: number): boolean;
|
|
154
|
+
static judgeVertical(p1: IPoint, p2: IPoint, delta?: number): boolean;
|
|
155
|
+
static computePolyLinePoints(start: IPoint, end: IPoint): IPoint[];
|
|
156
|
+
static normalizeAngle(angle: number): number;
|
|
157
|
+
static computeOriginNodeConnectEnd(relativePos: IPoint): NodeConnectEndType;
|
|
158
|
+
static computeNodeConnectEnd(relativePos: IPoint, nodeAngle: number): NodeConnectEndType;
|
|
159
|
+
static inDistance(p: number, start: number, width: number): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* 对折线端点拖动时候提供对齐修正效果,对点进行清理
|
|
162
|
+
* @param points
|
|
163
|
+
* @param scale
|
|
164
|
+
* @param end
|
|
165
|
+
*/
|
|
166
|
+
static dealWithEndPolyPointsInUp(points: IPoint[], scale: number, end: boolean): IPoint[];
|
|
167
|
+
/**
|
|
168
|
+
* 拖动折线端点时候提供对齐吸附效果,对点进行矫正
|
|
169
|
+
* @param points
|
|
170
|
+
* @param scale
|
|
171
|
+
* @param end
|
|
172
|
+
*/
|
|
173
|
+
static dealWithEndPolyPoints(points: IPoint[], scale: number, end: boolean): IPoint[];
|
|
174
|
+
static dealWithPolyPoints(points: IPoint[], scale: number): IPoint[];
|
|
175
|
+
static computePointByT(node: OolongLine, t: number): IPoint;
|
|
176
|
+
static computeNodeConnectAnchor(node: GraphicNode, scale: number): IPoint[];
|
|
177
|
+
static computeSelectNode(ctx: AppEventContext, selectNode: GraphicNode): Set<GraphicNode>;
|
|
178
|
+
private static filterChildInSet;
|
|
179
|
+
static computeSelectNodes(selectGraphicsSet: Set<GraphicNode>): GraphicNode[];
|
|
180
|
+
static filterToGroupNodes(nodes: GraphicNode[]): GraphicNode[];
|
|
181
|
+
static detectRectBounds(rect: Rect, localPoint: IPoint, offset: number): {
|
|
182
|
+
type: StretchType;
|
|
183
|
+
} | null;
|
|
184
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GraphicNode } from "../node/GraphicNode";
|
|
2
|
+
export declare class GroupUtils {
|
|
3
|
+
static addAllParentToSet(node: GraphicNode, parentSet: Set<GraphicNode>): void;
|
|
4
|
+
static findHoverNode(node: GraphicNode, selectSet: Set<GraphicNode>): GraphicNode;
|
|
5
|
+
static flattenNodes(nodes: GraphicNode[]): GraphicNode[];
|
|
6
|
+
static flattenGroupNodes(node: GraphicNode, nodeSet: Set<GraphicNode>): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NodeType } from "./NodeType";
|
|
2
|
+
import { ICapInfo } from "./capInfo/ICapInfo";
|
|
3
|
+
export interface NodeInfo {
|
|
4
|
+
id: string;
|
|
5
|
+
type: NodeType;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
parentId: string;
|
|
8
|
+
capInfo: ICapInfo;
|
|
9
|
+
children: NodeInfo[];
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateDataNodeInfo {
|
|
12
|
+
id: string;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
parentId?: string;
|
|
15
|
+
capInfo: ICapInfo;
|
|
16
|
+
}
|
|
17
|
+
export interface AddDataNodeInfo {
|
|
18
|
+
id: string;
|
|
19
|
+
type: NodeType;
|
|
20
|
+
zIndex: number;
|
|
21
|
+
parentId: string;
|
|
22
|
+
capInfo: ICapInfo;
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IBaseProps } from "./IBaseProps";
|
|
2
|
+
import { IColorProps } from "./IColorProps";
|
|
3
|
+
import { IBorderProps } from "./IBorderProps";
|
|
4
|
+
import { ITextProps } from "./ITextProps";
|
|
5
|
+
import { IShapeProps } from "./IShapeProps";
|
|
6
|
+
import { ILineProps } from "./ILineProps";
|
|
7
|
+
import { IConnectProps } from "./IConnectProps";
|
|
8
|
+
import { ILineTextRectProps } from "./ILineTextRectProps";
|
|
9
|
+
import { IArrowProps } from "./IArrowProps";
|
|
10
|
+
import { ISvgProps } from "./ISvgProps";
|
|
11
|
+
import { IImageProps } from "./IImageProps";
|
|
12
|
+
import { ICropProps } from "./ICropProps";
|
|
13
|
+
export interface ICapInfo {
|
|
14
|
+
baseProps?: IBaseProps;
|
|
15
|
+
colorProps?: IColorProps;
|
|
16
|
+
borderProps?: IBorderProps;
|
|
17
|
+
textProps?: ITextProps;
|
|
18
|
+
shapeProps?: IShapeProps;
|
|
19
|
+
lineProps?: ILineProps;
|
|
20
|
+
connectProps?: IConnectProps;
|
|
21
|
+
arrowProps?: IArrowProps;
|
|
22
|
+
svgProps?: ISvgProps;
|
|
23
|
+
imageProps?: IImageProps;
|
|
24
|
+
lineTextRectProps?: ILineTextRectProps;
|
|
25
|
+
cropProps?: ICropProps;
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ICropProps {
|
|
2
|
+
cropType: CropType;
|
|
3
|
+
cropInfo?: ICropInfo;
|
|
4
|
+
}
|
|
5
|
+
export interface ICropInfo {
|
|
6
|
+
imgX: number;
|
|
7
|
+
imgY: number;
|
|
8
|
+
imgWidth: number;
|
|
9
|
+
imgHeight: number;
|
|
10
|
+
}
|
|
11
|
+
export declare enum CropType {
|
|
12
|
+
None = 0,
|
|
13
|
+
Rect = 1,
|
|
14
|
+
RoundRect = 2,
|
|
15
|
+
Circle = 3
|
|
16
|
+
}
|