Skip to content

Commit

Permalink
chore: fix build issues (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisd23 authored and chrisprice committed Mar 1, 2018
1 parent 682ca68 commit fc88863
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 31 deletions.
13 changes: 1 addition & 12 deletions packages/d3fc-annotation/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
{
"extends": "standard",
"env": {
"jasmine": true
},
"rules": {
"semi": [1, "always"],
"indent": [2, 4],
"space-before-function-paren": [2, "never"],
"padded-blocks": 0,
"no-multi-spaces": 0,
"no-unused-vars": 0
}
"extends": "./node_modules/d3fc-scripts/.eslintrc.json"
}
4 changes: 2 additions & 2 deletions packages/d3fc-annotation/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ cache:
notifications:
email: false
node_js:
- '4'
- '5.7'
before_install:
- npm i -g npm@^2.0.0
- npm i -g npm@^3.0.0
before_script:
- npm prune
after_success:
Expand Down
6 changes: 3 additions & 3 deletions packages/d3fc-annotation/examples/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ function render() {
var svg = d3.select('svg');

xAxisJoin(svg, function(d) { return [d]; })
.attr('transform', 'translate(0, ' + (height - 20) +')')
.attr('transform', 'translate(0, ' + (height - 20) + ')')
.call(xAxis);

yAxisJoin(svg, function(d) { return [d]; })
.attr('transform', 'translate(' + (width - 30) +', 0)')
.attr('transform', 'translate(' + (width - 30) + ', 0)')
.call(yAxis);

if (typeof renderComponent === 'function') {
renderComponent();
renderComponent();
}

requestAnimationFrame(render);
Expand Down
20 changes: 10 additions & 10 deletions packages/d3fc-annotation/examples/crosshair.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ var crosshair = fc.annotationSvgCrosshair()
.xScale(xScale)
.yScale(yScale)
.xLabel(function(d) {
var format = d3.format('.2f');
var value = xScale.invert(d.x);
return format(value);
var format = d3.format('.2f');
var value = xScale.invert(d.x);
return format(value);
})
.yLabel(function(d) {
var format = d3.format('.2f');
var value = yScale.invert(d.y);
return format(value);
var format = d3.format('.2f');
var value = yScale.invert(d.y);
return format(value);
})
.decorate(function(g) {
g.selectAll('.point>path')
.attr('transform', 'scale(10)');
g.selectAll('.point>path')
.attr('transform', 'scale(10)');
});

var data = [{ x: 215, y: 106 }];
Expand All @@ -28,8 +28,8 @@ function renderComponent() {
.datum(data)
.call(crosshair)
.on('mousemove', function() {
var point = d3.mouse(this);
data[0] = { x: point[0], y: point[1] };
var point = d3.mouse(this);
data[0] = { x: point[0], y: point[1] };
});
}

Expand Down
6 changes: 2 additions & 4 deletions packages/d3fc-annotation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
},
"scripts": {
"bundle": "d3fc-scripts bundle",
"test": "eslint examples/**/*.js && d3fc-scripts test",
"test": "d3fc-scripts test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"devDependencies": {
"d3-axis": "^1.0.3",
"d3-shape": "^1.0.3",
"d3fc-scripts": "^1.1.4",
"eslint-config-defaults": "^9.0.0",
"webshot": "^0.18.0",
"semantic-release": "^4.3.5"
"webshot": "^0.18.0"
},
"dependencies": {
"d3-scale": "^1.0.1",
Expand Down

0 comments on commit fc88863

Please sign in to comment.