microboard-temp 0.4.40 → 0.4.42
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 +610 -609
- package/dist/cjs/index.js +610 -609
- package/dist/cjs/node.js +610 -609
- package/dist/esm/browser.js +610 -609
- package/dist/esm/index.js +610 -609
- package/dist/esm/node.js +610 -609
- package/dist/types/Items/BaseItem/BaseItem.d.ts +1 -1
- package/dist/types/SpatialIndex/SimpleSpatialIndex.d.ts +39 -0
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +0 -31
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { BaseOperation } from "Events/EventsOperations";
|
|
|
12
12
|
import { Subject } from "../../Subject";
|
|
13
13
|
import { Path, Paths } from "../Path";
|
|
14
14
|
import { BaseItemOperation } from "./BaseItemOperation";
|
|
15
|
-
import { SimpleSpatialIndex } from "../../SpatialIndex/
|
|
15
|
+
import { SimpleSpatialIndex } from "../../SpatialIndex/SimpleSpatialIndex";
|
|
16
16
|
export type BaseItemData = {
|
|
17
17
|
itemType: string;
|
|
18
18
|
} & Record<string, any>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Subject } from "../Subject";
|
|
2
|
+
import { DrawingContext, Item, Point, Mbr } from "../Items";
|
|
3
|
+
import { Camera } from "../Camera";
|
|
4
|
+
import { Pointer } from "../Pointer";
|
|
5
|
+
import { BaseItem } from "../Items/BaseItem";
|
|
6
|
+
import { ItemDataWithId } from "../Items/Item";
|
|
7
|
+
import { ItemsIndexRecord } from "../BoardOperations";
|
|
8
|
+
import { Items } from "./SpacialIndex";
|
|
9
|
+
export declare class SimpleSpatialIndex {
|
|
10
|
+
subject: Subject<Items>;
|
|
11
|
+
private itemsArray;
|
|
12
|
+
private Mbr;
|
|
13
|
+
readonly items: Items;
|
|
14
|
+
constructor(view: Camera, pointer: Pointer);
|
|
15
|
+
clear(): void;
|
|
16
|
+
insert(item: Item): void;
|
|
17
|
+
change: (item: Item) => void;
|
|
18
|
+
remove(item: Item): void;
|
|
19
|
+
copy(): ItemDataWithId[];
|
|
20
|
+
moveToZIndex(item: Item, zIndex: number): void;
|
|
21
|
+
moveManyToZIndex(itemsRecord: ItemsIndexRecord): void;
|
|
22
|
+
sendToBack(item: Item, shouldPublish?: boolean): void;
|
|
23
|
+
sendManyToBack(items: Item[]): void;
|
|
24
|
+
bringToFront(item: Item, shouldPublish?: boolean): void;
|
|
25
|
+
bringManyToFront(items: Item[]): void;
|
|
26
|
+
moveSecondAfterFirst(first: Item, second: Item): void;
|
|
27
|
+
moveSecondBeforeFirst(first: Item, second: Item): void;
|
|
28
|
+
getById(id: string): BaseItem | undefined;
|
|
29
|
+
findById(id: string): Item | undefined;
|
|
30
|
+
getEnclosed(left: number, top: number, right: number, bottom: number): Item[];
|
|
31
|
+
getEnclosedOrCrossed(left: number, top: number, right: number, bottom: number): Item[];
|
|
32
|
+
getUnderPoint(point: Point, tolerace?: number): Item[];
|
|
33
|
+
getMbr(): Mbr;
|
|
34
|
+
list(): Item[];
|
|
35
|
+
getZIndex(item: Item): number;
|
|
36
|
+
getLastZIndex(): number;
|
|
37
|
+
getByZIndex(index: number): Item;
|
|
38
|
+
render(context: DrawingContext): void;
|
|
39
|
+
}
|
|
@@ -77,34 +77,3 @@ export declare class Items {
|
|
|
77
77
|
getWholeHTML(documentFactory: DocumentFactory): string;
|
|
78
78
|
getHTML(documentFactory: DocumentFactory, items: Item[]): string;
|
|
79
79
|
}
|
|
80
|
-
export declare class SimpleSpatialIndex {
|
|
81
|
-
subject: Subject<Items>;
|
|
82
|
-
private itemsArray;
|
|
83
|
-
private Mbr;
|
|
84
|
-
readonly items: Items;
|
|
85
|
-
constructor(view: Camera, pointer: Pointer);
|
|
86
|
-
clear(): void;
|
|
87
|
-
insert(item: Item): void;
|
|
88
|
-
change: (item: Item) => void;
|
|
89
|
-
remove(item: Item): void;
|
|
90
|
-
copy(): ItemDataWithId[];
|
|
91
|
-
moveToZIndex(item: Item, zIndex: number): void;
|
|
92
|
-
moveManyToZIndex(itemsRecord: ItemsIndexRecord): void;
|
|
93
|
-
sendToBack(item: Item, shouldPublish?: boolean): void;
|
|
94
|
-
sendManyToBack(items: Item[]): void;
|
|
95
|
-
bringToFront(item: Item, shouldPublish?: boolean): void;
|
|
96
|
-
bringManyToFront(items: Item[]): void;
|
|
97
|
-
moveSecondAfterFirst(first: Item, second: Item): void;
|
|
98
|
-
moveSecondBeforeFirst(first: Item, second: Item): void;
|
|
99
|
-
getById(id: string): BaseItem | undefined;
|
|
100
|
-
findById(id: string): Item | undefined;
|
|
101
|
-
getEnclosed(left: number, top: number, right: number, bottom: number): Item[];
|
|
102
|
-
getEnclosedOrCrossed(left: number, top: number, right: number, bottom: number): Item[];
|
|
103
|
-
getUnderPoint(point: Point, tolerace?: number): Item[];
|
|
104
|
-
getMbr(): Mbr;
|
|
105
|
-
list(): Item[];
|
|
106
|
-
getZIndex(item: Item): number;
|
|
107
|
-
getLastZIndex(): number;
|
|
108
|
-
getByZIndex(index: number): Item;
|
|
109
|
-
render(context: DrawingContext): void;
|
|
110
|
-
}
|