From 04729e64a2e870f98ee5c836cf6961b9750cbf0d Mon Sep 17 00:00:00 2001 From: cnyballk <584518260@qq.com> Date: Tue, 23 Jan 2024 18:58:55 +0800 Subject: [PATCH] fix: edge rendering correct label attrs --- packages/x6/src/view/edge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6/src/view/edge.ts b/packages/x6/src/view/edge.ts index 8ab7a13b060..98502e2f17c 100644 --- a/packages/x6/src/view/edge.ts +++ b/packages/x6/src/view/edge.ts @@ -406,7 +406,7 @@ export class EdgeView< this.cleanCache() this.updateConnection(options) - const attrs = this.cell.getAttrs() + const { text, ...attrs } = this.cell.getAttrs() if (attrs != null) { this.updateAttrs(this.container, attrs, { selectors: this.selectors,