@plait/mind 0.57.0 → 0.59.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 +11 -28
- package/esm2022/mind.component.mjs +3 -17
- package/fesm2022/plait-mind.mjs +15 -41
- package/fesm2022/plait-mind.mjs.map +1 -1
- package/mind-node.component.d.ts +4 -10
- package/mind.component.d.ts +2 -6
- package/package.json +1 -1
- package/utils/mind.d.ts +1 -1
package/mind-node.component.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { PlaitPluginElementContext, OnContextChanged } from '@plait/core';
|
|
3
2
|
import { TextManage } from '@plait/text';
|
|
4
3
|
import { RoughSVG } from 'roughjs/bin/svg';
|
|
5
|
-
import { Subject } from 'rxjs';
|
|
6
4
|
import { MindElement } from './interfaces/element';
|
|
7
5
|
import { MindNode } from './interfaces/node';
|
|
8
6
|
import { NodeEmojisGenerator } from './generators/node-emojis.generator';
|
|
@@ -10,18 +8,16 @@ import { NodePlusGenerator } from './generators/node-plus.generator';
|
|
|
10
8
|
import { PlaitMindBoard } from './plugins/with-mind.board';
|
|
11
9
|
import { NodeActiveGenerator } from './generators/node-active.generator';
|
|
12
10
|
import { CollapseGenerator } from './generators/node-collapse.generator';
|
|
13
|
-
import {
|
|
11
|
+
import { CommonElementFlavour, ImageGenerator } from '@plait/common';
|
|
14
12
|
import { NodeShapeGenerator } from './generators/node-shape.generator';
|
|
15
13
|
import { ImageData } from './interfaces';
|
|
16
|
-
|
|
17
|
-
export declare class MindNodeComponent extends CommonPluginElement<MindElement, PlaitMindBoard> implements OnInit, OnDestroy, OnContextChanged<MindElement, PlaitMindBoard> {
|
|
14
|
+
export declare class MindNodeComponent extends CommonElementFlavour<MindElement, PlaitMindBoard> implements OnContextChanged<MindElement, PlaitMindBoard> {
|
|
18
15
|
roughSVG: RoughSVG;
|
|
19
16
|
node: MindNode;
|
|
20
17
|
index: number;
|
|
21
18
|
shapeG: SVGGElement | null;
|
|
22
19
|
linkG?: SVGGElement;
|
|
23
20
|
extendG?: SVGGElement;
|
|
24
|
-
destroy$: Subject<void>;
|
|
25
21
|
nodeEmojisGenerator: NodeEmojisGenerator;
|
|
26
22
|
nodeShapeGenerator: NodeShapeGenerator;
|
|
27
23
|
nodePlusGenerator: NodePlusGenerator;
|
|
@@ -31,7 +27,7 @@ export declare class MindNodeComponent extends CommonPluginElement<MindElement,
|
|
|
31
27
|
get textManage(): TextManage;
|
|
32
28
|
constructor();
|
|
33
29
|
initializeGenerator(): void;
|
|
34
|
-
|
|
30
|
+
initialize(): void;
|
|
35
31
|
onContextChanged(value: PlaitPluginElementContext<MindElement, PlaitMindBoard>, previous: PlaitPluginElementContext<MindElement, PlaitMindBoard>): void;
|
|
36
32
|
drawEmojis(): void;
|
|
37
33
|
drawLink(): void;
|
|
@@ -39,7 +35,5 @@ export declare class MindNodeComponent extends CommonPluginElement<MindElement,
|
|
|
39
35
|
drawTopic(): void;
|
|
40
36
|
updateTopic(): void;
|
|
41
37
|
trackBy: (index: number, node: MindNode) => string;
|
|
42
|
-
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MindNodeComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MindNodeComponent, "plait-mind-node", never, {}, {}, never, never, true, never>;
|
|
38
|
+
destroy(): void;
|
|
45
39
|
}
|
package/mind.component.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { PlaitMind } from './interfaces/element';
|
|
3
2
|
import { MindNode } from './interfaces/node';
|
|
4
3
|
import { BeforeContextChange, PlaitPluginElementContext } from '@plait/core';
|
|
5
4
|
import { MindNodeComponent } from './mind-node.component';
|
|
6
|
-
|
|
7
|
-
export declare class PlaitMindComponent extends MindNodeComponent implements OnInit, BeforeContextChange<PlaitMind> {
|
|
5
|
+
export declare class PlaitMindComponent extends MindNodeComponent implements BeforeContextChange<PlaitMind> {
|
|
8
6
|
root: MindNode;
|
|
9
|
-
|
|
7
|
+
initialize(): void;
|
|
10
8
|
beforeContextChange(value: PlaitPluginElementContext<PlaitMind>): void;
|
|
11
9
|
updateMindLayout(element?: import("./interfaces/element").MindElement<import("@plait/mind").BaseData>): void;
|
|
12
10
|
updateMindNodeLocation(element: PlaitMind): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlaitMindComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlaitMindComponent, "plait-mind", never, {}, {}, never, never, true, never>;
|
|
15
11
|
}
|
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) => 14 | 18;
|