@plait/mind 0.64.9 → 0.65.0-next.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/interfaces/element.d.ts +1 -1
- package/package.json +1 -1
- package/queries/index.d.ts +4 -4
- package/transforms/index.d.ts +11 -11
- package/utils/abstract/common.d.ts +1 -1
- package/utils/mind.d.ts +1 -1
- package/utils/node/common.d.ts +1 -1
package/interfaces/element.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const PlaitMind: {
|
|
|
31
31
|
export declare const MindElement: {
|
|
32
32
|
hasLayout(value: MindElement, layout: MindLayoutType): boolean;
|
|
33
33
|
isIndentedLayout(value: MindElement): boolean;
|
|
34
|
-
isMindElement(board: PlaitBoard, element: PlaitElement): element is MindElement
|
|
34
|
+
isMindElement(board: PlaitBoard, element: PlaitElement): element is MindElement;
|
|
35
35
|
getParent(node: MindElement): MindElement<BaseData>;
|
|
36
36
|
findParent(node: MindElement): MindElement<BaseData> | undefined;
|
|
37
37
|
getRoot(board: PlaitBoard, element: MindElement): PlaitMind;
|
package/package.json
CHANGED
package/queries/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const MindQueries: {
|
|
2
|
-
getAvailableSubLayoutsByElement: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
3
|
-
getBranchLayouts: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
4
|
-
getLayoutByElement: (element: import("@plait/mind").MindElement
|
|
5
|
-
getCorrectLayoutByElement: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
2
|
+
getAvailableSubLayoutsByElement: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement) => import("@plait/layouts").MindLayoutType[] | undefined;
|
|
3
|
+
getBranchLayouts: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement) => import("@plait/layouts").MindLayoutType[];
|
|
4
|
+
getLayoutByElement: (element: import("@plait/mind").MindElement) => import("@plait/layouts").MindLayoutType;
|
|
5
|
+
getCorrectLayoutByElement: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement) => import("@plait/layouts").MindLayoutType;
|
|
6
6
|
};
|
package/transforms/index.d.ts
CHANGED
|
@@ -4,21 +4,21 @@ export declare const MindTransforms: {
|
|
|
4
4
|
setBranchShape: (board: import("@plait/core").PlaitBoard, branchShape: import("@plait/mind").BranchShape) => void;
|
|
5
5
|
setBranchWidth: (board: import("@plait/core").PlaitBoard, branchWidth: number) => void;
|
|
6
6
|
setBranchColor: (board: import("@plait/core").PlaitBoard, branchColor: string) => void;
|
|
7
|
-
setTopic: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement
|
|
8
|
-
setTopicSize: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement
|
|
9
|
-
setNodeManualWidth: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement
|
|
10
|
-
addEmoji: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
7
|
+
setTopic: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement, topic: import("slate").Element, width: number, height: number) => void;
|
|
8
|
+
setTopicSize: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement, width: number, height: number) => void;
|
|
9
|
+
setNodeManualWidth: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement, width: number, height: number) => void;
|
|
10
|
+
addEmoji: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement, emojiItem: import("@plait/mind").EmojiItem) => void;
|
|
11
11
|
removeEmoji: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement<import("@plait/mind").EmojiData>, emojiItem: import("@plait/mind").EmojiItem) => void;
|
|
12
12
|
replaceEmoji: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement<import("@plait/mind").EmojiData>, oldEmoji: import("@plait/mind").EmojiItem, newEmoji: import("@plait/mind").EmojiItem) => void;
|
|
13
13
|
insertAbstract: (board: import("@plait/core").PlaitBoard, elements: import("@plait/core").PlaitElement[]) => void;
|
|
14
14
|
setAbstractsByRefs: (board: import("@plait/core").PlaitBoard, abstractRefs: import("@plait/mind").AbstractRefs) => void;
|
|
15
|
-
setAbstractByStandardLayout: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
16
|
-
insertNodes: (board: import("@plait/core").PlaitBoard, elements: import("@plait/mind").MindElement
|
|
17
|
-
insertAbstractNodes: (board: import("@plait/core").PlaitBoard, validAbstractRefs: import("@plait/mind").AbstractRef[], elements: import("@plait/mind").MindElement
|
|
15
|
+
setAbstractByStandardLayout: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement) => void;
|
|
16
|
+
insertNodes: (board: import("@plait/core").PlaitBoard, elements: import("@plait/mind").MindElement[], path: import("slate").Path) => void;
|
|
17
|
+
insertAbstractNodes: (board: import("@plait/core").PlaitBoard, validAbstractRefs: import("@plait/mind").AbstractRef[], elements: import("@plait/mind").MindElement[], path: import("slate").Path) => void;
|
|
18
18
|
setRightNodeCountByRefs: (board: import("@plait/core").PlaitBoard, refs: import("@plait/mind").RightNodeCountRef[]) => void;
|
|
19
19
|
removeImage: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement<import("@plait/mind").ImageData>) => void;
|
|
20
|
-
setImage: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement
|
|
21
|
-
insertChildNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement
|
|
22
|
-
insertSiblingNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement
|
|
23
|
-
insertMind: (board: import("@plait/mind").PlaitMindBoard, mind: import("@plait/mind").MindElement
|
|
20
|
+
setImage: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement, imageItem: import("@plait/common").CommonImageItem) => void;
|
|
21
|
+
insertChildNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement) => void;
|
|
22
|
+
insertSiblingNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement) => void;
|
|
23
|
+
insertMind: (board: import("@plait/mind").PlaitMindBoard, mind: import("@plait/mind").MindElement) => void;
|
|
24
24
|
};
|
|
@@ -12,7 +12,7 @@ export declare const getBehindAbstracts: (element: MindElement) => MindElement<i
|
|
|
12
12
|
/**
|
|
13
13
|
* return corresponding abstract that is not child of elements
|
|
14
14
|
*/
|
|
15
|
-
export declare const getOverallAbstracts: (board: PlaitBoard, elements: MindElement[]) => (MindElement
|
|
15
|
+
export declare const getOverallAbstracts: (board: PlaitBoard, elements: MindElement[]) => (MindElement & AbstractNode)[];
|
|
16
16
|
export interface AbstractRef {
|
|
17
17
|
abstract: MindElement & AbstractNode;
|
|
18
18
|
references: MindElement[];
|
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;
|
package/utils/node/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PlaitBoard, PlaitElement } from '@plait/core';
|
|
2
2
|
import { MindElement } from '../../interfaces/element';
|
|
3
3
|
export declare function editTopic(element: MindElement): void;
|
|
4
|
-
export declare const getSelectedMindElements: (board: PlaitBoard, elements?: PlaitElement[]) => MindElement
|
|
4
|
+
export declare const getSelectedMindElements: (board: PlaitBoard, elements?: PlaitElement[]) => MindElement[];
|