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.
@@ -66,9 +66,14 @@ export interface MatrixData {
66
66
  shearX: number;
67
67
  shearY: number;
68
68
  }
69
- export interface ApplyMatrixOperation extends TransformationBase {
70
- method: "applyMatrix";
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 { TransformManyItems } from "../Items/Transformation/TransformationOperations";
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 transformManyItems */
114
- transformMany(items: TransformManyItems, timeStamp?: number): void;
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): TransformManyItems;
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 { TransformManyItems } from "../../../Items/Transformation/TransformationOperations";
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
- }): TransformManyItems;
17
+ }): ApplyMatrixItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.142",
3
+ "version": "0.5.144",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",