fix for label positioning triangle and flipped triangle

This commit is contained in:
Ashish Jain
2024-10-02 19:43:54 +02:00
parent 0aebb941e9
commit bda37516b8
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export const flippedTriangle = async (parent: SVGAElement, node: Node): Promise<
const w = (node?.width ? node?.width : bbox.width) + (labelPaddingX ?? 0);
const h = node?.height ? node?.height : w + bbox.height;
const tw = w + bbox.height;
const tw = h;
const points = [
{ x: 0, y: -h },

View File

@@ -31,7 +31,7 @@ export const triangle = async (parent: SVGAElement, node: Node): Promise<SVGAEle
const useHtmlLabels = evaluate(getConfig().flowchart?.htmlLabels);
const w = (node?.width ? node?.width : bbox.width) + labelPaddingX;
const h = node?.height ? node?.height : w + bbox.height;
const tw = w + bbox.height;
const tw = h;
const points = [
{ x: 0, y: 0 },
{ x: tw, y: 0 },