mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix main example dependencies (#679)
This commit is contained in:
parent
3b0012423e
commit
cb173b0ac4
@ -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",
|
||||
|
||||
@ -5,7 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
const BABEL_CONFIG = {
|
||||
presets: [
|
||||
'@babel/env',
|
||||
['@babel/env', {shippedProposals: true}],
|
||||
'@babel/react'
|
||||
],
|
||||
plugins: [
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const EPSILON = 1e-12;
|
||||
const EPSILON = 1e-9;
|
||||
|
||||
// Discard precision errors for comparison
|
||||
export function toLowPrecision(input, precision = 11) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user