@plait/mind 0.40.0 → 0.41.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/mind",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0"
@@ -14,4 +14,6 @@ export declare const MindTransforms: {
14
14
  setRightNodeCountByRefs: (board: import("@plait/core").PlaitBoard, refs: import("@plait/mind").RightNodeCountRef[]) => void;
15
15
  removeImage: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement<import("@plait/mind").ImageData>) => void;
16
16
  setImage: (board: import("@plait/core").PlaitBoard, element: import("@plait/mind").MindElement<import("@plait/mind").BaseData>, imageItem: import("@plait/common").CommonImageItem) => void;
17
+ insertChildNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement<import("@plait/mind").BaseData>) => void;
18
+ insertSiblingNode: (board: import("@plait/mind").PlaitMindBoard, element: import("@plait/mind").MindElement<import("@plait/mind").BaseData>) => void;
17
19
  };
@@ -10,3 +10,5 @@ export declare const setTopicSize: (board: PlaitMindBoard, element: MindElement,
10
10
  export declare const insertNodes: (board: PlaitBoard, elements: MindElement[], path: Path) => void;
11
11
  export declare const insertAbstractNodes: (board: PlaitBoard, validAbstractRefs: AbstractRef[], elements: MindElement[], path: Path) => void;
12
12
  export declare const setRightNodeCountByRefs: (board: PlaitBoard, refs: RightNodeCountRef[]) => void;
13
+ export declare const insertChildNode: (board: PlaitMindBoard, element: MindElement) => void;
14
+ export declare const insertSiblingNode: (board: PlaitMindBoard, element: MindElement) => void;
package/utils/index.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './abstract/resize';
12
12
  export * from './node/right-node-count';
13
13
  export * from './space/node-space';
14
14
  export * from './space';
15
+ export * from './path';
@@ -19,4 +19,4 @@ export declare const NodeSpace: {
19
19
  getEmojiTopSpace(board: PlaitMindBoard, element: MindElement): number;
20
20
  };
21
21
  export declare const getFontSizeBySlateElement: (text: string | Element) => number;
22
- export declare const getNodeDefaultFontSize: (isRoot?: boolean) => 14 | 18;
22
+ export declare const getNodeDefaultFontSize: (isRoot?: boolean) => 18 | 14;