mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Use the ES6 export for martinez-polygon-clipping
This commit is contained in:
@@ -22,10 +22,7 @@ export default {
|
||||
plugins: [
|
||||
progress(),
|
||||
includePaths({
|
||||
paths: ['node_modules/d3/node_modules'], // npm2 or windows
|
||||
include: {
|
||||
'martinez-polygon-clipping': 'node_modules/martinez-polygon-clipping/dist/martinez.umd.js'
|
||||
}
|
||||
paths: ['node_modules/d3/node_modules'] // npm2 or windows
|
||||
}),
|
||||
nodeResolve({ dedupe: ['object-inspect'] }),
|
||||
commonjs(),
|
||||
|
||||
@@ -23,10 +23,7 @@ export default {
|
||||
plugins: [
|
||||
progress(),
|
||||
includePaths({
|
||||
paths: ['node_modules/d3/node_modules'], // npm2 or windows
|
||||
include: {
|
||||
'martinez-polygon-clipping': 'node_modules/martinez-polygon-clipping/dist/martinez.umd.js'
|
||||
}
|
||||
paths: ['node_modules/d3/node_modules'] // npm2 or windows
|
||||
}),
|
||||
nodeResolve({ dedupe: ['object-inspect'] }),
|
||||
commonjs(),
|
||||
|
||||
@@ -22,10 +22,7 @@ export default {
|
||||
plugins: [
|
||||
progress(),
|
||||
includePaths({
|
||||
paths: ['node_modules/d3/node_modules'], // npm2 or windows
|
||||
include: {
|
||||
'martinez-polygon-clipping': 'node_modules/martinez-polygon-clipping/dist/martinez.umd.js'
|
||||
}
|
||||
paths: ['node_modules/d3/node_modules'] // npm2 or windows
|
||||
}),
|
||||
nodeResolve({ dedupe: ['object-inspect'] }),
|
||||
commonjs(),
|
||||
|
||||
@@ -65,8 +65,8 @@ function vtToGeoJSON(data, tile, mergeCache) {
|
||||
var merged = mergeCache[propertyhash];
|
||||
if (merged && merged.length) {
|
||||
var other = merged[0];
|
||||
var coords = martinez.union(
|
||||
feature.geometry.coordinates, other.geometry.coordinates
|
||||
var coords = martinez(
|
||||
feature.geometry.coordinates, other.geometry.coordinates, 1 /*UNION*/
|
||||
);
|
||||
|
||||
if (!coords || !coords.length) {
|
||||
|
||||
Reference in New Issue
Block a user