microboard-temp 0.14.14 → 0.14.16
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/cjs/browser.js +4862 -3698
- package/dist/cjs/index.js +4862 -3698
- package/dist/cjs/node.js +4862 -3698
- package/dist/cjs/protocol.js +25 -0
- package/dist/esm/browser.js +4862 -3698
- package/dist/esm/index.js +4862 -3698
- package/dist/esm/node.js +4862 -3698
- package/dist/esm/protocol.js +25 -0
- package/dist/types/Background/drawBackground.d.ts +1 -1
- package/dist/types/Board.d.ts +4 -3
- package/dist/types/Camera/Camera.d.ts +3 -3
- package/dist/types/Events/EventsOperations.d.ts +1 -1
- package/dist/types/Events/MessageRouter/socketContract.d.ts +1249 -9
- package/dist/types/Events/Transform/transformTransformationOperation.d.ts +2 -0
- package/dist/types/{Items → Geometry}/Geometry.d.ts +1 -1
- package/dist/types/{Items → Geometry}/Mbr/Mbr.d.ts +2 -1
- package/dist/types/{Items → Geometry}/Path/Paths.d.ts +1 -1
- package/dist/types/{Items → Geometry}/Transformation/Matrix.d.ts +16 -0
- package/dist/types/{Items → Geometry}/Transformation/TransformationData.d.ts +5 -1
- package/dist/types/{Items → Geometry}/Transformation/TransformationOperations.d.ts +27 -1
- package/dist/types/{Items → Geometry}/Transformation/transformOps.d.ts +3 -1
- package/dist/types/Geometry/index.d.ts +12 -0
- package/dist/types/HTMLAdapter/BoardHTMLAdapter.d.ts +15 -0
- package/dist/types/{parserHTML.d.ts → HTMLAdapter/Parser.d.ts} +2 -2
- package/dist/types/{Items → HTMLAdapter}/Renderers/AINodeHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/AudioHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/CommentHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/ConnectorHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/DrawingHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/FrameHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/GroupHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/HTMLItemRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/ImageHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/PlaceholderHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/RichTextHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/ShapeHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/StickerHTMLRenderer.d.ts +1 -1
- package/dist/types/{Items → HTMLAdapter}/Renderers/VideoHTMLRenderer.d.ts +1 -1
- package/dist/types/{HTMLRender/HTMLRender.d.ts → HTMLAdapter/Utils.d.ts} +1 -1
- package/dist/types/Items/AINode/AINode.d.ts +5 -20
- package/dist/types/Items/AINode/AINodeData.d.ts +4 -4
- package/dist/types/Items/Audio/Audio.d.ts +8 -5
- package/dist/types/Items/Audio/AudioHelpers.d.ts +1 -1
- package/dist/types/Items/BaseItem/BaseItem.d.ts +50 -28
- package/dist/types/Items/BaseItem/TransformContext.d.ts +3 -3
- package/dist/types/Items/BaseItem/UpdateHint.d.ts +12 -0
- package/dist/types/Items/{Examples/CardGame/Card → Card}/Card.d.ts +11 -7
- package/dist/types/Items/Card/CardActions.d.ts +2 -0
- package/dist/types/Items/{Examples/CardGame/Card → Card}/CardOperation.d.ts +2 -2
- package/dist/types/Items/Card/CardOverlay.d.ts +2 -0
- package/dist/types/Items/Comment/Comment.d.ts +10 -7
- package/dist/types/{Tools/AddComment → Items/Comment/Tool}/AddComment.d.ts +3 -3
- package/dist/types/Items/Connector/Connector.d.ts +14 -10
- package/dist/types/Items/Connector/ConnectorOperations.d.ts +2 -2
- package/dist/types/Items/Connector/ConnectorOverlay.d.ts +3 -0
- package/dist/types/Items/Connector/ConnectorSnap.d.ts +4 -4
- package/dist/types/Items/Connector/ConnectorTypes.d.ts +1 -1
- package/dist/types/Items/Connector/ControlPoint.d.ts +1 -1
- package/dist/types/Items/Connector/Pointers/Pointers.d.ts +3 -3
- package/dist/types/{Tools/AddConnector → Items/Connector/Tool}/AddConnector.d.ts +9 -9
- package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/getCurvedLine.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/getLine.d.ts +1 -1
- package/dist/types/Items/{Examples/CardGame/Deck → Deck}/Deck.d.ts +10 -7
- package/dist/types/Items/Deck/DeckActions.d.ts +2 -0
- package/dist/types/Items/{Examples/CardGame/Deck → Deck}/DeckOperation.d.ts +2 -2
- package/dist/types/Items/Deck/DeckOverlay.d.ts +3 -0
- package/dist/types/Items/Dice/AddDice.d.ts +5 -0
- package/dist/types/Items/{Examples/CardGame/Dice → Dice}/Dice.d.ts +12 -8
- package/dist/types/Items/Dice/DiceActions.d.ts +2 -0
- package/dist/types/Items/{Examples/CardGame/Dice → Dice}/DiceOperation.d.ts +1 -1
- package/dist/types/Items/Dice/DiceOverlay.d.ts +3 -0
- package/dist/types/Items/Drawing/Drawing.d.ts +13 -9
- package/dist/types/Items/Drawing/DrawingOperation.d.ts +1 -1
- package/dist/types/Items/Drawing/DrawingOverlay.d.ts +4 -0
- package/dist/types/{Tools/AddDrawing → Items/Drawing/Tool}/AddDrawing.d.ts +7 -7
- package/dist/types/{Tools/AddDrawing → Items/Drawing/Tool}/AddHighlighter.d.ts +4 -4
- package/dist/types/{Tools → Items/Drawing/Tool}/Eraser/Eraser.d.ts +5 -5
- package/dist/types/Items/Frame/Basic/1-1/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/16-9/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/3-2/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/4-3/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/9-18/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/A4/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/Custom/index.d.ts +3 -3
- package/dist/types/Items/Frame/Basic/Letter/index.d.ts +3 -3
- package/dist/types/Items/Frame/Frame.d.ts +13 -20
- package/dist/types/Items/Frame/FrameData.d.ts +2 -2
- package/dist/types/Items/Frame/FrameOverlay.d.ts +2 -0
- package/dist/types/{Tools/AddFrame → Items/Frame/Tool}/AddFrame.d.ts +6 -6
- package/dist/types/Items/Group/Group.d.ts +9 -8
- package/dist/types/Items/Image/Image.d.ts +11 -7
- package/dist/types/Items/Item.d.ts +1 -1
- package/dist/types/Items/ItemActions.d.ts +160 -0
- package/dist/types/Items/LinkTo/LinkTo.d.ts +1 -1
- package/dist/types/Items/Placeholder/Placeholder.d.ts +11 -32
- package/dist/types/Items/RegisterItem.d.ts +8 -4
- package/dist/types/Items/RichText/Editor/BlockNode.d.ts +1 -1
- package/dist/types/Items/RichText/Editor/TextNode.d.ts +1 -1
- package/dist/types/Items/RichText/EditorContainer.d.ts +1 -1
- package/dist/types/Items/RichText/RichText.d.ts +11 -6
- package/dist/types/Items/RichText/RichTextData.d.ts +2 -2
- package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
- package/dist/types/Items/RichText/RichTextOverlay.d.ts +3 -0
- package/dist/types/{Tools/AddText → Items/RichText/Tool}/AddText.d.ts +4 -4
- package/dist/types/Items/RichText/editorHelpers/common/createParagraphNode.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/getParagraph.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionHorisontalAlignment.d.ts +1 -1
- package/dist/types/Items/RichText/setNodeStyles.d.ts +1 -1
- package/dist/types/Items/{Examples/CardGame/Screen → Screen}/AddScreen.d.ts +2 -2
- package/dist/types/Items/{Examples/CardGame/Screen → Screen}/Screen.d.ts +10 -6
- package/dist/types/Items/Screen/ScreenActions.d.ts +12 -0
- package/dist/types/Items/{Examples/CardGame/Screen → Screen}/ScreenOperation.d.ts +1 -1
- package/dist/types/Items/Screen/ScreenOverlay.d.ts +4 -0
- package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +2 -2
- package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +3 -3
- package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +2 -2
- package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +2 -2
- package/dist/types/Items/Shape/Basic/Circle/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Cross/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Star/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +3 -3
- package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +3 -3
- package/dist/types/Items/Shape/Shape.d.ts +15 -11
- package/dist/types/Items/Shape/ShapeData.d.ts +2 -2
- package/dist/types/Items/Shape/ShapeOperation.d.ts +1 -1
- package/dist/types/Items/Shape/ShapeOverlay.d.ts +4 -0
- package/dist/types/{Tools/AddShape → Items/Shape/Tool}/AddShape.d.ts +6 -6
- package/dist/types/Items/Sticker/Sticker.d.ts +14 -10
- package/dist/types/Items/Sticker/StickerOperation.d.ts +1 -1
- package/dist/types/Items/Sticker/StickerOverlay.d.ts +2 -0
- package/dist/types/{Tools/AddSticker → Items/Sticker/Tool}/AddSticker.d.ts +8 -6
- package/dist/types/Items/Video/Video.d.ts +9 -6
- package/dist/types/Items/index.d.ts +13 -15
- package/dist/types/Items/itemActionsRegistry.d.ts +11 -0
- package/dist/types/Overlay/OverlayMetadata.d.ts +182 -0
- package/dist/types/Overlay/index.d.ts +2 -0
- package/dist/types/Overlay/overlayRegistry.d.ts +24 -0
- package/dist/types/Pointer/Pointer.d.ts +1 -1
- package/dist/types/Presence/Presence.d.ts +1 -1
- package/dist/types/RegistryMaps.d.ts +3 -1
- package/dist/types/Selection/ConnectorTransformer/ConnectorTransformer.d.ts +1 -1
- package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +1 -1
- package/dist/types/Selection/Selection.d.ts +9 -8
- package/dist/types/Selection/SelectionTransformer.d.ts +1 -1
- package/dist/types/Selection/Transformer/Transformer.d.ts +2 -2
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizeType.d.ts +2 -2
- package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +31 -4
- package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +12 -7
- package/dist/types/Selection/Transformer/TransformerHelpers/transformItems.d.ts +2 -2
- package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +5 -3
- package/dist/types/Selection/Transformer/TransformerHelpers/transformShape.d.ts +4 -4
- package/dist/types/Selection/Transformer/TransformerHelpers/updateFrameChildren.d.ts +1 -1
- package/dist/types/SessionStorage.d.ts +1 -1
- package/dist/types/Settings.d.ts +2 -2
- package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +2 -2
- package/dist/types/SpatialIndex/SimpleSpatialIndex.d.ts +3 -3
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +4 -3
- package/dist/types/Tools/CustomTool.d.ts +3 -3
- package/dist/types/Tools/{ExportSnapshot/ExportSnapshot.d.ts → ExportScreenshot/ExportScreenshot.d.ts} +5 -6
- package/dist/types/Tools/{ExportSnapshot/exportBoardSnapshot.d.ts → ExportScreenshot/exportBoardScreenshot.d.ts} +2 -2
- package/dist/types/Tools/NestingHighlighter/NestingHighlighter.d.ts +1 -1
- package/dist/types/Tools/RelativeAlignment/RelativeAlignment.d.ts +1 -1
- package/dist/types/Tools/Select/Select.d.ts +32 -4
- package/dist/types/Tools/Tool.d.ts +1 -1
- package/dist/types/Tools/ToolContext.d.ts +1 -1
- package/dist/types/Tools/Tools.d.ts +14 -13
- package/dist/types/Tools/index.d.ts +2 -2
- package/dist/types/Tools/initTools.d.ts +13 -0
- package/dist/types/drawMbrOnCanvas.d.ts +3 -3
- package/dist/types/index.d.ts +4 -2
- package/dist/types/itemFactories.d.ts +4 -6
- package/package.json +1 -1
- package/dist/types/HTMLRender/index.d.ts +0 -1
- package/dist/types/Items/Examples/CardGame/Dice/AddDice.d.ts +0 -5
- package/dist/types/Items/Examples/Counter/AddCounter.d.ts +0 -7
- package/dist/types/Items/Examples/Counter/Counter.d.ts +0 -25
- package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +0 -9
- package/dist/types/Items/Examples/Counter/index.d.ts +0 -1
- package/dist/types/Items/Examples/Star/AddStar.d.ts +0 -7
- package/dist/types/Items/Examples/Star/Star.d.ts +0 -38
- package/dist/types/Items/Examples/Star/StarOperation.d.ts +0 -9
- package/dist/types/Items/Examples/Star/index.d.ts +0 -1
- /package/dist/types/{Items → Geometry}/Alignment.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Anchor/Anchor.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Anchor/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Arc/Arc.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Arc/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Curve/Curve.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Curve/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/DrawingContext.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/GeometricNormal.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Line/Line.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Line/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Mbr/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Path/Path.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Path/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Point/Point.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Point/Point.schema.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Point/index.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Transformation/Transformation.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Transformation/Transformation.schema.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Transformation/TransformationCommand.d.ts +0 -0
- /package/dist/types/{Items → Geometry}/Transformation/index.d.ts +0 -0
- /package/dist/types/{Items → HTMLAdapter}/Renderers/index.d.ts +0 -0
- /package/dist/types/Items/{Examples/CardGame/Card → Card}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddComment → Items/Comment/Tool}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddConnector → Items/Connector/Tool}/index.d.ts +0 -0
- /package/dist/types/Items/{Examples/CardGame/Deck → Deck}/index.d.ts +0 -0
- /package/dist/types/Items/{Examples/CardGame/Dice → Dice}/index.d.ts +0 -0
- /package/dist/types/{Tools → Items/Drawing/Tool}/Eraser/index.d.ts +0 -0
- /package/dist/types/{Tools/AddDrawing → Items/Drawing/Tool}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddFrame → Items/Frame/Tool}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddText → Items/RichText/Tool}/index.d.ts +0 -0
- /package/dist/types/Items/{Examples/CardGame/Screen → Screen}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddShape → Items/Shape/Tool}/index.d.ts +0 -0
- /package/dist/types/{Tools/AddSticker → Items/Sticker/Tool}/index.d.ts +0 -0
- /package/dist/types/Tools/{ExportSnapshot → ExportScreenshot}/getDecorationResizeType.d.ts +0 -0
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { Operation } from "../../Events";
|
|
1
|
+
import { Operation, BaseOperation } from "../../Events";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
|
-
import { Line } from "
|
|
4
|
-
import { Matrix } from "
|
|
5
|
-
import { Mbr } from "
|
|
6
|
-
import { Path } from "
|
|
7
|
-
import { Paths } from "
|
|
8
|
-
import { Point } from "
|
|
3
|
+
import { Line } from "../../Geometry/Line/Line";
|
|
4
|
+
import { Matrix } from "../../Geometry/Transformation/Matrix";
|
|
5
|
+
import { Mbr } from "../../Geometry/Mbr/Mbr";
|
|
6
|
+
import { Path } from "../../Geometry/Path/Path";
|
|
7
|
+
import { Paths } from "../../Geometry/Path/Paths";
|
|
8
|
+
import { Point } from "../../Geometry/Point/Point";
|
|
9
9
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
10
|
-
import { DrawingContext } from "
|
|
11
|
-
import { GeometricNormal } from "
|
|
10
|
+
import { DrawingContext } from "../../Geometry/DrawingContext";
|
|
11
|
+
import { GeometricNormal } from "../../Geometry/GeometricNormal";
|
|
12
12
|
import { RichText } from "../RichText/RichText";
|
|
13
13
|
import { StickerData, StickerOperation } from "./StickerOperation";
|
|
14
14
|
import { Board } from "../../Board";
|
|
15
15
|
import { BaseItem } from "../BaseItem/BaseItem";
|
|
16
16
|
import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
17
|
+
import { BaseItemOperation } from "../BaseItem/BaseItemOperation";
|
|
18
|
+
import { UpdateHint } from "../BaseItem/UpdateHint";
|
|
17
19
|
import { ColorValue } from "../../..";
|
|
18
20
|
export declare const stickerColors: {
|
|
19
21
|
[color: string]: string;
|
|
@@ -42,8 +44,10 @@ export declare class Sticker extends BaseItem<Sticker> {
|
|
|
42
44
|
setId(id: string): this;
|
|
43
45
|
protected onParentChanged(newParent: string): void;
|
|
44
46
|
getId(): string;
|
|
45
|
-
apply(
|
|
47
|
+
apply(opIn: Operation | BaseItemOperation | BaseOperation): void;
|
|
48
|
+
protected updateVisuals(op: Operation, hint: UpdateHint): void;
|
|
46
49
|
protected onPropertyUpdated(property: string, value: unknown, prevValue: unknown): void;
|
|
50
|
+
protected getPropertyUpdateHint(property: string): UpdateHint;
|
|
47
51
|
getBackgroundColor(): ColorValue;
|
|
48
52
|
setBackgroundColor(color: ColorValue | string): void;
|
|
49
53
|
getWidth(): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultRichTextData } from '../RichText/RichTextData';
|
|
2
|
-
import { DefaultTransformationData } from '
|
|
2
|
+
import { DefaultTransformationData } from '../../Geometry/Transformation/TransformationData';
|
|
3
3
|
import { ColorValue } from '../../..';
|
|
4
4
|
export declare class StickerData {
|
|
5
5
|
backgroundColor: ColorValue;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Board } from '
|
|
2
|
-
import { Line, Mbr } from '
|
|
3
|
-
import { DrawingContext } from '
|
|
4
|
-
import { Sticker } from '../../
|
|
5
|
-
import { ColorValue } from '
|
|
6
|
-
import { BoardTool } from '
|
|
1
|
+
import { Board } from '../../../Board';
|
|
2
|
+
import { Line, Mbr } from '../../../Items';
|
|
3
|
+
import { DrawingContext } from '../../../Geometry/DrawingContext';
|
|
4
|
+
import { Sticker } from '../../Sticker';
|
|
5
|
+
import { ColorValue } from '../../../..';
|
|
6
|
+
import { BoardTool } from '../../../Tools/BoardTool';
|
|
7
7
|
export declare class AddSticker extends BoardTool {
|
|
8
8
|
static MIN_SIZE: number;
|
|
9
9
|
line: Line | undefined;
|
|
@@ -15,6 +15,8 @@ export declare class AddSticker extends BoardTool {
|
|
|
15
15
|
setCursor(color?: ColorValue | string): void;
|
|
16
16
|
setBackgroundColor(color: ColorValue | string): void;
|
|
17
17
|
getBackgroundColor(): ColorValue;
|
|
18
|
+
get backgroundColor(): ColorValue;
|
|
19
|
+
set backgroundColor(color: ColorValue | string);
|
|
18
20
|
leftButtonDown(): boolean;
|
|
19
21
|
pointerMoveBy(_x: number, _y: number): boolean;
|
|
20
22
|
leftButtonUp(): boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Board } from "../../Board";
|
|
2
2
|
import type { Operation } from "../../Events";
|
|
3
|
-
import { Point } from "
|
|
4
|
-
import { DrawingContext } from "
|
|
5
|
-
import { Mbr } from "
|
|
6
|
-
import { Path, Paths } from "
|
|
7
|
-
import { TransformationData } from "
|
|
3
|
+
import { Point } from "../../Geometry/Point/Point";
|
|
4
|
+
import { DrawingContext } from "../../Geometry/DrawingContext";
|
|
5
|
+
import { Mbr } from "../../Geometry/Mbr";
|
|
6
|
+
import { Path, Paths } from "../../Geometry/Path";
|
|
7
|
+
import { TransformationData } from "../../Geometry/Transformation/TransformationData";
|
|
8
8
|
import { Subject } from "../../Subject";
|
|
9
9
|
import { BaseItem, SerializedItemData } from "../BaseItem/BaseItem";
|
|
10
|
+
import { UpdateHint } from "../BaseItem/UpdateHint";
|
|
10
11
|
export interface VideoItemData {
|
|
11
12
|
itemType: "Video";
|
|
12
13
|
url?: string;
|
|
@@ -67,7 +68,9 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
67
68
|
render(context: DrawingContext): void;
|
|
68
69
|
serialize(): SerializedItemData<VideoItemData>;
|
|
69
70
|
deserialize(data: SerializedItemData<VideoItemData> | VideoItemData): this;
|
|
70
|
-
apply(
|
|
71
|
+
apply(opIn: Operation): void;
|
|
72
|
+
protected updateVisuals(_op: any, hint: UpdateHint): void;
|
|
73
|
+
protected getPropertyUpdateHint(property: string): UpdateHint;
|
|
71
74
|
emit(operation: Operation): void;
|
|
72
75
|
setId(id: string): this;
|
|
73
76
|
getId(): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { BaseItem } from "./BaseItem";
|
|
2
2
|
export type { BaseItemData, SerializedItemData } from "./BaseItem";
|
|
3
|
-
export { Point } from "
|
|
4
|
-
export { Line } from "
|
|
5
|
-
export { CubicBezier, QuadraticBezier } from "
|
|
6
|
-
export { Arc } from "
|
|
7
|
-
export { Mbr } from "
|
|
8
|
-
export { DrawingContext } from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
3
|
+
export { Point } from "../Geometry/Point";
|
|
4
|
+
export { Line } from "../Geometry/Line";
|
|
5
|
+
export { CubicBezier, QuadraticBezier } from "../Geometry/Curve";
|
|
6
|
+
export { Arc } from "../Geometry/Arc";
|
|
7
|
+
export { Mbr } from "../Geometry/Mbr";
|
|
8
|
+
export { DrawingContext } from "../Geometry/DrawingContext";
|
|
9
|
+
export * from "../Geometry/Path";
|
|
10
|
+
export * from "../Geometry/Transformation";
|
|
11
11
|
export * from "./Connector";
|
|
12
12
|
export { connectorOps } from "./Connector/connectorOps";
|
|
13
13
|
export * from "./RichText";
|
|
@@ -23,11 +23,9 @@ export * from "./Placeholder";
|
|
|
23
23
|
export * from "./Group";
|
|
24
24
|
export type { Item, ItemType, ItemData } from "./Item";
|
|
25
25
|
export { registerItem } from "./RegisterItem";
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export { Dice } from "./Examples/CardGame/Dice";
|
|
31
|
-
export { Screen } from "./Examples/CardGame/Screen";
|
|
26
|
+
export { Card } from "./Card";
|
|
27
|
+
export { Deck } from "./Deck";
|
|
28
|
+
export { Dice } from "./Dice";
|
|
29
|
+
export { Screen } from "./Screen";
|
|
32
30
|
export { Comment } from "./Comment";
|
|
33
|
-
export type { HorisontalAlignment, VerticalAlignment } from "
|
|
31
|
+
export type { HorisontalAlignment, VerticalAlignment } from "../Geometry/Alignment";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ItemActionConfig } from "./ItemActions";
|
|
2
|
+
/**
|
|
3
|
+
* Registry of item action configs, keyed by itemType.
|
|
4
|
+
* Populated lazily during `registerItem(...)` calls.
|
|
5
|
+
*
|
|
6
|
+
* Usage in UI repo:
|
|
7
|
+
* import { itemActions } from "microboard";
|
|
8
|
+
* const config = itemActions[item.itemType];
|
|
9
|
+
* // render config.contextPanel, config.contextMenu, config.toolButton
|
|
10
|
+
*/
|
|
11
|
+
export declare const itemActions: Record<string, ItemActionConfig>;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { BaseItem } from "../Items/BaseItem/BaseItem";
|
|
2
|
+
export type OverlayValueSource = {
|
|
3
|
+
kind: "itemProperty";
|
|
4
|
+
property: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: "toolProperty";
|
|
7
|
+
property: string;
|
|
8
|
+
};
|
|
9
|
+
export interface OverlayIconStateHint {
|
|
10
|
+
swatch?: OverlayValueSource;
|
|
11
|
+
note?: string;
|
|
12
|
+
}
|
|
13
|
+
export type OverlayIcon = {
|
|
14
|
+
kind: "asset";
|
|
15
|
+
path: string;
|
|
16
|
+
mimeType?: "image/svg+xml";
|
|
17
|
+
state?: OverlayIconStateHint;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "symbol";
|
|
20
|
+
key: string;
|
|
21
|
+
state?: OverlayIconStateHint;
|
|
22
|
+
};
|
|
23
|
+
export interface OverlayOptionDefinition {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
value: unknown;
|
|
27
|
+
icon?: OverlayIcon;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface OverlayCatalogDefinition {
|
|
31
|
+
kind: "catalog";
|
|
32
|
+
label: string;
|
|
33
|
+
family?: string;
|
|
34
|
+
options: OverlayOptionDefinition[];
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
interface OverlayEditorBase {
|
|
38
|
+
label?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface OverlayColorEditor extends OverlayEditorBase {
|
|
42
|
+
kind: "color";
|
|
43
|
+
palette?: string[];
|
|
44
|
+
allowTransparent?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface OverlayEnumIconEditor extends OverlayEditorBase {
|
|
47
|
+
kind: "enum-icon";
|
|
48
|
+
options: OverlayOptionDefinition[];
|
|
49
|
+
catalog?: OverlayCatalogDefinition;
|
|
50
|
+
}
|
|
51
|
+
export interface OverlayEnumListEditor extends OverlayEditorBase {
|
|
52
|
+
kind: "enum-list";
|
|
53
|
+
options: OverlayOptionDefinition[];
|
|
54
|
+
}
|
|
55
|
+
export interface OverlayNumberEditor extends OverlayEditorBase {
|
|
56
|
+
kind: "number";
|
|
57
|
+
min?: number;
|
|
58
|
+
max?: number;
|
|
59
|
+
step?: number;
|
|
60
|
+
unit?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface OverlayNumberStepperEditor extends OverlayEditorBase {
|
|
63
|
+
kind: "number-stepper";
|
|
64
|
+
min?: number;
|
|
65
|
+
max?: number;
|
|
66
|
+
step: number;
|
|
67
|
+
presets?: number[];
|
|
68
|
+
unit?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface OverlaySliderEditor extends OverlayEditorBase {
|
|
71
|
+
kind: "slider";
|
|
72
|
+
min: number;
|
|
73
|
+
max: number;
|
|
74
|
+
step?: number;
|
|
75
|
+
unit?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface OverlayDynamicOptionsEditor extends OverlayEditorBase {
|
|
78
|
+
kind: "dynamic-options";
|
|
79
|
+
providerId: string;
|
|
80
|
+
presentation: "list" | "icon-grid";
|
|
81
|
+
}
|
|
82
|
+
export interface OverlayToggleEditor extends OverlayEditorBase {
|
|
83
|
+
kind: "toggle";
|
|
84
|
+
trueLabel?: string;
|
|
85
|
+
falseLabel?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface OverlayCatalogEditor extends OverlayEditorBase {
|
|
88
|
+
kind: "catalog";
|
|
89
|
+
family?: string;
|
|
90
|
+
options: OverlayOptionDefinition[];
|
|
91
|
+
presentation?: "grid" | "list";
|
|
92
|
+
}
|
|
93
|
+
export type OverlayEditor = OverlayColorEditor | OverlayEnumIconEditor | OverlayEnumListEditor | OverlayNumberEditor | OverlayNumberStepperEditor | OverlaySliderEditor | OverlayDynamicOptionsEditor | OverlayToggleEditor | OverlayCatalogEditor;
|
|
94
|
+
export type OverlayInvocationArg = {
|
|
95
|
+
kind: "control";
|
|
96
|
+
controlId: string;
|
|
97
|
+
} | {
|
|
98
|
+
kind: "static";
|
|
99
|
+
value: unknown;
|
|
100
|
+
};
|
|
101
|
+
export type OverlayControlValueAdapter = {
|
|
102
|
+
kind: "rangeArray";
|
|
103
|
+
start: number;
|
|
104
|
+
} | {
|
|
105
|
+
kind: "identity";
|
|
106
|
+
};
|
|
107
|
+
export type OverlayInvocation = {
|
|
108
|
+
kind: "setProperty";
|
|
109
|
+
property: string;
|
|
110
|
+
} | {
|
|
111
|
+
kind: "operation";
|
|
112
|
+
class: string;
|
|
113
|
+
method: string;
|
|
114
|
+
args?: OverlayInvocationArg[];
|
|
115
|
+
} | {
|
|
116
|
+
kind: "customMethod";
|
|
117
|
+
methodName: string;
|
|
118
|
+
args?: OverlayInvocationArg[];
|
|
119
|
+
} | {
|
|
120
|
+
kind: "selectionMethod";
|
|
121
|
+
methodName: string;
|
|
122
|
+
args?: OverlayInvocationArg[];
|
|
123
|
+
} | {
|
|
124
|
+
kind: "toolProperty";
|
|
125
|
+
property: string;
|
|
126
|
+
};
|
|
127
|
+
export interface OverlayControlDefinition {
|
|
128
|
+
id: string;
|
|
129
|
+
label: string;
|
|
130
|
+
valueSource?: OverlayValueSource;
|
|
131
|
+
icon?: OverlayIcon;
|
|
132
|
+
editor: OverlayEditor;
|
|
133
|
+
valueAdapter?: OverlayControlValueAdapter;
|
|
134
|
+
invoke?: OverlayInvocation;
|
|
135
|
+
}
|
|
136
|
+
export interface OverlayControlGroupDefinition {
|
|
137
|
+
id: string;
|
|
138
|
+
label: string;
|
|
139
|
+
icon?: OverlayIcon;
|
|
140
|
+
controlIds: string[];
|
|
141
|
+
description?: string;
|
|
142
|
+
}
|
|
143
|
+
export type OverlayActionTarget = "single" | "each" | "selection";
|
|
144
|
+
export interface OverlayActionDefinition {
|
|
145
|
+
id: string;
|
|
146
|
+
label: string;
|
|
147
|
+
icon?: OverlayIcon;
|
|
148
|
+
target: OverlayActionTarget;
|
|
149
|
+
description?: string;
|
|
150
|
+
invoke?: OverlayInvocation;
|
|
151
|
+
controls?: OverlayControlDefinition[];
|
|
152
|
+
groups?: OverlayControlGroupDefinition[];
|
|
153
|
+
}
|
|
154
|
+
export interface ItemOverlayDefinition {
|
|
155
|
+
itemType: string;
|
|
156
|
+
actions: OverlayActionDefinition[];
|
|
157
|
+
}
|
|
158
|
+
export interface SelectionOverlayActionDefinition {
|
|
159
|
+
id: string;
|
|
160
|
+
label: string;
|
|
161
|
+
icon?: OverlayIcon;
|
|
162
|
+
description?: string;
|
|
163
|
+
invoke: OverlayInvocation;
|
|
164
|
+
controls?: OverlayControlDefinition[];
|
|
165
|
+
groups?: OverlayControlGroupDefinition[];
|
|
166
|
+
isAvailable?: (items: readonly BaseItem[]) => boolean;
|
|
167
|
+
}
|
|
168
|
+
export interface ToolDefaultsDefinition {
|
|
169
|
+
controls: OverlayControlDefinition[];
|
|
170
|
+
groups?: OverlayControlGroupDefinition[];
|
|
171
|
+
}
|
|
172
|
+
export interface ToolOverlayDefinition {
|
|
173
|
+
toolName: string;
|
|
174
|
+
label: string;
|
|
175
|
+
kind: "mode" | "create";
|
|
176
|
+
icon: OverlayIcon;
|
|
177
|
+
family?: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
createsItemType?: string;
|
|
180
|
+
defaults?: ToolDefaultsDefinition;
|
|
181
|
+
}
|
|
182
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BaseItem } from "../Items/BaseItem/BaseItem";
|
|
2
|
+
import type { Tool } from "../Tools/Tool";
|
|
3
|
+
import type { ItemOverlayDefinition, OverlayActionDefinition, OverlayOptionDefinition, SelectionOverlayActionDefinition, ToolOverlayDefinition } from "./OverlayMetadata";
|
|
4
|
+
export interface OverlayDynamicOptionsContext {
|
|
5
|
+
item?: BaseItem;
|
|
6
|
+
items?: readonly BaseItem[];
|
|
7
|
+
tool?: Tool;
|
|
8
|
+
}
|
|
9
|
+
export type OverlayDynamicOptionsResolver = (context: OverlayDynamicOptionsContext) => OverlayOptionDefinition[];
|
|
10
|
+
export declare const itemOverlays: Record<string, ItemOverlayDefinition>;
|
|
11
|
+
export declare const toolOverlays: Record<string, ToolOverlayDefinition>;
|
|
12
|
+
export declare const dynamicOptionsResolvers: Record<string, OverlayDynamicOptionsResolver>;
|
|
13
|
+
export declare const selectionActions: Record<string, SelectionOverlayActionDefinition>;
|
|
14
|
+
export declare function registerItemOverlay(overlay: ItemOverlayDefinition): void;
|
|
15
|
+
export declare function registerToolOverlay(overlay: ToolOverlayDefinition): void;
|
|
16
|
+
export declare function registerSelectionAction(action: SelectionOverlayActionDefinition): void;
|
|
17
|
+
export declare function registerDynamicOptionsResolver(id: string, resolver: OverlayDynamicOptionsResolver): void;
|
|
18
|
+
export declare function getItemOverlay(itemOrType: BaseItem | string): ItemOverlayDefinition | undefined;
|
|
19
|
+
export declare function getToolOverlay(toolName: string): ToolOverlayDefinition | undefined;
|
|
20
|
+
export declare function listToolOverlays(): ToolOverlayDefinition[];
|
|
21
|
+
export declare function listSelectionActions(): SelectionOverlayActionDefinition[];
|
|
22
|
+
export declare function getSelectionOverlayActions(items: readonly BaseItem[]): SelectionOverlayActionDefinition[];
|
|
23
|
+
export declare function resolveDynamicOptions(providerId: string, context: OverlayDynamicOptionsContext): OverlayOptionDefinition[];
|
|
24
|
+
export declare function intersectOverlayActions(items: readonly BaseItem[]): OverlayActionDefinition[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Board } from '../Board';
|
|
2
2
|
import { Events } from '../Events';
|
|
3
3
|
import { Item } from '../Items';
|
|
4
|
-
import { DrawingContext } from '../
|
|
4
|
+
import { DrawingContext } from '../Geometry/DrawingContext';
|
|
5
5
|
import { Subject } from '../Subject';
|
|
6
6
|
import { PresenceEventType, PointerMoveEvent, SelectionEvent, SetUserColorEvent, DrawSelectEvent, CancelDrawSelectEvent, CameraEvent, PresencePingEvent, BringToMeEvent, StopFollowingEvent, FollowEvent } from './Events';
|
|
7
7
|
import { PresenceEventMsg, UserJoinMsg } from '../Events/MessageRouter/boardMessageInterface';
|
|
@@ -3,16 +3,18 @@ import type { Board } from "./Board";
|
|
|
3
3
|
import type { ItemValidator } from "./Validators";
|
|
4
4
|
import type { ItemCommandFactory } from "./Events/Command";
|
|
5
5
|
import type { CustomTool } from "./Tools/CustomTool";
|
|
6
|
+
import type { BoardTool } from "./Tools/BoardTool";
|
|
6
7
|
import type { z } from "zod";
|
|
7
8
|
export interface ItemFactory {
|
|
8
9
|
(id: string, data: ItemData, board: Board): Item;
|
|
9
10
|
}
|
|
11
|
+
export type BoardToolConstructor = new (board: Board, ...args: any[]) => BoardTool;
|
|
10
12
|
export type CustomToolConstructor = new (board: Board, name: string, ...args: any[]) => CustomTool;
|
|
11
13
|
export declare const itemFactories: Record<string, ItemFactory>;
|
|
12
14
|
export type ItemFactories = typeof itemFactories;
|
|
13
15
|
export declare const itemValidators: Record<string, ItemValidator>;
|
|
14
16
|
export declare const itemCommandFactories: Record<string, ItemCommandFactory>;
|
|
15
|
-
export declare const registeredTools: Record<string,
|
|
17
|
+
export declare const registeredTools: Record<string, BoardToolConstructor>;
|
|
16
18
|
export declare const itemSchemas: Record<string, z.ZodObject<any>>;
|
|
17
19
|
import type { StickerData } from "./Items/Sticker/StickerOperation";
|
|
18
20
|
import type { AINodeData } from "./Items/AINode";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Board } from "../../Board";
|
|
2
|
-
import { DrawingContext } from "../../
|
|
2
|
+
import { DrawingContext } from "../../Geometry/DrawingContext";
|
|
3
3
|
import { BoardSelection } from "../../Selection";
|
|
4
4
|
import { SelectionItems } from "../SelectionItems";
|
|
5
5
|
import { Tool } from "../../Tools/Tool";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Board } from "../../Board";
|
|
2
2
|
import { ConnectorData, Item, Point } from "../../Items";
|
|
3
|
-
import { DrawingContext } from "../../
|
|
3
|
+
import { DrawingContext } from "../../Geometry/DrawingContext";
|
|
4
4
|
import { BoardSelection } from "../../Selection";
|
|
5
5
|
import "./QuickAddButtons.css";
|
|
6
6
|
export interface QuickAddButtons {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { MoveItem } from "../Geometry/Transformation/TransformationOperations";
|
|
1
2
|
import { Board } from "../Board";
|
|
2
3
|
import type { Item, ItemData } from "../Items/Item";
|
|
3
4
|
import type { BaseItem } from "../Items/BaseItem/BaseItem";
|
|
4
5
|
import type { RichText } from "../Items/RichText/RichText";
|
|
5
|
-
import { Mbr } from "../
|
|
6
|
+
import { Mbr } from "../Geometry/Mbr/Mbr";
|
|
6
7
|
import { AINode } from "../Items/AINode/AINode";
|
|
7
|
-
import { HorisontalAlignment, VerticalAlignment } from "../
|
|
8
|
+
import { HorisontalAlignment, VerticalAlignment } from "../Geometry/Alignment";
|
|
8
9
|
import { ColorValue } from "../..";
|
|
9
10
|
import { ConnectorLineStyle } from "../Items/Connector/ConnectorTypes";
|
|
10
11
|
import { ConnectionLineWidth } from "../Items/Connector/ConnectorTypes";
|
|
11
12
|
import { ConnectorPointerStyle } from "../Items/Connector/Pointers/Pointers";
|
|
12
|
-
import { DrawingContext } from "../
|
|
13
|
+
import { DrawingContext } from "../Geometry/DrawingContext";
|
|
13
14
|
import { FrameType } from "../Items/Frame/Basic";
|
|
14
|
-
import { BorderStyle, BorderWidth } from "../
|
|
15
|
+
import { BorderStyle, BorderWidth } from "../Geometry/Path/Path";
|
|
15
16
|
import { TextStyle } from "../Items/RichText/Editor/TextNode";
|
|
16
17
|
import { ShapeType } from "../Items/Shape/ShapeType";
|
|
17
|
-
import { ApplyMatrixItem } from "../Items/Transformation/TransformationOperations";
|
|
18
18
|
import { Subject } from "../Subject";
|
|
19
19
|
import { Tool } from "../Tools/Tool";
|
|
20
20
|
import { QuickAddButtons } from "./QuickAddButtons";
|
|
@@ -130,6 +130,7 @@ export declare class BoardSelection {
|
|
|
130
130
|
setConnectorLineWidth(width: ConnectionLineWidth): void;
|
|
131
131
|
setConnectorBorderStyle(style: BorderStyle): void;
|
|
132
132
|
setConnectorSmartJump(value: boolean): void;
|
|
133
|
+
createDeck(): void;
|
|
133
134
|
getConnectorLineStyle(): string;
|
|
134
135
|
getTextToEdit(): RichText | undefined;
|
|
135
136
|
getParent(item: Item | string | null | undefined): BaseItem | null;
|
|
@@ -141,10 +142,10 @@ export declare class BoardSelection {
|
|
|
141
142
|
selectParent(): BaseItem | null;
|
|
142
143
|
selectAncestorById(ancestorId: string): BaseItem | null;
|
|
143
144
|
nestSelectedItems(unselectedItem?: Item | null, checkFrames?: boolean): void;
|
|
144
|
-
/** Emits applyMatrix with multiple items */
|
|
145
|
-
transformMany(items: ApplyMatrixItem[], timeStamp?: number): void;
|
|
146
145
|
/** transforms selected items (container children follow via local transform hierarchy) */
|
|
147
|
-
|
|
146
|
+
moveMany(items: MoveItem[], timeStamp?: number): void;
|
|
147
|
+
/** transforms selected items (container children follow via local transform hierarchy) */
|
|
148
|
+
getManyItemsMove(x: number, y: number, unselectedItem?: Item): MoveItem[];
|
|
148
149
|
setStrokeStyle(borderStyle: BorderStyle): void;
|
|
149
150
|
setStrokeColor(borderColor: string): void;
|
|
150
151
|
setStrokeWidth(width: BorderWidth): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Board } from "../Board";
|
|
2
|
-
import { DrawingContext } from "../
|
|
2
|
+
import { DrawingContext } from "../Geometry/DrawingContext";
|
|
3
3
|
import { Tool } from "../Tools/Tool";
|
|
4
4
|
import { ConnectorTransformer } from "./ConnectorTransformer";
|
|
5
5
|
import { SelectionItems } from "./SelectionItems";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Board } from "../../Board";
|
|
2
2
|
import { CanvasDrawer } from "../../drawMbrOnCanvas";
|
|
3
3
|
import { Item, Mbr, Point } from "../../Items";
|
|
4
|
-
import { DrawingContext } from "../../
|
|
5
|
-
import { Geometry } from "../../
|
|
4
|
+
import { DrawingContext } from "../../Geometry/DrawingContext";
|
|
5
|
+
import { Geometry } from "../../Geometry/Geometry";
|
|
6
6
|
import { BoardSelection } from "../../Selection";
|
|
7
7
|
import { SelectionItems } from "../SelectionItems";
|
|
8
8
|
import { Tool } from "../../Tools/Tool";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point } from "../../../
|
|
2
|
-
import { Mbr } from "../../../
|
|
1
|
+
import { Point } from "../../../Geometry/Point/Point";
|
|
2
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
3
3
|
export type ResizeType = "left" | "top" | "right" | "bottom" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
4
4
|
export declare function getResizeType(cursorPoint: Point, cameraScale: number, mbr?: Mbr, anchorDistance?: number): ResizeType | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Matrix } from "../../../
|
|
2
|
-
import { Mbr } from "../../../
|
|
1
|
+
import { Matrix } from "../../../Geometry/Transformation/Matrix";
|
|
2
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
3
3
|
import type { Item } from "../../../Items/Item";
|
|
4
|
-
import {
|
|
4
|
+
import { MoveItem } from "../../../Geometry/Transformation/TransformationOperations";
|
|
5
|
+
import type { RichText } from "../../../Items/RichText/RichText";
|
|
6
|
+
import type { AINode } from "../../../Items/AINode/AINode";
|
|
5
7
|
import { Board } from "../../../Board";
|
|
6
8
|
export declare function handleMultipleItemsResize({ board, resize, itemsToResize, isHeight, isWidth, initMbr, isShiftPressed, }: {
|
|
7
9
|
board: Board;
|
|
@@ -14,4 +16,29 @@ export declare function handleMultipleItemsResize({ board, resize, itemsToResize
|
|
|
14
16
|
isHeight: boolean;
|
|
15
17
|
isShiftPressed: boolean;
|
|
16
18
|
itemsToResize?: Item[];
|
|
17
|
-
}):
|
|
19
|
+
}): MoveItem[];
|
|
20
|
+
export declare function getRichTextMove({ item, isWidth, isHeight, matrix, translateX, translateY, }: {
|
|
21
|
+
isWidth: boolean;
|
|
22
|
+
isHeight: boolean;
|
|
23
|
+
item: RichText;
|
|
24
|
+
matrix: Matrix;
|
|
25
|
+
translateX: number;
|
|
26
|
+
translateY: number;
|
|
27
|
+
}): MoveItem;
|
|
28
|
+
export declare function getAINodeMove({ item, isWidth, isHeight, matrix, translateX, translateY, }: {
|
|
29
|
+
isWidth: boolean;
|
|
30
|
+
isHeight: boolean;
|
|
31
|
+
item: AINode;
|
|
32
|
+
matrix: Matrix;
|
|
33
|
+
translateX: number;
|
|
34
|
+
translateY: number;
|
|
35
|
+
}): MoveItem;
|
|
36
|
+
export declare function getItemMove({ item, isWidth, isHeight, matrix, translateX, translateY, isShiftPressed, }: {
|
|
37
|
+
isWidth: boolean;
|
|
38
|
+
isHeight: boolean;
|
|
39
|
+
item: Item;
|
|
40
|
+
matrix: Matrix;
|
|
41
|
+
translateX: number;
|
|
42
|
+
translateY: number;
|
|
43
|
+
isShiftPressed: boolean;
|
|
44
|
+
}): MoveItem;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MoveItem } from "../../../Geometry/Transformation/TransformationOperations";
|
|
2
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
3
|
+
import type { AINode } from "../../../Items/AINode/AINode";
|
|
2
4
|
import { Board } from "../../../Board";
|
|
3
5
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
4
|
-
import { Point } from "../../../
|
|
6
|
+
import type { Point } from "../../../Geometry/Point/Point";
|
|
5
7
|
import type { Comment } from "../../../Items/Comment/Comment";
|
|
6
|
-
|
|
7
|
-
export declare function transformAINode({ board, mbr, isWidth, resizeType, single, oppositePoint, isHeight, isShiftPressed, followingComments, }: {
|
|
8
|
-
board: Board;
|
|
8
|
+
export declare function transformAINode({ board, mbr, single, oppositePoint, resizeType, isShiftPressed, isHeight, isWidth, followingComments, beginTimeStamp, }: {
|
|
9
9
|
single: AINode;
|
|
10
|
+
board: Board;
|
|
10
11
|
resizeType: ResizeType;
|
|
11
12
|
mbr: Mbr;
|
|
12
13
|
oppositePoint: Point;
|
|
14
|
+
isShiftPressed: boolean;
|
|
13
15
|
isWidth: boolean;
|
|
14
16
|
isHeight: boolean;
|
|
15
|
-
isShiftPressed: boolean;
|
|
16
17
|
followingComments?: Comment[];
|
|
17
|
-
|
|
18
|
+
beginTimeStamp?: number;
|
|
19
|
+
}): {
|
|
20
|
+
resizedMbr: Mbr;
|
|
21
|
+
translation: MoveItem[] | null;
|
|
22
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Point } from "../../../
|
|
1
|
+
import { Point } from "../../../Geometry/Point/Point";
|
|
2
2
|
import { Board } from "../../../Board";
|
|
3
3
|
import { BoardSelection } from "../../Selection";
|
|
4
4
|
import { CanvasDrawer } from "../../../drawMbrOnCanvas";
|
|
5
5
|
import AlignmentHelper from "../../../Tools/RelativeAlignment";
|
|
6
|
-
import { Mbr } from "../../../
|
|
6
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
7
7
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
8
8
|
import { DebounceUpdater } from "../../../Tools/DebounceUpdater/DebounceUpdater";
|
|
9
9
|
import type { Item } from "../../../Items/Item";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Mbr } from "../../../
|
|
1
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
2
2
|
import { Board } from "../../../Board";
|
|
3
3
|
import type { RichText } from "../../../Items/RichText/RichText";
|
|
4
4
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
5
|
-
import { Point } from "../../../
|
|
5
|
+
import { Point } from "../../../Geometry/Point/Point";
|
|
6
6
|
import type { Comment } from "../../../Items/Comment/Comment";
|
|
7
|
-
import { Matrix } from "../../../
|
|
7
|
+
import { Matrix } from "../../../Geometry/Transformation/Matrix";
|
|
8
8
|
import type { AINode } from "../../../Items/AINode/AINode";
|
|
9
|
+
import { MoveItem } from "../../../Geometry/Transformation/TransformationOperations";
|
|
9
10
|
export declare function transformRichText({ board, mbr, isWidth, resizeType, single, oppositePoint, isHeight, isShiftPressed, followingComments, }: {
|
|
10
11
|
board: Board;
|
|
11
12
|
single: RichText;
|
|
@@ -18,6 +19,7 @@ export declare function transformRichText({ board, mbr, isWidth, resizeType, sin
|
|
|
18
19
|
followingComments?: Comment[];
|
|
19
20
|
}): {
|
|
20
21
|
resizedMbr: Mbr;
|
|
22
|
+
translation?: MoveItem[] | null;
|
|
21
23
|
onPointerUpCb?: () => void;
|
|
22
24
|
} | null;
|
|
23
25
|
export declare function getTransformedTextMbr(single: RichText | AINode, resizedMbr: Mbr, isWidth: boolean): Mbr;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Mbr } from "../../../
|
|
1
|
+
import { MoveItem } from "../../../Geometry/Transformation/TransformationOperations";
|
|
2
|
+
import { Mbr } from "../../../Geometry/Mbr/Mbr";
|
|
3
3
|
import type { Sticker } from "../../../Items/Sticker/Sticker";
|
|
4
4
|
import type { Shape } from "../../../Items/Shape/Shape";
|
|
5
5
|
import type { Frame } from "../../../Items/Frame/Frame";
|
|
6
6
|
import { Board } from "../../../Board";
|
|
7
7
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
8
|
-
import type { Point } from "../../../
|
|
8
|
+
import type { Point } from "../../../Geometry/Point/Point";
|
|
9
9
|
import type { Comment } from "../../../Items/Comment/Comment";
|
|
10
10
|
export declare function transformShape({ mbr, board, single, oppositePoint, resizeType, isShiftPressed, isHeight, isWidth, startMbr, followingComments, beginTimeStamp, }: {
|
|
11
11
|
single: Sticker | Shape | Frame;
|
|
@@ -21,5 +21,5 @@ export declare function transformShape({ mbr, board, single, oppositePoint, resi
|
|
|
21
21
|
beginTimeStamp?: number;
|
|
22
22
|
}): {
|
|
23
23
|
resizedMbr: Mbr;
|
|
24
|
-
translation:
|
|
24
|
+
translation: MoveItem[] | null;
|
|
25
25
|
};
|