diff --git a/examples/main/package.json b/examples/main/package.json index 50b0075a..ec535e7f 100644 --- a/examples/main/package.json +++ b/examples/main/package.json @@ -6,6 +6,7 @@ "start-local": "webpack-dev-server --env.local --progress --hot --open" }, "dependencies": { + "@turf/bbox": "^6.0.1", "d3-array": "^1.0.1", "d3-color": "^1.0.1", "d3-random": "^1.0.2", diff --git a/examples/main/webpack.config.js b/examples/main/webpack.config.js index 6b55faf7..76d4b6f6 100644 --- a/examples/main/webpack.config.js +++ b/examples/main/webpack.config.js @@ -5,7 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const BABEL_CONFIG = { presets: [ - '@babel/env', + ['@babel/env', {shippedProposals: true}], '@babel/react' ], plugins: [ diff --git a/package.json b/package.json index c2ba6edf..127359ee 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "README.md" ], "scripts": { - "start": "(cd examples/main && (if [ ! -d 'node_modules' ]; then npm i; fi) && npm run start-local)", + "start": "(cd examples/main && npm i && npm run start-local)", "build": "./scripts/build.sh && ./scripts/collect-metrics.sh", "typecheck": "flow check", "preversion": "npm run test", diff --git a/test/test-utils.js b/test/test-utils.js index b2cdf5cb..14e015c2 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -1,4 +1,4 @@ -const EPSILON = 1e-12; +const EPSILON = 1e-9; // Discard precision errors for comparison export function toLowPrecision(input, precision = 11) {