X6 icon indicating copy to clipboard operation
X6 copied to clipboard

节点拖拽到画布,缩放节点, 节点中间多处一个字符: -

Open light-years-run opened this issue 2 years ago • 3 comments

Describe the bug

生成节点时候,给节点添加了textWrap 属性

image

Your Example Website or App

test

Steps to Reproduce the Bug or Issue

估计是为了解决其他bug,x6-common/src/dom/text.ts中默认加了一个 - 字符,通过 v-empty-line 属性不显示出来,但是缩放后,此属性去除了,所以又显示出来了

Expected behavior

希望尽快解决

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

No response

light-years-run avatar Jan 15 '24 09:01 light-years-run

同时设置了tools: ['node-editor']属性和 attrs:{ label: { textWrap: { }, } }属性后,编辑文本之后无法清空

xiaobaibxw avatar May 16 '24 02:05 xiaobaibxw

同时设置了tools: ['node-editor']属性和 attrs:{ label: { textWrap: { }, } }属性后,编辑文本之后无法清空

解决了吗?哥 我也碰到 无法解决

liaoyoujia avatar Jun 17 '24 07:06 liaoyoujia