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

可以修改绘制起点origin吗? #166

Open
Vicky9001 opened this issue Aug 24, 2023 · 0 comments
Open

可以修改绘制起点origin吗? #166

Vicky9001 opened this issue Aug 24, 2023 · 0 comments

Comments

@Vicky9001
Copy link

我看到源码里的layout.js中settings变量里有一个origin,这个origin是绘制起点,后面有一个判断条件,判断options是否为空,将options里的变量写入settings。
代码逻辑似乎是将权重最大的文本放在起点,首先进行绘制,我想在使用wordCloud时修改绘制起点可以怎么做呢?
我尝试在option里添加:origin:[0,0] 或者在option的series里添加:origin:[0,0],都失败了,断点调试发现运行时layout.js的options没有origin属性呜呜呜呜呜呜呜呜呜呜呜呜呜呜呜呜

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

1 participant