microboard-temp 0.13.92 → 0.13.94
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 +55356 -55286
- package/dist/cjs/index.js +55356 -55286
- package/dist/cjs/node.js +57671 -57601
- package/dist/esm/browser.js +55115 -55046
- package/dist/esm/index.js +55115 -55046
- package/dist/esm/node.js +57596 -57527
- package/dist/types/HTMLRender/HTMLRender.d.ts +5 -0
- package/dist/types/Items/AINode/AINode.d.ts +0 -6
- package/dist/types/Items/Audio/Audio.d.ts +0 -8
- package/dist/types/Items/Audio/audioOps.d.ts +5 -0
- package/dist/types/Items/BaseItem/BaseItem.d.ts +1 -3
- package/dist/types/Items/Comment/Comment.d.ts +1 -6
- package/dist/types/Items/Connector/Connector.d.ts +4 -22
- package/dist/types/Items/Connector/connectorOps.d.ts +20 -0
- package/dist/types/Items/Drawing/Drawing.d.ts +1 -11
- 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 -4
- package/dist/types/Items/Examples/CardGame/Card/CardOperation.d.ts +2 -1
- package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +1 -4
- package/dist/types/Items/Examples/CardGame/Deck/DeckOperation.d.ts +2 -1
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +2 -3
- package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +1 -4
- package/dist/types/Items/Examples/Counter/Counter.d.ts +0 -2
- package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +2 -1
- package/dist/types/Items/Examples/Star/Star.d.ts +1 -4
- package/dist/types/Items/Frame/Frame.d.ts +1 -19
- package/dist/types/Items/Group/Group.d.ts +0 -6
- package/dist/types/Items/Image/Image.d.ts +1 -9
- package/dist/types/Items/Image/imageOps.d.ts +5 -0
- package/dist/types/Items/LinkTo/LinkTo.d.ts +0 -2
- package/dist/types/Items/Path/Path.d.ts +0 -2
- package/dist/types/Items/Path/Paths.d.ts +0 -2
- package/dist/types/Items/Placeholder/Placeholder.d.ts +0 -4
- package/dist/types/Items/Renderers/AINodeHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/AudioHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/CommentHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/ConnectorHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/DrawingHTMLRenderer.d.ts +7 -0
- package/dist/types/Items/Renderers/FrameHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/GroupHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/HTMLItemRenderer.d.ts +7 -0
- package/dist/types/Items/Renderers/ImageHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/PlaceholderHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/RichTextHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/ShapeHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/StickerHTMLRenderer.d.ts +6 -0
- package/dist/types/Items/Renderers/VideoHTMLRenderer.d.ts +7 -0
- package/dist/types/Items/Renderers/index.d.ts +13 -0
- package/dist/types/Items/RichText/RichText.d.ts +0 -2
- package/dist/types/Items/Shape/Shape.d.ts +1 -14
- package/dist/types/Items/Shape/Shapes.d.ts +330 -0
- 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 -7
- 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 -17
- 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
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
2
1
|
import { Board } from "../../Board";
|
|
3
2
|
import { Events, Operation } from "../../Events";
|
|
4
3
|
import { Point } from "../Point/Point";
|
|
5
4
|
import { DrawingContext } from "../DrawingContext";
|
|
6
|
-
import { LinkTo } from "../LinkTo/LinkTo";
|
|
7
5
|
import { Mbr } from "../Mbr";
|
|
8
6
|
import { Path, Paths } from "../Path";
|
|
9
|
-
import { TransformationData
|
|
7
|
+
import { TransformationData } from "../Transformation";
|
|
10
8
|
import { Subject } from "../../Subject";
|
|
11
9
|
import { BaseItem, SerializedItemData } from "../BaseItem/BaseItem";
|
|
12
10
|
export interface VideoItemData {
|
|
@@ -38,8 +36,6 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
38
36
|
private previewUrl;
|
|
39
37
|
private isStorageUrl;
|
|
40
38
|
preview: HTMLImageElement;
|
|
41
|
-
readonly transformation: Transformation;
|
|
42
|
-
readonly linkTo: LinkTo;
|
|
43
39
|
readonly subject: Subject<VideoItem>;
|
|
44
40
|
loadCallbacks: ((video: VideoItem) => void)[];
|
|
45
41
|
beforeLoadCallbacks: ((video: VideoItem) => void)[];
|
|
@@ -53,26 +49,17 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
53
49
|
constructor({ url, videoDimension, previewUrl }: VideoConstructorData, board: Board, events?: Events | undefined, id?: string, extension?: string);
|
|
54
50
|
setCurrentTime(time: number): void;
|
|
55
51
|
getCurrentTime(): number;
|
|
56
|
-
onTransform: () => void;
|
|
57
52
|
doOnceBeforeOnLoad: (callback: (video: VideoItem) => void) => void;
|
|
58
53
|
doOnceOnLoad: (callback: (video: VideoItem) => void) => void;
|
|
59
54
|
getStorageId(): string | undefined;
|
|
60
55
|
getIsStorageUrl(): boolean;
|
|
61
|
-
|
|
62
|
-
previewUrl: string;
|
|
63
|
-
url: string;
|
|
64
|
-
}): void;
|
|
65
|
-
applyVideoData({ previewUrl, url, }: {
|
|
66
|
-
previewUrl?: string;
|
|
67
|
-
url?: string;
|
|
68
|
-
}): void;
|
|
56
|
+
private applyVideoData;
|
|
69
57
|
setIsPlaying(isPlaying: boolean): void;
|
|
70
58
|
setShouldShowControls(shouldShowControls: boolean): void;
|
|
71
59
|
getShouldShowControls(): boolean;
|
|
72
60
|
getPlayBtnMbr(): Mbr;
|
|
73
|
-
setUrl(url: string): void;
|
|
74
61
|
private setPreview;
|
|
75
|
-
setPreviewUrl
|
|
62
|
+
private setPreviewUrl;
|
|
76
63
|
setPreviewImage(image: HTMLImageElement): void;
|
|
77
64
|
getPreviewUrl(): string;
|
|
78
65
|
getUrl(): string;
|
|
@@ -80,7 +67,6 @@ export declare class VideoItem extends BaseItem<VideoItem> {
|
|
|
80
67
|
onError: () => void;
|
|
81
68
|
updateMbr(): void;
|
|
82
69
|
render(context: DrawingContext): void;
|
|
83
|
-
renderHTML(documentFactory: DocumentFactory): HTMLElement;
|
|
84
70
|
serialize(): SerializedItemData<VideoItemData>;
|
|
85
71
|
deserialize(data: SerializedItemData<VideoItemData> | VideoItemData): this;
|
|
86
72
|
apply(op: Operation): void;
|
|
@@ -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, }: {
|