Skip to content

Commit

Permalink
Update to d3-dispatch version 1.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Jan 12, 2017
1 parent 726aee9 commit 1912f4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function() {
cloudSprite(contextAndRatio, d, data, i);
if (d.hasText && place(board, d, bounds)) {
tags.push(d);
event.word(d);
event.call("word", cloud, d);
if (bounds) cloudBounds(bounds, d);
else bounds = [{x: d.x + d.x0, y: d.y + d.y0}, {x: d.x + d.x1, y: d.y + d.y1}];
// Temporary hack
Expand All @@ -72,7 +72,7 @@ module.exports = function() {
}
if (i >= n) {
cloud.stop();
event.end(tags, bounds);
event.call("end", cloud, tags, bounds);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-cloud",
"version": "1.2.2",
"version": "1.2.3",
"description": "Generate word clouds in JavaScript.",
"keywords": [
"word",
Expand All @@ -24,7 +24,7 @@
"build": "mkdir -p build && browserify --standalone d3.layout.cloud index.js > build/d3.layout.cloud.js"
},
"dependencies": {
"d3-dispatch": "0.2.x"
"d3-dispatch": "1"
},
"devDependencies": {
"browserify": "^11.2.0"
Expand Down

0 comments on commit 1912f4b

Please sign in to comment.