microboard-temp 0.5.142 → 0.5.144
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 +137 -338
- package/dist/cjs/index.js +137 -338
- package/dist/cjs/node.js +137 -338
- package/dist/esm/browser.js +137 -338
- package/dist/esm/index.js +137 -338
- package/dist/esm/node.js +137 -338
- package/dist/types/Items/Transformation/TransformationOperations.d.ts +7 -2
- package/dist/types/Selection/Selection.d.ts +4 -4
- package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +2 -2
- package/package.json +1 -1
|
@@ -66,9 +66,14 @@ export interface MatrixData {
|
|
|
66
66
|
shearX: number;
|
|
67
67
|
shearY: number;
|
|
68
68
|
}
|
|
69
|
-
export interface
|
|
70
|
-
|
|
69
|
+
export interface ApplyMatrixItem {
|
|
70
|
+
id: string;
|
|
71
71
|
matrix: MatrixData;
|
|
72
|
+
}
|
|
73
|
+
export interface ApplyMatrixOperation {
|
|
74
|
+
class: "Transformation";
|
|
75
|
+
method: "applyMatrix";
|
|
76
|
+
items: ApplyMatrixItem[];
|
|
72
77
|
timeStamp?: number;
|
|
73
78
|
}
|
|
74
79
|
export interface TransformManyItems {
|
|
@@ -9,7 +9,7 @@ import { FrameType } from "../Items/Frame/Basic";
|
|
|
9
9
|
import { BorderStyle } from "../Items/Path";
|
|
10
10
|
import { TextStyle } from "../Items/RichText";
|
|
11
11
|
import { ShapeType } from "../Items/Shape";
|
|
12
|
-
import {
|
|
12
|
+
import { ApplyMatrixItem } from "../Items/Transformation/TransformationOperations";
|
|
13
13
|
import { Subject } from "../Subject";
|
|
14
14
|
import { Tool } from "../Tools/Tool";
|
|
15
15
|
import { QuickAddButtons } from "./QuickAddButtons";
|
|
@@ -110,10 +110,10 @@ export declare class BoardSelection {
|
|
|
110
110
|
getConnectorLineStyle(): string;
|
|
111
111
|
getTextToEdit(): RichText | undefined;
|
|
112
112
|
nestSelectedItems(unselectedItem?: Item | null, checkFrames?: boolean): void;
|
|
113
|
-
/** Emits
|
|
114
|
-
transformMany(items:
|
|
113
|
+
/** Emits applyMatrix with multiple items */
|
|
114
|
+
transformMany(items: ApplyMatrixItem[], timeStamp?: number): void;
|
|
115
115
|
/** transforms selected items with frames' children */
|
|
116
|
-
getManyItemsTranslation(x: number, y: number, unselectedItem?: Item):
|
|
116
|
+
getManyItemsTranslation(x: number, y: number, unselectedItem?: Item): ApplyMatrixItem[];
|
|
117
117
|
setStrokeStyle(borderStyle: BorderStyle): void;
|
|
118
118
|
setStrokeColor(borderColor: string): void;
|
|
119
119
|
setStrokeWidth(width: number): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Matrix } from "../../../Items/Transformation/Matrix";
|
|
2
2
|
import { Mbr } from "../../../Items/Mbr/Mbr";
|
|
3
3
|
import { Item } from "../../../Items/Item";
|
|
4
|
-
import {
|
|
4
|
+
import { ApplyMatrixItem } from "../../../Items/Transformation/TransformationOperations";
|
|
5
5
|
import { Board } from "../../../Board";
|
|
6
6
|
export declare function handleMultipleItemsResize({ board, resize, itemsToResize, isHeight, isWidth, initMbr, isShiftPressed, }: {
|
|
7
7
|
board: Board;
|
|
@@ -14,4 +14,4 @@ export declare function handleMultipleItemsResize({ board, resize, itemsToResize
|
|
|
14
14
|
isHeight: boolean;
|
|
15
15
|
isShiftPressed: boolean;
|
|
16
16
|
itemsToResize?: Item[];
|
|
17
|
-
}):
|
|
17
|
+
}): ApplyMatrixItem[];
|