mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
fix: updated hexagon shape
on-behalf-of: @Mermaid-Chart hello@mermaidchart.com
This commit is contained in:
@@ -40,7 +40,10 @@ export async function hexagon<T extends SVGGraphicsElement>(parent: D3Selection<
|
||||
options.fillStyle = 'solid';
|
||||
}
|
||||
|
||||
const halfWidth = w / 2;
|
||||
let halfWidth = w / 2;
|
||||
const m = halfWidth / 6; // Margin for label
|
||||
halfWidth = halfWidth + m; // Adjusted half width for hexagon
|
||||
|
||||
const halfHeight = h / 2;
|
||||
|
||||
const fixedLength = halfHeight / 2;
|
||||
|
Reference in New Issue
Block a user