microboard-temp 0.4.40 → 0.4.41
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 +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/node.js +1 -0
- package/dist/esm/browser.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/node.js +1 -0
- 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
package/dist/cjs/browser.js
CHANGED
|
@@ -21599,6 +21599,7 @@ class Items {
|
|
|
21599
21599
|
}
|
|
21600
21600
|
}
|
|
21601
21601
|
|
|
21602
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
21602
21603
|
class SimpleSpatialIndex {
|
|
21603
21604
|
subject = new Subject;
|
|
21604
21605
|
itemsArray = [];
|
package/dist/cjs/index.js
CHANGED
|
@@ -21599,6 +21599,7 @@ class Items {
|
|
|
21599
21599
|
}
|
|
21600
21600
|
}
|
|
21601
21601
|
|
|
21602
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
21602
21603
|
class SimpleSpatialIndex {
|
|
21603
21604
|
subject = new Subject;
|
|
21604
21605
|
itemsArray = [];
|
package/dist/cjs/node.js
CHANGED
|
@@ -24071,6 +24071,7 @@ class Items {
|
|
|
24071
24071
|
}
|
|
24072
24072
|
}
|
|
24073
24073
|
|
|
24074
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
24074
24075
|
class SimpleSpatialIndex {
|
|
24075
24076
|
subject = new Subject;
|
|
24076
24077
|
itemsArray = [];
|
package/dist/esm/browser.js
CHANGED
|
@@ -21449,6 +21449,7 @@ class Items {
|
|
|
21449
21449
|
}
|
|
21450
21450
|
}
|
|
21451
21451
|
|
|
21452
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
21452
21453
|
class SimpleSpatialIndex {
|
|
21453
21454
|
subject = new Subject;
|
|
21454
21455
|
itemsArray = [];
|
package/dist/esm/index.js
CHANGED
|
@@ -21442,6 +21442,7 @@ class Items {
|
|
|
21442
21442
|
}
|
|
21443
21443
|
}
|
|
21444
21444
|
|
|
21445
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
21445
21446
|
class SimpleSpatialIndex {
|
|
21446
21447
|
subject = new Subject;
|
|
21447
21448
|
itemsArray = [];
|
package/dist/esm/node.js
CHANGED
|
@@ -23909,6 +23909,7 @@ class Items {
|
|
|
23909
23909
|
}
|
|
23910
23910
|
}
|
|
23911
23911
|
|
|
23912
|
+
// src/SpatialIndex/SimpleSpatialIndex.ts
|
|
23912
23913
|
class SimpleSpatialIndex {
|
|
23913
23914
|
subject = new Subject;
|
|
23914
23915
|
itemsArray = [];
|
|
@@ -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
|
-
}
|