X6 icon indicating copy to clipboard operation
X6 copied to clipboard

在同时设置文本换行和文本编辑时,编辑label的状态下,原label文字并未隐藏,导致编辑文本和原文本叠加

Open ppmmwozuiai opened this issue 1 year ago • 2 comments

Describe the bug

在同时设置文本换行和文本编辑时,编辑文本的状态下,原label文本并未隐藏,导致编辑文本和原文本叠加

Your Example Website or App

https://codesandbox.io/p/sandbox/hardcore-mccarthy-g8rp3c

Steps to Reproduce the Bug or Issue

  1. 设置节点label换行
  2. 添加文本编辑工具
  3. 双击节点编辑输入文字 4.可以看到编辑态文本和原文本叠加

Expected behavior

在编辑状态下隐藏原label文本

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

ppmmwozuiai avatar Sep 18 '24 12:09 ppmmwozuiai

👋 @ppmmwozuiai

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Sep 18 '24 12:09 x6-bot[bot]

搞个背景色呗

cnyballk avatar Sep 19 '24 00:09 cnyballk

tools: [{ name: 'node-editor', args: { getText: 'text/textWrap/text', setText: 'text/textWrap/text' } }] 文本编辑的工具的参数加上这个getText和setText的就好了,取文本的地方变了

179207 avatar Aug 05 '25 08:08 179207