Skip to content

Commit

Permalink
updates d3plus dependencies to support configPrep function
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed May 26, 2017
1 parent f9aa79b commit 1c44270
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"d3-array": "^1.2.0",
"d3-collection": "^1.0.1",
"d3-scale": "^1.0.6",
"d3plus-axis": "^0.3.22",
"d3plus-common": "^0.6.12",
"d3plus-axis": "^0.3.29",
"d3plus-common": "^0.6.18",
"d3plus-shape": "^0.13.1",
"d3plus-viz": "^0.8.3"
"d3plus-viz": "^0.9.0"
},
"scripts": {
"build": "d3plus-build",
Expand Down
4 changes: 2 additions & 2 deletions src/Priestley.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {nest} from "d3-collection";
import {scalePoint} from "d3-scale";

import {Axis, date} from "d3plus-axis";
import {accessor, assign, elem} from "d3plus-common";
import {accessor, assign, configPrep, elem} from "d3plus-common";
import {Rect} from "d3plus-shape";
import {Viz} from "d3plus-viz";

Expand Down Expand Up @@ -122,7 +122,7 @@ export default class Priestley extends Viz {
})
.x(d => xScale(d.start) + (xScale(d.end) - xScale(d.start)) / 2)
.y(d => yScale(d.lane))
.config(this._shapeConfigPrep("Rect"))
.config(configPrep.bind(this)(this._shapeConfig, "shape", "Rect"))
.render());

return this;
Expand Down

0 comments on commit 1c44270

Please sign in to comment.