@plait/mind 0.77.0 → 0.77.2

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.77.0",
3
+ "version": "0.77.2",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -5,19 +5,15 @@ $primary: #4e8afa;
5
5
  .plait-board-container {
6
6
  g[plait-mindmap='true'],
7
7
  g[plait-mind-temporary='true'] {
8
- // The font family under SAFARI affects the measurement of the text size,
9
- // so specify the default font family to avoid unexpected text breaks in different scene
10
- font-family: PingFangSC-Regular, 'PingFang SC';
11
8
  .root,
12
9
  &.root {
13
10
  .text {
14
- font-family: PingFangSC-Medium, 'PingFang SC';
15
11
  font-weight: 400;
16
12
  }
17
13
  }
18
14
  .branch {
19
15
  .text {
20
- font-family: PingFangSC-Medium, 'PingFang SC';
16
+ font-weight: 400;
21
17
  }
22
18
  }
23
19
  .slate-editable-container {
package/utils/common.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { PlaitBoard } from '@plait/core';
2
2
  import { ParagraphElement } from '@plait/common';
3
3
  export declare const MIND_CENTRAL_TEXT = "\u4E2D\u5FC3\u4E3B\u9898";
4
+ export declare const ABSTRACT_NODE_TEXT = "\u6982\u8981";
4
5
  export declare const getDefaultMindNameText: (board: PlaitBoard) => string;
6
+ export declare const getAbstractNodeText: (board: PlaitBoard) => string;
5
7
  export declare const getTopicSize: (isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
6
8
  width: number;
7
9
  height: number;