microboard-temp 0.1.15 → 0.1.16

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.
@@ -1,27 +1,28 @@
1
- import { BoardOps, ItemsIndexRecord } from 'BoardOperations';
2
- import { Camera } from 'Camera';
3
- import { Events, Operation } from 'Events';
4
- import { SyncBoardEvent } from 'Events/Events';
5
- import { Item, ItemData, FrameData, Matrix, Mbr } from 'Items';
6
- import { AINode } from 'Items/AINode';
7
- import { DrawingContext } from 'Items/DrawingContext';
8
- import { Group } from 'Items/Group';
9
- import { ImageItem } from 'Items/Image';
10
- import { Keyboard } from 'Keyboard';
11
- import { Pointer } from 'Pointer';
12
- import { Presence } from 'Presence/Presence';
13
- import { SpatialIndex } from 'SpatialIndex';
14
- import { Subject } from 'Subject';
15
- import { Tools } from 'Tools';
16
- import { ItemsMap } from 'Validators';
17
- export type InterfaceType = 'edit' | 'view' | 'loading';
1
+ import { BoardOps, ItemsIndexRecord } from "BoardOperations";
2
+ import { Camera } from "Camera";
3
+ import { Events, Operation } from "Events";
4
+ import { SyncBoardEvent } from "Events/Events";
5
+ import { Item, ItemData, FrameData, Matrix, Mbr } from "Items";
6
+ import { AINode } from "Items/AINode";
7
+ import { DrawingContext } from "Items/DrawingContext";
8
+ import { Group } from "Items/Group";
9
+ import { ImageItem } from "Items/Image";
10
+ import { Keyboard } from "Keyboard";
11
+ import { Pointer } from "Pointer";
12
+ import { Presence } from "Presence/Presence";
13
+ import { SpatialIndex } from "SpatialIndex";
14
+ import { Subject } from "Subject";
15
+ import { Tools } from "Tools";
16
+ import { ItemsMap } from "Validators";
17
+ import { BoardSelection } from "Selection";
18
+ export type InterfaceType = "edit" | "view" | "loading";
18
19
  export declare class Board {
19
20
  private boardId;
20
21
  private accessKey?;
21
22
  saveEditingFile?: (() => Promise<void>) | undefined;
22
23
  events: Events;
23
24
  private isBoardMenuOpen;
24
- readonly selection: Selection;
25
+ readonly selection: BoardSelection;
25
26
  readonly tools: Tools;
26
27
  readonly pointer: Pointer;
27
28
  aiGeneratingOnItem: string | undefined;
@@ -25,10 +25,10 @@ type SelectionSnapshot = {
25
25
  textToEdit: string;
26
26
  } | null;
27
27
  };
28
- export declare class Selection {
28
+ export declare class BoardSelection {
29
29
  private board;
30
30
  events?: Events | undefined;
31
- readonly subject: Subject<Selection>;
31
+ readonly subject: Subject<BoardSelection>;
32
32
  readonly itemSubject: Subject<Item>;
33
33
  readonly itemsSubject: Subject<Item[]>;
34
34
  isOn: boolean;
@@ -3,7 +3,7 @@ import { CanvasDrawer } from "drawMbrOnCanvas";
3
3
  import { Item, Mbr, Point } from "Items";
4
4
  import { DrawingContext } from "Items/DrawingContext";
5
5
  import { Geometry } from "Items/Geometry";
6
- import { Selection } from "Selection";
6
+ import { BoardSelection } from "Selection";
7
7
  import { SelectionItems } from "Selection/SelectionItems";
8
8
  import { Tool } from "Tools/Tool";
9
9
  import { AnchorType } from "./TransformerHelpers/AnchorType";
@@ -31,7 +31,7 @@ export declare class Transformer extends Tool {
31
31
  private snapLines;
32
32
  private snapCursorPos;
33
33
  private initialCursorPos;
34
- constructor(board: Board, selection: Selection);
34
+ constructor(board: Board, selection: BoardSelection);
35
35
  updateAnchorType(): void;
36
36
  keyDown(key: string): boolean;
37
37
  keyUp(key: string): boolean;
@@ -1,6 +1,6 @@
1
1
  import { Point } from "Items/Point/Point";
2
2
  import { Board } from "Board";
3
- import { Selection } from "Selection/Selection";
3
+ import { BoardSelection } from "Selection/Selection";
4
4
  import { CanvasDrawer } from "drawMbrOnCanvas";
5
5
  import AlignmentHelper from "Tools/RelativeAlignment";
6
6
  import { Mbr } from "Items/Mbr/Mbr";
@@ -10,7 +10,7 @@ import { Item } from "Items/Item";
10
10
  export declare function transformItems({ board, selection, canvasDrawer, alignmentHelper, debounceUpd, resizeType, mbr, oppositePoint, isWidth, isHeight, isShiftPressed, beginTimeStamp, single, snapCursorPos, setSnapCursorPos, }: {
11
11
  board: Board;
12
12
  snapCursorPos: Point | null;
13
- selection: Selection;
13
+ selection: BoardSelection;
14
14
  canvasDrawer: CanvasDrawer;
15
15
  alignmentHelper: AlignmentHelper;
16
16
  debounceUpd: DebounceUpdater;
@@ -1,3 +1,3 @@
1
- export { Selection } from "./Selection";
1
+ export { BoardSelection as Selection } from "./Selection";
2
2
  export * from "./Selection";
3
3
  export * from "./QuickAddButtons";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",