Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
light-years-run opened this issue Jan 15, 2024 · 3 comments

Comments

@light-years-run
Copy link

light-years-run commented Jan 15, 2024

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

@xiaobaibxw
Copy link

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

@liaoyoujia
Copy link

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

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

@light-years-run
Copy link
Author

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

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

解决了,自定义了node-editor 工具,修改了 编辑字符

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants