From 95fb0d10066ba8a7d64173fc40540a322a4737c4 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Fri, 8 Jul 2022 22:51:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20snapline=20constructor=20?= =?UTF-8?q?init=20offset=20close=20#2318?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/x6/src/addon/snapline/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/x6/src/addon/snapline/index.ts b/packages/x6/src/addon/snapline/index.ts index 83ac7cb2a6a..220781192f8 100644 --- a/packages/x6/src/addon/snapline/index.ts +++ b/packages/x6/src/addon/snapline/index.ts @@ -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) {