microboard-temp 0.3.1 → 0.3.2

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.
@@ -84,8 +84,8 @@ export declare class Board {
84
84
  moveSecondAfterFirst(first: Item, second: Item): void;
85
85
  bringToFront(items: Item | Item[]): void;
86
86
  sendToBack(items: Item | Item[]): void;
87
- copy(): ItemData[];
88
- serialize(): ItemData[];
87
+ copy(): ItemDataWithId[];
88
+ serialize(): ItemDataWithId[];
89
89
  serializeHTML(): string;
90
90
  /** @returns ids of added items */
91
91
  deserializeHTMLAndEmit(stringedHTML: string): string[];
@@ -1,11 +1,12 @@
1
1
  import { DocumentFactory } from 'api/DocumentFactory';
2
2
  import { ItemsIndexRecord } from 'BoardOperations';
3
3
  import { Camera } from 'Camera';
4
- import { Item, Frame, Mbr, ItemData, Point, Connector } from 'Items';
4
+ import { Item, Frame, Mbr, Point, Connector } from 'Items';
5
5
  import { DrawingContext } from 'Items/DrawingContext';
6
6
  import { Pointer } from 'Pointer';
7
7
  import { Subject } from 'Subject';
8
8
  import { BaseItem } from "../Items/BaseItem";
9
+ import { ItemDataWithId } from "../Items/Item";
9
10
  export type ItemWoFrames = Exclude<Item, Frame>;
10
11
  export declare class SpatialIndex {
11
12
  subject: Subject<Items>;
@@ -20,9 +21,7 @@ export declare class SpatialIndex {
20
21
  insert(item: Item): void;
21
22
  change: (item: Item) => void;
22
23
  remove(item: Item): void;
23
- copy(): (ItemData & {
24
- id: string;
25
- })[];
24
+ copy(): ItemDataWithId[];
26
25
  moveToZIndex(item: Item, zIndex: number): void;
27
26
  moveManyToZIndex(itemsRecord: ItemsIndexRecord): void;
28
27
  sendToBack(item: Item, shouldPublish?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",