@plait/mind 0.75.0 → 0.77.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.75.0",
3
+ "version": "0.77.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -2,7 +2,6 @@ import { PlaitBoard, PlaitElement, Point, WritableClipboardOperationType } from
2
2
  import { MindElement } from '../interfaces';
3
3
  import { Element } from 'slate';
4
4
  import { PlaitMindBoard } from '../plugins/with-mind.board';
5
- import { ParagraphElement } from '@plait/common';
6
5
  export declare const buildClipboardData: (board: PlaitBoard, selectedElements: MindElement[], startPoint: Point) => MindElement<import("../interfaces").BaseData>[];
7
6
  export declare const insertClipboardData: (board: PlaitMindBoard, elements: PlaitElement[], targetPoint: Point, operationType?: WritableClipboardOperationType) => void;
8
7
  export declare const insertClipboardText: (board: PlaitMindBoard, targetParent: PlaitElement, text: string | Element) => void;
@@ -10,7 +9,3 @@ export declare const getTopicSizeByElement: (element: MindElement, parentElement
10
9
  width: number;
11
10
  height: number;
12
11
  };
13
- export declare const getTopicSize: (isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
14
- width: number;
15
- height: number;
16
- };
@@ -0,0 +1,8 @@
1
+ import { PlaitBoard } from '@plait/core';
2
+ import { ParagraphElement } from '@plait/common';
3
+ export declare const MIND_CENTRAL_TEXT = "\u4E2D\u5FC3\u4E3B\u9898";
4
+ export declare const getDefaultMindNameText: (board: PlaitBoard) => string;
5
+ export declare const getTopicSize: (isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
6
+ width: number;
7
+ height: number;
8
+ };
package/utils/index.d.ts CHANGED
@@ -13,3 +13,4 @@ export * from './node/right-node-count';
13
13
  export * from './space/node-space';
14
14
  export * from './space';
15
15
  export * from './path';
16
+ export * from './common';
@@ -3,7 +3,6 @@ import { MindLayoutType } from '@plait/layouts';
3
3
  import { BranchShape, MindElement, MindElementShape } from '../../interfaces/element';
4
4
  import { Element } from 'slate';
5
5
  export declare const createEmptyMind: (board: PlaitBoard, point: Point) => MindElement<import("@plait/mind").BaseData>;
6
- export declare const createDefaultMind: (point: Point, rightNodeCount: number, layout: MindLayoutType) => MindElement<import("@plait/mind").BaseData>;
7
6
  export declare const createMindElement: (text: string | Element, width: number, height: number, options: InheritAttribute) => MindElement<import("@plait/mind").BaseData>;
8
7
  export interface InheritAttribute {
9
8
  fill?: string;