Skip to content

Commit

Permalink
fix: 🐛 snapline constructor init offset close antvis#2318
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jul 8, 2022
1 parent c50dd8d commit 95fb0d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x6/src/addon/snapline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class Snapline extends View implements IDisablable {
const { graph, ...others } = options
this.graph = graph
this.options = { tolerance: 10, ...others }
this.offset = { x: 0, y: 0 }
this.render()
this.parseFilter()
if (!this.disabled) {
Expand Down

0 comments on commit 95fb0d1

Please sign in to comment.