mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 08:39:38 +02:00
updated padding for set of shapes [Left Curly Brace , Right Curly Brace, Curly Braces ]
This commit is contained in:
@@ -42,8 +42,8 @@ export async function curlyBraceLeft<T extends SVGGraphicsElement>(
|
||||
const { labelStyles, nodeStyles } = styles2String(node);
|
||||
node.labelStyle = labelStyles;
|
||||
const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
|
||||
const paddingX = node.look === 'neo' ? (node.padding ?? 0) * 2 : (node.padding ?? 0);
|
||||
const paddingY = node.look === 'neo' ? (node.padding ?? 0) * 1 : (node.padding ?? 0);
|
||||
const paddingX = node.look === 'neo' ? 18 : (node.padding ?? 0);
|
||||
const paddingY = node.look === 'neo' ? 12 : (node.padding ?? 0);
|
||||
if (node.width || node.height) {
|
||||
let radius = 5;
|
||||
const cal_height = (((node?.height ?? 0) - paddingY * 2) * 10) / 11;
|
||||
|
@@ -42,8 +42,8 @@ export async function curlyBraceRight<T extends SVGGraphicsElement>(
|
||||
const { labelStyles, nodeStyles } = styles2String(node);
|
||||
node.labelStyle = labelStyles;
|
||||
const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
|
||||
const labelPaddingX = node.look === 'neo' ? (node.padding ?? 0) * 2 : (node.padding ?? 0);
|
||||
const labelPaddingY = node.look === 'neo' ? (node.padding ?? 0) * 1 : (node.padding ?? 0);
|
||||
const labelPaddingX = node.look === 'neo' ? 18 : (node.padding ?? 0);
|
||||
const labelPaddingY = node.look === 'neo' ? 12 : (node.padding ?? 0);
|
||||
|
||||
if (node.width || node.height) {
|
||||
let radius = 5;
|
||||
|
@@ -42,8 +42,8 @@ export async function curlyBraces<T extends SVGGraphicsElement>(
|
||||
const { labelStyles, nodeStyles } = styles2String(node);
|
||||
node.labelStyle = labelStyles;
|
||||
const { shapeSvg, bbox, label } = await labelHelper(parent, node, getNodeClasses(node));
|
||||
const labelPaddingX = node.look === 'neo' ? (node.padding ?? 0) * 2 : (node.padding ?? 0);
|
||||
const labelPaddingY = node.look === 'neo' ? (node.padding ?? 0) * 1 : (node.padding ?? 0);
|
||||
const labelPaddingX = node.look === 'neo' ? 18 : (node.padding ?? 0);
|
||||
const labelPaddingY = node.look === 'neo' ? 12 : (node.padding ?? 0);
|
||||
|
||||
if (node.width || node.height) {
|
||||
let radius = 5;
|
||||
|
Reference in New Issue
Block a user