Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/all-things-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@plait/mind': patch
---

update mind node shape and link default width
2 changes: 1 addition & 1 deletion packages/mind/src/constants/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const WithMindPluginKey = 'plait-mind-plugin-key';
export const BASE = 4;
export const PRIMARY_COLOR = '#6698FF';
export const GRAY_COLOR = '#AAAAAA';
export const STROKE_WIDTH = 3;
export const STROKE_WIDTH = 2;

export const RESIZE_HANDLE_BUFFER_DISTANCE = 8;

Expand Down
4 changes: 2 additions & 2 deletions packages/mind/src/constants/node-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export const DefaultAbstractNodeStyle = {

export const DefaultNodeStyle = {
branch: {
width: 3
width: 2
},
shape: {
rectangleRadius: 4,
strokeWidth: 3,
strokeWidth: 2,
fill: 'none'
}
};
2 changes: 1 addition & 1 deletion packages/mind/src/generators/node-more.generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class NodeMoreGenerator extends Generator<MindElement, NodeMoreExtraData>
fontSize: Number(FontSizes.fontSize12),
fontFamily: DEFAULT_FONT_FAMILY
});
const badgeText = createText(center[0] - width / 2 + 0.5, y, stroke, `${text}`);
const badgeText = createText(center[0] - width / 2, y, stroke, `${text}`);
badgeText.setAttribute('style', `font-size: ${Number(FontSizes.fontSize12)}px;`);
this.expandG.appendChild(moreLine);
this.expandG.appendChild(badgeBackground);
Expand Down