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
import{Graph}from'@antv/x6'constgraph=newGraph({container: document.getElementById('container'),mousewheel:true,scaling:{min:0.1,max:10},grid: true,})graph.on('scale',(e)=>{console.log(e)console.log(textNode)textNode.prop('attrs/label/text',JSON.stringify(e));})consttextNode=graph.addNode({x: 160,y: 120,width: 360,height: 120,shape: 'text-block',text: `There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.`,attrs: {body: {fill: '#efdbff',stroke: '#9254de',rx: 4,ry: 4,},},})
鼠标滚轮转动,查看事件里的数据
Expected behavior
ox和oy.能正常返回
Screenshots or Videos
Platform
OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 2.11.1]
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
缩放的中心点(ox,oy)永远都是0.
Your Example Website or App
https://x6.antv.antgroup.com/examples/node/native-node/#text-block
Steps to Reproduce the Bug or Issue
鼠标滚轮转动,查看事件里的数据
Expected behavior
ox和oy.能正常返回
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: