Replies: 2 comments
-
API coordinate, transform,interaction 保持统一会更好。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
close: #4628 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
改变配置 interaction 的方式
之前的 interaction 是通过一个数组去声明的:
但是如上声明会存在一些问题:
开始使用
希望通过通过一个 object 去声明交互,这种方式其实也是 G2 4.0 内部保存 interaction 的方式。
设计思路
数组形式的 API 在以下场景会比较有用:
但是对于交互来说:
Object.keys(obj)
的顺序可以保持。所以没有必要使用数组,并且方便合并。
Beta Was this translation helpful? Give feedback.
All reactions