@plait/mind 0.83.0 → 0.83.1

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.
@@ -2,7 +2,7 @@ export declare const WithMindPluginKey = "plait-mind-plugin-key";
2
2
  export declare const BASE = 4;
3
3
  export declare const PRIMARY_COLOR = "#6698FF";
4
4
  export declare const GRAY_COLOR = "#AAAAAA";
5
- export declare const STROKE_WIDTH = 3;
5
+ export declare const STROKE_WIDTH = 2;
6
6
  export declare const RESIZE_HANDLE_BUFFER_DISTANCE = 8;
7
7
  export declare const NODE_MORE_LINE_DISTANCE = 10;
8
8
  export declare const NODE_MORE_STROKE_WIDTH = 2;
@@ -177,7 +177,7 @@ const WithMindPluginKey = 'plait-mind-plugin-key';
177
177
  const BASE = 4;
178
178
  const PRIMARY_COLOR = '#6698FF';
179
179
  const GRAY_COLOR = '#AAAAAA';
180
- const STROKE_WIDTH = 3;
180
+ const STROKE_WIDTH = 2;
181
181
  const RESIZE_HANDLE_BUFFER_DISTANCE = 8;
182
182
  const NODE_MORE_LINE_DISTANCE = 10;
183
183
  const NODE_MORE_STROKE_WIDTH = 2;
@@ -224,11 +224,11 @@ const DefaultAbstractNodeStyle = {
224
224
  };
225
225
  const DefaultNodeStyle = {
226
226
  branch: {
227
- width: 3
227
+ width: 2
228
228
  },
229
229
  shape: {
230
230
  rectangleRadius: 4,
231
- strokeWidth: 3,
231
+ strokeWidth: 2,
232
232
  fill: 'none'
233
233
  }
234
234
  };
@@ -2856,7 +2856,7 @@ class NodeMoreGenerator extends Generator {
2856
2856
  fontSize: Number(FontSizes.fontSize12),
2857
2857
  fontFamily: DEFAULT_FONT_FAMILY
2858
2858
  });
2859
- const badgeText = createText(center[0] - width / 2 + 0.5, y, stroke, `${text}`);
2859
+ const badgeText = createText(center[0] - width / 2, y, stroke, `${text}`);
2860
2860
  badgeText.setAttribute('style', `font-size: ${Number(FontSizes.fontSize12)}px;`);
2861
2861
  this.expandG.appendChild(moreLine);
2862
2862
  this.expandG.appendChild(badgeBackground);