jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.07k forks source link

add new style border in index.js #116

Closed 13hun closed 7 years ago

13hun commented 7 years ago

Can I add a new css property like border? following code which in module.exports

border = cloudBorder

also

cloud.border = function(_) {
    return arguments.length ? (border = functor(_), cloud) : border;
  };

and I declare a function as following

function cloudBorder() {
  return "initial";
}

although Chrome console show the style

qq20170301-110953 2x

but,nothing happend! css property border did not take effect in html page. what should I do?

13hun commented 7 years ago

I just know the element is text, it has no style property named border