microboard-temp 0.13.41 → 0.13.42
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 +56773 -53598
- package/dist/cjs/index.js +56767 -53597
- package/dist/cjs/node.js +56335 -53160
- package/dist/esm/browser.js +54045 -50933
- package/dist/esm/index.js +54041 -50934
- package/dist/esm/node.js +57517 -54411
- 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 +4 -3
- package/dist/types/Events/Log/createEventsList.d.ts +3 -1
- package/dist/types/Events/index.d.ts +2 -1
- package/dist/types/Items/AINode/AINode.d.ts +1 -1
- 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 +2 -2
- package/dist/types/Items/BaseItem/BaseItem.d.ts +8 -7
- package/dist/types/Items/Connector/Connector.d.ts +12 -17
- 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 +6 -5
- package/dist/types/Items/Drawing/DrawingCommand.d.ts +2 -2
- package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +11 -8
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +10 -1
- package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +6 -1
- package/dist/types/Items/Frame/Frame.d.ts +11 -2
- 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 +7 -3
- package/dist/types/Items/Image/Image.d.ts +4 -3
- 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 +12 -7
- package/dist/types/Items/Point/Point.d.ts +1 -1
- package/dist/types/Items/RegisterItem.d.ts +4 -2
- package/dist/types/Items/RichText/EditorContainer.d.ts +2 -2
- package/dist/types/Items/RichText/RichText.d.ts +11 -5
- package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
- 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 +7 -1
- 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 +6 -4
- 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 +1 -1
- package/dist/types/Items/index.d.ts +2 -3
- package/dist/types/Selection/Selection.d.ts +10 -7
- package/dist/types/SessionStorage.d.ts +1 -1
- package/dist/types/Settings.d.ts +14 -9
- package/dist/types/SpatialIndex/SimpleSpatialIndex.d.ts +5 -3
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +8 -1
- package/dist/types/Tools/AddConnector/AddConnector.d.ts +1 -1
- 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
|
@@ -44,7 +44,7 @@ export interface FrameData {
|
|
|
44
44
|
borderOpacity: number;
|
|
45
45
|
borderStyle: BorderStyle;
|
|
46
46
|
borderWidth: BorderWidth;
|
|
47
|
-
|
|
47
|
+
childIds: string[];
|
|
48
48
|
transformation?: TransformationData;
|
|
49
49
|
text?: RichTextData;
|
|
50
50
|
canChangeRatio?: boolean;
|
|
@@ -60,11 +60,11 @@ export declare class DefaultFrameData implements FrameData {
|
|
|
60
60
|
borderStyle: BorderStyle;
|
|
61
61
|
borderWidth: BorderWidth;
|
|
62
62
|
transformation: DefaultTransformationData;
|
|
63
|
-
|
|
63
|
+
childIds: string[];
|
|
64
64
|
text: RichTextData;
|
|
65
65
|
canChangeRatio: boolean;
|
|
66
66
|
linkTo?: string | undefined;
|
|
67
67
|
readonly itemType = "Frame";
|
|
68
68
|
[key: string]: unknown;
|
|
69
|
-
constructor(shapeType?: FrameType, backgroundColor?: ColorValue, backgroundOpacity?: number, borderColor?: ColorValue, borderOpacity?: number, borderStyle?: BorderStyle, borderWidth?: BorderWidth, transformation?: DefaultTransformationData,
|
|
69
|
+
constructor(shapeType?: FrameType, backgroundColor?: ColorValue, backgroundOpacity?: number, borderColor?: ColorValue, borderOpacity?: number, borderStyle?: BorderStyle, borderWidth?: BorderWidth, transformation?: DefaultTransformationData, childIds?: string[], text?: RichTextData, canChangeRatio?: boolean, linkTo?: string | undefined);
|
|
70
70
|
}
|
|
@@ -3,7 +3,7 @@ import { Point } from "./Point";
|
|
|
3
3
|
import { Line } from "./Line";
|
|
4
4
|
import { DrawingContext } from "./DrawingContext";
|
|
5
5
|
import { GeometricNormal } from "./GeometricNormal";
|
|
6
|
-
import { RichText } from "./RichText";
|
|
6
|
+
import type { RichText } from "./RichText";
|
|
7
7
|
/**
|
|
8
8
|
* Methods that define the geometry of an item.
|
|
9
9
|
*/
|
|
@@ -3,14 +3,18 @@ import { DrawingContext } from "../DrawingContext";
|
|
|
3
3
|
import { TransformationData } from "../Transformation/TransformationData";
|
|
4
4
|
import { GroupOperation } from "./GroupOperation";
|
|
5
5
|
import { Events, Operation } from "../../Events";
|
|
6
|
-
import { Mbr
|
|
6
|
+
import { Mbr } from "../Mbr/Mbr";
|
|
7
|
+
import { Line } from "../Line/Line";
|
|
8
|
+
import { Point } from "../Point/Point";
|
|
9
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
10
|
+
import type { Item } from "../Item";
|
|
7
11
|
import { Board } from "../../Board";
|
|
8
12
|
import { LinkTo } from "../LinkTo/LinkTo";
|
|
9
13
|
import { BaseItem, SerializedItemData } from "../BaseItem/BaseItem";
|
|
10
14
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
11
15
|
export interface GroupData {
|
|
12
16
|
readonly itemType: "Group";
|
|
13
|
-
|
|
17
|
+
childIds: string[];
|
|
14
18
|
transformation: TransformationData;
|
|
15
19
|
isLockedGroup?: boolean;
|
|
16
20
|
[key: string]: any;
|
|
@@ -24,7 +28,7 @@ export declare class Group extends BaseItem {
|
|
|
24
28
|
readonly subject: Subject<Group>;
|
|
25
29
|
transformationRenderBlock?: boolean;
|
|
26
30
|
isLockedGroup: boolean;
|
|
27
|
-
constructor(board: Board, events?: Events | undefined,
|
|
31
|
+
constructor(board: Board, events?: Events | undefined, childIds?: string[], id?: string);
|
|
28
32
|
isClosed(): boolean;
|
|
29
33
|
getRichText(): null;
|
|
30
34
|
apply(op: Operation): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Events, Operation } from "../../Events";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
3
|
import { DrawingContext } from "../DrawingContext";
|
|
4
|
-
import { Path
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Path } from "../Path/Path";
|
|
5
|
+
import { Paths } from "../Path/Paths";
|
|
6
|
+
import { Point } from "../Point/Point";
|
|
7
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
7
8
|
import { TransformationData } from "../Transformation/TransformationData";
|
|
8
9
|
import { Board } from "../../Board";
|
|
9
10
|
import { LinkTo } from "../LinkTo/LinkTo";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AINode, AINodeData } from "./AINode";
|
|
2
|
-
import { AudioItem, AudioItemData } from "./Audio";
|
|
3
|
-
import { Comment, CommentData } from "./Comment";
|
|
4
|
-
import { Connector, ConnectorData } from "./Connector";
|
|
5
|
-
import { Drawing, DrawingData } from "./Drawing";
|
|
6
|
-
import { Frame, FrameData } from "./Frame";
|
|
7
|
-
import { Group, GroupData } from "./Group";
|
|
8
|
-
import { ImageItem, ImageItemData } from "./Image";
|
|
9
|
-
import { Placeholder, PlaceholderData } from "./Placeholder";
|
|
10
|
-
import { RichText, RichTextData } from "./RichText";
|
|
11
|
-
import { Shape, ShapeData } from "./Shape";
|
|
12
|
-
import { Sticker } from "./Sticker";
|
|
13
|
-
import { StickerData } from "./Sticker/StickerOperation";
|
|
14
|
-
import { VideoItem, VideoItemData } from "./Video";
|
|
15
|
-
import { BaseItem, SerializedItemData } from "./BaseItem/BaseItem";
|
|
1
|
+
import type { AINode, AINodeData } from "./AINode";
|
|
2
|
+
import type { AudioItem, AudioItemData } from "./Audio";
|
|
3
|
+
import type { Comment, CommentData } from "./Comment";
|
|
4
|
+
import type { Connector, ConnectorData } from "./Connector";
|
|
5
|
+
import type { Drawing, DrawingData } from "./Drawing";
|
|
6
|
+
import type { Frame, FrameData } from "./Frame";
|
|
7
|
+
import type { Group, GroupData } from "./Group";
|
|
8
|
+
import type { ImageItem, ImageItemData } from "./Image";
|
|
9
|
+
import type { Placeholder, PlaceholderData } from "./Placeholder";
|
|
10
|
+
import type { RichText, RichTextData } from "./RichText";
|
|
11
|
+
import type { Shape, ShapeData } from "./Shape";
|
|
12
|
+
import type { Sticker } from "./Sticker";
|
|
13
|
+
import type { StickerData } from "./Sticker/StickerOperation";
|
|
14
|
+
import type { VideoItem, VideoItemData } from "./Video";
|
|
15
|
+
import type { BaseItem, SerializedItemData } from "./BaseItem/BaseItem";
|
|
16
16
|
export type Item = RichText | Shape | Connector | ImageItem | Drawing | Sticker | Frame | Placeholder | Comment | Group | AINode | VideoItem | AudioItem | BaseItem;
|
|
17
17
|
export type ItemType = Item["itemType"];
|
|
18
18
|
export type ItemData = ShapeData | RichTextData | ConnectorData | ImageItemData | DrawingData | StickerData | FrameData | PlaceholderData | CommentData | GroupData | AINodeData | VideoItemData | AudioItemData | SerializedItemData;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Point } from "../Point";
|
|
2
|
-
import { Line } from "../Line";
|
|
3
|
-
import { Matrix } from "../Transformation";
|
|
1
|
+
import { Point } from "../Point/Point";
|
|
2
|
+
import { Line } from "../Line/Line";
|
|
3
|
+
import { Matrix } from "../Transformation/Matrix";
|
|
4
4
|
import { VerticalAlignment } from "../Alignment";
|
|
5
5
|
import { DrawingContext } from "../DrawingContext";
|
|
6
6
|
import { Geometry } from "../Geometry";
|
|
7
7
|
import { GeometricNormal } from "../GeometricNormal";
|
|
8
|
-
import { BorderStyle } from "../Path";
|
|
9
|
-
import { RichText } from "
|
|
8
|
+
import type { BorderStyle } from "../Path/Path";
|
|
9
|
+
import type { RichText } from "../RichText/RichText";
|
|
10
10
|
/**
|
|
11
11
|
* The minimum bounding rectangle (MBR), also known as bounding box (BBOX) or envelope.
|
|
12
12
|
* https://en.wikipedia.org/wiki/Minimum_bounding_rectangle
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { Events, Operation } from "../../Events";
|
|
2
2
|
import { DrawingContext } from "../DrawingContext";
|
|
3
|
+
import { ShapeType } from "../Shape/index";
|
|
3
4
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
4
5
|
import { Subject } from "../../Subject";
|
|
5
6
|
import { GeometricNormal } from "../GeometricNormal";
|
|
6
|
-
import { Line } from "../Line";
|
|
7
|
-
import { Mbr } from "../Mbr";
|
|
8
|
-
import { Path
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { Line } from "../Line/Line";
|
|
8
|
+
import { Mbr } from "../Mbr/Mbr";
|
|
9
|
+
import { Path } from "../Path/Path";
|
|
10
|
+
import { Paths } from "../Path/Paths";
|
|
11
|
+
import { Point } from "../Point/Point";
|
|
12
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
13
|
+
import { Matrix } from "../Transformation/Matrix";
|
|
14
|
+
import type { TransformationData } from "../Transformation/TransformationData";
|
|
11
15
|
import { PlaceholderOperation } from "./PlaceholderOperation";
|
|
12
|
-
import { BaseItem
|
|
16
|
+
import { BaseItem } from "../BaseItem/BaseItem";
|
|
17
|
+
import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
13
18
|
import { Board } from "../../Board";
|
|
14
19
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
15
20
|
export interface PlaceholderData {
|
|
@@ -26,7 +31,7 @@ export declare class Placeholder extends BaseItem {
|
|
|
26
31
|
backgroundColor: string;
|
|
27
32
|
private icon;
|
|
28
33
|
readonly itemType = "Placeholder";
|
|
29
|
-
shapeType:
|
|
34
|
+
shapeType: ShapeType;
|
|
30
35
|
parent: string;
|
|
31
36
|
readonly transformation: Transformation;
|
|
32
37
|
private path;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Board } from "../Board";
|
|
1
2
|
import { CustomTool } from "../Tools/CustomTool";
|
|
2
|
-
import { BaseItemData } from "./BaseItem/BaseItem";
|
|
3
|
+
import { BaseItem, BaseItemData } from "./BaseItem/BaseItem";
|
|
4
|
+
type ItemConstructor = new (board: Board, id: string, defaultData: BaseItemData) => BaseItem;
|
|
3
5
|
type RegisterItemArgs = {
|
|
4
|
-
item:
|
|
6
|
+
item: ItemConstructor;
|
|
5
7
|
defaultData: BaseItemData;
|
|
6
8
|
toolData?: {
|
|
7
9
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultTextStyles } from "../../Settings";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
|
-
import { BaseSelection, Descendant, Operation as SlateOp, Operation } from "slate";
|
|
3
|
+
import { BaseSelection, Descendant, Editor, Operation as SlateOp, Operation } from "slate";
|
|
4
4
|
import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
|
|
5
5
|
import { BlockNode, ListType, ParagraphNode } from "./Editor/BlockNode";
|
|
6
6
|
import { TextNode, TextStyle } from "./Editor/TextNode";
|
|
@@ -23,7 +23,7 @@ export declare class EditorContainer {
|
|
|
23
23
|
private calcAutoSize;
|
|
24
24
|
private applyAutoSizeScale;
|
|
25
25
|
private updateElement;
|
|
26
|
-
readonly editor: any;
|
|
26
|
+
readonly editor: Editor & any;
|
|
27
27
|
maxWidth: number | undefined;
|
|
28
28
|
textScale: number;
|
|
29
29
|
verticalAlignment: VerticalAlignment;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { Board } from "../../Board";
|
|
1
|
+
import type { Board } from "../../Board";
|
|
2
2
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
3
3
|
import { Camera } from "../../Camera";
|
|
4
|
-
import { Operation } from "../../Events";
|
|
5
|
-
import { SelectionContext } from "../../Selection";
|
|
4
|
+
import type { Operation } from "../../Events";
|
|
5
|
+
import type { SelectionContext } from "../../Selection";
|
|
6
6
|
import { DefaultTextStyles } from "../../Settings";
|
|
7
7
|
import { Subject } from "../../Subject";
|
|
8
8
|
import { BaseRange, BaseSelection, Descendant, Operation as SlateOp } from "slate";
|
|
9
|
-
import { ItemType
|
|
9
|
+
import { ItemType } from "../Item";
|
|
10
|
+
import { Matrix } from "../Transformation/Matrix";
|
|
11
|
+
import { Mbr } from "../Mbr/Mbr";
|
|
12
|
+
import { Point } from "../Point/Point";
|
|
13
|
+
import { RichTextData } from "./RichTextData";
|
|
14
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
10
15
|
import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
|
|
11
16
|
import { DrawingContext } from "../DrawingContext";
|
|
12
17
|
import { LinkTo } from "../LinkTo/LinkTo";
|
|
@@ -15,7 +20,8 @@ import { BlockNode, BlockType } from "./Editor/BlockNode";
|
|
|
15
20
|
import { TextStyle } from "./Editor/TextNode";
|
|
16
21
|
import { EditorContainer } from "./EditorContainer";
|
|
17
22
|
import { RichTextOperation } from "./RichTextOperations";
|
|
18
|
-
import { BaseItem
|
|
23
|
+
import { BaseItem } from "../BaseItem/BaseItem";
|
|
24
|
+
import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
19
25
|
export declare function isEditInProcess(): boolean;
|
|
20
26
|
export declare function toggleEdit(value: boolean): void;
|
|
21
27
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Board } from '../../Board';
|
|
2
2
|
import { RichText } from './RichText';
|
|
3
3
|
import { GroupEdit, RichTextOperation } from './RichTextOperations';
|
|
4
|
-
import { Command } from '../../Events';
|
|
4
|
+
import { Command, Operation } from '../../Events';
|
|
5
5
|
export declare class RichTextCommand implements Command {
|
|
6
6
|
private board;
|
|
7
7
|
private richText;
|
|
@@ -14,7 +14,7 @@ export declare class RichTextCommand implements Command {
|
|
|
14
14
|
item: string;
|
|
15
15
|
operation: RichTextOperation;
|
|
16
16
|
}[];
|
|
17
|
-
merge(op:
|
|
17
|
+
merge(op: Operation): this;
|
|
18
18
|
}
|
|
19
19
|
type TextEdits = {
|
|
20
20
|
item: RichText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSelection, Operation } from 'slate';
|
|
2
2
|
import { HorisontalAlignment, VerticalAlignment } from '../Alignment';
|
|
3
3
|
import { TextStyle } from './Editor/TextNode';
|
|
4
|
-
import { SelectionContext } from '../../Selection/Selection';
|
|
4
|
+
import type { SelectionContext } from '../../Selection/Selection';
|
|
5
5
|
import { ColorValue } from '../../..';
|
|
6
6
|
interface RichTextBaseOp {
|
|
7
7
|
class: 'RichText';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BulletedListNode, NumberedListNode } from '../../../RichText/Editor/BlockNode';
|
|
2
2
|
import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
|
|
3
|
-
export declare function getBlockParentList(editor: CustomEditor, blockPath: number[]): [node:
|
|
3
|
+
export declare function getBlockParentList(editor: CustomEditor, blockPath: number[]): [node: BulletedListNode | NumberedListNode, path: number[]] | null;
|
|
@@ -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_DataObject: {
|
|
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_EventSubprocess: {
|
|
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_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;
|