@plait/mind 0.27.0-next.2 → 0.27.0-next.3
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/constants/node-topic-style.d.ts +1 -0
- package/esm2022/constants/node-topic-style.mjs +2 -1
- package/esm2022/plugins/with-mind-create.mjs +22 -19
- package/esm2022/utils/draw/abstract-outline.mjs +4 -4
- package/esm2022/utils/node/create-node.mjs +9 -6
- package/esm2022/utils/position/node.mjs +8 -6
- package/fesm2022/plait-mind.mjs +209 -202
- package/fesm2022/plait-mind.mjs.map +1 -1
- package/package.json +1 -1
- package/utils/node/create-node.d.ts +4 -4
- package/utils/position/node.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Point } from '@plait/core';
|
|
1
|
+
import { PlaitBoard, Point } from '@plait/core';
|
|
2
2
|
import { MindLayoutType } from '@plait/layouts';
|
|
3
3
|
import { BranchShape, MindElement, MindElementShape } from '../../interfaces/element';
|
|
4
4
|
import { Element } from 'slate';
|
|
5
|
-
export declare const createEmptyMind: (point: Point) => MindElement<import("
|
|
6
|
-
export declare const createDefaultMind: (point: Point, rightNodeCount: number, layout: MindLayoutType) => MindElement<import("
|
|
7
|
-
export declare const createMindElement: (text: string | Element, width: number, height: number, options: InheritAttribute) => MindElement<import("
|
|
5
|
+
export declare const createEmptyMind: (board: PlaitBoard, point: Point) => MindElement<import("../../public-api").BaseData>;
|
|
6
|
+
export declare const createDefaultMind: (point: Point, rightNodeCount: number, layout: MindLayoutType) => MindElement<import("../../public-api").BaseData>;
|
|
7
|
+
export declare const createMindElement: (text: string | Element, width: number, height: number, options: InheritAttribute) => MindElement<import("../../public-api").BaseData>;
|
|
8
8
|
export interface InheritAttribute {
|
|
9
9
|
fill?: string;
|
|
10
10
|
strokeColor?: string;
|
package/utils/position/node.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { MindNode } from '../../interfaces/node';
|
|
|
3
3
|
import { MindElement } from '../../interfaces/element';
|
|
4
4
|
import { PlaitMindBoard } from '../../plugins/with-mind.board';
|
|
5
5
|
export declare function getRectangleByNode(node: MindNode): RectangleClient;
|
|
6
|
-
export declare function getRectangleByElement(board: PlaitMindBoard,
|
|
6
|
+
export declare function getRectangleByElement(board: PlaitMindBoard, element: MindElement): {
|
|
7
7
|
x: number;
|
|
8
8
|
y: number;
|
|
9
9
|
width: number;
|