You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
问题描述
节点文本展示不全
重现链接
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,初始化,拖拽节点,缩小或者平移画布,再拖拽节点,将节点拖拽到实际画布边缘,发现节点正常展示,但是他的文本超过画布的地方被切割了,将节点向画布外面拖拽,节点正常展示,画布尺寸自动更新了
预期行为
我想要看到固定节点尺寸的节点下方的不固定长度的文本在页面拖拽的时候,能正常展示,但是经常会出现节点展示完全但是文本展示不全超过节点尺寸的位置被切割了。放置节点的画布并没有自动更新尺寸
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: