Skip to content

Commit

Permalink
fix: 修复为edge添加的annotation的连线位置异常
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiangyu committed Dec 3, 2023
1 parent 3d117f3 commit 481016e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/g6/src/stdlib/plugin/annotation/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const getPathItem2Card = (item, cardBBox, graph, annotationCanvas) => {
let itemLinkPoints;
const itemType = item.getType();
if (itemType === 'edge') {
itemLinkPoints = [item.getKeyShape().getPoint(0.5)];
itemLinkPoints = [item.shapeMap.keyShape.getPoint(0.5)]
} else {
const bbox = item.shapeMap.keyShape.getBBox();
const minX = bbox.left,
Expand Down

0 comments on commit 481016e

Please sign in to comment.