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

Transform词云, 当size参数一个为0/null/undefined, 另一个为负数时 陷入死循环 #62

Open
iimmonica opened this issue Sep 11, 2019 · 0 comments

Comments

@iimmonica
Copy link

  • Link:
  • Platform:
  • Mini Showcase(like screenshots):

例子:
let ds = [
{name: "有餐厅", value: "91"},
{name: "有吃饭的地", value: "58"},
{name: "有停车场", value: "50"},
{name: "西单边", value: "37"},
{name: "位置很好", value: "23"},
{name: "强烈推荐", value: "21"}
];

let dv = new DataSet.View().source(ds);

dv.transform({
type: 'tag-cloud',
fields: 100,
size: [0, -100],
font: 'serif',
padding: 0,
spiral: 'archimedean',
fontSize(d) { return d.value / 5 },
timeInterval: Infinity,
});

程序将在data-set/src/util/tag-cloud.js l311-l320 陷入死循环

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