@plait/core 0.2.0 → 0.2.1
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/esm2020/board/board.component.mjs +3 -2
- package/esm2020/core/element/element.component.mjs +2 -2
- package/esm2020/utils/dom/common.mjs +21 -1
- package/fesm2015/plait-core.mjs +23 -3
- package/fesm2015/plait-core.mjs.map +1 -1
- package/fesm2020/plait-core.mjs +23 -3
- package/fesm2020/plait-core.mjs.map +1 -1
- package/package.json +1 -1
- package/utils/dom/common.d.ts +9 -0
package/package.json
CHANGED
package/utils/dom/common.d.ts
CHANGED
|
@@ -4,3 +4,12 @@ export declare function toPoint(x: number, y: number, container: SVGElement): Po
|
|
|
4
4
|
export declare function createG(): SVGGElement;
|
|
5
5
|
export declare function createSVG(): SVGSVGElement;
|
|
6
6
|
export declare function createText(x: number, y: number, fill: string, textContent: string): SVGTextElement;
|
|
7
|
+
/**
|
|
8
|
+
* Check if a DOM node is an element node.
|
|
9
|
+
*/
|
|
10
|
+
export declare const isDOMElement: (value: any) => value is Element;
|
|
11
|
+
/**
|
|
12
|
+
* Check if a value is a DOM node.
|
|
13
|
+
*/
|
|
14
|
+
export declare const isDOMNode: (value: any) => value is Node;
|
|
15
|
+
export declare const hasInputOrTextareaTarget: (target: EventTarget | null) => boolean;
|