microboard-temp 0.1.1 → 0.1.3
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/dist/types/Board.d.ts +126 -0
- package/dist/types/BoardCommand.d.ts +13 -0
- package/dist/types/BoardOperations.d.ts +70 -0
- package/dist/types/Camera/Camera.d.ts +88 -0
- package/dist/types/Camera/index.d.ts +1 -0
- package/dist/types/Events/Command.d.ts +7 -0
- package/dist/types/Events/Events.d.ts +93 -0
- package/dist/types/Events/EventsCommand.d.ts +13 -0
- package/dist/types/Events/EventsOperations.d.ts +31 -0
- package/dist/types/Events/Log/EventsLog.d.ts +87 -0
- package/dist/types/Events/Log/createEventsList.d.ts +36 -0
- package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +4 -0
- package/dist/types/Events/Log/deserializeIntoList.d.ts +4 -0
- package/dist/types/Events/Log/expandEvents.d.ts +2 -0
- package/dist/types/Events/Log/getLastIndexFromList.d.ts +2 -0
- package/dist/types/Events/Log/getRecordByIdFromList.d.ts +3 -0
- package/dist/types/Events/Log/getRedoRecordFromList.d.ts +3 -0
- package/dist/types/Events/Log/getSnapshotFromList.d.ts +2 -0
- package/dist/types/Events/Log/getUndoRecordFromList.d.ts +3 -0
- package/dist/types/Events/Log/getUnpublishedEventFromList.d.ts +7 -0
- package/dist/types/Events/Log/index.d.ts +1 -0
- package/dist/types/Events/Log/insertEventsFromOtherConnectionsIntoList.d.ts +13 -0
- package/dist/types/Events/Log/shouldSkipEvent.d.ts +2 -0
- package/dist/types/Events/Merge.d.ts +3 -0
- package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +9 -0
- package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +88 -0
- package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +10 -0
- package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +6 -0
- package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +8 -0
- package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +11 -0
- package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +8 -0
- package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +4 -0
- package/dist/types/Events/MessageRouter/messageRouter.d.ts +1 -0
- package/dist/types/Events/SyncLog.d.ts +12 -0
- package/dist/types/Events/Transform/Transform.d.ts +6 -0
- package/dist/types/Events/Transform/index.d.ts +1 -0
- package/dist/types/Events/Transform/insertNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/insertText_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/mergeNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/moveNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/removeText_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/setNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/setNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/setNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/setNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/setNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_insertNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_insertText.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_mergeNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_moveNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_removeNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_removeText.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_setNode.d.ts +2 -0
- package/dist/types/Events/Transform/splitNode_splitNode.d.ts +2 -0
- package/dist/types/Events/Transform/transformPath.d.ts +3 -0
- package/dist/types/Events/handleRemoveSnappedObject.d.ts +12 -0
- package/dist/types/Events/index.d.ts +3 -0
- package/dist/types/Events/mergeEvents.d.ts +14 -0
- package/dist/types/Events/mergeRecords.d.ts +2 -0
- package/dist/types/Events/transformEvents.d.ts +2 -0
- package/dist/types/HTMLRender/HTMLRender.d.ts +7 -0
- package/dist/types/HTMLRender/index.d.ts +1 -0
- package/dist/types/Items/AINode/AINode.d.ts +70 -0
- package/dist/types/Items/AINode/AINodeData.d.ts +17 -0
- package/dist/types/Items/AINode/index.d.ts +2 -0
- package/dist/types/Items/Alignment.d.ts +4 -0
- package/dist/types/Items/Anchor/Anchor.d.ts +32 -0
- package/dist/types/Items/Anchor/index.d.ts +1 -0
- package/dist/types/Items/Arc/Arc.d.ts +35 -0
- package/dist/types/Items/Arc/index.d.ts +1 -0
- package/dist/types/Items/Audio/Audio.d.ts +69 -0
- package/dist/types/Items/Audio/AudioCommand.d.ts +9 -0
- package/dist/types/Items/Audio/AudioHelpers.d.ts +6 -0
- package/dist/types/Items/Audio/AudioOperation.d.ts +10 -0
- package/dist/types/Items/Audio/index.d.ts +2 -0
- package/dist/types/Items/Audio/uploadAudio.d.ts +3 -0
- package/dist/types/Items/BaseItem/BaseItem.d.ts +24 -0
- package/dist/types/Items/BaseItem/index.d.ts +0 -0
- package/dist/types/Items/Comment/Comment.d.ts +94 -0
- package/dist/types/Items/Comment/CommentCommand.d.ts +15 -0
- package/dist/types/Items/Comment/CommentOperation.d.ts +40 -0
- package/dist/types/Items/Comment/index.d.ts +4 -0
- package/dist/types/Items/Connector/Connector.d.ts +141 -0
- package/dist/types/Items/Connector/ConnectorCommand.d.ts +18 -0
- package/dist/types/Items/Connector/ConnectorOperations.d.ts +87 -0
- package/dist/types/Items/Connector/ConnectorSnap.d.ts +50 -0
- package/dist/types/Items/Connector/ControlPoint.d.ts +67 -0
- package/dist/types/Items/Connector/Pointers/Pointers.d.ts +110 -0
- package/dist/types/Items/Connector/Pointers/index.d.ts +10 -0
- package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +15 -0
- package/dist/types/Items/Connector/getLine/getCurvedLine.d.ts +3 -0
- package/dist/types/Items/Connector/getLine/getLine.d.ts +4 -0
- package/dist/types/Items/Connector/getLine/getOrthogonalLine.d.ts +3 -0
- package/dist/types/Items/Connector/getLine/getStraightLine.d.ts +3 -0
- package/dist/types/Items/Connector/index.d.ts +6 -0
- package/dist/types/Items/Connector/types.d.ts +1 -0
- package/dist/types/Items/Curve/Curve.d.ts +55 -0
- package/dist/types/Items/Curve/index.d.ts +1 -0
- package/dist/types/Items/Drawing/Drawing.d.ts +76 -0
- package/dist/types/Items/Drawing/DrawingCommand.d.ts +17 -0
- package/dist/types/Items/Drawing/DrawingOperation.d.ts +28 -0
- package/dist/types/Items/Drawing/index.d.ts +1 -0
- package/dist/types/Items/DrawingContext.d.ts +20 -0
- package/dist/types/Items/Frame/Basic/1-1/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/16-9/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/3-2/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/4-3/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/9-18/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/A4/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/Custom/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/Letter/index.d.ts +7 -0
- package/dist/types/Items/Frame/Basic/index.d.ts +51 -0
- package/dist/types/Items/Frame/Frame.d.ts +124 -0
- package/dist/types/Items/Frame/FrameCommand.d.ts +15 -0
- package/dist/types/Items/Frame/FrameData.d.ts +67 -0
- package/dist/types/Items/Frame/FrameOperation.d.ts +34 -0
- package/dist/types/Items/Frame/index.d.ts +4 -0
- package/dist/types/Items/GeometricNormal.d.ts +13 -0
- package/dist/types/Items/Geometry.d.ts +35 -0
- package/dist/types/Items/Group/Group.d.ts +49 -0
- package/dist/types/Items/Group/GroupCommand.d.ts +15 -0
- package/dist/types/Items/Group/GroupOperation.d.ts +14 -0
- package/dist/types/Items/Group/index.d.ts +1 -0
- package/dist/types/Items/Image/Image.d.ts +73 -0
- package/dist/types/Items/Image/ImageCommand.d.ts +9 -0
- package/dist/types/Items/Image/ImageHelpers.d.ts +21 -0
- package/dist/types/Items/Image/ImageOperation.d.ts +11 -0
- package/dist/types/Items/Image/calculatePosition.d.ts +9 -0
- package/dist/types/Items/Image/index.d.ts +2 -0
- package/dist/types/Items/Image/uploadImage.d.ts +2 -0
- package/dist/types/Items/Item.d.ts +17 -0
- package/dist/types/Items/ItemsCommandUtils.d.ts +8 -0
- package/dist/types/Items/Line/Line.d.ts +56 -0
- package/dist/types/Items/Line/index.d.ts +1 -0
- package/dist/types/Items/LinkTo/LinkToCommand.d.ts +15 -0
- package/dist/types/Items/LinkTo/LinkToOperation.d.ts +10 -0
- package/dist/types/Items/LinkTo/index.d.ts +0 -0
- package/dist/types/Items/Mbr/Mbr.d.ts +63 -0
- package/dist/types/Items/Mbr/index.d.ts +1 -0
- package/dist/types/Items/Mbr/updateRects.d.ts +16 -0
- package/dist/types/Items/Mbr/useDomMbr.d.ts +17 -0
- package/dist/types/Items/Path/Path.d.ts +114 -0
- package/dist/types/Items/Path/Paths.d.ts +58 -0
- package/dist/types/Items/Path/index.d.ts +2 -0
- package/dist/types/Items/Placeholder/Placeholder.d.ts +79 -0
- package/dist/types/Items/Placeholder/PlaceholderCommand.d.ts +15 -0
- package/dist/types/Items/Placeholder/PlaceholderOperation.d.ts +18 -0
- package/dist/types/Items/Placeholder/index.d.ts +1 -0
- package/dist/types/Items/Point/Point.d.ts +12 -0
- package/dist/types/Items/Point/index.d.ts +1 -0
- package/dist/types/Items/RichText/CanvasText/DropflowRender.d.ts +7 -0
- package/dist/types/Items/RichText/CanvasText/LayoutBlockNodes.d.ts +17 -0
- package/dist/types/Items/RichText/CanvasText/Render.d.ts +3 -0
- package/dist/types/Items/RichText/CanvasText/convertLinkNodeToTextNode.d.ts +2 -0
- package/dist/types/Items/RichText/Editor/BlockNode.d.ts +90 -0
- package/dist/types/Items/RichText/Editor/TextNode.d.ts +31 -0
- package/dist/types/Items/RichText/EditorContainer.d.ts +85 -0
- package/dist/types/Items/RichText/RichText.d.ts +155 -0
- package/dist/types/Items/RichText/RichTextCommand.d.ts +34 -0
- package/dist/types/Items/RichText/RichTextData.d.ts +31 -0
- package/dist/types/Items/RichText/RichTextOperations.d.ts +61 -0
- package/dist/types/Items/RichText/editorHelpers/common/clearAllTextNodes.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/clearText.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/createParagraphNode.d.ts +4 -0
- package/dist/types/Items/RichText/editorHelpers/common/getAllTextNodesInSelection.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/common/getAreAllChildrenEmpty.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/getEachNodeInSelectionStyles.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/getParagraph.d.ts +5 -0
- package/dist/types/Items/RichText/editorHelpers/common/getSelectedBlockNode.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/common/getSelectionMarks.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/common/getSelectionStyles.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/getTextParagraphs.d.ts +0 -0
- package/dist/types/Items/RichText/editorHelpers/common/hasTextInSelection.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/isBlockActive.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/common/isCursorAtStartOfFirstChild.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/common/isTextEmpty.d.ts +6 -0
- package/dist/types/Items/RichText/editorHelpers/common/moveCursorToEndOfText.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/selectWholeText.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/common/setEditorFocus.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/links/getFirstSelectionLink.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/links/setLink.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/lists/getListTypeAtSelectionStart.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/lists/handleListMerge.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/lists/handleSplitListItem.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/lists/handleWrapIntoNestedList.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/lists/toggleListType.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/lists/toggleListTypeForSelection.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/lists/withAutoList.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/lists/wrapIntoList.d.ts +4 -0
- package/dist/types/Items/RichText/editorHelpers/markdown/markdownProcessor.d.ts +20 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/applySelectionFontColor.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/applySelectionFontSize.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/insertCopiedNodes.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontColor.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontHighlight.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontSize.d.ts +2 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontStyle.d.ts +3 -0
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionHorisontalAlignment.d.ts +3 -0
- package/dist/types/Items/RichText/findOptimalMaxWidthForTextAutoSize.d.ts +5 -0
- package/dist/types/Items/RichText/getSlateSelectionRect.d.ts +5 -0
- package/dist/types/Items/RichText/index.d.ts +4 -0
- package/dist/types/Items/RichText/setNodeStyles.d.ts +17 -0
- package/dist/types/Items/RichText/transformHtmlToMarkdown.d.ts +1 -0
- package/dist/types/Items/RichText/utils.d.ts +1 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +10 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +9 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +10 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +10 -0
- package/dist/types/Items/Shape/BPMN/index.d.ts +131 -0
- package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Circle/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Cross/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +10 -0
- package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +10 -0
- package/dist/types/Items/Shape/Basic/Star/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +9 -0
- package/dist/types/Items/Shape/Basic/index.d.ts +202 -0
- package/dist/types/Items/Shape/Shape.d.ts +426 -0
- package/dist/types/Items/Shape/ShapeCommand.d.ts +16 -0
- package/dist/types/Items/Shape/ShapeData.d.ts +48 -0
- package/dist/types/Items/Shape/ShapeOperation.d.ts +37 -0
- package/dist/types/Items/Shape/getRandomRgba.d.ts +1 -0
- package/dist/types/Items/Shape/handleUpdate.d.ts +7 -0
- package/dist/types/Items/Shape/index.d.ts +8 -0
- package/dist/types/Items/Sticker/Sticker.d.ts +73 -0
- package/dist/types/Items/Sticker/StickerCommand.d.ts +15 -0
- package/dist/types/Items/Sticker/StickerOperation.d.ts +19 -0
- package/dist/types/Items/Sticker/index.d.ts +1 -0
- package/dist/types/Items/Transformation/Matrix.d.ts +45 -0
- package/dist/types/Items/Transformation/Transformation.d.ts +78 -0
- package/dist/types/Items/Transformation/TransformationCommand.d.ts +19 -0
- package/dist/types/Items/Transformation/TransformationData.d.ts +17 -0
- package/dist/types/Items/Transformation/TransformationOperations.d.ts +69 -0
- package/dist/types/Items/Transformation/index.d.ts +5 -0
- package/dist/types/Items/Video/Video.d.ts +97 -0
- package/dist/types/Items/Video/VideoCommand.d.ts +9 -0
- package/dist/types/Items/Video/VideoHelpers.d.ts +15 -0
- package/dist/types/Items/Video/VideoOperation.d.ts +11 -0
- package/dist/types/Items/Video/index.d.ts +2 -0
- package/dist/types/Items/Video/uploadVideo.d.ts +2 -0
- package/dist/types/Items/index.d.ts +13 -0
- package/dist/types/Keyboard/checkHotkeys.d.ts +3 -0
- package/dist/types/Keyboard/getHotkeyLabel.d.ts +2 -0
- package/dist/types/Keyboard/index.d.ts +16 -0
- package/dist/types/Keyboard/isControlCharacter.d.ts +1 -0
- package/dist/types/Keyboard/isHotkeyPushed.d.ts +2 -0
- package/dist/types/Keyboard/logHotkey.d.ts +5 -0
- package/dist/types/Keyboard/types.d.ts +24 -0
- package/dist/types/Pointer/Cursor.d.ts +5 -0
- package/dist/types/Pointer/Pointer.d.ts +15 -0
- package/dist/types/Pointer/index.d.ts +3 -0
- package/dist/types/Presence/Events.d.ts +84 -0
- package/dist/types/Presence/Presence.d.ts +123 -0
- package/dist/types/Presence/consts.d.ts +1 -0
- package/dist/types/Presence/helpers.d.ts +17 -0
- package/dist/types/Presence/index.d.ts +1 -0
- package/dist/types/Presence/throttle.d.ts +2 -0
- package/dist/types/ReversibleOps.d.ts +145 -0
- package/dist/types/Selection/ConnectorTransformer/ConnectorTransformer.d.ts +26 -0
- package/dist/types/Selection/ConnectorTransformer/index.d.ts +1 -0
- package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +19 -0
- package/dist/types/Selection/QuickAddButtons/index.d.ts +3 -0
- package/dist/types/Selection/QuickAddButtons/quickAddHelpers.d.ts +10 -0
- package/dist/types/Selection/Selection.d.ts +151 -0
- package/dist/types/Selection/SelectionItems.d.ts +25 -0
- package/dist/types/Selection/SelectionTransformer.d.ts +30 -0
- package/dist/types/Selection/Transformer/TextTransformer/getTextResizeType.d.ts +8 -0
- package/dist/types/Selection/Transformer/TextTransformer/index.d.ts +1 -0
- package/dist/types/Selection/Transformer/Transformer.d.ts +47 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/AnchorType.d.ts +3 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/getFollowingComments.d.ts +4 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/getOppositePoint.d.ts +3 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizeMatrix.d.ts +10 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizeType.d.ts +3 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizedMbr.d.ts +3 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +17 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/ransformShape.d.ts +24 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/switchResizeType.d.ts +7 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +17 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/transformItems.d.ts +26 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +33 -0
- package/dist/types/Selection/Transformer/TransformerHelpers/updateFrameChildren.d.ts +8 -0
- package/dist/types/Selection/Transformer/index.d.ts +1 -0
- package/dist/types/Selection/index.d.ts +2 -0
- package/dist/types/SessionStorage.d.ts +57 -0
- package/dist/types/Settings.d.ts +234 -0
- package/dist/types/SpatialIndex/LayeredIndex/Layers.d.ts +26 -0
- package/dist/types/SpatialIndex/LayeredIndex/getContainersSortedByZIndex.d.ts +5 -0
- package/dist/types/SpatialIndex/LayeredIndex/getContainersToSet.d.ts +8 -0
- package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +36 -0
- package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +27 -0
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +81 -0
- package/dist/types/SpatialIndex/index.d.ts +1 -0
- package/dist/types/Subject.d.ts +12 -0
- package/dist/types/SubjectOperation.d.ts +13 -0
- package/dist/types/Tools/AddComment/AddComment.d.ts +14 -0
- package/dist/types/Tools/AddComment/index.d.ts +1 -0
- package/dist/types/Tools/AddConnector/AddConnector.d.ts +35 -0
- package/dist/types/Tools/AddConnector/index.d.ts +1 -0
- package/dist/types/Tools/AddDrawing/AddDrawing.d.ts +29 -0
- package/dist/types/Tools/AddDrawing/AddHighlighter.d.ts +11 -0
- package/dist/types/Tools/AddDrawing/index.d.ts +2 -0
- package/dist/types/Tools/AddFrame/AddFrame.d.ts +33 -0
- package/dist/types/Tools/AddFrame/index.d.ts +1 -0
- package/dist/types/Tools/AddShape/AddShape.d.ts +27 -0
- package/dist/types/Tools/AddShape/index.d.ts +1 -0
- package/dist/types/Tools/AddSticker/AddSticker.d.ts +27 -0
- package/dist/types/Tools/AddSticker/index.d.ts +1 -0
- package/dist/types/Tools/AddText/AddText.d.ts +19 -0
- package/dist/types/Tools/AddText/index.d.ts +1 -0
- package/dist/types/Tools/BoardTool.d.ts +6 -0
- package/dist/types/Tools/BoardToolContext.d.ts +8 -0
- package/dist/types/Tools/DebounceUpdater/DebounceUpdater.d.ts +6 -0
- package/dist/types/Tools/DebounceUpdater/index.d.ts +1 -0
- package/dist/types/Tools/Eraser/Eraser.d.ts +22 -0
- package/dist/types/Tools/Eraser/index.d.ts +1 -0
- package/dist/types/Tools/ExportSnapshot/ExportSnapshot.d.ts +30 -0
- package/dist/types/Tools/ExportSnapshot/exportBoardSnapshot.d.ts +16 -0
- package/dist/types/Tools/ExportSnapshot/getDecorationResizeType.d.ts +3 -0
- package/dist/types/Tools/Navigate/Navigate.d.ts +19 -0
- package/dist/types/Tools/Navigate/index.d.ts +1 -0
- package/dist/types/Tools/NestingHighlighter/NestingHighlighter.d.ts +18 -0
- package/dist/types/Tools/NestingHighlighter/index.d.ts +1 -0
- package/dist/types/Tools/RelativeAlignment/RelativeAlignment.d.ts +45 -0
- package/dist/types/Tools/RelativeAlignment/index.d.ts +2 -0
- package/dist/types/Tools/Select/Select.d.ts +68 -0
- package/dist/types/Tools/Select/index.d.ts +1 -0
- package/dist/types/Tools/Tool.d.ts +18 -0
- package/dist/types/Tools/ToolContext.d.ts +20 -0
- package/dist/types/Tools/Tools.d.ts +58 -0
- package/dist/types/Tools/index.d.ts +1 -0
- package/dist/types/Validators/Validators.d.ts +4 -0
- package/dist/types/Validators/index.d.ts +1 -0
- package/dist/types/api/BrowserDOMParser.d.ts +1 -0
- package/dist/types/api/BrowserDocumentFactory.d.ts +7 -0
- package/dist/types/api/BrowserPath2DFactory.d.ts +16 -0
- package/dist/types/api/DocumentFactory.d.ts +6 -0
- package/dist/types/api/MockPath2D.d.ts +46 -0
- package/dist/types/api/NodeDOMParser.d.ts +3 -0
- package/dist/types/api/NodeDocumentFactory.d.ts +8 -0
- package/dist/types/api/NodePath2DFactory.d.ts +17 -0
- package/dist/types/api/Path2DFactory.d.ts +93 -0
- package/dist/types/api/getMeasureCtx.d.ts +1 -0
- package/dist/types/api/initBrowserSettings.d.ts +2 -0
- package/dist/types/api/initI18N.d.ts +2 -0
- package/dist/types/api/initNodeSettings.d.ts +3 -0
- package/dist/types/api/initPaths.d.ts +3 -0
- package/dist/types/api/safeRequestAnimationFrame.d.ts +1 -0
- package/dist/types/drawMbrOnCanvas.d.ts +18 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/isFirefox.d.ts +1 -0
- package/dist/types/isMacos.d.ts +1 -0
- package/dist/types/isSafari.d.ts +1 -0
- package/dist/types/itemFactories.d.ts +8 -0
- package/dist/types/lib.d.ts +13 -0
- package/dist/types/parserHTML.d.ts +9 -0
- package/dist/types/sha256.d.ts +2 -0
- package/package.json +4 -3
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
export declare const BasicShapes: {
|
|
2
|
+
readonly Rectangle: {
|
|
3
|
+
name: string;
|
|
4
|
+
textBounds: import("../..").Mbr;
|
|
5
|
+
path: import("../..").Path;
|
|
6
|
+
anchorPoints: import("../..").Point[];
|
|
7
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
8
|
+
useMbrUnderPointer: boolean;
|
|
9
|
+
};
|
|
10
|
+
readonly Triangle: {
|
|
11
|
+
name: string;
|
|
12
|
+
textBounds: import("../..").Mbr;
|
|
13
|
+
path: import("../..").Path;
|
|
14
|
+
anchorPoints: import("../..").Point[];
|
|
15
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
16
|
+
useMbrUnderPointer: boolean;
|
|
17
|
+
};
|
|
18
|
+
readonly ReversedTriangle: {
|
|
19
|
+
name: string;
|
|
20
|
+
textBounds: import("../..").Mbr;
|
|
21
|
+
path: import("../..").Path;
|
|
22
|
+
anchorPoints: import("../..").Point[];
|
|
23
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
24
|
+
useMbrUnderPointer: boolean;
|
|
25
|
+
};
|
|
26
|
+
readonly Circle: {
|
|
27
|
+
name: string;
|
|
28
|
+
textBounds: import("../..").Mbr;
|
|
29
|
+
path: import("../..").Path;
|
|
30
|
+
anchorPoints: import("../..").Point[];
|
|
31
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
32
|
+
useMbrUnderPointer: boolean;
|
|
33
|
+
};
|
|
34
|
+
readonly ArrowLeft: {
|
|
35
|
+
name: string;
|
|
36
|
+
textBounds: import("../..").Mbr;
|
|
37
|
+
path: import("../..").Path;
|
|
38
|
+
anchorPoints: import("../..").Point[];
|
|
39
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
40
|
+
useMbrUnderPointer: boolean;
|
|
41
|
+
};
|
|
42
|
+
readonly ArrowLeftRight: {
|
|
43
|
+
name: string;
|
|
44
|
+
textBounds: import("../..").Mbr;
|
|
45
|
+
path: import("../..").Path;
|
|
46
|
+
anchorPoints: import("../..").Point[];
|
|
47
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
48
|
+
useMbrUnderPointer: boolean;
|
|
49
|
+
};
|
|
50
|
+
readonly ArrowRight: {
|
|
51
|
+
name: string;
|
|
52
|
+
textBounds: import("../..").Mbr;
|
|
53
|
+
path: import("../..").Path;
|
|
54
|
+
anchorPoints: import("../..").Point[];
|
|
55
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
56
|
+
useMbrUnderPointer: boolean;
|
|
57
|
+
};
|
|
58
|
+
readonly ArrowBlockLeft: {
|
|
59
|
+
name: string;
|
|
60
|
+
textBounds: import("../..").Mbr;
|
|
61
|
+
path: import("../..").Path;
|
|
62
|
+
anchorPoints: import("../..").Point[];
|
|
63
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
64
|
+
useMbrUnderPointer: boolean;
|
|
65
|
+
};
|
|
66
|
+
readonly ArrowBlockRight: {
|
|
67
|
+
name: string;
|
|
68
|
+
textBounds: import("../..").Mbr;
|
|
69
|
+
path: import("../..").Path;
|
|
70
|
+
anchorPoints: import("../..").Point[];
|
|
71
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
72
|
+
useMbrUnderPointer: boolean;
|
|
73
|
+
};
|
|
74
|
+
readonly BracesLeft: {
|
|
75
|
+
name: string;
|
|
76
|
+
textBounds: import("../..").Mbr;
|
|
77
|
+
path: import("../..").Path;
|
|
78
|
+
anchorPoints: never[];
|
|
79
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
80
|
+
useMbrUnderPointer: boolean;
|
|
81
|
+
};
|
|
82
|
+
readonly BracesRight: {
|
|
83
|
+
name: string;
|
|
84
|
+
textBounds: import("../..").Mbr;
|
|
85
|
+
path: import("../..").Path;
|
|
86
|
+
anchorPoints: never[];
|
|
87
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
88
|
+
useMbrUnderPointer: boolean;
|
|
89
|
+
};
|
|
90
|
+
readonly Cloud: {
|
|
91
|
+
name: string;
|
|
92
|
+
textBounds: import("../..").Mbr;
|
|
93
|
+
path: import("../..").Path;
|
|
94
|
+
anchorPoints: import("../..").Point[];
|
|
95
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
96
|
+
useMbrUnderPointer: boolean;
|
|
97
|
+
};
|
|
98
|
+
readonly Cross: {
|
|
99
|
+
name: string;
|
|
100
|
+
textBounds: import("../..").Mbr;
|
|
101
|
+
path: import("../..").Path;
|
|
102
|
+
anchorPoints: import("../..").Point[];
|
|
103
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
104
|
+
useMbrUnderPointer: boolean;
|
|
105
|
+
};
|
|
106
|
+
readonly Cylinder: {
|
|
107
|
+
name: string;
|
|
108
|
+
textBounds: import("../..").Mbr;
|
|
109
|
+
path: import("../..").Paths;
|
|
110
|
+
anchorPoints: import("../..").Point[];
|
|
111
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Paths;
|
|
112
|
+
useMbrUnderPointer: boolean;
|
|
113
|
+
};
|
|
114
|
+
readonly Hexagon: {
|
|
115
|
+
name: string;
|
|
116
|
+
textBounds: import("../..").Mbr;
|
|
117
|
+
path: import("../..").Path;
|
|
118
|
+
anchorPoints: import("../..").Point[];
|
|
119
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
120
|
+
useMbrUnderPointer: boolean;
|
|
121
|
+
};
|
|
122
|
+
readonly Octagon: {
|
|
123
|
+
name: string;
|
|
124
|
+
textBounds: import("../..").Mbr;
|
|
125
|
+
path: import("../..").Path;
|
|
126
|
+
anchorPoints: import("../..").Point[];
|
|
127
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
128
|
+
useMbrUnderPointer: boolean;
|
|
129
|
+
};
|
|
130
|
+
readonly Parallelogram: {
|
|
131
|
+
name: string;
|
|
132
|
+
textBounds: import("../..").Mbr;
|
|
133
|
+
path: import("../..").Path;
|
|
134
|
+
anchorPoints: import("../..").Point[];
|
|
135
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
136
|
+
useMbrUnderPointer: boolean;
|
|
137
|
+
};
|
|
138
|
+
readonly ReversedParallelogram: {
|
|
139
|
+
name: string;
|
|
140
|
+
textBounds: import("../..").Mbr;
|
|
141
|
+
path: import("../..").Path;
|
|
142
|
+
anchorPoints: import("../..").Point[];
|
|
143
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
144
|
+
useMbrUnderPointer: boolean;
|
|
145
|
+
};
|
|
146
|
+
readonly Pentagon: {
|
|
147
|
+
name: string;
|
|
148
|
+
textBounds: import("../..").Mbr;
|
|
149
|
+
path: import("../..").Path;
|
|
150
|
+
anchorPoints: import("../..").Point[];
|
|
151
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
152
|
+
useMbrUnderPointer: boolean;
|
|
153
|
+
};
|
|
154
|
+
readonly PredefinedProcess: {
|
|
155
|
+
name: string;
|
|
156
|
+
textBounds: import("../..").Mbr;
|
|
157
|
+
path: import("../..").Paths;
|
|
158
|
+
anchorPoints: import("../..").Point[];
|
|
159
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Paths;
|
|
160
|
+
useMbrUnderPointer: boolean;
|
|
161
|
+
};
|
|
162
|
+
readonly Rhombus: {
|
|
163
|
+
name: string;
|
|
164
|
+
textBounds: import("../..").Mbr;
|
|
165
|
+
path: import("../..").Path;
|
|
166
|
+
anchorPoints: import("../..").Point[];
|
|
167
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
168
|
+
useMbrUnderPointer: boolean;
|
|
169
|
+
};
|
|
170
|
+
readonly RoundedRectangle: {
|
|
171
|
+
name: string;
|
|
172
|
+
textBounds: import("../..").Mbr;
|
|
173
|
+
path: import("../..").Path;
|
|
174
|
+
anchorPoints: import("../..").Point[];
|
|
175
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
176
|
+
useMbrUnderPointer: boolean;
|
|
177
|
+
};
|
|
178
|
+
readonly SpeachBubble: {
|
|
179
|
+
name: string;
|
|
180
|
+
textBounds: import("../..").Mbr;
|
|
181
|
+
path: import("../..").Path;
|
|
182
|
+
anchorPoints: import("../..").Point[];
|
|
183
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
184
|
+
useMbrUnderPointer: boolean;
|
|
185
|
+
};
|
|
186
|
+
readonly Star: {
|
|
187
|
+
name: string;
|
|
188
|
+
textBounds: import("../..").Mbr;
|
|
189
|
+
path: import("../..").Path;
|
|
190
|
+
anchorPoints: import("../..").Point[];
|
|
191
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
192
|
+
useMbrUnderPointer: boolean;
|
|
193
|
+
};
|
|
194
|
+
readonly Trapezoid: {
|
|
195
|
+
name: string;
|
|
196
|
+
textBounds: import("../..").Mbr;
|
|
197
|
+
path: import("../..").Path;
|
|
198
|
+
anchorPoints: import("../..").Point[];
|
|
199
|
+
createPath: (mbr: import("../..").Mbr) => import("../..").Path;
|
|
200
|
+
useMbrUnderPointer: boolean;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { Mbr, Line, Point, Transformation, Path, Paths, Matrix } from "..";
|
|
2
|
+
import { ShapeType } from "./index";
|
|
3
|
+
import { BorderStyle, BorderWidth } from "../Path";
|
|
4
|
+
import { RichText } from "../RichText";
|
|
5
|
+
import { ShapeOperation } from "./ShapeOperation";
|
|
6
|
+
import { ShapeData } from "./ShapeData";
|
|
7
|
+
import { Geometry } from "../Geometry";
|
|
8
|
+
import { DrawingContext } from "../DrawingContext";
|
|
9
|
+
import { Operation } from "Events";
|
|
10
|
+
import { GeometricNormal } from "../GeometricNormal";
|
|
11
|
+
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType.ts";
|
|
12
|
+
import { LinkTo } from "../LinkTo/LinkTo";
|
|
13
|
+
import { Board } from "Board";
|
|
14
|
+
import { Subject } from "Subject";
|
|
15
|
+
import { DocumentFactory } from "api/DocumentFactory";
|
|
16
|
+
export declare const Shapes: {
|
|
17
|
+
BPMN_Gateway: {
|
|
18
|
+
name: string;
|
|
19
|
+
textBounds: Mbr;
|
|
20
|
+
path: Path;
|
|
21
|
+
anchorPoints: Point[];
|
|
22
|
+
createPath: (mbr: Mbr) => Path;
|
|
23
|
+
useMbrUnderPointer: boolean;
|
|
24
|
+
};
|
|
25
|
+
BPMN_DataStore: {
|
|
26
|
+
name: string;
|
|
27
|
+
textBounds: Mbr;
|
|
28
|
+
path: Paths;
|
|
29
|
+
anchorPoints: Point[];
|
|
30
|
+
createPath: (mbr: Mbr) => Paths;
|
|
31
|
+
useMbrUnderPointer: boolean;
|
|
32
|
+
};
|
|
33
|
+
BPMN_GatewayParallel: {
|
|
34
|
+
name: string;
|
|
35
|
+
textBounds: Mbr;
|
|
36
|
+
path: Paths;
|
|
37
|
+
anchorPoints: Point[];
|
|
38
|
+
createPath: (mbr: Mbr) => Paths;
|
|
39
|
+
useMbrUnderPointer: boolean;
|
|
40
|
+
};
|
|
41
|
+
BPMN_GatewayXOR: {
|
|
42
|
+
name: string;
|
|
43
|
+
textBounds: Mbr;
|
|
44
|
+
path: Paths;
|
|
45
|
+
anchorPoints: Point[];
|
|
46
|
+
createPath: (mbr: Mbr) => Paths;
|
|
47
|
+
useMbrUnderPointer: boolean;
|
|
48
|
+
};
|
|
49
|
+
BPMN_EndEvent: {
|
|
50
|
+
name: string;
|
|
51
|
+
textBounds: Mbr;
|
|
52
|
+
path: Path;
|
|
53
|
+
anchorPoints: Point[];
|
|
54
|
+
createPath: (mbr: Mbr) => Path;
|
|
55
|
+
useMbrUnderPointer: boolean;
|
|
56
|
+
};
|
|
57
|
+
BPMN_StartEvent: {
|
|
58
|
+
name: string;
|
|
59
|
+
textBounds: Mbr;
|
|
60
|
+
path: Path;
|
|
61
|
+
anchorPoints: Point[];
|
|
62
|
+
createPath: (mbr: Mbr) => Path;
|
|
63
|
+
useMbrUnderPointer: boolean;
|
|
64
|
+
};
|
|
65
|
+
BPMN_StartEventNoneInterrupting: {
|
|
66
|
+
name: string;
|
|
67
|
+
textBounds: Mbr;
|
|
68
|
+
path: Path;
|
|
69
|
+
anchorPoints: Point[];
|
|
70
|
+
createPath: (mbr: Mbr) => Path;
|
|
71
|
+
useMbrUnderPointer: boolean;
|
|
72
|
+
};
|
|
73
|
+
BPMN_IntermediateEvent: {
|
|
74
|
+
name: string;
|
|
75
|
+
textBounds: Mbr;
|
|
76
|
+
path: Paths;
|
|
77
|
+
anchorPoints: Point[];
|
|
78
|
+
createPath: (mbr: Mbr) => Paths;
|
|
79
|
+
useMbrUnderPointer: boolean;
|
|
80
|
+
};
|
|
81
|
+
BPMN_IntermediateEventNoneInterrupting: {
|
|
82
|
+
name: string;
|
|
83
|
+
textBounds: Mbr;
|
|
84
|
+
path: Paths;
|
|
85
|
+
anchorPoints: Point[];
|
|
86
|
+
createPath: (mbr: Mbr) => Paths;
|
|
87
|
+
useMbrUnderPointer: boolean;
|
|
88
|
+
};
|
|
89
|
+
BPMN_Group: {
|
|
90
|
+
name: string;
|
|
91
|
+
textBounds: Mbr;
|
|
92
|
+
path: Path;
|
|
93
|
+
anchorPoints: Point[];
|
|
94
|
+
createPath: (mbr: Mbr) => Path;
|
|
95
|
+
useMbrUnderPointer: boolean;
|
|
96
|
+
};
|
|
97
|
+
BPMN_Participant: {
|
|
98
|
+
name: string;
|
|
99
|
+
textBounds: Mbr;
|
|
100
|
+
path: Paths;
|
|
101
|
+
anchorPoints: Point[];
|
|
102
|
+
createPath: (mbr: Mbr) => Paths;
|
|
103
|
+
useMbrUnderPointer: boolean;
|
|
104
|
+
};
|
|
105
|
+
BPMN_Task: {
|
|
106
|
+
name: string;
|
|
107
|
+
textBounds: Mbr;
|
|
108
|
+
path: Path;
|
|
109
|
+
anchorPoints: Point[];
|
|
110
|
+
createPath: (mbr: Mbr) => Path;
|
|
111
|
+
useMbrUnderPointer: boolean;
|
|
112
|
+
};
|
|
113
|
+
BPMN_Transaction: {
|
|
114
|
+
name: string;
|
|
115
|
+
textBounds: Mbr;
|
|
116
|
+
path: Paths;
|
|
117
|
+
anchorPoints: Point[];
|
|
118
|
+
createPath: (mbr: Mbr) => Paths;
|
|
119
|
+
useMbrUnderPointer: boolean;
|
|
120
|
+
};
|
|
121
|
+
BPMN_EventSubprocess: {
|
|
122
|
+
name: string;
|
|
123
|
+
textBounds: Mbr;
|
|
124
|
+
path: Paths;
|
|
125
|
+
anchorPoints: Point[];
|
|
126
|
+
createPath: (mbr: Mbr) => Paths;
|
|
127
|
+
useMbrUnderPointer: boolean;
|
|
128
|
+
};
|
|
129
|
+
BPMN_Annotation: {
|
|
130
|
+
name: string;
|
|
131
|
+
textBounds: Mbr;
|
|
132
|
+
path: Paths;
|
|
133
|
+
anchorPoints: never[];
|
|
134
|
+
createPath: (mbr: Mbr) => Paths;
|
|
135
|
+
useMbrUnderPointer: boolean;
|
|
136
|
+
};
|
|
137
|
+
BPMN_DataObject: {
|
|
138
|
+
name: string;
|
|
139
|
+
textBounds: Mbr;
|
|
140
|
+
path: Paths;
|
|
141
|
+
anchorPoints: Point[];
|
|
142
|
+
createPath: (mbr: Mbr) => Paths;
|
|
143
|
+
useMbrUnderPointer: boolean;
|
|
144
|
+
};
|
|
145
|
+
Rectangle: {
|
|
146
|
+
name: string;
|
|
147
|
+
textBounds: Mbr;
|
|
148
|
+
path: Path;
|
|
149
|
+
anchorPoints: Point[];
|
|
150
|
+
createPath: (mbr: Mbr) => Path;
|
|
151
|
+
useMbrUnderPointer: boolean;
|
|
152
|
+
};
|
|
153
|
+
Triangle: {
|
|
154
|
+
name: string;
|
|
155
|
+
textBounds: Mbr;
|
|
156
|
+
path: Path;
|
|
157
|
+
anchorPoints: Point[];
|
|
158
|
+
createPath: (mbr: Mbr) => Path;
|
|
159
|
+
useMbrUnderPointer: boolean;
|
|
160
|
+
};
|
|
161
|
+
ReversedTriangle: {
|
|
162
|
+
name: string;
|
|
163
|
+
textBounds: Mbr;
|
|
164
|
+
path: Path;
|
|
165
|
+
anchorPoints: Point[];
|
|
166
|
+
createPath: (mbr: Mbr) => Path;
|
|
167
|
+
useMbrUnderPointer: boolean;
|
|
168
|
+
};
|
|
169
|
+
Circle: {
|
|
170
|
+
name: string;
|
|
171
|
+
textBounds: Mbr;
|
|
172
|
+
path: Path;
|
|
173
|
+
anchorPoints: Point[];
|
|
174
|
+
createPath: (mbr: Mbr) => Path;
|
|
175
|
+
useMbrUnderPointer: boolean;
|
|
176
|
+
};
|
|
177
|
+
ArrowLeft: {
|
|
178
|
+
name: string;
|
|
179
|
+
textBounds: Mbr;
|
|
180
|
+
path: Path;
|
|
181
|
+
anchorPoints: Point[];
|
|
182
|
+
createPath: (mbr: Mbr) => Path;
|
|
183
|
+
useMbrUnderPointer: boolean;
|
|
184
|
+
};
|
|
185
|
+
ArrowLeftRight: {
|
|
186
|
+
name: string;
|
|
187
|
+
textBounds: Mbr;
|
|
188
|
+
path: Path;
|
|
189
|
+
anchorPoints: Point[];
|
|
190
|
+
createPath: (mbr: Mbr) => Path;
|
|
191
|
+
useMbrUnderPointer: boolean;
|
|
192
|
+
};
|
|
193
|
+
ArrowRight: {
|
|
194
|
+
name: string;
|
|
195
|
+
textBounds: Mbr;
|
|
196
|
+
path: Path;
|
|
197
|
+
anchorPoints: Point[];
|
|
198
|
+
createPath: (mbr: Mbr) => Path;
|
|
199
|
+
useMbrUnderPointer: boolean;
|
|
200
|
+
};
|
|
201
|
+
ArrowBlockLeft: {
|
|
202
|
+
name: string;
|
|
203
|
+
textBounds: Mbr;
|
|
204
|
+
path: Path;
|
|
205
|
+
anchorPoints: Point[];
|
|
206
|
+
createPath: (mbr: Mbr) => Path;
|
|
207
|
+
useMbrUnderPointer: boolean;
|
|
208
|
+
};
|
|
209
|
+
ArrowBlockRight: {
|
|
210
|
+
name: string;
|
|
211
|
+
textBounds: Mbr;
|
|
212
|
+
path: Path;
|
|
213
|
+
anchorPoints: Point[];
|
|
214
|
+
createPath: (mbr: Mbr) => Path;
|
|
215
|
+
useMbrUnderPointer: boolean;
|
|
216
|
+
};
|
|
217
|
+
BracesLeft: {
|
|
218
|
+
name: string;
|
|
219
|
+
textBounds: Mbr;
|
|
220
|
+
path: Path;
|
|
221
|
+
anchorPoints: never[];
|
|
222
|
+
createPath: (mbr: Mbr) => Path;
|
|
223
|
+
useMbrUnderPointer: boolean;
|
|
224
|
+
};
|
|
225
|
+
BracesRight: {
|
|
226
|
+
name: string;
|
|
227
|
+
textBounds: Mbr;
|
|
228
|
+
path: Path;
|
|
229
|
+
anchorPoints: never[];
|
|
230
|
+
createPath: (mbr: Mbr) => Path;
|
|
231
|
+
useMbrUnderPointer: boolean;
|
|
232
|
+
};
|
|
233
|
+
Cloud: {
|
|
234
|
+
name: string;
|
|
235
|
+
textBounds: Mbr;
|
|
236
|
+
path: Path;
|
|
237
|
+
anchorPoints: Point[];
|
|
238
|
+
createPath: (mbr: Mbr) => Path;
|
|
239
|
+
useMbrUnderPointer: boolean;
|
|
240
|
+
};
|
|
241
|
+
Cross: {
|
|
242
|
+
name: string;
|
|
243
|
+
textBounds: Mbr;
|
|
244
|
+
path: Path;
|
|
245
|
+
anchorPoints: Point[];
|
|
246
|
+
createPath: (mbr: Mbr) => Path;
|
|
247
|
+
useMbrUnderPointer: boolean;
|
|
248
|
+
};
|
|
249
|
+
Cylinder: {
|
|
250
|
+
name: string;
|
|
251
|
+
textBounds: Mbr;
|
|
252
|
+
path: Paths;
|
|
253
|
+
anchorPoints: Point[];
|
|
254
|
+
createPath: (mbr: Mbr) => Paths;
|
|
255
|
+
useMbrUnderPointer: boolean;
|
|
256
|
+
};
|
|
257
|
+
Hexagon: {
|
|
258
|
+
name: string;
|
|
259
|
+
textBounds: Mbr;
|
|
260
|
+
path: Path;
|
|
261
|
+
anchorPoints: Point[];
|
|
262
|
+
createPath: (mbr: Mbr) => Path;
|
|
263
|
+
useMbrUnderPointer: boolean;
|
|
264
|
+
};
|
|
265
|
+
Octagon: {
|
|
266
|
+
name: string;
|
|
267
|
+
textBounds: Mbr;
|
|
268
|
+
path: Path;
|
|
269
|
+
anchorPoints: Point[];
|
|
270
|
+
createPath: (mbr: Mbr) => Path;
|
|
271
|
+
useMbrUnderPointer: boolean;
|
|
272
|
+
};
|
|
273
|
+
Parallelogram: {
|
|
274
|
+
name: string;
|
|
275
|
+
textBounds: Mbr;
|
|
276
|
+
path: Path;
|
|
277
|
+
anchorPoints: Point[];
|
|
278
|
+
createPath: (mbr: Mbr) => Path;
|
|
279
|
+
useMbrUnderPointer: boolean;
|
|
280
|
+
};
|
|
281
|
+
ReversedParallelogram: {
|
|
282
|
+
name: string;
|
|
283
|
+
textBounds: Mbr;
|
|
284
|
+
path: Path;
|
|
285
|
+
anchorPoints: Point[];
|
|
286
|
+
createPath: (mbr: Mbr) => Path;
|
|
287
|
+
useMbrUnderPointer: boolean;
|
|
288
|
+
};
|
|
289
|
+
Pentagon: {
|
|
290
|
+
name: string;
|
|
291
|
+
textBounds: Mbr;
|
|
292
|
+
path: Path;
|
|
293
|
+
anchorPoints: Point[];
|
|
294
|
+
createPath: (mbr: Mbr) => Path;
|
|
295
|
+
useMbrUnderPointer: boolean;
|
|
296
|
+
};
|
|
297
|
+
PredefinedProcess: {
|
|
298
|
+
name: string;
|
|
299
|
+
textBounds: Mbr;
|
|
300
|
+
path: Paths;
|
|
301
|
+
anchorPoints: Point[];
|
|
302
|
+
createPath: (mbr: Mbr) => Paths;
|
|
303
|
+
useMbrUnderPointer: boolean;
|
|
304
|
+
};
|
|
305
|
+
Rhombus: {
|
|
306
|
+
name: string;
|
|
307
|
+
textBounds: Mbr;
|
|
308
|
+
path: Path;
|
|
309
|
+
anchorPoints: Point[];
|
|
310
|
+
createPath: (mbr: Mbr) => Path;
|
|
311
|
+
useMbrUnderPointer: boolean;
|
|
312
|
+
};
|
|
313
|
+
RoundedRectangle: {
|
|
314
|
+
name: string;
|
|
315
|
+
textBounds: Mbr;
|
|
316
|
+
path: Path;
|
|
317
|
+
anchorPoints: Point[];
|
|
318
|
+
createPath: (mbr: Mbr) => Path;
|
|
319
|
+
useMbrUnderPointer: boolean;
|
|
320
|
+
};
|
|
321
|
+
SpeachBubble: {
|
|
322
|
+
name: string;
|
|
323
|
+
textBounds: Mbr;
|
|
324
|
+
path: Path;
|
|
325
|
+
anchorPoints: Point[];
|
|
326
|
+
createPath: (mbr: Mbr) => Path;
|
|
327
|
+
useMbrUnderPointer: boolean;
|
|
328
|
+
};
|
|
329
|
+
Star: {
|
|
330
|
+
name: string;
|
|
331
|
+
textBounds: Mbr;
|
|
332
|
+
path: Path;
|
|
333
|
+
anchorPoints: Point[];
|
|
334
|
+
createPath: (mbr: Mbr) => Path;
|
|
335
|
+
useMbrUnderPointer: boolean;
|
|
336
|
+
};
|
|
337
|
+
Trapezoid: {
|
|
338
|
+
name: string;
|
|
339
|
+
textBounds: Mbr;
|
|
340
|
+
path: Path;
|
|
341
|
+
anchorPoints: Point[];
|
|
342
|
+
createPath: (mbr: Mbr) => Path;
|
|
343
|
+
useMbrUnderPointer: boolean;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
export declare class Shape implements Geometry {
|
|
347
|
+
private board;
|
|
348
|
+
private id;
|
|
349
|
+
private shapeType;
|
|
350
|
+
private backgroundColor;
|
|
351
|
+
private backgroundOpacity;
|
|
352
|
+
private borderColor;
|
|
353
|
+
private borderOpacity;
|
|
354
|
+
private borderStyle;
|
|
355
|
+
private borderWidth;
|
|
356
|
+
private mbr;
|
|
357
|
+
readonly itemType = "Shape";
|
|
358
|
+
parent: string;
|
|
359
|
+
readonly transformation: Transformation;
|
|
360
|
+
private path;
|
|
361
|
+
private textContainer;
|
|
362
|
+
readonly text: RichText;
|
|
363
|
+
readonly linkTo: LinkTo;
|
|
364
|
+
readonly subject: Subject<Shape>;
|
|
365
|
+
transformationRenderBlock?: boolean;
|
|
366
|
+
constructor(board: Board, id?: string, shapeType?: ShapeType, backgroundColor?: string, backgroundOpacity?: number, borderColor?: string, borderOpacity?: number, borderStyle?: "solid" | "dot" | "dash" | "longDash" | "dotDash" | "tripleDotDash" | "looseDoubleDotDash", borderWidth?: number, mbr?: Mbr);
|
|
367
|
+
private saveShapeData;
|
|
368
|
+
emit(operation: ShapeOperation): void;
|
|
369
|
+
serialize(): ShapeData;
|
|
370
|
+
deserialize(data: Partial<ShapeData>): this;
|
|
371
|
+
setId(id: string): this;
|
|
372
|
+
getId(): string;
|
|
373
|
+
apply(op: Operation): void;
|
|
374
|
+
private applyShapeOperation;
|
|
375
|
+
getShapeType(): ShapeType;
|
|
376
|
+
getLinkTo(): string | undefined;
|
|
377
|
+
private applyShapeType;
|
|
378
|
+
setShapeType(shapeType: ShapeType): void;
|
|
379
|
+
getBackgroundColor(): string;
|
|
380
|
+
private applyBackgroundColor;
|
|
381
|
+
setBackgroundColor(backgroundColor: string): void;
|
|
382
|
+
getBackgroundOpacity(): number;
|
|
383
|
+
getBorderColor(): string;
|
|
384
|
+
getBorderWidth(): number;
|
|
385
|
+
private applyBackgroundOpacity;
|
|
386
|
+
setBackgroundOpacity(backgroundOpacity: number): void;
|
|
387
|
+
getStrokeColor(): string;
|
|
388
|
+
private applyBorderColor;
|
|
389
|
+
setBorderColor(borderColor: string): void;
|
|
390
|
+
getBorderOpacity(): number;
|
|
391
|
+
private applyBorderOpacity;
|
|
392
|
+
setBorderOpacity(borderOpacity: number): void;
|
|
393
|
+
getBorderStyle(): BorderStyle;
|
|
394
|
+
private applyBorderStyle;
|
|
395
|
+
setBorderStyle(borderStyle: BorderStyle): void;
|
|
396
|
+
getStrokeWidth(): BorderWidth;
|
|
397
|
+
private applyBorderWidth;
|
|
398
|
+
setBorderWidth(borderWidth: BorderWidth): void;
|
|
399
|
+
getIntersectionPoints(segment: Line): Point[];
|
|
400
|
+
updateMbr(): Mbr;
|
|
401
|
+
getMbr(): Mbr;
|
|
402
|
+
getNearestEdgePointTo(point: Point): Point;
|
|
403
|
+
getDistanceToPoint(point: Point): number;
|
|
404
|
+
isUnderPoint(point: Point, tolerance?: number): boolean;
|
|
405
|
+
isNearPoint(point: Point, distance: number): boolean;
|
|
406
|
+
isEnclosedOrCrossedBy(rect: Mbr): boolean;
|
|
407
|
+
isEnclosedBy(rect: Mbr): boolean;
|
|
408
|
+
isInView(rect: Mbr): boolean;
|
|
409
|
+
getNormal(point: Point): GeometricNormal;
|
|
410
|
+
render(context: DrawingContext): void;
|
|
411
|
+
renderHTML(documentFactory: DocumentFactory): HTMLElement;
|
|
412
|
+
getPaths(): Path | Paths;
|
|
413
|
+
copyPaths(): Path | Paths;
|
|
414
|
+
isClosed(): boolean;
|
|
415
|
+
private initPath;
|
|
416
|
+
private transformPath;
|
|
417
|
+
getPath(): Path | Paths;
|
|
418
|
+
getSnapAnchorPoints(): Point[];
|
|
419
|
+
doResize(resizeType: ResizeType, pointer: Point, mbr: Mbr, opposite: Point, startMbr: Mbr, timeStamp: number): {
|
|
420
|
+
matrix: Matrix;
|
|
421
|
+
mbr: Mbr;
|
|
422
|
+
};
|
|
423
|
+
getRichText(): RichText;
|
|
424
|
+
getIsShapeWithText(): boolean;
|
|
425
|
+
getIsBorderStyleEditable(): boolean;
|
|
426
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Shape } from "./Shape";
|
|
2
|
+
import { ShapeOperation } from "./ShapeOperation";
|
|
3
|
+
import { Command } from "../../Events";
|
|
4
|
+
export declare class ShapeCommand implements Command {
|
|
5
|
+
private shape;
|
|
6
|
+
private operation;
|
|
7
|
+
private reverse;
|
|
8
|
+
constructor(shape: Shape[], operation: ShapeOperation);
|
|
9
|
+
merge(op: ShapeOperation): this;
|
|
10
|
+
apply(): void;
|
|
11
|
+
revert(): void;
|
|
12
|
+
getReverse(): {
|
|
13
|
+
item: Shape;
|
|
14
|
+
operation: ShapeOperation;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BorderStyle, BorderWidth } from '../Path';
|
|
2
|
+
import { RichTextData } from '../RichText';
|
|
3
|
+
import { DefaultRichTextData } from '../RichText/RichTextData';
|
|
4
|
+
import { TransformationData, DefaultTransformationData } from '../Transformation';
|
|
5
|
+
import { ShapeType } from './index';
|
|
6
|
+
export interface ShapeData {
|
|
7
|
+
readonly itemType: 'Shape';
|
|
8
|
+
shapeType: ShapeType;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
backgroundOpacity: number;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
borderOpacity: number;
|
|
13
|
+
borderStyle: BorderStyle;
|
|
14
|
+
borderWidth: BorderWidth;
|
|
15
|
+
transformation: TransformationData;
|
|
16
|
+
text: RichTextData;
|
|
17
|
+
linkTo?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class DefaultShapeData implements ShapeData {
|
|
20
|
+
shapeType: ShapeType;
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
backgroundOpacity: number;
|
|
23
|
+
borderColor: string;
|
|
24
|
+
borderOpacity: number;
|
|
25
|
+
borderStyle: BorderStyle;
|
|
26
|
+
borderWidth: BorderWidth;
|
|
27
|
+
transformation: DefaultTransformationData;
|
|
28
|
+
text: DefaultRichTextData;
|
|
29
|
+
linkTo?: string | undefined;
|
|
30
|
+
readonly itemType = "Shape";
|
|
31
|
+
constructor(shapeType?: ShapeType, backgroundColor?: string, backgroundOpacity?: number, borderColor?: string, borderOpacity?: number, borderStyle?: BorderStyle, borderWidth?: BorderWidth, transformation?: DefaultTransformationData, text?: DefaultRichTextData, linkTo?: string | undefined);
|
|
32
|
+
}
|
|
33
|
+
export declare const ADD_TO_SELECTION = true;
|
|
34
|
+
export declare const DEFAULT_SHAPE: ShapeType | 'None';
|
|
35
|
+
export declare const MIN_STROKE_WIDTH = 1;
|
|
36
|
+
export declare const MAX_STROKE_WIDTH = 12;
|
|
37
|
+
export declare const STEP_STROKE_WIDTH = 1;
|
|
38
|
+
export declare const SHAPE_LAST_TYPE_KEY = "lastShapeType";
|
|
39
|
+
export declare const BASIC_SHAPES: readonly ["Rectangle", "RoundedRectangle", "Circle", "Triangle", "Rhombus", "SpeachBubble", "ArrowRight", "ArrowLeft", "Cloud", "Parallelogram", "Star", "BracesRight", "BracesLeft", "ArrowLeftRight", "Cross", "Cylinder", "Trapezoid", "PredefinedProcess", "Octagon", "Hexagon", "Pentagon"];
|
|
40
|
+
export declare const BPMN_SHAPES: string[];
|
|
41
|
+
export declare const SHAPES_CATEGORIES: readonly [{
|
|
42
|
+
readonly name: "basicShapes";
|
|
43
|
+
readonly shapes: readonly ["Rectangle", "RoundedRectangle", "Circle", "Triangle", "Rhombus", "SpeachBubble", "ArrowRight", "ArrowLeft", "Cloud", "Parallelogram", "Star", "BracesRight", "BracesLeft", "ArrowLeftRight", "Cross", "Cylinder", "Trapezoid", "PredefinedProcess", "Octagon", "Hexagon", "Pentagon"];
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "BPMN";
|
|
46
|
+
readonly shapes: string[];
|
|
47
|
+
}];
|
|
48
|
+
export type ShapeCategoryName = (typeof SHAPES_CATEGORIES)[number]['name'];
|