@plait/mind 0.54.0 → 0.55.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/esm2022/mind-node.component.mjs +20 -40
- package/esm2022/mind.component.mjs +6 -10
- package/esm2022/plugins/with-mind-create.mjs +2 -1
- package/esm2022/plugins/with-mind-fragment.mjs +7 -7
- package/esm2022/plugins/with-mind.mjs +14 -2
- package/esm2022/plugins/with-node-hover-hit-test.mjs +6 -2
- package/esm2022/plugins/with-node-image.mjs +6 -6
- package/esm2022/utils/dnd/common.mjs +3 -5
- package/esm2022/utils/draw/node-dnd.mjs +1 -1
- package/esm2022/utils/node/common.mjs +1 -1
- package/esm2022/utils/node-hover/extend.mjs +3 -7
- package/fesm2022/plait-mind.mjs +56 -69
- package/fesm2022/plait-mind.mjs.map +1 -1
- package/mind-node.component.d.ts +2 -4
- package/mind.component.d.ts +0 -1
- package/package.json +1 -1
- package/utils/mind.d.ts +1 -1
package/mind-node.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { PlaitPluginElementContext, OnContextChanged } from '@plait/core';
|
|
3
3
|
import { TextManage } from '@plait/text';
|
|
4
4
|
import { RoughSVG } from 'roughjs/bin/svg';
|
|
@@ -15,12 +15,10 @@ import { NodeShapeGenerator } from './generators/node-shape.generator';
|
|
|
15
15
|
import { ImageData } from './interfaces';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class MindNodeComponent extends CommonPluginElement<MindElement, PlaitMindBoard> implements OnInit, OnDestroy, OnContextChanged<MindElement, PlaitMindBoard> {
|
|
18
|
-
private viewContainerRef;
|
|
19
18
|
protected cdr: ChangeDetectorRef;
|
|
20
19
|
roughSVG: RoughSVG;
|
|
21
20
|
node: MindNode;
|
|
22
21
|
index: number;
|
|
23
|
-
parentG: SVGGElement;
|
|
24
22
|
shapeG: SVGGElement | null;
|
|
25
23
|
linkG?: SVGGElement;
|
|
26
24
|
extendG?: SVGGElement;
|
|
@@ -32,7 +30,7 @@ export declare class MindNodeComponent extends CommonPluginElement<MindElement,
|
|
|
32
30
|
activeGenerator: NodeActiveGenerator;
|
|
33
31
|
collapseGenerator: CollapseGenerator;
|
|
34
32
|
get textManage(): TextManage;
|
|
35
|
-
constructor(
|
|
33
|
+
constructor(cdr: ChangeDetectorRef);
|
|
36
34
|
initializeDrawer(): void;
|
|
37
35
|
ngOnInit(): void;
|
|
38
36
|
onContextChanged(value: PlaitPluginElementContext<MindElement, PlaitMindBoard>, previous: PlaitPluginElementContext<MindElement, PlaitMindBoard>): void;
|
package/mind.component.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { MindNodeComponent } from './mind-node.component';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class PlaitMindComponent extends MindNodeComponent implements OnInit, BeforeContextChange<PlaitMind> {
|
|
8
8
|
root: MindNode;
|
|
9
|
-
rootG: SVGGElement;
|
|
10
9
|
ngOnInit(): void;
|
|
11
10
|
beforeContextChange(value: PlaitPluginElementContext<PlaitMind>): void;
|
|
12
11
|
updateMindLayout(element?: import("./interfaces/element").MindElement<import("@plait/mind").BaseData>): void;
|
package/package.json
CHANGED
package/utils/mind.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export declare const divideElementByParent: (elements: MindElement[]) => {
|
|
|
14
14
|
parentElements: MindElement<import("@plait/mind").BaseData>[];
|
|
15
15
|
abstractIncludedGroups: MindElement<import("@plait/mind").BaseData>[][];
|
|
16
16
|
};
|
|
17
|
-
export declare const getDefaultMindElementFontSize: (board: PlaitBoard, element: MindElement) =>
|
|
17
|
+
export declare const getDefaultMindElementFontSize: (board: PlaitBoard, element: MindElement) => 18 | 14;
|