@plait/core 0.2.0 → 0.2.2
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 +6 -5
- package/esm2020/core/children/children.component.mjs +3 -3
- package/esm2020/core/element/element.component.mjs +5 -5
- package/esm2020/core/element/plugin-element.mjs +3 -3
- package/esm2020/core/toolbar/toolbar.component.mjs +3 -3
- package/esm2020/plait.module.mjs +7 -7
- package/esm2020/utils/dom/common.mjs +21 -1
- package/fesm2015/plait-core.mjs +44 -24
- package/fesm2015/plait-core.mjs.map +1 -1
- package/fesm2020/plait-core.mjs +44 -24
- package/fesm2020/plait-core.mjs.map +1 -1
- package/package.json +1 -1
- package/plait.module.d.ts +2 -2
- package/utils/dom/common.d.ts +9 -0
package/package.json
CHANGED
package/plait.module.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import * as i1 from "./board/board.component";
|
|
|
3
3
|
import * as i2 from "./core/children/children.component";
|
|
4
4
|
import * as i3 from "./core/element/element.component";
|
|
5
5
|
import * as i4 from "./core/toolbar/toolbar.component";
|
|
6
|
-
import * as i5 from "@angular/
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
7
|
export declare class PlaitModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaitModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaitModule, [typeof i1.PlaitBoardComponent, typeof i2.PlaitChildrenElement, typeof i3.PlaitElementComponent, typeof i4.PlaitToolbarComponent], [typeof i5.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaitModule, [typeof i1.PlaitBoardComponent, typeof i2.PlaitChildrenElement, typeof i3.PlaitElementComponent, typeof i4.PlaitToolbarComponent], [typeof i5.CommonModule], [typeof i1.PlaitBoardComponent, typeof i2.PlaitChildrenElement, typeof i3.PlaitElementComponent, typeof i4.PlaitToolbarComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlaitModule>;
|
|
11
11
|
}
|
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;
|