@plait/core 0.56.2 → 0.57.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/board/board.component.d.ts +1 -1
- package/core/element/plugin-element.d.ts +0 -1
- package/esm2022/board/board.component.mjs +6 -1
- package/esm2022/core/element/plugin-element.mjs +1 -8
- package/esm2022/interfaces/board.mjs +4 -1
- package/esm2022/interfaces/element.mjs +1 -5
- package/esm2022/utils/element.mjs +7 -2
- package/esm2022/utils/weak-maps.mjs +1 -1
- package/fesm2022/plait-core.mjs +896 -893
- package/fesm2022/plait-core.mjs.map +1 -1
- package/interfaces/board.d.ts +1 -0
- package/interfaces/element.d.ts +0 -3
- package/package.json +1 -1
- package/utils/element.d.ts +1 -0
- package/utils/weak-maps.d.ts +1 -0
package/interfaces/board.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare const PlaitBoard: {
|
|
|
92
92
|
isAlive(board: PlaitBoard): boolean;
|
|
93
93
|
findPath(board: PlaitBoard, node: PlaitNode): Path;
|
|
94
94
|
getHost(board: PlaitBoard): SVGSVGElement;
|
|
95
|
+
getElementLowerHost(board: PlaitBoard): SVGSVGElement;
|
|
95
96
|
getElementHost(board: PlaitBoard): SVGSVGElement;
|
|
96
97
|
getElementUpperHost(board: PlaitBoard): SVGSVGElement;
|
|
97
98
|
getElementActiveHost(board: PlaitBoard): SVGSVGElement;
|
package/interfaces/element.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { PlaitPluginElementComponent } from '../core/element/plugin-element';
|
|
2
|
-
import { PlaitBoard } from './board';
|
|
3
1
|
import { Point } from './point';
|
|
4
2
|
import { PlaitElementRef } from '../core/element/element-ref';
|
|
5
3
|
export interface PlaitElement {
|
|
@@ -12,7 +10,6 @@ export interface PlaitElement {
|
|
|
12
10
|
}
|
|
13
11
|
export declare const PlaitElement: {
|
|
14
12
|
isRootElement(value: PlaitElement): boolean;
|
|
15
|
-
getComponent(value: PlaitElement): PlaitPluginElementComponent<PlaitElement, PlaitBoard, PlaitElementRef>;
|
|
16
13
|
getElementRef<T extends PlaitElementRef = PlaitElementRef>(value: PlaitElement): T;
|
|
17
14
|
getElementG(value: PlaitElement): SVGGElement;
|
|
18
15
|
hasMounted(element: PlaitElement): boolean;
|
package/package.json
CHANGED
package/utils/element.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PlaitBoard, PlaitElement, RectangleClient } from '../interfaces';
|
|
2
2
|
export declare function getRectangleByElements(board: PlaitBoard, elements: PlaitElement[], recursion: boolean): RectangleClient;
|
|
3
|
+
export declare function getBoundingRectangleByElements(board: PlaitBoard, elements: PlaitElement[], recursion: boolean): RectangleClient;
|
|
3
4
|
export declare function getBoardRectangle(board: PlaitBoard): RectangleClient;
|
|
4
5
|
export declare function getElementById<T extends PlaitElement = PlaitElement>(board: PlaitBoard, id: string, dataSource?: PlaitElement[]): T | undefined;
|
|
5
6
|
export declare function findElements<T extends PlaitElement = PlaitElement>(board: PlaitBoard, options: {
|
package/utils/weak-maps.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const BOARD_TO_ROUGH_SVG: WeakMap<PlaitBoard, RoughSVG>;
|
|
|
20
20
|
export declare const BOARD_TO_HOST: WeakMap<PlaitBoard, SVGSVGElement>;
|
|
21
21
|
export declare const IS_BOARD_ALIVE: WeakMap<PlaitBoard, boolean>;
|
|
22
22
|
export declare const BOARD_TO_ELEMENT_HOST: WeakMap<PlaitBoard, {
|
|
23
|
+
lowerHost: SVGGElement;
|
|
23
24
|
host: SVGGElement;
|
|
24
25
|
upperHost: SVGGElement;
|
|
25
26
|
activeHost: SVGGElement;
|