Skip to content

Commit

Permalink
fixed padding for flippedTriangle shape
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarht committed Aug 23, 2024
1 parent 7d6a97e commit 7c26148
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 flippedTriangle = async (parent: SVGAElement, node: Node): Promise<

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

node.intersect = function (point) {
Expand Down

0 comments on commit 7c26148

Please sign in to comment.