updated padding for set of shapes [Left Curly Brace , Right Curly Brace, Curly Braces ]

This commit is contained in:
omkarht
2025-01-21 20:25:38 +05:30
parent 8bc898ddf1
commit d4441e0200
3 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;