Skip to content

Commit

Permalink
Update Anchor.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
wumail committed Sep 26, 2023
1 parent 5ec0dec commit 3eba4d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/view/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ class Anchor extends Component<IProps, IState> {
});
};

get getAnchorLine() {
const { graphModel: { getAnchorLine } } = this.props;
return getAnchorLine;
get customTrajectory() {
const { graphModel: { customTrajectory } } = this.props;
return customTrajectory;
}

checkEnd = (event) => {
Expand Down Expand Up @@ -343,8 +343,8 @@ class Anchor extends Component<IProps, IState> {
{this.getAnchorShape()}
</g>
{this.isShowLine()
&& (this.getAnchorLine
? this.getAnchorLine(
&& (this.customTrajectory
? this.customTrajectory(
{ sourcePoint: { x: startX, y: startY },
targetPoint: {
x: endX, y: endY,
Expand Down

0 comments on commit 3eba4d8

Please sign in to comment.