@plait/mind 0.27.0-next.5 → 0.27.0-next.7
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/base/image-base.component.mjs +4 -4
- package/esm2022/interfaces/element.mjs +9 -2
- package/esm2022/interfaces/index.mjs +2 -1
- package/esm2022/interfaces/options.mjs +1 -1
- package/esm2022/mind-node.component.mjs +9 -5
- package/esm2022/plugins/with-node-resize.mjs +5 -5
- package/esm2022/utils/draw/node-dnd.mjs +2 -2
- package/esm2022/utils/node/dynamic-width.mjs +3 -3
- package/fesm2022/plait-mind.mjs +25 -14
- package/fesm2022/plait-mind.mjs.map +1 -1
- package/interfaces/element.d.ts +1 -0
- package/interfaces/index.d.ts +1 -0
- package/mind-node.component.d.ts +4 -3
- package/package.json +1 -1
package/interfaces/element.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare const MindElement: {
|
|
|
43
43
|
getEmojis(element: MindElement<EmojiData>): import("./element-data").EmojiItem[];
|
|
44
44
|
hasMounted(element: MindElement): boolean;
|
|
45
45
|
getTextEditor(element: MindElement): import("slate").BaseEditor & import("slate-angular").AngularEditor & import("slate-history").HistoryEditor;
|
|
46
|
+
getTextManage(element: MindElement): import("@plait/text").TextManage;
|
|
46
47
|
};
|
|
47
48
|
export declare enum MindElementShape {
|
|
48
49
|
roundRectangle = "round-rectangle",
|
package/interfaces/index.d.ts
CHANGED
package/mind-node.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PlaitPluginElementContext, OnContextChanged } from '@plait/core';
|
|
3
3
|
import { TextManage } from '@plait/text';
|
|
4
4
|
import { RoughSVG } from 'roughjs/bin/svg';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
@@ -11,8 +11,9 @@ import { PlaitMindBoard } from './plugins/with-mind.board';
|
|
|
11
11
|
import { NodeActiveDrawer } from './drawer/node-active.drawer';
|
|
12
12
|
import { CollapseDrawer } from './drawer/node-collapse.drawer';
|
|
13
13
|
import { NodeImageDrawer } from './drawer/node-image.drawer';
|
|
14
|
+
import { CommonPluginElement } from '@plait/common';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class MindNodeComponent extends
|
|
16
|
+
export declare class MindNodeComponent extends CommonPluginElement<MindElement, PlaitMindBoard> implements OnInit, OnDestroy, OnContextChanged<MindElement, PlaitMindBoard> {
|
|
16
17
|
private viewContainerRef;
|
|
17
18
|
protected cdr: ChangeDetectorRef;
|
|
18
19
|
roughSVG: RoughSVG;
|
|
@@ -26,9 +27,9 @@ export declare class MindNodeComponent extends PlaitPluginElementComponent<MindE
|
|
|
26
27
|
nodeEmojisDrawer: NodeEmojisDrawer;
|
|
27
28
|
nodeInsertDrawer: NodeInsertDrawer;
|
|
28
29
|
imageDrawer: NodeImageDrawer;
|
|
29
|
-
textManage: TextManage;
|
|
30
30
|
activeDrawer: NodeActiveDrawer;
|
|
31
31
|
collapseDrawer: CollapseDrawer;
|
|
32
|
+
get textManage(): TextManage;
|
|
32
33
|
constructor(viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
|
|
33
34
|
initializeDrawer(): void;
|
|
34
35
|
ngOnInit(): void;
|