@plait/mind 0.82.0 → 0.83.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.82.0",
3
+ "version": "0.83.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/utils/common.d.ts CHANGED
@@ -4,7 +4,7 @@ export declare const MIND_CENTRAL_TEXT = "\u4E2D\u5FC3\u4E3B\u9898";
4
4
  export declare const ABSTRACT_NODE_TEXT = "\u6982\u8981";
5
5
  export declare const getDefaultMindNameText: (board: PlaitBoard) => string;
6
6
  export declare const getAbstractNodeText: (board: PlaitBoard) => string;
7
- export declare const getTopicSize: (board: PlaitBoard, isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
7
+ export declare const getTopicSize: (board: PlaitBoard | null, isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
8
8
  width: number;
9
9
  height: number;
10
10
  };
@@ -7,9 +7,6 @@ export interface PlacementRef {
7
7
  placement: PointPlacement;
8
8
  client: RectangleClient;
9
9
  }
10
- export declare const getXDistanceBetweenPoint: (point1: Point, point2: Point, isHorizontalLayout: boolean) => number;
11
10
  export declare const getYDistanceBetweenPoint: (point1: Point, point2: Point, isHorizontalLayout: boolean) => void;
12
11
  export declare const getLayoutDirection: (node: MindNode, isHorizontal: boolean) => LayoutDirection;
13
- export declare const moveXOfPoint: (point: Point, distance: number, direction?: LayoutDirection) => Point;
14
- export declare const moveYOfPoint: (point: Point, distance: number, direction?: LayoutDirection) => Point;
15
12
  export declare const transformPlacement: (placement: PointPlacement, direction: LayoutDirection) => void;