Fix main example dependencies (#679)

This commit is contained in:
Xiaoji Chen 2018-12-18 10:09:59 -08:00 committed by GitHub
parent 3b0012423e
commit cb173b0ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -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",

View File

@ -5,7 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const BABEL_CONFIG = {
presets: [
'@babel/env',
['@babel/env', {shippedProposals: true}],
'@babel/react'
],
plugins: [

View File

@ -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",

View File

@ -1,4 +1,4 @@
const EPSILON = 1e-12;
const EPSILON = 1e-9;
// Discard precision errors for comparison
export function toLowPrecision(input, precision = 11) {