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.
Describe the bug
@antv/x6@2.18.1
低版本浏览器(Chrome:68.0.3436.0)自定义节点长宽超出一定范围后,超出范围的自定义节点部分无法触发任何绑定事件。
高版本浏览器(Chrome: 128.0.6613.113)没有此类问题。
1、html组件注册:
`Shape.HTML.register({
shape: 'cu-data-node',
width: 'auto',
height: 104,
html() {
const container = document.createElement('div');
container.setAttribute('class', 'cu-container');
const item1 = document.createElement('div');
item1.setAttribute('class', 'cu-item');
const item2 = document.createElement('div');
item2.setAttribute('class', 'cu-item');
const item3 = document.createElement('div');
item3.setAttribute('class', 'cu-item');
const item4 = document.createElement('div');
item4.setAttribute('class', 'cu-item');
const item5 = document.createElement('div');
item5.setAttribute('class', 'cu-item');
const item6 = document.createElement('div');
item6.setAttribute('class', 'cu-item');
const item7 = document.createElement('div');
item7.setAttribute('class', 'cu-item');
const item8 = document.createElement('div');
item8.setAttribute('class', 'cu-item');
const item9 = document.createElement('div');
item9.setAttribute('class', 'cu-item');
});`
2、添加到画布:
graph.addNode({ shape: 'cu-data-node', x: 100, y: 40, width: 2800, height: 400 });
3、效果:
Your Example Website or App
暂无
Steps to Reproduce the Bug or Issue
暂无
Expected behavior
与高版本浏览器(Chrome: 128.0.6613.113)保持一致
Screenshots or Videos
No response
Platform
@antv/x6@2.18.1
Chrome:68.0.3436.0
Additional context
No response
The text was updated successfully, but these errors were encountered: