oolong-engine 0.0.1 → 0.0.2
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/README.md +152 -4
- package/dist/ability/checkbox/CheckboxWorker.d.ts +6 -0
- package/dist/ability/copyPaste/copy/CopyWorker.d.ts +1 -0
- package/dist/ability/copyPaste/duplicate/DuplicateWorker.d.ts +9 -0
- package/dist/ability/create/CreateWorker.d.ts +10 -0
- package/dist/ability/create/handler/AbsCreateHandler.d.ts +15 -0
- package/dist/ability/create/handler/CheckboxCreateHandler.d.ts +7 -0
- package/dist/ability/create/handler/CheckboxTextCreateHandler.d.ts +7 -0
- package/dist/ability/create/handler/LineCreateHandler.d.ts +8 -0
- package/dist/ability/create/handler/SectionCreateHandler.d.ts +7 -0
- package/dist/ability/create/handler/ShapeCreateHandler.d.ts +8 -0
- package/dist/ability/create/handler/SlideCreateHandler.d.ts +7 -0
- package/dist/ability/delete/DeleteWorker.d.ts +1 -0
- package/dist/ability/group/GroupWorker.d.ts +2 -0
- package/dist/ability/index.d.ts +2 -0
- package/dist/ability/line/BatchLineTextWorker.d.ts +8 -0
- package/dist/ability/line/LayoutWorker.d.ts +5 -1
- package/dist/ability/line/LineTextWorker.d.ts +7 -0
- package/dist/ability/line/handler/CurveLayoutHandler.d.ts +2 -0
- package/dist/ability/quickCreate/QuickCreateWorker.d.ts +22 -0
- package/dist/ability/resize/WindowResizeWorker.d.ts +6 -0
- package/dist/ability/slide/SlideCoverInfo.d.ts +6 -0
- package/dist/ability/slide/SlidePlayWorker.d.ts +6 -0
- package/dist/ability/svg/CreateSvgWorker.d.ts +3 -2
- package/dist/ability/svg/GenSvgBitmapWorker.d.ts +2 -1
- package/dist/ability/text/CacheOfflineCanvas.d.ts +8 -0
- package/dist/ability/text/TextUtils.d.ts +8 -0
- package/dist/ability/textInput/TextDeleteInputWorker.d.ts +37 -0
- package/dist/ability/textInput/TextInputWorker.d.ts +72 -0
- package/dist/ability/textInput/TextLineBreakWorker.d.ts +12 -0
- package/dist/ability/textInput/TextParagraphStyleWorker.d.ts +8 -0
- package/dist/ability/textInput/textFont/AbsTextFontWorker.d.ts +13 -0
- package/dist/ability/textInput/textFont/TextFontBgColorWorker.d.ts +6 -0
- package/dist/ability/textInput/textFont/TextFontBoldWorker.d.ts +6 -0
- package/dist/ability/textInput/textFont/TextFontColorWorker.d.ts +6 -0
- package/dist/ability/textInput/textFont/TextFontItalicWorker.d.ts +6 -0
- package/dist/ability/textInput/textFont/TextFontSizeWorker.d.ts +14 -0
- package/dist/ability/textInput/textFont/TextFontStrikethroughWorker.d.ts +6 -0
- package/dist/ability/textInput/textFont/TextUnderLineWorker.d.ts +6 -0
- package/dist/ability/textInput/textParagraphPrefix/TextNormalWorker.d.ts +14 -0
- package/dist/ability/textInput/textParagraphPrefix/TextOrderWorker.d.ts +15 -0
- package/dist/ability/textInput/textParagraphPrefix/TextParaPrefixWorker.d.ts +8 -0
- package/dist/ability/textInput/textParagraphPrefix/TextQuoteWorker.d.ts +15 -0
- package/dist/ability/textInput/textParagraphPrefix/TextUnOrderWorker.d.ts +15 -0
- package/dist/action/ActionManager.d.ts +2 -1
- package/dist/action/executor/ExecutorContext.d.ts +4 -0
- package/dist/action/executor/ExecutorManager.d.ts +7 -2
- package/dist/action/executor/beforeInterceptor/AbsInterceptor.d.ts +6 -0
- package/dist/action/executor/beforeInterceptor/slide/SlideCoverInsertInterceptor.d.ts +9 -0
- package/dist/action/executor/beforeInterceptor/slide/SlideCoverUpdateInterceptor.d.ts +13 -0
- package/dist/action/render/RenderManager.d.ts +15 -9
- package/dist/action/render/export/ExportWorker.d.ts +2 -0
- package/dist/action/render/zoom/ZoomWorker.d.ts +8 -7
- package/dist/app/AppEventContext.d.ts +20 -3
- package/dist/app/OolongApp.d.ts +4 -0
- package/dist/app/ai-api/OolongAIAPI.d.ts +11 -0
- package/dist/app/ai-api/module/AINodeAPI.d.ts +380 -0
- package/dist/app/ai-api/module/AIViewportAPI.d.ts +59 -0
- package/dist/app/ai-api/module/SelectAPI.d.ts +51 -0
- package/dist/app/api/OolongAPI.d.ts +22 -1
- package/dist/app/api/module/{createAPI.d.ts → CreateAPI.d.ts} +16 -0
- package/dist/app/api/module/SwitchAPI.d.ts +10 -0
- package/dist/app/api/module/align/AlignAPI.d.ts +19 -0
- package/dist/app/api/module/propChange/PropChangeAPI.d.ts +5 -0
- package/dist/app/api/module/propChange/fontsize/AbsFontSizeChangeHandler.d.ts +6 -0
- package/dist/app/api/module/propChange/fontsize/CheckboxTextFontSizeChangeHandler.d.ts +7 -0
- package/dist/app/api/module/propChange/fontsize/NormalFontSizeChangeHandler.d.ts +7 -0
- package/dist/app/api/module/slide/SlideAPI.d.ts +25 -0
- package/dist/app/api/module/text/TextAPI.d.ts +38 -0
- package/dist/app/docModeManager/DocModeManager.d.ts +12 -0
- package/dist/app/docModeManager/DocModeSwitchContext.d.ts +4 -0
- package/dist/app/docModeManager/switchHandler/AbsSwitchHandler.d.ts +5 -0
- package/dist/app/docModeManager/switchHandler/board/BoardToSlideEditHandler.d.ts +8 -0
- package/dist/app/docModeManager/switchHandler/board/BoardToSlidePlayHandler.d.ts +6 -0
- package/dist/app/docModeManager/switchHandler/slide-edit/SlideEditToBoardHandler.d.ts +6 -0
- package/dist/app/docModeManager/switchHandler/slide-edit/SlideEditToSlidePlayHandler.d.ts +5 -0
- package/dist/app/docModeManager/switchHandler/slide-play/SlidePlayToBoardHandler.d.ts +6 -0
- package/dist/app/docModeManager/switchHandler/slide-play/SlidePlayToSlideEditHandler.d.ts +5 -0
- package/dist/app/docState/DocMode.d.ts +5 -0
- package/dist/app/docState/DocState.d.ts +11 -0
- package/dist/app/docState/SlideStatus.d.ts +7 -0
- package/dist/app/index.d.ts +2 -0
- package/dist/application/GMLRender.d.ts +2 -1
- package/dist/application/nodeManager/NodeManager.d.ts +1 -0
- package/dist/asyncRender/AsyncRenderNodeManager.d.ts +3 -4
- package/dist/auxiliary/AuxiliaryManager.d.ts +2 -1
- package/dist/auxiliary/AuxiliaryStyleConst.d.ts +1 -0
- package/dist/auxiliary/graphics/AuxiliaryType.d.ts +13 -1
- package/dist/auxiliary/graphics/group/SelectGroup.d.ts +1 -0
- package/dist/auxiliary/graphics/hover/HoverFocusCopy.d.ts +10 -0
- package/dist/auxiliary/graphics/hover/HoverInsertHorizonSlide.d.ts +11 -0
- package/dist/auxiliary/graphics/hover/HoverInsertSlide.d.ts +11 -0
- package/dist/auxiliary/graphics/hover/HoverSlideGapInsertPoint.d.ts +12 -0
- package/dist/auxiliary/graphics/hover/HoverSlidePlaceHolder.d.ts +10 -0
- package/dist/auxiliary/graphics/select/SelectCurveControlPoint.d.ts +15 -0
- package/dist/auxiliary/graphics/select/SelectCurveEnd.d.ts +15 -0
- package/dist/auxiliary/graphics/select/SelectLineTextRect.d.ts +2 -0
- package/dist/auxiliary/graphics/select/SelectParentGroupBound.d.ts +10 -0
- package/dist/auxiliary/graphics/select/SelectSlideGapInsertPoint.d.ts +10 -0
- package/dist/common/detect/DetectorEnum.d.ts +5 -1
- package/dist/common/paste/PasteData.d.ts +2 -0
- package/dist/config/ShapeCategoryType.d.ts +3 -1
- package/dist/config/defaultBorderConfig.d.ts +2 -0
- package/dist/config/defaultColorConfig.d.ts +2 -0
- package/dist/cursor/CursorManager.d.ts +19 -2
- package/dist/cursor/CursorStyle.d.ts +0 -1
- package/dist/engine.js +21041 -16095
- package/dist/engine.umd.cjs +34 -31
- package/dist/graphics/OolongNode.d.ts +7 -2
- package/dist/graphics/OolongSVGNode.d.ts +2 -0
- package/dist/graphics/OolongSection.d.ts +1 -0
- package/dist/graphics/OolongSlideContainer.d.ts +17 -0
- package/dist/graphics/base/NodeConnectEndType.d.ts +2 -1
- package/dist/graphics/base/ShapeType.d.ts +9 -9
- package/dist/graphics/drawer/AbsDrawer.d.ts +5 -1
- package/dist/graphics/drawer/CloudDrawer.d.ts +10 -0
- package/dist/graphics/drawer/CrossDrawer.d.ts +13 -0
- package/dist/graphics/drawer/EllipseDrawer.d.ts +2 -2
- package/dist/graphics/drawer/HexagonDrawer.d.ts +12 -0
- package/dist/graphics/drawer/LingxingDrawer.d.ts +3 -2
- package/dist/graphics/drawer/OctagonDrawer.d.ts +13 -0
- package/dist/graphics/drawer/ParallelogramDrawer.d.ts +12 -0
- package/dist/graphics/drawer/PentagonDrawer.d.ts +13 -0
- package/dist/graphics/drawer/PureTextDrawer.d.ts +2 -0
- package/dist/graphics/drawer/RoundRectDrawer.d.ts +2 -2
- package/dist/graphics/drawer/StarDrawer.d.ts +13 -0
- package/dist/graphics/drawer/TrapezoidDrawer.d.ts +12 -0
- package/dist/graphics/drawer/Triangle2Drawer.d.ts +6 -0
- package/dist/graphics/drawer/TriangleDrawer.d.ts +2 -1
- package/dist/graphics/index.d.ts +5 -0
- package/dist/graphics/line/OolongLine.d.ts +9 -3
- package/dist/graphics/line/arrow/CircleArrowDrawer.d.ts +5 -0
- package/dist/graphics/line/arrow/EmptyCircleArrowDrawer.d.ts +5 -0
- package/dist/graphics/node/GraphicNode.d.ts +2 -0
- package/dist/graphics/props/BaseProps.d.ts +1 -1
- package/dist/graphics/props/LineTextRectProps.d.ts +4 -1
- package/dist/graphics/props/PropType.d.ts +6 -1
- package/dist/graphics/props/SlideProps.d.ts +12 -0
- package/dist/graphics/props/SvgProps.d.ts +2 -0
- package/dist/graphics/props/TextParagraphProps.d.ts +11 -0
- package/dist/graphics/props/TextParagraphQuoteProps.d.ts +11 -0
- package/dist/graphics/props/TextProps.d.ts +5 -3
- package/dist/graphics/props/widget/CheckSizeProps.d.ts +11 -0
- package/dist/graphics/props/widget/CheckStatusProps.d.ts +11 -0
- package/dist/graphics/utils/GraphicUtils.d.ts +70 -3
- package/dist/graphics/widget/OolongWidget.d.ts +10 -0
- package/dist/graphics/widget/checkbox/OolongCheckbox.d.ts +16 -0
- package/dist/graphics/widget/checkbox/OolongCheckboxText.d.ts +22 -0
- package/dist/idl/NodeType.d.ts +3 -0
- package/dist/idl/capInfo/ICapInfo.d.ts +10 -0
- package/dist/idl/capInfo/ICheckSizeProps.d.ts +3 -0
- package/dist/idl/capInfo/ICheckStatusProps.d.ts +3 -0
- package/dist/idl/capInfo/ILineTextRectProps.d.ts +4 -1
- package/dist/idl/capInfo/ISlideProps.d.ts +4 -0
- package/dist/idl/capInfo/ISlideRow.d.ts +3 -0
- package/dist/idl/capInfo/ISvgProps.d.ts +2 -0
- package/dist/idl/capInfo/ITextParagraphProps.d.ts +8 -0
- package/dist/idl/capInfo/ITextParagraphQuoteProps.d.ts +7 -0
- package/dist/idl/capInfo/ITextProps.d.ts +1 -0
- package/dist/idl/capInfo/TransitionEnum.d.ts +3 -0
- package/dist/idl/common/LineArrowType.d.ts +3 -1
- package/dist/idl/common/RotateType.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/plugin-copy-paste/copy-paste/copy/CopyTextHandler.d.ts +38 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/IOolongDataHandler.d.ts +4 -3
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/PasteNodeHandler.d.ts +8 -3
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/posHandler/AbsPastePosHandler.d.ts +8 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/posHandler/EmptyPlacePosHandler.d.ts +9 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/posHandler/NormalPastePosHandler.d.ts +9 -0
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/posHandler/PosPasteType.d.ts +4 -0
- package/dist/plugin-copy-paste/copy-paste/utils/CopyPasteUtils.d.ts +5 -0
- package/dist/plugin-copy-paste/index.d.ts +4 -0
- package/dist/plugin-hotkey/hotkey/common/ShiftKey.d.ts +8 -0
- package/dist/plugin-hotkey/hotkey/config/KeyCodeConfig.d.ts +2 -0
- package/dist/plugin-hotkey/hotkey/normal/EnterHotKey.d.ts +8 -0
- package/dist/plugin-hotkey/hotkey/normal/move/ArrowDownKey.d.ts +14 -0
- package/dist/plugin-hotkey/hotkey/normal/move/ArrowLeftKey.d.ts +14 -0
- package/dist/plugin-hotkey/hotkey/normal/move/ArrowMoveWorker.d.ts +23 -0
- package/dist/plugin-hotkey/hotkey/normal/move/ArrowRightKey.d.ts +14 -0
- package/dist/plugin-hotkey/hotkey/normal/move/ArrowUpKey.d.ts +14 -0
- package/dist/plugin-hotkey/hotkey/text/AbsArrowKey.d.ts +1 -1
- package/dist/plugin-hotkey/hotkey/text/ArrowRightKey.d.ts +3 -2
- package/dist/plugin-hotkey/hotkey/text/EnterHotKey.d.ts +7 -3
- package/dist/plugin-hotkey/hotkey/text/EscKey.d.ts +7 -0
- package/dist/plugin-hotkey/hotkey/text/TabKey.d.ts +7 -0
- package/dist/plugin-input/InputEventPlugin.d.ts +2 -2
- package/dist/plugin-input/common/ICompositionRecord.d.ts +1 -1
- package/dist/plugin-input/handler/AbsInputHandler.d.ts +2 -0
- package/dist/plugin-input/handler/InputCompositionHandler.d.ts +1 -1
- package/dist/plugin-input/handler/InputNormalHandler.d.ts +1 -1
- package/dist/plugin-pointer/PointerEventPlugin.d.ts +5 -0
- package/dist/plugin-pointer/interact/InteractiveManager.d.ts +1 -1
- package/dist/plugin-pointer/interact/InteractiveUtils.d.ts +21 -4
- package/dist/plugin-pointer/interact/align/AlignWorker.d.ts +3 -3
- package/dist/plugin-pointer/interact/align/common/AlignHorizonHandler.d.ts +1 -0
- package/dist/plugin-pointer/interact/align/common/AlignVerticalHandler.d.ts +1 -0
- package/dist/plugin-pointer/interact/basic/constants.d.ts +2 -0
- package/dist/plugin-pointer/interact/config/InteractConfig.d.ts +3 -1
- package/dist/plugin-pointer/interact/default/click/handler/AnchorQuickCreateHandler.d.ts +21 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickInsertEmptySlideHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickInsertSlideHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickTextHandler.d.ts +2 -1
- package/dist/plugin-pointer/interact/default/click/handler/widget/CheckboxHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/connectAnchor/ConnectAnchorProcessor.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/create/CreateColorConfig.d.ts +0 -2
- package/dist/plugin-pointer/interact/default/create/CreateLineMainMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/create/CreateTextMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/RectCreateDragProcessor.d.ts +1 -0
- package/dist/plugin-pointer/interact/default/create/base/AbsCreateDragProcessor.d.ts +1 -0
- package/dist/plugin-pointer/interact/default/create/line/handler/AbsLineCreateHandler.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/create/normal/CreateNormalMode.d.ts +2 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/AbsCreateUpHandler.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpCheckboxHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpCheckboxTextHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpLineHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpSectionHandler.d.ts +0 -2
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpShapeHandler.d.ts +0 -2
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpSlideHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/create/normal/hover/CreateHoverNodeProcessor.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/create/normal/hover/CreateLineMoveProcessor.d.ts +3 -3
- package/dist/plugin-pointer/interact/default/curveControlPoint/BezierCurve.d.ts +42 -0
- package/dist/plugin-pointer/interact/default/curveControlPoint/BezierWorker.d.ts +34 -0
- package/dist/plugin-pointer/interact/default/curveControlPoint/CurveControlPointMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/curveControlPoint/CurveControlPointProcessor.d.ts +20 -0
- package/dist/plugin-pointer/interact/default/curveControlPoint/utils.d.ts +5 -0
- package/dist/plugin-pointer/interact/default/curveEndPoint/CurveEndPointMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/curveEndPoint/CurveEndProcessor.d.ts +16 -0
- package/dist/plugin-pointer/interact/default/dbClick/handler/DBClickTextHandler.d.ts +2 -1
- package/dist/plugin-pointer/interact/default/dbClick/handler/DbCheckboxHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/drag/DragProcessor.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/dragLineText/DragLineTextMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/dragLineText/DragLineTextProcessor.d.ts +15 -0
- package/dist/plugin-pointer/interact/default/dragLineText/handler/AbsLineIntersectHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/dragLineText/handler/CurveLineIntersectHandler.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/dragLineText/handler/LineShapeIntersectResult.d.ts +5 -0
- package/dist/plugin-pointer/interact/default/dragLineText/handler/PolyLineIntersectHandler.d.ts +18 -0
- package/dist/plugin-pointer/interact/default/dragLineText/handler/SimpleLineIntersectHandler.d.ts +12 -0
- package/dist/plugin-pointer/interact/default/dragSelectText/DragSelectTextProcessor.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/dragSlide/DragSlideMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/dragSlide/DragSlideProcessor.d.ts +55 -0
- package/dist/plugin-pointer/interact/default/group/GroupMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/group/GroupProcessor.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/group/handler/AbsGroupHandler.d.ts +8 -0
- package/dist/plugin-pointer/interact/default/group/handler/CmdGroupHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/group/handler/NormalGroupHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/lineControlPoint/LineControlPointProcessor.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/lineEnd/DragLineEndProcessor.d.ts +6 -2
- package/dist/plugin-pointer/interact/default/lineEnd/handler/DragCurveLineEndHandler.d.ts +14 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/CurveControlPointCursorHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/CurveEndPointCursorHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/HoverSlideCursorHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/LineTextCursorHandler.d.ts +9 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/NormalCursorHandler.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/RotateCursorHandler.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/SlideGapInsertHandler.d.ts +7 -0
- package/dist/plugin-pointer/interact/default/normal/cursor/handler/StretchCursorHandler.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/rotate/RotateMode.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/stretch/AbsStretchProcessor.d.ts +4 -0
- package/dist/plugin-pointer/interact/default/stretch/SingleStretchMode.d.ts +4 -4
- package/dist/plugin-pointer/interact/default/stretch/SingleStretchProcessorV2.d.ts +5 -3
- package/dist/plugin-pointer/interact/default/stretch/StretchMode.d.ts +2 -2
- package/dist/plugin-pointer/interact/default/stretch/StretchProcessorV2.d.ts +4 -1
- package/dist/plugin-pointer/interact/default/stretch/handler/AbsStretchHandler.d.ts +2 -1
- package/dist/plugin-pointer/interact/default/stretch/handler/CheckboxTextStretchHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/SingleStretchSectionHandler.d.ts +11 -0
- package/dist/plugin-pointer/interact/default/stretch/handler/{SingleStretchNodeHandler.d.ts → StretchSlideContainerHandler.d.ts} +1 -1
- package/dist/plugin-pointer/interact/default/stretch/handler/TextStretchHandler.d.ts +10 -0
- package/dist/plugin-pointer/interact/detector/DetectorResult.d.ts +10 -0
- package/dist/plugin-pointer/interact/detector/RotateDetector.d.ts +3 -0
- package/dist/plugin-pointer/interact/detector/dragText/DragLineTextDetector.d.ts +9 -0
- package/dist/plugin-pointer/interact/detector/line/CurveControlPointDetector.d.ts +16 -0
- package/dist/plugin-pointer/interact/detector/line/CurveEndPointDetector.d.ts +10 -0
- package/dist/plugin-pointer/interact/detector/slide/EmptySlideContainerAddDetector.d.ts +12 -0
- package/dist/plugin-pointer/interact/detector/slide/SlideGapDetector.d.ts +15 -0
- package/dist/plugin-pointer/interact/detector/stretch/StretchDetector.d.ts +1 -0
- package/dist/plugin-pointer/interact/playSlide/PlayNormalMode.d.ts +8 -0
- package/dist/plugin-pointer/interact/playSlide/PlaySlideMode.d.ts +7 -0
- package/dist/plugin-pointer/interact/utils/RectUtils.d.ts +1 -1
- package/dist/plugin-pointer/interact/viewOnly/normal/ViewOnlyHoverProcessor.d.ts +9 -0
- package/dist/plugin-pointer/mobile/TouchScrollZoomWorker.d.ts +37 -0
- package/dist/plugin-resize/WindowResizePlugin.d.ts +0 -3
- package/dist/plugin-wheel/WheelEventPlugin.d.ts +3 -3
- package/dist/preview/IPreviewConnectInfo.d.ts +6 -0
- package/dist/preview/PreviewQuickCreateManager.d.ts +2 -0
- package/dist/preview/previewCreate/handler/AbsPreviewHandler.d.ts +3 -1
- package/dist/preview/previewCreate/handler/PreviewCheckboxHandler.d.ts +7 -0
- package/dist/preview/previewCreate/handler/PreviewCheckboxTextHandler.d.ts +7 -0
- package/dist/preview/previewCreate/handler/PreviewSectionHandler.d.ts +0 -3
- package/dist/preview/previewCreate/handler/PreviewShapeHandler.d.ts +0 -3
- package/dist/preview/previewCreate/handler/PreviewSlideHandler.d.ts +7 -0
- package/dist/preview/previewCreate/handler/previewLine/PreviewLineHandler.d.ts +12 -0
- package/dist/preview/previewCreate/handler/previewLine/helper/AbsLineHelper.d.ts +6 -0
- package/dist/preview/previewCreate/handler/previewLine/helper/CurveLineHelper.d.ts +5 -0
- package/dist/preview/previewCreate/handler/previewLine/helper/PolyLineHelper.d.ts +5 -0
- package/dist/preview/previewCreate/handler/previewLine/helper/RoundPolyLineHelper.d.ts +5 -0
- package/dist/preview/previewCreate/handler/previewLine/helper/SimpleLineHelper.d.ts +7 -0
- package/dist/renderText/RenderText.d.ts +42 -11
- package/dist/renderText/TextBlock.d.ts +54 -0
- package/dist/renderText/TextConstants.d.ts +3 -0
- package/dist/renderText/TextLine.d.ts +25 -11
- package/dist/renderText/TextParagraph.d.ts +12 -3
- package/dist/renderText/TypesettingCtx.d.ts +6 -0
- package/dist/renderText/editInfo/EditTextWorker.d.ts +7 -1
- package/dist/renderText/editInfo/baseprops/OolongLineModifyWorker.d.ts +6 -0
- package/dist/renderText/editInfo/baseprops/OolongNodeModifyWorker.d.ts +10 -0
- package/dist/renderText/linebreak/CharacterLineBreakWorker.d.ts +6 -0
- package/dist/renderText/measure/TextBlockMeasureWorker.d.ts +5 -0
- package/dist/renderText/paraStyle/IParagraphStyleProp.d.ts +9 -0
- package/dist/renderText/paraStyle/ITextQuoteInfo.d.ts +8 -0
- package/dist/renderText/paraStyle/PrefixDrawer.d.ts +28 -0
- package/dist/renderText/paraStyle/TextQuoteLineWorker.d.ts +14 -0
- package/dist/renderText/richText/ITextBlock.d.ts +30 -0
- package/dist/renderText/richText/RichTextHelper.d.ts +31 -0
- package/dist/renderText/richText/RichTextParagraph.d.ts +5 -0
- package/dist/renderText/richText/RichTextWord.d.ts +4 -0
- package/dist/renderText/selection/TextSelectionDeleteWorker.d.ts +2 -2
- package/dist/renderText/split/GraphemeSplit.d.ts +1 -0
- package/dist/renderText/split/IntlSplit.d.ts +1 -0
- package/dist/renderText/split/LinebreakSplit.d.ts +9 -0
- package/dist/resource-manager/AbsResourceInstance.d.ts +2 -1
- package/dist/resource-manager/IResourceInfo.d.ts +3 -0
- package/dist/resource-manager/NormalResourceInstance.d.ts +2 -1
- package/dist/resource-manager/ResourceEnumType.d.ts +4 -0
- package/dist/resource-manager/ResourceManager.d.ts +7 -2
- package/dist/resource-manager/index.d.ts +1 -0
- package/dist/select/SelectManager.d.ts +3 -1
- package/dist/select/status/SelectStatusContext.d.ts +2 -0
- package/dist/select/status/readOnly/ReadOnlyMultiStatusHandler.d.ts +8 -0
- package/dist/select/status/readOnly/ReadOnlySingleStatusHandler.d.ts +11 -0
- package/dist/select/status/single/SingleCurveStatusHandler.d.ts +7 -0
- package/dist/select/status/single/SingleSlideContainerStatusHandler.d.ts +7 -0
- package/dist/select/status/single/SingleSlideEditStatusHandler.d.ts +8 -0
- package/dist/select/status/single/SingleSlideStatusHandler.d.ts +7 -0
- package/dist/slide/SlideCoverManager.d.ts +13 -0
- package/dist/slide/SlideManager.d.ts +47 -0
- package/dist/slot/SlotKeyType.d.ts +4 -1
- package/dist/tool/ToolEnum.d.ts +3 -1
- package/dist/tool/WidgetEnum.d.ts +4 -0
- package/dist/tool/index.d.ts +1 -0
- package/dist/utils/MobileUtils.d.ts +6 -0
- package/package.json +5 -33
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StreamProcessor } from "../../basic/StreamProcessor";
|
|
2
|
+
import { InteractiveEvent } from "../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
|
+
import { OolongLine } from "../../../../graphics";
|
|
5
|
+
import { AbsLineIntersectHandler } from "./handler/AbsLineIntersectHandler";
|
|
6
|
+
export declare class DragLineTextProcessor extends StreamProcessor {
|
|
7
|
+
line: OolongLine;
|
|
8
|
+
intersectHandlers: AbsLineIntersectHandler[];
|
|
9
|
+
currentHandler: AbsLineIntersectHandler | null;
|
|
10
|
+
onStart(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
11
|
+
onMove(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
12
|
+
onUp(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
13
|
+
private onWork;
|
|
14
|
+
private selectHandler;
|
|
15
|
+
}
|
package/dist/plugin-pointer/interact/default/dragLineText/handler/AbsLineIntersectHandler.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OolongLine } from "../../../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../../../idl";
|
|
3
|
+
import { IRectNode } from "../../../../../common";
|
|
4
|
+
import { LineShapeIntersectResult } from "./LineShapeIntersectResult";
|
|
5
|
+
export declare abstract class AbsLineIntersectHandler {
|
|
6
|
+
init(line: OolongLine): void;
|
|
7
|
+
abstract enable(line: OolongLine): boolean;
|
|
8
|
+
abstract handle(line: OolongLine, originPoint: IPoint): LineShapeIntersectResult | null;
|
|
9
|
+
protected dealWithPoint(point: IPoint, rectNode: IRectNode): void;
|
|
10
|
+
}
|
package/dist/plugin-pointer/interact/default/dragLineText/handler/CurveLineIntersectHandler.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OolongLine } from "../../../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../../../idl";
|
|
3
|
+
import { ShapeInfo } from "kld-intersections";
|
|
4
|
+
import { AbsLineIntersectHandler } from "./AbsLineIntersectHandler";
|
|
5
|
+
import { LineShapeIntersectResult } from "./LineShapeIntersectResult";
|
|
6
|
+
export declare class CurveLineIntersectHandler extends AbsLineIntersectHandler {
|
|
7
|
+
lineShapes: ShapeInfo[];
|
|
8
|
+
init(line: OolongLine): void;
|
|
9
|
+
enable(line: OolongLine): boolean;
|
|
10
|
+
handle(line: OolongLine, originPoint: IPoint): LineShapeIntersectResult | null;
|
|
11
|
+
private intersectLine;
|
|
12
|
+
}
|
package/dist/plugin-pointer/interact/default/dragLineText/handler/PolyLineIntersectHandler.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OolongLine } from "../../../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../../../idl";
|
|
3
|
+
import { ShapeInfo } from "kld-intersections";
|
|
4
|
+
import { IRectNode } from "../../../../../common";
|
|
5
|
+
import { LineShapeIntersectResult } from "./LineShapeIntersectResult";
|
|
6
|
+
import { AbsLineIntersectHandler } from "./AbsLineIntersectHandler";
|
|
7
|
+
interface LineShapeInfo {
|
|
8
|
+
shapeInfo: ShapeInfo;
|
|
9
|
+
isHorizon: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class PolyLineIntersectHandler extends AbsLineIntersectHandler {
|
|
12
|
+
lineShapes: LineShapeInfo[];
|
|
13
|
+
init(line: OolongLine): void;
|
|
14
|
+
enable(line: OolongLine): boolean;
|
|
15
|
+
handle(line: OolongLine, originPoint: IPoint): LineShapeIntersectResult | null;
|
|
16
|
+
protected dealWithPoint(point: IPoint, rectNode: IRectNode): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
package/dist/plugin-pointer/interact/default/dragLineText/handler/SimpleLineIntersectHandler.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OolongLine } from "../../../../../graphics";
|
|
2
|
+
import { IPoint } from "../../../../../idl";
|
|
3
|
+
import { ShapeInfo } from "kld-intersections";
|
|
4
|
+
import { AbsLineIntersectHandler } from "./AbsLineIntersectHandler";
|
|
5
|
+
import { LineShapeIntersectResult } from "./LineShapeIntersectResult";
|
|
6
|
+
export declare class SimpleLineIntersectHandler extends AbsLineIntersectHandler {
|
|
7
|
+
lineShape: ShapeInfo;
|
|
8
|
+
init(line: OolongLine): void;
|
|
9
|
+
enable(line: OolongLine): boolean;
|
|
10
|
+
handle(line: OolongLine, originPoint: IPoint): LineShapeIntersectResult | null;
|
|
11
|
+
private intersectLine;
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StreamProcessor } from "../../basic/StreamProcessor";
|
|
2
|
-
import { InteractiveEvent } from "../../../../common
|
|
3
|
-
import { AppEventContext } from "../../../../app
|
|
2
|
+
import { InteractiveEvent } from "../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
4
|
export declare class DragSelectTextProcessor extends StreamProcessor {
|
|
5
5
|
private start;
|
|
6
6
|
onStart(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DownAndMoveStreamMode } from "../../basic/DownAndMoveStreamMode";
|
|
2
|
+
import { InteractiveEvent } from "../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
|
+
export declare class DragSlideMode extends DownAndMoveStreamMode {
|
|
5
|
+
constructor();
|
|
6
|
+
protected streamEnable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { StreamProcessor } from "../../basic/StreamProcessor";
|
|
2
|
+
import { InteractiveEvent } from "../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
|
+
export declare class DragSlideProcessor extends StreamProcessor {
|
|
5
|
+
private originPos;
|
|
6
|
+
private originNodePos;
|
|
7
|
+
private dragNode;
|
|
8
|
+
private originDragNodes;
|
|
9
|
+
private originBaseProps;
|
|
10
|
+
private rowNodes;
|
|
11
|
+
private rowIds;
|
|
12
|
+
private rowIndex;
|
|
13
|
+
private targetRowIndex;
|
|
14
|
+
private isInsertNewRow;
|
|
15
|
+
private originIndex;
|
|
16
|
+
private insertIndex;
|
|
17
|
+
private computeRowNodes;
|
|
18
|
+
onStart(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
19
|
+
onMove(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
20
|
+
/**
|
|
21
|
+
* 重新布局一行的所有节点
|
|
22
|
+
*/
|
|
23
|
+
private relayoutRow;
|
|
24
|
+
/**
|
|
25
|
+
* 处理插入新行的逻辑
|
|
26
|
+
*/
|
|
27
|
+
private handleInsertNewRow;
|
|
28
|
+
/**
|
|
29
|
+
* 根据鼠标 y 坐标(相对于 slideContainer 的局部坐标)确定目标行索引
|
|
30
|
+
*/
|
|
31
|
+
private determineTargetRow;
|
|
32
|
+
/**
|
|
33
|
+
* 显示插入提示线
|
|
34
|
+
* @param mouseLocalX 鼠标相对于 slideContainer 的局部 X 坐标
|
|
35
|
+
*/
|
|
36
|
+
private showInsertIndicator;
|
|
37
|
+
/**
|
|
38
|
+
* 显示新行插入提示线(水平线)
|
|
39
|
+
*/
|
|
40
|
+
private showNewRowIndicator;
|
|
41
|
+
/**
|
|
42
|
+
* 显示现有行内插入提示线
|
|
43
|
+
* @param mouseLocalX 鼠标相对于 slideContainer 的局部 X 坐标
|
|
44
|
+
*/
|
|
45
|
+
private showExistingRowIndicator;
|
|
46
|
+
/**
|
|
47
|
+
* 处理同行拖动的逻辑
|
|
48
|
+
*/
|
|
49
|
+
private handleSameRowDrag;
|
|
50
|
+
/**
|
|
51
|
+
* 处理跨行拖动的逻辑
|
|
52
|
+
*/
|
|
53
|
+
private handleCrossRowDrag;
|
|
54
|
+
onUp(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
55
|
+
}
|
|
@@ -3,5 +3,5 @@ import { InteractiveEvent } from "../../../../common/index";
|
|
|
3
3
|
import { AppEventContext } from "../../../../app/index";
|
|
4
4
|
export declare class GroupMode extends DownAndMoveStreamMode {
|
|
5
5
|
constructor();
|
|
6
|
-
streamEnable(
|
|
6
|
+
streamEnable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
7
7
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { StreamProcessor } from "../../basic/StreamProcessor";
|
|
2
2
|
import { InteractiveEvent, Point } from "../../../../common";
|
|
3
3
|
import { AppEventContext } from "../../../../app";
|
|
4
|
+
import { AbsGroupHandler } from "./handler/AbsGroupHandler";
|
|
4
5
|
export declare class GroupProcessor extends StreamProcessor {
|
|
5
6
|
startPoint: Point | null;
|
|
7
|
+
handlers: AbsGroupHandler[];
|
|
6
8
|
onStart(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
7
9
|
onMove(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
8
10
|
onUp(_event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InteractiveEvent, Rect, RectNode } from "../../../../../common";
|
|
2
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
3
|
+
import { AppEventContext } from "../../../../../app";
|
|
4
|
+
export declare abstract class AbsGroupHandler {
|
|
5
|
+
abstract enable(event: InteractiveEvent): boolean;
|
|
6
|
+
abstract handle(groupRect: RectNode, graphics: GraphicNode[], selectGraphics: Set<GraphicNode>): void;
|
|
7
|
+
abstract drawGroupRect(ctx: AppEventContext, rect: Rect): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InteractiveEvent, Rect, RectNode } from "../../../../../common";
|
|
2
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
3
|
+
import { AbsGroupHandler } from "./AbsGroupHandler";
|
|
4
|
+
import { AppEventContext } from "../../../../../app";
|
|
5
|
+
export declare class CmdGroupHandler extends AbsGroupHandler {
|
|
6
|
+
enable(event: InteractiveEvent): boolean;
|
|
7
|
+
handle(groupRect: RectNode, graphics: GraphicNode[], selectGraphics: Set<GraphicNode>): void;
|
|
8
|
+
drawGroupRect(ctx: AppEventContext, rect: Rect): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InteractiveEvent, Rect, RectNode } from "../../../../../common";
|
|
2
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
3
|
+
import { AbsGroupHandler } from "./AbsGroupHandler";
|
|
4
|
+
import { AppEventContext } from "../../../../../app";
|
|
5
|
+
export declare class NormalGroupHandler extends AbsGroupHandler {
|
|
6
|
+
enable(event: InteractiveEvent): boolean;
|
|
7
|
+
handle(groupRect: RectNode, graphics: GraphicNode[], selectGraphics: Set<GraphicNode>): void;
|
|
8
|
+
drawGroupRect(ctx: AppEventContext, rect: Rect): void;
|
|
9
|
+
}
|
package/dist/plugin-pointer/interact/default/lineControlPoint/LineControlPointProcessor.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import { AppEventContext } from "../../../../app/index";
|
|
|
4
4
|
import { LineControlRes } from "../../detector/PolyLineControlPointDetector";
|
|
5
5
|
import { IPoint } from "../../../../idl/index";
|
|
6
6
|
import { AbsControlPointHandler } from "./handler/AbsControlPointHandler";
|
|
7
|
+
import { LineTextWorker } from "../../../../ability/line/LineTextWorker";
|
|
7
8
|
export declare class LineControlPointProcessor extends StreamProcessor {
|
|
8
9
|
res: LineControlRes;
|
|
9
10
|
handlers: AbsControlPointHandler[];
|
|
11
|
+
lineTextWorker: LineTextWorker;
|
|
10
12
|
onStart(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
11
13
|
onMove(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
12
14
|
onUp(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -3,9 +3,10 @@ import { LineEndRes } from "../../detector/LineEndPointDetector";
|
|
|
3
3
|
import { InteractiveEvent } from "../../../../common";
|
|
4
4
|
import { AppEventContext } from "../../../../app";
|
|
5
5
|
import { AbsDragLineEndHandler } from "./handler/AbsDragLineEndHandler";
|
|
6
|
-
import { ConnectProps } from "../../../../graphics";
|
|
7
6
|
import { ConnectInfo } from "../../../../graphics/base/NodeConnectEndType";
|
|
8
7
|
import { AlignWorker } from "../../align/AlignWorker";
|
|
8
|
+
import { RelatedGroupBaseWorker } from "../../../../ability/group/RelatedGroupBaseWorker";
|
|
9
|
+
import { LineTextWorker } from "../../../../ability/line/LineTextWorker";
|
|
9
10
|
interface ConnectEndProp {
|
|
10
11
|
connectInfo: ConnectInfo;
|
|
11
12
|
isStart: boolean;
|
|
@@ -14,6 +15,8 @@ export declare class DragLineEndProcessor extends StreamProcessor {
|
|
|
14
15
|
res: LineEndRes | null;
|
|
15
16
|
connectEndProp: ConnectEndProp;
|
|
16
17
|
alignWorker: AlignWorker;
|
|
18
|
+
groupBaseWorker: RelatedGroupBaseWorker;
|
|
19
|
+
lineTextWorker: LineTextWorker;
|
|
17
20
|
handlers: AbsDragLineEndHandler[];
|
|
18
21
|
currentHandler: AbsDragLineEndHandler | null;
|
|
19
22
|
selectHandler(): void;
|
|
@@ -22,7 +25,8 @@ export declare class DragLineEndProcessor extends StreamProcessor {
|
|
|
22
25
|
onMove(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
23
26
|
onUp(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
24
27
|
private getConnectInfo;
|
|
25
|
-
|
|
28
|
+
private computeEndType;
|
|
29
|
+
private addConnectInfoAndSendMsg;
|
|
26
30
|
removeConnectInfoAndSendMsg(_: InteractiveEvent, ctx: AppEventContext): void;
|
|
27
31
|
}
|
|
28
32
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbsDragLineEndHandler } from "./AbsDragLineEndHandler";
|
|
2
|
+
import { ConnectProps, OolongLine } from "../../../../../graphics";
|
|
3
|
+
import { ConnectInfo } from "../../../../../graphics/base/NodeConnectEndType";
|
|
4
|
+
import { LineEndRes } from "../../../detector/LineEndPointDetector";
|
|
5
|
+
import { AppEventContext } from "../../../../../app";
|
|
6
|
+
import { IPoint } from "../../../../../idl";
|
|
7
|
+
import { UpdateNodeInfo } from "../../../../../action";
|
|
8
|
+
export declare class DragCurveLineEndHandler extends AbsDragLineEndHandler {
|
|
9
|
+
private bezierWorker;
|
|
10
|
+
enable(line: OolongLine): boolean;
|
|
11
|
+
handle(connectInfo: ConnectInfo, res: LineEndRes, ctx: AppEventContext): IPoint[];
|
|
12
|
+
handleMove(connectInfo: ConnectInfo, res: LineEndRes, ctx: AppEventContext): UpdateNodeInfo;
|
|
13
|
+
handleUp(connectInfo: ConnectInfo, res: LineEndRes, ctx: AppEventContext, connectProps: ConnectProps): UpdateNodeInfo;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppEventContext } from "../../../../../../app/index";
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common/index";
|
|
3
|
+
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
4
|
+
import { CurveControlPointRes } from "../../../../detector/line/CurveControlPointDetector";
|
|
5
|
+
export declare class CurveControlPointCursorHandler extends AbsCursorHandler {
|
|
6
|
+
res: CurveControlPointRes | null;
|
|
7
|
+
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
8
|
+
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
9
|
+
}
|
package/dist/plugin-pointer/interact/default/normal/cursor/handler/CurveEndPointCursorHandler.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppEventContext } from "../../../../../../app/index";
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common/index";
|
|
3
|
+
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
4
|
+
import { CurveEndPointRes } from "../../../../detector/line/CurveEndPointDetector";
|
|
5
|
+
export declare class CurveEndPointCursorHandler extends AbsCursorHandler {
|
|
6
|
+
res: CurveEndPointRes | null;
|
|
7
|
+
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
8
|
+
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
9
|
+
}
|
package/dist/plugin-pointer/interact/default/normal/cursor/handler/HoverSlideCursorHandler.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppEventContext } from "../../../../../../app/index";
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common/index";
|
|
3
|
+
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
4
|
+
export declare class HoverSlideCursorHandler extends AbsCursorHandler {
|
|
5
|
+
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
6
|
+
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppEventContext } from "../../../../../../app/index";
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common/index";
|
|
3
|
+
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
4
|
+
import { DragLineTextRes } from "../../../../detector/dragText/DragLineTextDetector";
|
|
5
|
+
export declare class LineTextCursorHandler extends AbsCursorHandler {
|
|
6
|
+
res: DragLineTextRes | null;
|
|
7
|
+
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
8
|
+
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
2
|
-
import { InteractiveEvent } from "../../../../../../common
|
|
3
|
-
import { AppEventContext } from "../../../../../../app
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../../../app";
|
|
4
4
|
export declare class NormalCursorHandler extends AbsCursorHandler {
|
|
5
5
|
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
6
6
|
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
2
|
-
import { InteractiveEvent } from "../../../../../../common
|
|
3
|
-
import { AppEventContext } from "../../../../../../app
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../../../app";
|
|
4
4
|
export declare class RotateCursorHandler extends AbsCursorHandler {
|
|
5
5
|
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
6
6
|
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../../../app";
|
|
4
|
+
export declare class SlideGapInsertHandler extends AbsCursorHandler {
|
|
5
|
+
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
6
|
+
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
7
|
+
}
|
package/dist/plugin-pointer/interact/default/normal/cursor/handler/StretchCursorHandler.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbsCursorHandler } from "../../../../basic/cursor/handler/AbsCursorHandler";
|
|
2
|
-
import { InteractiveEvent } from "../../../../../../common
|
|
3
|
-
import { AppEventContext } from "../../../../../../app
|
|
2
|
+
import { InteractiveEvent } from "../../../../../../common";
|
|
3
|
+
import { AppEventContext } from "../../../../../../app";
|
|
4
4
|
export declare class StretchCursorHandler extends AbsCursorHandler {
|
|
5
5
|
enable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
6
6
|
handle(event: InteractiveEvent, ctx: AppEventContext): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DownAndMoveStreamMode } from "../../basic/DownAndMoveStreamMode";
|
|
2
1
|
import { InteractiveEvent } from "../../../../common";
|
|
3
2
|
import { AppEventContext } from "../../../../app";
|
|
4
|
-
|
|
3
|
+
import { StreamMode } from "../../basic/StreamMode";
|
|
4
|
+
export declare class RotateMode extends StreamMode {
|
|
5
5
|
constructor();
|
|
6
6
|
streamEnable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
7
7
|
}
|
|
@@ -25,6 +25,8 @@ export interface INodeStretchProp {
|
|
|
25
25
|
width: number;
|
|
26
26
|
points?: IPoint[];
|
|
27
27
|
crop?: CropInfo;
|
|
28
|
+
fontSize?: number;
|
|
29
|
+
checkSize?: number;
|
|
28
30
|
}
|
|
29
31
|
export declare abstract class AbsStretchProcessor extends StreamProcessor {
|
|
30
32
|
minStretchSize: IPoint;
|
|
@@ -66,4 +68,6 @@ export declare abstract class AbsStretchProcessor extends StreamProcessor {
|
|
|
66
68
|
sy: number;
|
|
67
69
|
};
|
|
68
70
|
protected abstract drawAlignLine(stretchRect: Rect, alignRes: AlignStretchResultInfo, ctx: AppEventContext): void;
|
|
71
|
+
private batchCollectNodeLinks;
|
|
72
|
+
private collectNodeLinks;
|
|
69
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class SingleStretchMode extends
|
|
1
|
+
import { InteractiveEvent } from "../../../../common";
|
|
2
|
+
import { AppEventContext } from "../../../../app";
|
|
3
|
+
import { StreamMode } from "../../basic/StreamMode";
|
|
4
|
+
export declare class SingleStretchMode extends StreamMode {
|
|
5
5
|
constructor();
|
|
6
6
|
streamEnable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
7
7
|
}
|
|
@@ -3,13 +3,15 @@ import { AppEventContext } from "../../../../app";
|
|
|
3
3
|
import { AlignStretchResultInfo } from "../../align/AlignResult";
|
|
4
4
|
import { AbsStretchProcessor } from "./AbsStretchProcessor";
|
|
5
5
|
import { IPoint } from "../../../../idl";
|
|
6
|
-
import {
|
|
6
|
+
import { SingleStretchSectionHandler } from "./handler/SingleStretchSectionHandler";
|
|
7
|
+
import { StretchNodeHandler } from "./handler/StretchNodeHandler";
|
|
8
|
+
import { TextStretchHandler } from "./handler/TextStretchHandler";
|
|
9
|
+
import { CheckboxTextStretchHandler } from "./handler/CheckboxTextStretchHandler";
|
|
7
10
|
export declare class SingleStretchProcessorV2 extends AbsStretchProcessor {
|
|
8
|
-
handlers:
|
|
11
|
+
handlers: (SingleStretchSectionHandler | StretchNodeHandler | TextStretchHandler | CheckboxTextStretchHandler)[];
|
|
9
12
|
getStretchRect(ctx: AppEventContext): Rect;
|
|
10
13
|
getMiniSize(ctx: AppEventContext): IPoint;
|
|
11
14
|
protected recordPropsMap(ctx: AppEventContext): void;
|
|
12
|
-
protected judgeUniform(ctx: AppEventContext): void;
|
|
13
15
|
computeOriginTransform(ctx: AppEventContext): void;
|
|
14
16
|
drawAlignLine(stretchRect: Rect, alignRes: AlignStretchResultInfo, ctx: AppEventContext): void;
|
|
15
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DownAndMoveStreamMode } from "../../basic/DownAndMoveStreamMode";
|
|
2
1
|
import { InteractiveEvent } from "../../../../common/index";
|
|
3
2
|
import { AppEventContext } from "../../../../app/index";
|
|
4
|
-
|
|
3
|
+
import { StreamMode } from "../../basic/StreamMode";
|
|
4
|
+
export declare class StretchMode extends StreamMode {
|
|
5
5
|
constructor();
|
|
6
6
|
streamEnable(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
7
7
|
}
|
|
@@ -5,8 +5,11 @@ import { AlignStretchResultInfo } from "../../align/AlignResult";
|
|
|
5
5
|
import { IPoint } from "../../../../idl";
|
|
6
6
|
import { StretchLineHandler } from "./handler/StretchLineHandler";
|
|
7
7
|
import { StretchNodeHandler } from "./handler/StretchNodeHandler";
|
|
8
|
+
import { TextStretchHandler } from "./handler/TextStretchHandler";
|
|
9
|
+
import { CheckboxTextStretchHandler } from "./handler/CheckboxTextStretchHandler";
|
|
10
|
+
import { StretchSlideContainerHandler } from "./handler/StretchSlideContainerHandler";
|
|
8
11
|
export declare class StretchProcessorV2 extends AbsStretchProcessor {
|
|
9
|
-
handlers: (StretchLineHandler |
|
|
12
|
+
handlers: (StretchNodeHandler | TextStretchHandler | CheckboxTextStretchHandler | StretchLineHandler | StretchSlideContainerHandler)[];
|
|
10
13
|
protected computeOriginTransform(ctx: AppEventContext): void;
|
|
11
14
|
protected recordPropsMap(ctx: AppEventContext): void;
|
|
12
15
|
protected drawAlignLine(stretchRect: Rect, alignRes: AlignStretchResultInfo, ctx: AppEventContext): void;
|
|
@@ -2,7 +2,8 @@ import { GraphicNode } from "../../../../../graphics";
|
|
|
2
2
|
import { UpdateNodeInfo } from "../../../../../action";
|
|
3
3
|
import { AffineMatrix } from "../../../../../math";
|
|
4
4
|
import { INodeStretchProp } from "../AbsStretchProcessor";
|
|
5
|
+
import { AppEventContext } from "../../../../../app";
|
|
5
6
|
export declare abstract class AbsStretchHandler {
|
|
6
7
|
abstract enable(node: GraphicNode): boolean;
|
|
7
|
-
abstract handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix): UpdateNodeInfo[];
|
|
8
|
+
abstract handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix, ctx: AppEventContext, isUniform: boolean): UpdateNodeInfo[];
|
|
8
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsStretchHandler } from "./AbsStretchHandler";
|
|
2
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
3
|
+
import { INodeStretchProp } from "../AbsStretchProcessor";
|
|
4
|
+
import { AffineMatrix } from "../../../../../math";
|
|
5
|
+
import { AppEventContext } from "../../../../../app";
|
|
6
|
+
import { UpdateNodeInfo } from "../../../../../action";
|
|
7
|
+
export declare class CheckboxTextStretchHandler extends AbsStretchHandler {
|
|
8
|
+
enable(node: GraphicNode): boolean;
|
|
9
|
+
handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix, ctx: AppEventContext, isUniform: boolean): UpdateNodeInfo[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
2
|
+
import { UpdateNodeInfo } from "../../../../../action";
|
|
3
|
+
import { AffineMatrix } from "../../../../../math";
|
|
4
|
+
import { INodeStretchProp } from "../AbsStretchProcessor";
|
|
5
|
+
import { AbsStretchHandler } from "./AbsStretchHandler";
|
|
6
|
+
import { AppEventContext } from "../../../../../app";
|
|
7
|
+
export declare class SingleStretchSectionHandler extends AbsStretchHandler {
|
|
8
|
+
enable(node: GraphicNode): boolean;
|
|
9
|
+
handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix, ctx: AppEventContext): UpdateNodeInfo[];
|
|
10
|
+
private computeSectionChildren;
|
|
11
|
+
}
|
|
@@ -3,7 +3,7 @@ import { UpdateNodeInfo } from "../../../../../action";
|
|
|
3
3
|
import { AffineMatrix } from "../../../../../math";
|
|
4
4
|
import { INodeStretchProp } from "../AbsStretchProcessor";
|
|
5
5
|
import { AbsStretchHandler } from "./AbsStretchHandler";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class StretchSlideContainerHandler extends AbsStretchHandler {
|
|
7
7
|
enable(node: GraphicNode): boolean;
|
|
8
8
|
handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix): UpdateNodeInfo[];
|
|
9
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsStretchHandler } from "./AbsStretchHandler";
|
|
2
|
+
import { GraphicNode } from "../../../../../graphics";
|
|
3
|
+
import { INodeStretchProp } from "../AbsStretchProcessor";
|
|
4
|
+
import { AffineMatrix } from "../../../../../math";
|
|
5
|
+
import { AppEventContext } from "../../../../../app";
|
|
6
|
+
import { UpdateNodeInfo } from "../../../../../action";
|
|
7
|
+
export declare class TextStretchHandler extends AbsStretchHandler {
|
|
8
|
+
enable(node: GraphicNode): boolean;
|
|
9
|
+
handle(node: GraphicNode, info: INodeStretchProp, sx: number, sy: number, M: AffineMatrix, ctx: AppEventContext, isUniform: boolean): UpdateNodeInfo[];
|
|
10
|
+
}
|
|
@@ -14,6 +14,11 @@ import { RotateDetector } from "./RotateDetector";
|
|
|
14
14
|
import { HoverContainerDetector } from "./hover/HoverContainerDetector";
|
|
15
15
|
import { ImgDetector } from "./img/ImgDetector";
|
|
16
16
|
import { CropOriginImgDetector } from "./CropOriginImgDetector";
|
|
17
|
+
import { CurveControlPointDetector } from "./line/CurveControlPointDetector";
|
|
18
|
+
import { CurveEndPointDetector } from "./line/CurveEndPointDetector";
|
|
19
|
+
import { DragLineTextDetector } from "./dragText/DragLineTextDetector";
|
|
20
|
+
import { SlideGapDetector } from "./slide/SlideGapDetector";
|
|
21
|
+
import { EmptySlideContainerAddDetector } from "./slide/EmptySlideContainerAddDetector";
|
|
17
22
|
export interface DetectorResult {
|
|
18
23
|
[DetectorEnum.Node]: NodeDetector["result"];
|
|
19
24
|
[DetectorEnum.HoverNode]: HoverNodeDetector["result"];
|
|
@@ -30,5 +35,10 @@ export interface DetectorResult {
|
|
|
30
35
|
[DetectorEnum.HoverOnContainer]: HoverContainerDetector["result"];
|
|
31
36
|
[DetectorEnum.Image]: ImgDetector["result"];
|
|
32
37
|
[DetectorEnum.ImageOriginBounds]: CropOriginImgDetector["result"];
|
|
38
|
+
[DetectorEnum.CurveControlPoint]: CurveControlPointDetector["result"];
|
|
39
|
+
[DetectorEnum.CurveEndPoint]: CurveEndPointDetector["result"];
|
|
40
|
+
[DetectorEnum.DragLineText]: DragLineTextDetector["result"];
|
|
41
|
+
[DetectorEnum.SlideGap]: SlideGapDetector["result"];
|
|
42
|
+
[DetectorEnum.EmptySlideContainer]: EmptySlideContainerAddDetector["result"];
|
|
33
43
|
[key: number]: any;
|
|
34
44
|
}
|
|
@@ -2,9 +2,12 @@ import { AbsDetector, InteractiveEvent } from "../../../common";
|
|
|
2
2
|
import { AppEventContext } from "../../../app";
|
|
3
3
|
import { GraphicNode } from "../../../graphics";
|
|
4
4
|
import { IPoint } from "../../../idl";
|
|
5
|
+
import { RotateType } from "../../../idl/common/RotateType";
|
|
5
6
|
export interface RotateInfo {
|
|
6
7
|
rotateCenter: IPoint;
|
|
7
8
|
nodes: GraphicNode[];
|
|
9
|
+
cursorAngle: number;
|
|
10
|
+
rotateType: RotateType;
|
|
8
11
|
}
|
|
9
12
|
export declare class RotateDetector extends AbsDetector<RotateInfo> {
|
|
10
13
|
static HOT_DISTANCE: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbsDetector, InteractiveEvent } from "../../../../common";
|
|
2
|
+
import { OolongLine } from "../../../../graphics";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
|
+
export interface DragLineTextRes {
|
|
5
|
+
line: OolongLine;
|
|
6
|
+
}
|
|
7
|
+
export declare class DragLineTextDetector extends AbsDetector<DragLineTextRes> {
|
|
8
|
+
protected onDetect(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbsDetector, InteractiveEvent } from "../../../../common";
|
|
2
|
+
import { OolongLine } from "../../../../graphics";
|
|
3
|
+
import { IPoint } from "../../../../idl";
|
|
4
|
+
import { AppEventContext } from "../../../../app";
|
|
5
|
+
import { BezierCurve } from "../../default/curveControlPoint/BezierCurve";
|
|
6
|
+
export interface CurveControlPointRes {
|
|
7
|
+
line: OolongLine;
|
|
8
|
+
lPoint: IPoint;
|
|
9
|
+
midPoint: IPoint;
|
|
10
|
+
rPoint: IPoint;
|
|
11
|
+
curve: BezierCurve;
|
|
12
|
+
index: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class CurveControlPointDetector extends AbsDetector<CurveControlPointRes> {
|
|
15
|
+
protected onDetect(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbsDetector, InteractiveEvent } from "../../../../common";
|
|
2
|
+
import { OolongLine } from "../../../../graphics";
|
|
3
|
+
import { AppEventContext } from "../../../../app";
|
|
4
|
+
export interface CurveEndPointRes {
|
|
5
|
+
line: OolongLine;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class CurveEndPointDetector extends AbsDetector<CurveEndPointRes> {
|
|
9
|
+
protected onDetect(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbsDetector, InteractiveEvent, Rect } from "../../../../common";
|
|
2
|
+
import { AppEventContext } from "../../../../app";
|
|
3
|
+
import { OolongSlideContainer } from "../../../../graphics/OolongSlideContainer";
|
|
4
|
+
interface EmptySlideContainerResult {
|
|
5
|
+
slideContainer: OolongSlideContainer;
|
|
6
|
+
rect: Rect;
|
|
7
|
+
}
|
|
8
|
+
export declare class EmptySlideContainerAddDetector extends AbsDetector<EmptySlideContainerResult> {
|
|
9
|
+
protected onDetect(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
10
|
+
private getRowColIndex;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbsDetector, InteractiveEvent } from "../../../../common";
|
|
2
|
+
import { AppEventContext } from "../../../../app";
|
|
3
|
+
import { OolongSlideContainer } from "../../../../graphics/OolongSlideContainer";
|
|
4
|
+
import { IPoint } from "../../../../idl";
|
|
5
|
+
interface SlideGapResult {
|
|
6
|
+
slideContainer: OolongSlideContainer;
|
|
7
|
+
i: number;
|
|
8
|
+
j: number;
|
|
9
|
+
point: IPoint;
|
|
10
|
+
}
|
|
11
|
+
export declare class SlideGapDetector extends AbsDetector<SlideGapResult> {
|
|
12
|
+
protected onDetect(event: InteractiveEvent, ctx: AppEventContext): boolean;
|
|
13
|
+
private getRowColIndex;
|
|
14
|
+
}
|
|
15
|
+
export {};
|