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
Describe the bug When passing register to Graphin props, custom G6 mode cannot be initiated as expected.
const register = { behavior: (G6: G6Type): BehaviorRegister[] => [ { mode: 'edit', // Custom mode options: {}, name: 'click-add-node', register: (G6: G6Type) => { G6.registerBehavior('click-add-node', clickAddNodeBehvavior); }, }, ], };
Additional context The issue could be solved by allowing additional modes in this piece of code:
Graphin/packages/graphin/src/controller/init.ts
Lines 115 to 117 in 3425139
The text was updated successfully, but these errors were encountered:
mode最早的设计是做事件隔离,做编辑状态和普通状态的切换,g6目前专注做图分析, 图编辑已经慢慢弱化,mode模式在上层graphin的图组件里,可以考虑做个兼容处理。
Sorry, something went wrong.
f7f8896
Merge pull request #63 from totogo/issue-62-multi-modes
a34a07d
fix: Support multiple behavior modes closes #62
No branches or pull requests
Describe the bug
When passing register to Graphin props, custom G6 mode cannot be initiated as expected.
Additional context
The issue could be solved by allowing additional modes in this piece of code:
Graphin/packages/graphin/src/controller/init.ts
Lines 115 to 117 in 3425139
The text was updated successfully, but these errors were encountered: