We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
基于官网在单元格内绘制自定义图形demo ,想使用interactjs将 蓝色圆形绑定draggable以移动图形的位置,代码如下
const rect = new Rect({ style: { x: 300, y: 200, width: 100, height: 100, fill: '#1890FF', fillOpacity: 0.8, stroke: '#F04864', strokeOpacity: 0.8, lineWidth: 4, radius: 100, zIndex: 999, }, }), const canvas = s2.getCanvas() canvas.appendChild(rect) interact(rect, { context: canvas.document as any }).draggable({ startAxis: 'xy', lockAxis: 'start', listeners: { start(event) { console.log('start') }, move(event) { console.log('event') } } })
触发start和move事件
没有触发任何事件
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
🔗 Reproduce Link
基于官网在单元格内绘制自定义图形demo ,想使用interactjs将
蓝色圆形绑定draggable以移动图形的位置,代码如下
😊 Expected Behavior
触发start和move事件
😅 Current Behavior
没有触发任何事件
The text was updated successfully, but these errors were encountered: