Skip to content

Commit

Permalink
fix: snap anchor should be optional (#4152)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiawenqi authored Jan 15, 2024
1 parent b3f5933 commit cf4cf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6/src/graph/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export namespace Options {
/**
* Snap edge to the closest node/port in the given radius on dragging.
*/
snap: boolean | { radius: number; anchor: 'center' | 'bbox' }
snap: boolean | { radius: number; anchor?: 'center' | 'bbox' }

/**
* Specify whether connect to point on the graph is allowed.
Expand Down

0 comments on commit cf4cf1f

Please sign in to comment.