Skip to content
New issue

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

Layer是否可以提供获取G2 view方法 #128

Closed
visiky opened this issue Oct 21, 2019 · 0 comments
Closed

Layer是否可以提供获取G2 view方法 #128

visiky opened this issue Oct 21, 2019 · 0 comments

Comments

@visiky
Copy link
Member

visiky commented Oct 21, 2019

https://github.com/antvis/g2plot/blob/dbe398091d0a5e35f64020f270565a86564a6a11/src/base/ViewLayer.ts#L17

此处创建的是一个 G2.View,但是命名上一直是一个plot,并且外部调用直接都是 xxxPlot.getLayer().plot 很容易造成误解(G2 view和plot概念不清)
是否可以在 Layer类提供一个getG2view的方法,利用方法名说明使用方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants