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

节点文本展示不全,一部分被隐藏 #4003

Open
wjcmy opened this issue Nov 1, 2023 · 2 comments
Open

节点文本展示不全,一部分被隐藏 #4003

wjcmy opened this issue Nov 1, 2023 · 2 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@wjcmy
Copy link

wjcmy commented Nov 1, 2023

问题描述

节点文本展示不全

重现链接

https://codesandbox.io/s/new?file=/src/App.js

重现步骤

1,进入页面绘制节点,类型是custom-image
2,绘制节点50*50,但是节点包括文本 label: {
refX: "50%",
refY: 70,
textAnchor: "middle",
textVerticalAnchor: "middle",
fontSize: 14,
// fill: "#fff",
textWrap: {
width: "300%",
// ellipsis: true, // 文本超出显示范围时,自动添加省略号
},
lineHeight: "18px",
},
3,增加小地图、画布平移以及autoResize: true, //容器变化尺寸变化自适应
4,初始化,拖拽节点,缩小或者平移画布,再拖拽节点,将节点拖拽到实际画布边缘,发现节点正常展示,但是他的文本超过画布的地方被切割了,将节点向画布外面拖拽,节点正常展示,画布尺寸自动更新了

预期行为

我想要看到固定节点尺寸的节点下方的不固定长度的文本在页面拖拽的时候,能正常展示,但是经常会出现节点展示完全但是文本展示不全超过节点尺寸的位置被切割了。放置节点的画布并没有自动更新尺寸

平台

  • 操作系统: [ Windows]
  • 网页浏览器: [Google Chrome,]
  • X6 版本: [2.11.1 以及后面的版本

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Nov 1, 2023

👋 @wjcmy

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.

@NewByVector
Copy link
Contributor

给的示例链接和描述不符呀。

@NewByVector NewByVector added type: discussion 讨论 Usage questions, guidance, and other discussions resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems and removed type: discussion 讨论 Usage questions, guidance, and other discussions labels Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants