Skip to content

Commit

Permalink
updated triangle shape
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarht committed Aug 22, 2024
1 parent 4e8a7e0 commit 8d8b6c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const triangle = async (parent: SVGAElement, node: Node): Promise<SVGAEle

label.attr(
'transform',
`translate(${-bbox.width / 2 - (bbox.x - (bbox.left ?? 0))}, ${h / 2 - bbox.height - (bbox.y - (bbox.top ?? 0))})`
`translate(${-bbox.width / 2 - (bbox.x - (bbox.left ?? 0))}, ${h / 2 - (bbox.height + (node.padding ?? 0) / 2 - (bbox.y - (bbox.top ?? 0)))})`
);

node.intersect = function (point) {
Expand Down

0 comments on commit 8d8b6c1

Please sign in to comment.