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
版本2.18.1 无法绑定键盘事件
1
以下为错误1: const graph = new Graph({...options})
graph.bindKey('ctrl', () => {}) // 此处报错: 类型“Graph”上不存在属性“bindKey”
以下为错误2: const graph = new Graph({ keyboard: true // 此处报错 : 对象字面量只能指定已知属性,并且“keyboard”不在类型“Partial”中 })
按照文档所示 https://x6.antv.vision/zh/docs/tutorial/basic/keyboard 预期应正确绑定键盘事件
No response
The text was updated successfully, but these errors were encountered:
https://x6.antv.antgroup.com/tutorial/plugins/keyboard 由插件包提供此功能 文档过于混乱
Sorry, something went wrong.
你好,这个问题有解决吗
试试按这个重新装依赖: "@antv/x6": "latest", "@antv/x6-plugin-clipboard": "latest", "@antv/x6-plugin-history": "latest", "@antv/x6-plugin-keyboard": "latest", "@antv/x6-plugin-selection": "latest", "@antv/x6-plugin-snapline": "latest", "@antv/x6-plugin-stencil": "latest", "@antv/x6-plugin-transform": "latest", "insert-css": "latest",
No branches or pull requests
Describe the bug
版本2.18.1 无法绑定键盘事件
Your Example Website or App
1
Steps to Reproduce the Bug or Issue
以下为错误1:
const graph = new Graph({...options})
graph.bindKey('ctrl', () => {}) // 此处报错: 类型“Graph”上不存在属性“bindKey”
以下为错误2:
const graph = new Graph({
keyboard: true // 此处报错 : 对象字面量只能指定已知属性,并且“keyboard”不在类型“Partial”中
})
Expected behavior
按照文档所示 https://x6.antv.vision/zh/docs/tutorial/basic/keyboard
预期应正确绑定键盘事件
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: