microboard-temp 0.13.41 → 0.13.43
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 +55398 -52148
- package/dist/cjs/index.js +55392 -52147
- package/dist/cjs/node.js +58180 -54930
- package/dist/esm/browser.js +55385 -52198
- package/dist/esm/index.js +55381 -52199
- package/dist/esm/node.js +57588 -54407
- package/dist/types/Board.d.ts +9 -7
- package/dist/types/BoardCommand.d.ts +2 -2
- package/dist/types/Camera/Camera.d.ts +4 -1
- package/dist/types/Events/BaseCommand.d.ts +5 -4
- package/dist/types/Events/Command.d.ts +11 -7
- package/dist/types/Events/CreateCommand.d.ts +5 -0
- package/dist/types/Events/Events.d.ts +2 -1
- package/dist/types/Events/EventsOperations.d.ts +23 -15
- package/dist/types/Events/Log/EventsLog.d.ts +6 -5
- package/dist/types/Events/Log/createEventsList.d.ts +3 -1
- package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +2 -2
- package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +57 -3
- package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +1 -5
- package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +1 -8
- package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +1 -6
- package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +2 -5
- package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +1 -5
- package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +1 -1
- package/dist/types/Events/MessageRouter/index.d.ts +0 -5
- package/dist/types/Events/index.d.ts +2 -1
- package/dist/types/Items/AINode/AINode.d.ts +2 -2
- package/dist/types/Items/Anchor/Anchor.d.ts +2 -1
- package/dist/types/Items/Arc/Arc.d.ts +4 -1
- package/dist/types/Items/Audio/Audio.d.ts +3 -3
- package/dist/types/Items/BaseItem/BaseItem.d.ts +10 -9
- package/dist/types/Items/Comment/Comment.d.ts +1 -1
- package/dist/types/Items/Connector/Connector.d.ts +13 -18
- package/dist/types/Items/Connector/ConnectorCommand.d.ts +2 -2
- package/dist/types/Items/Connector/ConnectorOperations.d.ts +1 -1
- package/dist/types/Items/Connector/ConnectorTypes.d.ts +10 -0
- package/dist/types/Items/Connector/Pointers/Pointers.d.ts +3 -2
- package/dist/types/Items/Connector/Pointers/index.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/getLine.d.ts +1 -1
- package/dist/types/Items/Connector/index.d.ts +3 -2
- package/dist/types/Items/Curve/Curve.d.ts +4 -4
- package/dist/types/Items/Drawing/Drawing.d.ts +7 -6
- package/dist/types/Items/Drawing/DrawingCommand.d.ts +2 -2
- package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +12 -9
- package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +11 -2
- package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +7 -2
- package/dist/types/Items/Examples/Counter/Counter.d.ts +1 -1
- package/dist/types/Items/Examples/Star/Star.d.ts +1 -1
- package/dist/types/Items/Frame/Frame.d.ts +12 -3
- package/dist/types/Items/Frame/FrameData.d.ts +3 -3
- package/dist/types/Items/Geometry.d.ts +1 -1
- package/dist/types/Items/Group/Group.d.ts +9 -5
- package/dist/types/Items/Image/Image.d.ts +5 -4
- package/dist/types/Items/Item.d.ts +15 -15
- package/dist/types/Items/Line/Line.d.ts +1 -1
- package/dist/types/Items/Mbr/Mbr.d.ts +5 -5
- package/dist/types/Items/Placeholder/Placeholder.d.ts +13 -8
- package/dist/types/Items/Point/Point.d.ts +1 -1
- package/dist/types/Items/RegisterItem.d.ts +3 -1
- package/dist/types/Items/RichText/EditorContainer.d.ts +2 -2
- package/dist/types/Items/RichText/RichText.d.ts +12 -6
- package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
- package/dist/types/Items/RichText/RichTextData.d.ts +1 -1
- package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/getAreAllChildrenEmpty.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +2 -2
- package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +2 -1
- package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +3 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +2 -1
- package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +2 -1
- package/dist/types/Items/Shape/Basic/Circle/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Cross/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Star/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +3 -1
- package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +3 -1
- package/dist/types/Items/Shape/Shape.d.ts +8 -2
- package/dist/types/Items/Shape/ShapeCommand.d.ts +2 -2
- package/dist/types/Items/Shape/ShapeOperation.d.ts +1 -1
- package/dist/types/Items/Shape/ShapeType.d.ts +3 -0
- package/dist/types/Items/Shape/index.d.ts +1 -3
- package/dist/types/Items/Sticker/Sticker.d.ts +7 -5
- package/dist/types/Items/Transformation/Matrix.d.ts +1 -1
- package/dist/types/Items/Transformation/TransformationCommand.d.ts +1 -1
- package/dist/types/Items/Video/Video.d.ts +2 -2
- package/dist/types/Items/index.d.ts +2 -3
- package/dist/types/Presence/Events.d.ts +1 -20
- package/dist/types/Presence/Presence.d.ts +2 -1
- package/dist/types/Selection/Selection.d.ts +11 -8
- package/dist/types/Selection/SelectionItems.d.ts +1 -0
- package/dist/types/SessionStorage.d.ts +1 -1
- package/dist/types/Settings.d.ts +17 -12
- package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +12 -8
- package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +12 -7
- package/dist/types/SpatialIndex/SimpleSpatialIndex.d.ts +28 -10
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +89 -10
- package/dist/types/Tools/AddConnector/AddConnector.d.ts +1 -1
- package/dist/types/Tools/CustomTool.d.ts +3 -3
- package/dist/types/Tools/Tools.d.ts +3 -2
- package/dist/types/Validators/Validators.d.ts +4 -3
- package/dist/types/api/MockPath2D.d.ts +3 -3
- package/dist/types/api/Path2DFactory.d.ts +1 -1
- package/dist/types/itemFactories.d.ts +27 -1
- package/dist/types/parserHTML.d.ts +1 -2
- package/dist/types/sha256.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_GatewayParallel: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_GatewayXOR: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_IntermediateEvent: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_IntermediateEventNoneInterrupting: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Point } from '../../../Point/Point';
|
|
3
|
+
import { Paths } from '../../../Path/Paths';
|
|
2
4
|
export declare const BPMN_Participant: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Path } from '../../../Path/Path';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_StartEventNoneInterrupting: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const BPMN_Transaction: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Paths } from '../../../Path/Paths';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const PredefinedProcess: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr/Mbr';
|
|
2
|
+
import { Path } from '../../../Path/Path';
|
|
3
|
+
import { Point } from '../../../Point/Point';
|
|
2
4
|
export declare const ReversedParallelogram: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from "../Mbr/Mbr";
|
|
2
|
+
import { Line } from "../Line/Line";
|
|
3
|
+
import { Point } from "../Point/Point";
|
|
4
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
5
|
+
import { Path } from "../Path/Path";
|
|
6
|
+
import { Paths } from "../Path/Paths";
|
|
7
|
+
import { Matrix } from "../Transformation/Matrix";
|
|
2
8
|
import { ShapeType } from "./index";
|
|
3
9
|
import { BorderStyle, BorderWidth } from "../Path";
|
|
4
10
|
import { RichText } from "../RichText";
|
|
@@ -344,7 +350,7 @@ export declare const Shapes: {
|
|
|
344
350
|
useMbrUnderPointer: boolean;
|
|
345
351
|
};
|
|
346
352
|
};
|
|
347
|
-
export declare class Shape extends BaseItem {
|
|
353
|
+
export declare class Shape extends BaseItem<Shape> {
|
|
348
354
|
shapeType: ShapeType;
|
|
349
355
|
backgroundColor: ColorValue;
|
|
350
356
|
backgroundOpacity: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Shape } from "./Shape";
|
|
2
2
|
import { ShapeOperation } from "./ShapeOperation";
|
|
3
|
-
import { Command } from "../../Events";
|
|
3
|
+
import { Command, Operation } from "../../Events";
|
|
4
4
|
export declare class ShapeCommand implements Command {
|
|
5
5
|
private shape;
|
|
6
6
|
private operation;
|
|
7
7
|
private reverse;
|
|
8
8
|
constructor(shape: Shape[], operation: ShapeOperation);
|
|
9
|
-
merge(op:
|
|
9
|
+
merge(op: Operation): this;
|
|
10
10
|
apply(): void;
|
|
11
11
|
revert(): void;
|
|
12
12
|
getReverse(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BorderStyle } from "../Path";
|
|
2
|
-
import { ShapeType } from "./
|
|
2
|
+
import { ShapeType } from "./ShapeType";
|
|
3
3
|
import { ColorValue } from "../../..";
|
|
4
4
|
export type ShapeOperation = SetBackgroundColor | SetBackgroundOpacity | SetBorderColor | SetBorderOpacity | SetBorderStyle | SetBorderWidth | SetShapeType;
|
|
5
5
|
interface BaseShapeOperation {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type BasicShapeType = "Rectangle" | "Triangle" | "ReversedTriangle" | "Circle" | "ArrowLeft" | "ArrowLeftRight" | "ArrowRight" | "ArrowBlockLeft" | "ArrowBlockRight" | "BracesLeft" | "BracesRight" | "Cloud" | "Cross" | "Cylinder" | "Hexagon" | "Octagon" | "Parallelogram" | "ReversedParallelogram" | "Pentagon" | "PredefinedProcess" | "Rhombus" | "RoundedRectangle" | "SpeachBubble" | "Star" | "Trapezoid";
|
|
2
|
+
export type BPMN_ShapeType = "BPMN_Gateway" | "BPMN_DataStore" | "BPMN_GatewayParallel" | "BPMN_GatewayXOR" | "BPMN_EndEvent" | "BPMN_StartEvent" | "BPMN_StartEventNoneInterrupting" | "BPMN_IntermediateEvent" | "BPMN_IntermediateEventNoneInterrupting" | "BPMN_Group" | "BPMN_Participant" | "BPMN_Task" | "BPMN_Transaction" | "BPMN_EventSubprocess" | "BPMN_Annotation" | "BPMN_DataObject";
|
|
3
|
+
export type ShapeType = BasicShapeType | BPMN_ShapeType;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { BasicShapes } from "./Basic";
|
|
2
|
-
import { BPMN } from "./BPMN";
|
|
3
1
|
export { Shape, Shapes } from "./Shape";
|
|
4
2
|
export { ShapeCommand } from "./ShapeCommand";
|
|
5
3
|
export type { ShapeOperation } from "./ShapeOperation";
|
|
6
4
|
export * from "./ShapeData";
|
|
7
|
-
export type ShapeType
|
|
5
|
+
export type { ShapeType } from "./ShapeType";
|
|
8
6
|
export { DefaultShapeData } from "./ShapeData";
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { Operation } from "../../Events";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
|
-
import { Line } from "../Line";
|
|
3
|
+
import { Line } from "../Line/Line";
|
|
4
4
|
import { Matrix } from "../Transformation/Matrix";
|
|
5
5
|
import { Mbr } from "../Mbr/Mbr";
|
|
6
|
-
import { Path
|
|
6
|
+
import { Path } from "../Path/Path";
|
|
7
|
+
import { Paths } from "../Path/Paths";
|
|
7
8
|
import { Point } from "../Point/Point";
|
|
8
9
|
import { Transformation } from "../Transformation/Transformation";
|
|
9
10
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
10
11
|
import { DrawingContext } from "../DrawingContext";
|
|
11
12
|
import { GeometricNormal } from "../GeometricNormal";
|
|
12
|
-
import { RichText } from "../RichText";
|
|
13
|
+
import { RichText } from "../RichText/RichText";
|
|
13
14
|
import { StickerData, StickerOperation } from "./StickerOperation";
|
|
14
15
|
import { LinkTo } from "../LinkTo/LinkTo";
|
|
15
16
|
import { Board } from "../../Board";
|
|
16
17
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
17
|
-
import { BaseItem
|
|
18
|
+
import { BaseItem } from "../BaseItem/BaseItem";
|
|
19
|
+
import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
18
20
|
import { ColorValue } from "../../..";
|
|
19
21
|
export declare const stickerColors: {
|
|
20
22
|
[color: string]: string;
|
|
@@ -25,7 +27,7 @@ export declare const StickerShape: {
|
|
|
25
27
|
anchorPoints: Point[];
|
|
26
28
|
DEFAULTS: number[];
|
|
27
29
|
};
|
|
28
|
-
export declare class Sticker extends BaseItem {
|
|
30
|
+
export declare class Sticker extends BaseItem<Sticker> {
|
|
29
31
|
backgroundColor: ColorValue;
|
|
30
32
|
parent: string;
|
|
31
33
|
readonly itemType = "Sticker";
|
|
@@ -16,7 +16,7 @@ export declare class TransformationCommand implements Command {
|
|
|
16
16
|
/** Map from Transformation → Item, populated when items are passed to the constructor. */
|
|
17
17
|
private itemsMap;
|
|
18
18
|
constructor(transformation: Transformation[], operation: TransformationOperation, items?: TransformableItem[]);
|
|
19
|
-
merge(op:
|
|
19
|
+
merge(op: Operation): this;
|
|
20
20
|
apply(): void;
|
|
21
21
|
revert(): void;
|
|
22
22
|
getReverse(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
2
2
|
import { Board } from "../../Board";
|
|
3
3
|
import { Events, Operation } from "../../Events";
|
|
4
|
-
import { Point } from "
|
|
4
|
+
import { Point } from "../Point/Point";
|
|
5
5
|
import { DrawingContext } from "../DrawingContext";
|
|
6
6
|
import { LinkTo } from "../LinkTo/LinkTo";
|
|
7
7
|
import { Mbr } from "../Mbr";
|
|
@@ -29,7 +29,7 @@ export interface VideoConstructorData {
|
|
|
29
29
|
previewUrl?: string;
|
|
30
30
|
}
|
|
31
31
|
export declare const createPlaceholderImage: (width: number, height: number) => HTMLImageElement;
|
|
32
|
-
export declare class VideoItem extends BaseItem {
|
|
32
|
+
export declare class VideoItem extends BaseItem<VideoItem> {
|
|
33
33
|
private events?;
|
|
34
34
|
private extension;
|
|
35
35
|
readonly itemType = "Video";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { BaseItem } from "./BaseItem";
|
|
2
|
+
export type { BaseItemData, SerializedItemData } from "./BaseItem";
|
|
1
3
|
export { Point } from "./Point";
|
|
2
4
|
export { Line } from "./Line";
|
|
3
5
|
export { CubicBezier, QuadraticBezier } from "./Curve";
|
|
@@ -15,13 +17,10 @@ export * from "./Frame";
|
|
|
15
17
|
export * from "./Video";
|
|
16
18
|
export * from "./Audio";
|
|
17
19
|
export * from "./AINode";
|
|
18
|
-
export * from "./Point";
|
|
19
20
|
export * from "./Image";
|
|
20
21
|
export * from "./Drawing";
|
|
21
22
|
export * from "./Placeholder";
|
|
22
23
|
export * from "./Group";
|
|
23
|
-
export { BaseItem } from "./BaseItem";
|
|
24
|
-
export type { BaseItemData, SerializedItemData } from "./BaseItem";
|
|
25
24
|
export type { Item, ItemType, ItemData } from "./Item";
|
|
26
25
|
export { registerItem } from "./RegisterItem";
|
|
27
26
|
export { Star } from "./Examples/Star";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type { PresenceUser } from "./Presence";
|
|
2
2
|
export interface PointerMoveEvent {
|
|
3
3
|
method: "PointerMove";
|
|
4
4
|
position: {
|
|
@@ -63,22 +63,3 @@ export interface FollowEvent {
|
|
|
63
63
|
export interface PresenceUserSnapshot {
|
|
64
64
|
}
|
|
65
65
|
export type PresenceEventType = PointerMoveEvent | SelectionEvent | SetUserColorEvent | DrawSelectEvent | CancelDrawSelectEvent | CameraEvent | PresencePingEvent | BringToMeEvent | StopFollowingEvent | FollowEvent;
|
|
66
|
-
export interface UserJoinMsg {
|
|
67
|
-
type: "UserJoin";
|
|
68
|
-
timestamp: number;
|
|
69
|
-
userId: number;
|
|
70
|
-
boardId: string;
|
|
71
|
-
snapshots: Record<string, PresenceUser>;
|
|
72
|
-
}
|
|
73
|
-
export interface PresenceEventMsg<T = PresenceEventType> {
|
|
74
|
-
type: "PresenceEvent";
|
|
75
|
-
boardId: string;
|
|
76
|
-
event: T;
|
|
77
|
-
userId: string;
|
|
78
|
-
softId: string | null;
|
|
79
|
-
hardId: string | null;
|
|
80
|
-
messageId: string;
|
|
81
|
-
nickname: string;
|
|
82
|
-
color: string | null;
|
|
83
|
-
avatar: string | null;
|
|
84
|
-
}
|
|
@@ -3,7 +3,8 @@ import { Events } from '../Events';
|
|
|
3
3
|
import { Item } from '../Items';
|
|
4
4
|
import { DrawingContext } from '../Items/DrawingContext';
|
|
5
5
|
import { Subject } from '../Subject';
|
|
6
|
-
import { PresenceEventType,
|
|
6
|
+
import { PresenceEventType, PointerMoveEvent, SelectionEvent, SetUserColorEvent, DrawSelectEvent, CancelDrawSelectEvent, CameraEvent, PresencePingEvent, BringToMeEvent, StopFollowingEvent, FollowEvent } from './Events';
|
|
7
|
+
import { PresenceEventMsg, UserJoinMsg } from '../Events/MessageRouter/boardMessageInterface';
|
|
7
8
|
export declare const PRESENCE_CURSOR_THROTTLE: number;
|
|
8
9
|
export declare const CURSORS_ANIMATION_DURATION: number;
|
|
9
10
|
export declare const PRESENCE_CLEANUP_USER_TIMER = 180000;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { Board } from "../Board";
|
|
2
|
-
import { Item,
|
|
3
|
-
import {
|
|
2
|
+
import type { Item, ItemData } from "../Items/Item";
|
|
3
|
+
import type { BaseItem } from "../Items/BaseItem/BaseItem";
|
|
4
|
+
import type { RichText } from "../Items/RichText/RichText";
|
|
5
|
+
import { Mbr } from "../Items/Mbr/Mbr";
|
|
6
|
+
import { AINode } from "../Items/AINode/AINode";
|
|
4
7
|
import { HorisontalAlignment, VerticalAlignment } from "../Items/Alignment";
|
|
5
|
-
import { ColorValue } from "
|
|
6
|
-
import { ConnectorLineStyle } from "../Items/Connector";
|
|
8
|
+
import { ColorValue } from "../Color/ColorValue";
|
|
9
|
+
import { ConnectorLineStyle } from "../Items/Connector/ConnectorTypes";
|
|
7
10
|
import { ConnectorPointerStyle } from "../Items/Connector/Pointers/Pointers";
|
|
8
11
|
import { DrawingContext } from "../Items/DrawingContext";
|
|
9
12
|
import { FrameType } from "../Items/Frame/Basic";
|
|
10
|
-
import { BorderStyle } from "../Items/Path";
|
|
11
|
-
import { TextStyle } from "../Items/RichText";
|
|
12
|
-
import { ShapeType } from "../Items/Shape";
|
|
13
|
+
import { BorderStyle } from "../Items/Path/Path";
|
|
14
|
+
import { TextStyle } from "../Items/RichText/Editor/TextNode";
|
|
15
|
+
import { ShapeType } from "../Items/Shape/ShapeType";
|
|
13
16
|
import { ApplyMatrixItem } from "../Items/Transformation/TransformationOperations";
|
|
14
17
|
import { Subject } from "../Subject";
|
|
15
18
|
import { Tool } from "../Tools/Tool";
|
|
@@ -59,7 +62,7 @@ export declare class BoardSelection {
|
|
|
59
62
|
private emitApplied;
|
|
60
63
|
private emitCommand;
|
|
61
64
|
updateQueue: Set<() => void>;
|
|
62
|
-
decorateObserverToScheduleUpdate<T extends (...args:
|
|
65
|
+
decorateObserverToScheduleUpdate<T extends (...args: never[]) => void>(observer: T): T;
|
|
63
66
|
updateScheduledObservers: () => void;
|
|
64
67
|
private itemObserver;
|
|
65
68
|
decoratedItemObserver: (item: Item) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ShapeData } from './Items';
|
|
2
2
|
import { ConnectorLineStyle } from './Items/Connector';
|
|
3
|
-
import { ConnectionLineWidth } from './Items/Connector/
|
|
3
|
+
import { ConnectionLineWidth } from './Items/Connector/ConnectorTypes';
|
|
4
4
|
import { ConnectorEdge } from './Items/Connector/Pointers';
|
|
5
5
|
import { ConnectorPointerStyle } from './Items/Connector/Pointers/Pointers';
|
|
6
6
|
import { BorderStyle } from './Items/Path';
|