Skip to content

Commit

Permalink
fix: 🐛 snapline constructor init offset close #2318 (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou authored Jul 9, 2022
1 parent 3dcafac commit df7a0ee
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 df7a0ee

Please sign in to comment.