microboard-temp 0.13.92 → 0.13.93
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 +27156 -27128
- package/dist/cjs/index.js +27156 -27128
- package/dist/cjs/node.js +27156 -27128
- package/dist/esm/browser.js +27159 -27131
- package/dist/esm/index.js +27159 -27131
- package/dist/esm/node.js +27156 -27128
- package/dist/types/Items/AINode/AINode.d.ts +0 -4
- package/dist/types/Items/Audio/Audio.d.ts +0 -6
- package/dist/types/Items/Audio/audioOps.d.ts +5 -0
- package/dist/types/Items/BaseItem/BaseItem.d.ts +1 -1
- package/dist/types/Items/Comment/Comment.d.ts +1 -4
- package/dist/types/Items/Connector/Connector.d.ts +4 -19
- package/dist/types/Items/Connector/connectorOps.d.ts +20 -0
- package/dist/types/Items/Drawing/Drawing.d.ts +1 -9
- package/dist/types/Items/Drawing/DrawingOperation.d.ts +3 -3
- package/dist/types/Items/Drawing/drawingOps.d.ts +14 -0
- package/dist/types/Items/Drawing/index.d.ts +2 -0
- package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +1 -2
- package/dist/types/Items/Examples/CardGame/Card/CardOperation.d.ts +2 -1
- package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +1 -2
- package/dist/types/Items/Examples/CardGame/Deck/DeckOperation.d.ts +2 -1
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +2 -1
- package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +1 -2
- package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +2 -1
- package/dist/types/Items/Examples/Star/Star.d.ts +1 -2
- package/dist/types/Items/Frame/Frame.d.ts +1 -17
- package/dist/types/Items/Group/Group.d.ts +0 -4
- package/dist/types/Items/Image/Image.d.ts +1 -7
- package/dist/types/Items/Image/imageOps.d.ts +5 -0
- package/dist/types/Items/Placeholder/Placeholder.d.ts +0 -2
- package/dist/types/Items/Shape/Shape.d.ts +1 -12
- package/dist/types/Items/Shape/index.d.ts +1 -0
- package/dist/types/Items/Shape/shapeOps.d.ts +19 -0
- package/dist/types/Items/Sticker/Sticker.d.ts +3 -5
- package/dist/types/Items/Sticker/index.d.ts +1 -0
- package/dist/types/Items/Sticker/stickerOps.d.ts +9 -0
- package/dist/types/Items/Transformation/Transformation.d.ts +37 -59
- package/dist/types/Items/Transformation/TransformationCommand.d.ts +2 -1
- package/dist/types/Items/Transformation/TransformationOperations.d.ts +3 -12
- package/dist/types/Items/Transformation/transformOps.d.ts +35 -0
- package/dist/types/Items/Video/Video.d.ts +3 -15
- package/dist/types/Items/Video/videoOps.d.ts +9 -0
- package/dist/types/Items/index.d.ts +4 -0
- package/dist/types/Selection/Selection.d.ts +11 -4
- package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,13 +6,11 @@ import { Mbr } from "../Mbr/Mbr";
|
|
|
6
6
|
import { Path } from "../Path/Path";
|
|
7
7
|
import { Paths } from "../Path/Paths";
|
|
8
8
|
import { Point } from "../Point/Point";
|
|
9
|
-
import { Transformation } from "../Transformation/Transformation";
|
|
10
9
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
11
10
|
import { DrawingContext } from "../DrawingContext";
|
|
12
11
|
import { GeometricNormal } from "../GeometricNormal";
|
|
13
12
|
import { RichText } from "../RichText/RichText";
|
|
14
13
|
import { StickerData, StickerOperation } from "./StickerOperation";
|
|
15
|
-
import { LinkTo } from "../LinkTo/LinkTo";
|
|
16
14
|
import { Board } from "../../Board";
|
|
17
15
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
18
16
|
import { BaseItem } from "../BaseItem/BaseItem";
|
|
@@ -31,8 +29,6 @@ export declare class Sticker extends BaseItem<Sticker> {
|
|
|
31
29
|
backgroundColor: ColorValue;
|
|
32
30
|
parent: string;
|
|
33
31
|
readonly itemType = "Sticker";
|
|
34
|
-
readonly transformation: Transformation;
|
|
35
|
-
readonly linkTo: LinkTo;
|
|
36
32
|
private stickerPath;
|
|
37
33
|
private textContainer;
|
|
38
34
|
text: RichText;
|
|
@@ -48,10 +44,10 @@ export declare class Sticker extends BaseItem<Sticker> {
|
|
|
48
44
|
protected onParentChanged(newParent: string): void;
|
|
49
45
|
getId(): string;
|
|
50
46
|
apply(op: Operation): void;
|
|
47
|
+
private applyStickerOperation;
|
|
51
48
|
getBackgroundColor(): ColorValue;
|
|
52
49
|
getWidth(): number;
|
|
53
50
|
private applyBackgroundColor;
|
|
54
|
-
setBackgroundColor(backgroundColor: ColorValue): void;
|
|
55
51
|
getIntersectionPoints(segment: Line): Point[];
|
|
56
52
|
getMbr(): Mbr;
|
|
57
53
|
getNearestEdgePointTo(point: Point): Point;
|
|
@@ -69,7 +65,9 @@ export declare class Sticker extends BaseItem<Sticker> {
|
|
|
69
65
|
isClosed(): boolean;
|
|
70
66
|
getPath(): Path | Paths;
|
|
71
67
|
getSnapAnchorPoints(): Point[];
|
|
68
|
+
/** Entry point for AddSticker tool during item creation */
|
|
72
69
|
applyDiagonal(line: Line): void;
|
|
70
|
+
/** Entry point for AddSticker tool during item creation */
|
|
73
71
|
applyTransformToCenter(pt: Point, newWidth?: number): void;
|
|
74
72
|
doResize(resizeType: ResizeType, pointer: Point, mbr: Mbr, opposite: Point, startMbr: Mbr, timeStamp: number): {
|
|
75
73
|
matrix: Matrix;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColorValue } from "../../..";
|
|
2
|
+
import { Operation } from "../../Events";
|
|
3
|
+
interface ItemLike {
|
|
4
|
+
getId(): string;
|
|
5
|
+
}
|
|
6
|
+
export declare const stickerOps: {
|
|
7
|
+
setBackgroundColor(items: ItemLike[], backgroundColor: ColorValue): Operation;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Events, Operation } from '../../Events';
|
|
3
|
-
import { Point } from '../Point';
|
|
1
|
+
import type { Events } from '../../Events';
|
|
4
2
|
import { Matrix } from './Matrix';
|
|
5
3
|
import { TransformationData } from './TransformationData';
|
|
6
4
|
import { MatrixData, TransformationOperation } from './TransformationOperations';
|
|
5
|
+
type LocalTransformationOperation = {
|
|
6
|
+
class: 'Transformation';
|
|
7
|
+
method: 'setLocalMatrix';
|
|
8
|
+
item: string[];
|
|
9
|
+
matrix: MatrixData;
|
|
10
|
+
} | {
|
|
11
|
+
class: 'Transformation';
|
|
12
|
+
method: 'setLocal';
|
|
13
|
+
item: string[];
|
|
14
|
+
data: Partial<MatrixData>;
|
|
15
|
+
};
|
|
7
16
|
export declare class Transformation {
|
|
8
17
|
private id;
|
|
9
18
|
private events?;
|
|
10
|
-
readonly subject: SubjectOperation<Transformation, TransformationOperation>;
|
|
11
19
|
private _matrix;
|
|
12
20
|
previous: Matrix;
|
|
13
21
|
private rotate;
|
|
@@ -26,13 +34,8 @@ export declare class Transformation {
|
|
|
26
34
|
y: number;
|
|
27
35
|
};
|
|
28
36
|
getRotation(): number;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* Used by the nesting system to convert between world and local coordinate spaces.
|
|
32
|
-
*/
|
|
33
|
-
setLocalMatrix(matrix: Matrix): void;
|
|
34
|
-
setLocal(x: number, y: number, scaleX?: number, scaleY?: number): void;
|
|
35
|
-
setLocal(data: Partial<MatrixData>): void;
|
|
37
|
+
private applyLocalMatrix;
|
|
38
|
+
private applyLocal;
|
|
36
39
|
serialize(): TransformationData;
|
|
37
40
|
deserialize(data: TransformationData & {
|
|
38
41
|
dimension?: {
|
|
@@ -44,53 +47,28 @@ export declare class Transformation {
|
|
|
44
47
|
getInverse(): Transformation;
|
|
45
48
|
getId(): string;
|
|
46
49
|
setId(id: string): void;
|
|
47
|
-
emit
|
|
50
|
+
private emit;
|
|
48
51
|
private emitMatrix;
|
|
49
|
-
translateTo
|
|
50
|
-
translateBy
|
|
51
|
-
scaleTo
|
|
52
|
-
scaleBy
|
|
53
|
-
scaleByTranslateBy
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
applyTranslateBy(x: number, y: number): void;
|
|
71
|
-
/** @deprecated Only for replaying legacy events. Do not call directly. */
|
|
72
|
-
applyScaleTo(x: number, y: number): void;
|
|
73
|
-
/** @deprecated Only for replaying legacy events. Do not call directly. */
|
|
74
|
-
applyScaleBy(x: number, y: number): void;
|
|
75
|
-
/** @deprecated Only for replaying legacy events. Do not call directly. */
|
|
76
|
-
applyScaleByTranslateBy(scale: {
|
|
77
|
-
x: number;
|
|
78
|
-
y: number;
|
|
79
|
-
}, translate: {
|
|
80
|
-
x: number;
|
|
81
|
-
y: number;
|
|
82
|
-
}): void;
|
|
83
|
-
applyTransformMany(op: TransformationOperation): void;
|
|
84
|
-
applyScaleByRelativeTo(x: number, y: number, point: {
|
|
85
|
-
x: number;
|
|
86
|
-
y: number;
|
|
87
|
-
}): void;
|
|
88
|
-
applyScaleToRelativeTo(x: number, y: number, point: {
|
|
89
|
-
x: number;
|
|
90
|
-
y: number;
|
|
91
|
-
}): void;
|
|
92
|
-
applyRotateTo(degree: number): void;
|
|
93
|
-
applyRotateBy(degree: number): void;
|
|
94
|
-
applyLocked(locked: boolean): void;
|
|
95
|
-
applyUnlocked(locked: boolean): void;
|
|
52
|
+
private translateTo;
|
|
53
|
+
private translateBy;
|
|
54
|
+
private scaleTo;
|
|
55
|
+
private scaleBy;
|
|
56
|
+
private scaleByTranslateBy;
|
|
57
|
+
private rotateTo;
|
|
58
|
+
private rotateBy;
|
|
59
|
+
private scaleToRelativeTo;
|
|
60
|
+
private scaleByRelativeTo;
|
|
61
|
+
private applyMatrix;
|
|
62
|
+
private applyIsLocked;
|
|
63
|
+
apply(op: TransformationOperation | LocalTransformationOperation): void;
|
|
64
|
+
private applyTransformMany;
|
|
65
|
+
private applyTranslateTo;
|
|
66
|
+
private applyTranslateBy;
|
|
67
|
+
private applyScaleTo;
|
|
68
|
+
private applyScaleBy;
|
|
69
|
+
private applyScaleByRelativeTo;
|
|
70
|
+
private applyScaleToRelativeTo;
|
|
71
|
+
private applyRotateTo;
|
|
72
|
+
private applyRotateBy;
|
|
96
73
|
}
|
|
74
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Transformation } from "./Transformation";
|
|
2
2
|
import { TransformationOperation } from "./TransformationOperations";
|
|
3
|
-
import { Command
|
|
3
|
+
import type { Command } from "../../Events/Command";
|
|
4
|
+
import type { Operation } from "../../Events/EventsOperations";
|
|
4
5
|
/** Minimal interface to avoid circular import with BaseItem/Item */
|
|
5
6
|
interface TransformableItem {
|
|
6
7
|
apply(op: Operation): void;
|
|
@@ -3,6 +3,7 @@ interface TransformationBase {
|
|
|
3
3
|
class: "Transformation";
|
|
4
4
|
item: string[];
|
|
5
5
|
timestamp?: number;
|
|
6
|
+
silent?: boolean;
|
|
6
7
|
}
|
|
7
8
|
/** @deprecated Use ApplyMatrixOperation instead. Kept for reading legacy events. */
|
|
8
9
|
export interface TranslateOperation extends TransformationBase {
|
|
@@ -24,17 +25,6 @@ interface RotateOperation extends TransformationBase {
|
|
|
24
25
|
timeStamp?: number;
|
|
25
26
|
}
|
|
26
27
|
/** @deprecated Use ApplyMatrixOperation instead. Kept for reading legacy events. */
|
|
27
|
-
interface ScaleRelativeToOperation extends TransformationBase {
|
|
28
|
-
method: "scaleToRelativeTo" | "scaleByRelativeTo";
|
|
29
|
-
x: number;
|
|
30
|
-
y: number;
|
|
31
|
-
point: {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
};
|
|
35
|
-
timeStamp?: number;
|
|
36
|
-
}
|
|
37
|
-
/** @deprecated Use ApplyMatrixOperation instead. Kept for reading legacy events. */
|
|
38
28
|
export interface ScaleByTranslateByOperation extends TransformationBase {
|
|
39
29
|
method: "scaleByTranslateBy";
|
|
40
30
|
translate: {
|
|
@@ -79,6 +69,7 @@ export interface ApplyMatrixOperation {
|
|
|
79
69
|
method: "applyMatrix";
|
|
80
70
|
items: ApplyMatrixItem[];
|
|
81
71
|
timeStamp?: number;
|
|
72
|
+
silent?: boolean;
|
|
82
73
|
}
|
|
83
74
|
export interface TransformManyItems {
|
|
84
75
|
[key: string]: ApplyMatrixOperation | ScaleByTranslateByOperation | ScaleOperation | TranslateOperation;
|
|
@@ -89,5 +80,5 @@ export interface TransformMany {
|
|
|
89
80
|
items: TransformManyItems;
|
|
90
81
|
timeStamp?: number;
|
|
91
82
|
}
|
|
92
|
-
export type TransformationOperation = ApplyMatrixOperation |
|
|
83
|
+
export type TransformationOperation = ApplyMatrixOperation | RotateOperation | DeserializeOperation | TransformMany | Locked | Unlocked | TranslateOperation | ScaleOperation | ScaleByTranslateByOperation;
|
|
93
84
|
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MatrixData, TransformationOperation } from "./TransformationOperations";
|
|
2
|
+
interface ItemLike {
|
|
3
|
+
getId(): string;
|
|
4
|
+
transformation: {
|
|
5
|
+
getTranslation(): {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
getScale(): {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
type ItemOrId = ItemLike | string;
|
|
16
|
+
export declare const transformOps: {
|
|
17
|
+
applyMatrix(items: readonly ItemOrId[] | ItemOrId, matrix: MatrixData, timeStamp?: number, silent?: boolean): TransformationOperation;
|
|
18
|
+
translateBy(items: readonly ItemOrId[] | ItemOrId, x: number, y: number, timeStamp?: number): TransformationOperation;
|
|
19
|
+
translateTo(item: ItemLike, x: number, y: number, timeStamp?: number): TransformationOperation;
|
|
20
|
+
scaleBy(items: readonly ItemOrId[] | ItemOrId, x: number, y: number, timeStamp?: number): TransformationOperation;
|
|
21
|
+
scaleTo(item: ItemLike, x: number, y: number, timeStamp?: number): TransformationOperation;
|
|
22
|
+
rotateBy(items: readonly ItemOrId[] | ItemOrId, degree: number, timeStamp?: number): TransformationOperation;
|
|
23
|
+
rotateTo(items: readonly ItemOrId[] | ItemOrId, degree: number, timeStamp?: number): TransformationOperation;
|
|
24
|
+
setLocalMatrix(item: ItemOrId, matrix: MatrixData): TransformationOperation;
|
|
25
|
+
scaleByTranslateBy(items: readonly ItemOrId[] | ItemOrId, scale: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
}, translate: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}, timeStamp?: number): TransformationOperation;
|
|
32
|
+
setLocal(item: ItemOrId, data: Partial<MatrixData>): TransformationOperation;
|
|
33
|
+
lock(items: readonly ItemOrId[] | ItemOrId, locked: boolean): TransformationOperation;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -3,10 +3,9 @@ import { Board } from "../../Board";
|
|
|
3
3
|
import { Events, Operation } from "../../Events";
|
|
4
4
|
import { Point } from "../Point/Point";
|
|
5
5
|
import { DrawingContext } from "../DrawingContext";
|
|
6
|
-
import { LinkTo } from "../LinkTo/LinkTo";
|
|
7
6
|
import { Mbr } from "../Mbr";
|
|
8
7
|
import { Path, Paths } from "../Path";
|
|
9
|
-
import { TransformationData
|
|
8
|
+
import { TransformationData } from "../Transformation";
|
|
10
9
|
import { Subject } from "../../Subject";
|
|
11
10
|
import { BaseItem, SerializedItemData } from "../BaseItem/BaseItem";
|
|
12
11
|
export interface VideoItemData {
|
|
@@ -38,8 +37,6 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
38
37
|
private previewUrl;
|
|
39
38
|
private isStorageUrl;
|
|
40
39
|
preview: HTMLImageElement;
|
|
41
|
-
readonly transformation: Transformation;
|
|
42
|
-
readonly linkTo: LinkTo;
|
|
43
40
|
readonly subject: Subject<VideoItem>;
|
|
44
41
|
loadCallbacks: ((video: VideoItem) => void)[];
|
|
45
42
|
beforeLoadCallbacks: ((video: VideoItem) => void)[];
|
|
@@ -53,26 +50,17 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
53
50
|
constructor({ url, videoDimension, previewUrl }: VideoConstructorData, board: Board, events?: Events | undefined, id?: string, extension?: string);
|
|
54
51
|
setCurrentTime(time: number): void;
|
|
55
52
|
getCurrentTime(): number;
|
|
56
|
-
onTransform: () => void;
|
|
57
53
|
doOnceBeforeOnLoad: (callback: (video: VideoItem) => void) => void;
|
|
58
54
|
doOnceOnLoad: (callback: (video: VideoItem) => void) => void;
|
|
59
55
|
getStorageId(): string | undefined;
|
|
60
56
|
getIsStorageUrl(): boolean;
|
|
61
|
-
|
|
62
|
-
previewUrl: string;
|
|
63
|
-
url: string;
|
|
64
|
-
}): void;
|
|
65
|
-
applyVideoData({ previewUrl, url, }: {
|
|
66
|
-
previewUrl?: string;
|
|
67
|
-
url?: string;
|
|
68
|
-
}): void;
|
|
57
|
+
private applyVideoData;
|
|
69
58
|
setIsPlaying(isPlaying: boolean): void;
|
|
70
59
|
setShouldShowControls(shouldShowControls: boolean): void;
|
|
71
60
|
getShouldShowControls(): boolean;
|
|
72
61
|
getPlayBtnMbr(): Mbr;
|
|
73
|
-
setUrl(url: string): void;
|
|
74
62
|
private setPreview;
|
|
75
|
-
setPreviewUrl
|
|
63
|
+
private setPreviewUrl;
|
|
76
64
|
setPreviewImage(image: HTMLImageElement): void;
|
|
77
65
|
getPreviewUrl(): string;
|
|
78
66
|
getUrl(): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VideoItem, Dimension } from "./Video";
|
|
2
|
+
import { VideoOperation } from "./VideoOperation";
|
|
3
|
+
export declare const videoOps: {
|
|
4
|
+
updateVideoData: (items: VideoItem[], data: {
|
|
5
|
+
previewUrl: string;
|
|
6
|
+
url: string;
|
|
7
|
+
videoDimension: Dimension;
|
|
8
|
+
}) => VideoOperation;
|
|
9
|
+
};
|
|
@@ -9,14 +9,18 @@ export { DrawingContext } from "./DrawingContext";
|
|
|
9
9
|
export * from "./Path";
|
|
10
10
|
export * from "./Transformation";
|
|
11
11
|
export * from "./Connector";
|
|
12
|
+
export { connectorOps } from "./Connector/connectorOps";
|
|
12
13
|
export * from "./RichText";
|
|
13
14
|
export * from "./Shape";
|
|
14
15
|
export * from "./Sticker";
|
|
15
16
|
export * from "./Frame";
|
|
16
17
|
export * from "./Video";
|
|
18
|
+
export { videoOps } from "./Video/videoOps";
|
|
17
19
|
export * from "./Audio";
|
|
20
|
+
export { audioOps } from "./Audio/audioOps";
|
|
18
21
|
export * from "./AINode";
|
|
19
22
|
export * from "./Image";
|
|
23
|
+
export { imageOps } from "./Image/imageOps";
|
|
20
24
|
export * from "./Drawing";
|
|
21
25
|
export * from "./Placeholder";
|
|
22
26
|
export * from "./Group";
|
|
@@ -5,12 +5,13 @@ import type { RichText } from "../Items/RichText/RichText";
|
|
|
5
5
|
import { Mbr } from "../Items/Mbr/Mbr";
|
|
6
6
|
import { AINode } from "../Items/AINode/AINode";
|
|
7
7
|
import { HorisontalAlignment, VerticalAlignment } from "../Items/Alignment";
|
|
8
|
-
import { ColorValue } from "
|
|
8
|
+
import { ColorValue } from "../..";
|
|
9
9
|
import { ConnectorLineStyle } from "../Items/Connector/ConnectorTypes";
|
|
10
|
+
import { ConnectionLineWidth } from "../Items/Connector/ConnectorTypes";
|
|
10
11
|
import { ConnectorPointerStyle } from "../Items/Connector/Pointers/Pointers";
|
|
11
12
|
import { DrawingContext } from "../Items/DrawingContext";
|
|
12
13
|
import { FrameType } from "../Items/Frame/Basic";
|
|
13
|
-
import { BorderStyle } from "../Items/Path/Path";
|
|
14
|
+
import { BorderStyle, BorderWidth } from "../Items/Path/Path";
|
|
14
15
|
import { TextStyle } from "../Items/RichText/Editor/TextNode";
|
|
15
16
|
import { ShapeType } from "../Items/Shape/ShapeType";
|
|
16
17
|
import { ApplyMatrixItem } from "../Items/Transformation/TransformationOperations";
|
|
@@ -114,7 +115,7 @@ export declare class BoardSelection {
|
|
|
114
115
|
getFillColor(): ColorValue | string;
|
|
115
116
|
getBorderStyle(): string;
|
|
116
117
|
getStrokeColor(): ColorValue | string;
|
|
117
|
-
getStrokeWidth():
|
|
118
|
+
getStrokeWidth(): BorderWidth;
|
|
118
119
|
getConnectorLineWidth(): number;
|
|
119
120
|
getConnectorLineColor(): ColorValue | string;
|
|
120
121
|
getStartPointerStyle(): ConnectorPointerStyle;
|
|
@@ -123,6 +124,12 @@ export declare class BoardSelection {
|
|
|
123
124
|
setEndPointerStyle(style: ConnectorPointerStyle): void;
|
|
124
125
|
switchPointers(): void;
|
|
125
126
|
setConnectorLineStyle(style: ConnectorLineStyle): void;
|
|
127
|
+
setConnectorStartPointerStyle(style: ConnectorPointerStyle): void;
|
|
128
|
+
setConnectorEndPointerStyle(style: ConnectorPointerStyle): void;
|
|
129
|
+
setConnectorLineColor(color: ColorValue): void;
|
|
130
|
+
setConnectorLineWidth(width: ConnectionLineWidth): void;
|
|
131
|
+
setConnectorBorderStyle(style: BorderStyle): void;
|
|
132
|
+
setConnectorSmartJump(value: boolean): void;
|
|
126
133
|
getConnectorLineStyle(): string;
|
|
127
134
|
getTextToEdit(): RichText | undefined;
|
|
128
135
|
getParent(item: Item | string | null | undefined): BaseItem | null;
|
|
@@ -140,7 +147,7 @@ export declare class BoardSelection {
|
|
|
140
147
|
getManyItemsTranslation(x: number, y: number, unselectedItem?: Item): ApplyMatrixItem[];
|
|
141
148
|
setStrokeStyle(borderStyle: BorderStyle): void;
|
|
142
149
|
setStrokeColor(borderColor: string): void;
|
|
143
|
-
setStrokeWidth(width:
|
|
150
|
+
setStrokeWidth(width: BorderWidth): void;
|
|
144
151
|
setFillColor(backgroundColor: string): void;
|
|
145
152
|
setCanChangeRatio(canChangeRatio: boolean): void;
|
|
146
153
|
getCanChangeRatio(): boolean;
|
|
@@ -2,7 +2,7 @@ import { Mbr } from "../../../Items";
|
|
|
2
2
|
import { Board } from "../../../Board";
|
|
3
3
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
4
4
|
import { Point } from "../../../Items/Point/Point";
|
|
5
|
-
import { Comment } from "../../../Items/Comment/Comment";
|
|
5
|
+
import type { Comment } from "../../../Items/Comment/Comment";
|
|
6
6
|
import { AINode } from "../../../Items/AINode/AINode";
|
|
7
7
|
export declare function transformAINode({ board, mbr, isWidth, resizeType, single, oppositePoint, isHeight, isShiftPressed, followingComments, }: {
|
|
8
8
|
board: Board;
|
|
@@ -3,7 +3,7 @@ import { Board } from "../../../Board";
|
|
|
3
3
|
import { RichText } from "../../../Items/RichText/RichText";
|
|
4
4
|
import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
|
|
5
5
|
import { Point } from "../../../Items/Point/Point";
|
|
6
|
-
import { Comment } from "../../../Items/Comment/Comment";
|
|
6
|
+
import type { Comment } from "../../../Items/Comment/Comment";
|
|
7
7
|
import { Matrix } from "../../../Items/Transformation/Matrix";
|
|
8
8
|
import { AINode } from "../../../Items/AINode/AINode";
|
|
9
9
|
export declare function transformRichText({ board, mbr, isWidth, resizeType, single, oppositePoint, isHeight, isShiftPressed, followingComments, }: {
|