chore: Fix shape names

This commit is contained in:
Sidharth Vinod
2024-06-21 16:00:06 +05:30
parent 55a8e4cf7e
commit a1badd5167
2 changed files with 12 additions and 12 deletions

View File

@@ -1111,13 +1111,13 @@ const shapes = {
doublecircle,
stadium,
hexagon,
blockArrow,
rectLeftInvArrow,
leanRight,
leanLeft,
block_arrow: blockArrow,
rect_left_inv_arrow: rectLeftInvArrow,
lean_right: leanRight,
lean_left: leanLeft,
trapezoid,
invTrapezoid,
rectRightInvArrow,
inv_trapezoid: invTrapezoid,
rect_right_inv_arrow: rectRightInvArrow,
cylinder,
start,
end,
@@ -1125,7 +1125,7 @@ const shapes = {
subroutine,
fork: forkJoin,
join: forkJoin,
classBox,
class_box: classBox,
};
let nodeElems = {};

View File

@@ -335,22 +335,22 @@ export function addToRenderV2(addShape) {
addShape({ cylinder });
// Add custom shape for box with inverted arrow on left side
addShape({ rectLeftInvArrow });
addShape({ rect_left_inv_arrow: rectLeftInvArrow });
// Add custom shape for box with inverted arrow on left side
addShape({ leanRight });
addShape({ lean_right: leanRight });
// Add custom shape for box with inverted arrow on left side
addShape({ leanLeft });
addShape({ lean_left: leanLeft });
// Add custom shape for box with inverted arrow on left side
addShape({ trapezoid });
// Add custom shape for box with inverted arrow on left side
addShape({ invTrapezoid });
addShape({ inv_trapezoid: invTrapezoid });
// Add custom shape for box with inverted arrow on right side
addShape({ rectRightInvArrow });
addShape({ rect_right_inv_arrow: rectRightInvArrow });
}
/**