@plait/core 0.92.3 → 0.93.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plait/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"immer": "^10.0.3",
|
|
6
6
|
"is-hotkey": "^0.2.0"
|
|
@@ -22,15 +22,16 @@
|
|
|
22
22
|
"open-source"
|
|
23
23
|
],
|
|
24
24
|
"module": "fesm2022/plait-core.mjs",
|
|
25
|
-
"typings": "
|
|
25
|
+
"typings": "types/plait-core.d.ts",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./package.json": {
|
|
28
28
|
"default": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
".": {
|
|
31
|
-
"types": "./
|
|
31
|
+
"types": "./types/plait-core.d.ts",
|
|
32
32
|
"default": "./fesm2022/plait-core.mjs"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"sideEffects": false
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"type": "module"
|
|
36
37
|
}
|
|
@@ -164,7 +164,7 @@ declare const POINTER_BUTTON: {
|
|
|
164
164
|
};
|
|
165
165
|
declare const PRESS_AND_MOVE_BUFFER = 3;
|
|
166
166
|
declare const DRAG_SELECTION_PRESS_AND_MOVE_BUFFER = 10;
|
|
167
|
-
declare const HIT_DISTANCE_BUFFER =
|
|
167
|
+
declare const HIT_DISTANCE_BUFFER = 3;
|
|
168
168
|
|
|
169
169
|
declare enum PlaitPointerType {
|
|
170
170
|
'hand' = "hand",
|
|
@@ -1028,7 +1028,7 @@ declare function deleteTemporaryElements(board: PlaitBoard): void;
|
|
|
1028
1028
|
declare function drawSelectionRectangleG(board: PlaitBoard): SVGGElement | null;
|
|
1029
1029
|
declare function setSelectedElementsWithGroup(board: PlaitBoard, elements: PlaitElement[], isShift: boolean): void;
|
|
1030
1030
|
declare function cacheSelectedElementsWithGroupOnShift(board: PlaitBoard, elements: PlaitElement[], isSelectGroupElement: boolean, elementsInHighestGroup: PlaitElement[]): void;
|
|
1031
|
-
declare function cacheSelectedElementsWithGroup(board: PlaitBoard, elements: PlaitElement[], isSelectGroupElement: boolean, hitElementGroups: PlaitGroup[]): void;
|
|
1031
|
+
declare function cacheSelectedElementsWithGroup(board: PlaitBoard, elements: PlaitElement[], isSelectGroupElement: boolean, hitElementGroups: PlaitGroup[], hitPoint: Point): void;
|
|
1032
1032
|
declare const getSelectionOptions: (board: PlaitBoard) => WithSelectionPluginOptions;
|
|
1033
1033
|
declare const setSelectionOptions: (board: PlaitBoard, options: Partial<WithSelectionPluginOptions>) => void;
|
|
1034
1034
|
|
|
@@ -1190,7 +1190,7 @@ interface PlaitBoard {
|
|
|
1190
1190
|
isRectangleHit: (element: PlaitElement, range: Selection) => boolean;
|
|
1191
1191
|
isHit: (element: PlaitElement, point: Point, isStrict?: boolean) => boolean;
|
|
1192
1192
|
isInsidePoint: (element: PlaitElement, point: Point) => boolean;
|
|
1193
|
-
getOneHitElement: (hitElements: PlaitElement[]) => PlaitElement;
|
|
1193
|
+
getOneHitElement: (hitElements: PlaitElement[], hitPoint: Point) => PlaitElement;
|
|
1194
1194
|
isRecursion: (element: PlaitElement) => boolean;
|
|
1195
1195
|
isMovable: (element: PlaitElement) => boolean;
|
|
1196
1196
|
getRectangle: (element: PlaitElement) => RectangleClient | null;
|