@turf/mask 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +7 -7
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +11 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// index.ts
|
|
2
2
|
var _helpers = require('@turf/helpers');
|
|
3
|
-
var
|
|
3
|
+
var _polyclipts = require('polyclip-ts'); var polyclip = _interopRequireWildcard(_polyclipts);
|
|
4
4
|
var _clone = require('@turf/clone');
|
|
5
5
|
function mask(polygon, mask2, options) {
|
|
6
6
|
var _a;
|
|
@@ -15,11 +15,11 @@ function mask(polygon, mask2, options) {
|
|
|
15
15
|
polygonOuters = unionFc(polygon);
|
|
16
16
|
} else if (polygon.type === "Feature") {
|
|
17
17
|
polygonOuters = createGeomFromPolygonClippingOutput(
|
|
18
|
-
|
|
18
|
+
polyclip.union(polygon.geometry.coordinates)
|
|
19
19
|
);
|
|
20
20
|
} else {
|
|
21
21
|
polygonOuters = createGeomFromPolygonClippingOutput(
|
|
22
|
-
|
|
22
|
+
polyclip.union(polygon.coordinates)
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
polygonOuters.geometry.coordinates.forEach(function(contour) {
|
|
@@ -28,11 +28,11 @@ function mask(polygon, mask2, options) {
|
|
|
28
28
|
return maskPolygon;
|
|
29
29
|
}
|
|
30
30
|
function unionFc(fc) {
|
|
31
|
-
const unioned = fc.features.length === 2 ?
|
|
31
|
+
const unioned = fc.features.length === 2 ? polyclip.union(
|
|
32
32
|
fc.features[0].geometry.coordinates,
|
|
33
33
|
fc.features[1].geometry.coordinates
|
|
34
|
-
) :
|
|
35
|
-
|
|
34
|
+
) : polyclip.union.apply(
|
|
35
|
+
polyclip,
|
|
36
36
|
fc.features.map(function(f) {
|
|
37
37
|
return f.geometry.coordinates;
|
|
38
38
|
})
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"names":["mask"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/turf/turf/packages/turf-mask/dist/cjs/index.cjs","../../index.ts"],"names":["mask"],"mappings":"AAAA;ACOA,wCAAuD;AACvD,8FAA0B;AAC1B,oCAAsB;AAqBtB,SAAS,IAAA,CACP,OAAA,EACAA,KAAAA,EACA,OAAA,EACkB;AAlCpB,EAAA,IAAA,EAAA;AAmCE,EAAA,MAAM,OAAA,EAAA,CAAS,GAAA,EAAA,QAAA,GAAA,KAAA,EAAA,KAAA,EAAA,EAAA,OAAA,CAAS,MAAA,EAAA,GAAT,KAAA,EAAA,GAAA,EAAmB,KAAA;AAElC,EAAA,IAAI,aAAA,EAAeA,KAAAA;AACnB,EAAA,GAAA,CAAIA,MAAAA,GAAQ,OAAA,IAAW,KAAA,EAAO;AAE5B,IAAA,aAAA,EAAe,0BAAA,KAAU,CAAA;AAAA,EAC3B;AAGA,EAAA,MAAM,YAAA,EAAc,UAAA,CAAW,YAAY,CAAA;AAE3C,EAAA,IAAI,cAAA,EAAgB,IAAA;AACpB,EAAA,GAAA,CAAI,OAAA,CAAQ,KAAA,IAAS,mBAAA,EAAqB;AACxC,IAAA,cAAA,EAAgB,OAAA,CAAQ,OAAO,CAAA;AAAA,EACjC,EAAA,KAAA,GAAA,CAAW,OAAA,CAAQ,KAAA,IAAS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AC,GAAA,EAAK,EAAE,CAAA;AAAA,MACR,CAAC,CAAA,GAAA,EAAM,EAAE,CAAA;AAAA,MACT,CAAC,CAAA,GAAA,EAAM,CAAA,EAAG,CAAA;AAAA,MACV,CAAC,GAAA,EAAK,CAAA,EAAG,CAAA;AAAA,MACT,CAAC,GAAA,EAAK,EAAE;AAAA,IACV;AAAA,EACF,CAAA;AACA,EAAA,IAAI,YAAA,EAAc,KAAA;AAClB,EAAA,GAAA,CAAIA,KAAAA,EAAM;AACR,IAAA,GAAA,CAAIA,KAAAA,CAAK,KAAA,IAAS,SAAA,EAAW;AAE3B,MAAA,YAAA,EAAcA,KAAAA,CAAK,QAAA,CAAS,WAAA;AAAA,IAC9B,EAAA,KAAO;AAEL,MAAA,YAAA,EAAcA,KAAAA,CAAK,WAAA;AAAA,IACrB;AAAA,EACF;AACA,EAAA,OAAO,8BAAA,WAAyB,CAAA;AAClC;AAGA,IAAO,kBAAA,EAAQ,IAAA;ADhEf;AACE;AACA;AACF,yDAAC","file":"/home/runner/work/turf/turf/packages/turf-mask/dist/cjs/index.cjs","sourcesContent":[null,"import {\n Feature,\n FeatureCollection,\n Polygon,\n Position,\n MultiPolygon,\n} from \"geojson\";\nimport { polygon as createPolygon, multiPolygon } from \"@turf/helpers\";\nimport * as polyclip from \"polyclip-ts\";\nimport { clone } from \"@turf/clone\";\n\n/**\n * Takes polygons or multipolygons and an optional mask, and returns an exterior\n * ring polygon with holes.\n *\n * @function\n * @param {Polygon|MultiPolygon|Feature<Polygon|MultiPolygon>|FeatureCollection<Polygon|MultiPolygon>} polygon GeoJSON polygon used as interior rings or holes\n * @param {Polygon|Feature<Polygon>} [mask] GeoJSON polygon used as the exterior ring (if undefined, the world extent is used)\n * @param {Object} [options={}] Optional parameters\n * @param {boolean} [options.mutate=false] allows the `mask` GeoJSON input to be mutated (performance improvement if true)\n * @returns {Feature<Polygon>} Masked Polygon (exterior ring with holes)\n * @example\n * const polygon = turf.polygon([[[112, -21], [116, -36], [146, -39], [153, -24], [133, -10], [112, -21]]]);\n * const mask = turf.polygon([[[90, -55], [170, -55], [170, 10], [90, 10], [90, -55]]]);\n *\n * const masked = turf.mask(polygon, mask);\n *\n * //addToMap\n * const addToMap = [masked]\n */\nfunction mask<T extends Polygon | MultiPolygon>(\n polygon: T | Feature<T> | FeatureCollection<T>,\n mask?: Polygon | Feature<Polygon>,\n options?: { mutate?: boolean }\n): Feature<Polygon> {\n const mutate = options?.mutate ?? false; // by default, do not mutate\n\n let maskTemplate = mask;\n if (mask && mutate === false) {\n // Clone mask if requested to avoid side effects\n maskTemplate = clone(mask);\n }\n\n // Define initial mask\n const maskPolygon = createMask(maskTemplate);\n\n let polygonOuters = null;\n if (polygon.type === \"FeatureCollection\") {\n polygonOuters = unionFc(polygon);\n } else if (polygon.type === \"Feature\") {\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n polygonOuters = createGeomFromPolygonClippingOutput(\n polyclip.union(polygon.geometry.coordinates as polyclip.Geom)\n );\n } else {\n // Geometry\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n polygonOuters = createGeomFromPolygonClippingOutput(\n polyclip.union(polygon.coordinates as polyclip.Geom)\n );\n }\n\n polygonOuters.geometry.coordinates.forEach(function (contour) {\n maskPolygon.geometry.coordinates.push(contour[0]);\n });\n\n return maskPolygon;\n}\n\nfunction unionFc(fc: FeatureCollection<Polygon | MultiPolygon>) {\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n\n // Stick with apply() below as spread operator degrades performance. Have\n // to disable prefer-spread lint rule though.\n /* eslint-disable prefer-spread */\n const unioned =\n fc.features.length === 2\n ? polyclip.union(\n fc.features[0].geometry.coordinates as polyclip.Geom,\n fc.features[1].geometry.coordinates as polyclip.Geom\n )\n : polyclip.union.apply(\n polyclip,\n fc.features.map(function (f) {\n return f.geometry.coordinates;\n }) as [polyclip.Geom, ...polyclip.Geom[]]\n );\n /* eslint-enable */\n return createGeomFromPolygonClippingOutput(unioned);\n}\n\nfunction createGeomFromPolygonClippingOutput(unioned: Position[][][]) {\n return multiPolygon(unioned);\n}\n\n/**\n * Create Mask Coordinates\n *\n * @private\n * @param {Feature<Polygon>} [mask] default to world if undefined\n * @returns {Feature<Polygon>} mask as a polygon\n */\nfunction createMask(mask: Feature<Polygon> | Polygon | undefined) {\n const world = [\n [\n [180, 90],\n [-180, 90],\n [-180, -90],\n [180, -90],\n [180, 90],\n ],\n ];\n let coordinates = world;\n if (mask) {\n if (mask.type === \"Feature\") {\n // polygon feature\n coordinates = mask.geometry.coordinates;\n } else {\n // polygon geometry\n coordinates = mask.coordinates;\n }\n }\n return createPolygon(coordinates);\n}\n\nexport { mask };\nexport default mask;\n"]}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { Polygon, MultiPolygon, Feature, FeatureCollection } from 'geojson';
|
|
|
4
4
|
* Takes polygons or multipolygons and an optional mask, and returns an exterior
|
|
5
5
|
* ring polygon with holes.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @function
|
|
8
8
|
* @param {Polygon|MultiPolygon|Feature<Polygon|MultiPolygon>|FeatureCollection<Polygon|MultiPolygon>} polygon GeoJSON polygon used as interior rings or holes
|
|
9
9
|
* @param {Polygon|Feature<Polygon>} [mask] GeoJSON polygon used as the exterior ring (if undefined, the world extent is used)
|
|
10
10
|
* @param {Object} [options={}] Optional parameters
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Polygon, MultiPolygon, Feature, FeatureCollection } from 'geojson';
|
|
|
4
4
|
* Takes polygons or multipolygons and an optional mask, and returns an exterior
|
|
5
5
|
* ring polygon with holes.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @function
|
|
8
8
|
* @param {Polygon|MultiPolygon|Feature<Polygon|MultiPolygon>|FeatureCollection<Polygon|MultiPolygon>} polygon GeoJSON polygon used as interior rings or holes
|
|
9
9
|
* @param {Polygon|Feature<Polygon>} [mask] GeoJSON polygon used as the exterior ring (if undefined, the world extent is used)
|
|
10
10
|
* @param {Object} [options={}] Optional parameters
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// index.ts
|
|
2
2
|
import { polygon as createPolygon, multiPolygon } from "@turf/helpers";
|
|
3
|
-
import
|
|
3
|
+
import * as polyclip from "polyclip-ts";
|
|
4
4
|
import { clone } from "@turf/clone";
|
|
5
5
|
function mask(polygon, mask2, options) {
|
|
6
6
|
var _a;
|
|
@@ -15,11 +15,11 @@ function mask(polygon, mask2, options) {
|
|
|
15
15
|
polygonOuters = unionFc(polygon);
|
|
16
16
|
} else if (polygon.type === "Feature") {
|
|
17
17
|
polygonOuters = createGeomFromPolygonClippingOutput(
|
|
18
|
-
|
|
18
|
+
polyclip.union(polygon.geometry.coordinates)
|
|
19
19
|
);
|
|
20
20
|
} else {
|
|
21
21
|
polygonOuters = createGeomFromPolygonClippingOutput(
|
|
22
|
-
|
|
22
|
+
polyclip.union(polygon.coordinates)
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
polygonOuters.geometry.coordinates.forEach(function(contour) {
|
|
@@ -28,11 +28,11 @@ function mask(polygon, mask2, options) {
|
|
|
28
28
|
return maskPolygon;
|
|
29
29
|
}
|
|
30
30
|
function unionFc(fc) {
|
|
31
|
-
const unioned = fc.features.length === 2 ?
|
|
31
|
+
const unioned = fc.features.length === 2 ? polyclip.union(
|
|
32
32
|
fc.features[0].geometry.coordinates,
|
|
33
33
|
fc.features[1].geometry.coordinates
|
|
34
|
-
) :
|
|
35
|
-
|
|
34
|
+
) : polyclip.union.apply(
|
|
35
|
+
polyclip,
|
|
36
36
|
fc.features.map(function(f) {
|
|
37
37
|
return f.geometry.coordinates;
|
|
38
38
|
})
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import {\n Feature,\n FeatureCollection,\n Polygon,\n Position,\n MultiPolygon,\n} from \"geojson\";\nimport { polygon as createPolygon, multiPolygon } from \"@turf/helpers\";\nimport
|
|
1
|
+
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import {\n Feature,\n FeatureCollection,\n Polygon,\n Position,\n MultiPolygon,\n} from \"geojson\";\nimport { polygon as createPolygon, multiPolygon } from \"@turf/helpers\";\nimport * as polyclip from \"polyclip-ts\";\nimport { clone } from \"@turf/clone\";\n\n/**\n * Takes polygons or multipolygons and an optional mask, and returns an exterior\n * ring polygon with holes.\n *\n * @function\n * @param {Polygon|MultiPolygon|Feature<Polygon|MultiPolygon>|FeatureCollection<Polygon|MultiPolygon>} polygon GeoJSON polygon used as interior rings or holes\n * @param {Polygon|Feature<Polygon>} [mask] GeoJSON polygon used as the exterior ring (if undefined, the world extent is used)\n * @param {Object} [options={}] Optional parameters\n * @param {boolean} [options.mutate=false] allows the `mask` GeoJSON input to be mutated (performance improvement if true)\n * @returns {Feature<Polygon>} Masked Polygon (exterior ring with holes)\n * @example\n * const polygon = turf.polygon([[[112, -21], [116, -36], [146, -39], [153, -24], [133, -10], [112, -21]]]);\n * const mask = turf.polygon([[[90, -55], [170, -55], [170, 10], [90, 10], [90, -55]]]);\n *\n * const masked = turf.mask(polygon, mask);\n *\n * //addToMap\n * const addToMap = [masked]\n */\nfunction mask<T extends Polygon | MultiPolygon>(\n polygon: T | Feature<T> | FeatureCollection<T>,\n mask?: Polygon | Feature<Polygon>,\n options?: { mutate?: boolean }\n): Feature<Polygon> {\n const mutate = options?.mutate ?? false; // by default, do not mutate\n\n let maskTemplate = mask;\n if (mask && mutate === false) {\n // Clone mask if requested to avoid side effects\n maskTemplate = clone(mask);\n }\n\n // Define initial mask\n const maskPolygon = createMask(maskTemplate);\n\n let polygonOuters = null;\n if (polygon.type === \"FeatureCollection\") {\n polygonOuters = unionFc(polygon);\n } else if (polygon.type === \"Feature\") {\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n polygonOuters = createGeomFromPolygonClippingOutput(\n polyclip.union(polygon.geometry.coordinates as polyclip.Geom)\n );\n } else {\n // Geometry\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n polygonOuters = createGeomFromPolygonClippingOutput(\n polyclip.union(polygon.coordinates as polyclip.Geom)\n );\n }\n\n polygonOuters.geometry.coordinates.forEach(function (contour) {\n maskPolygon.geometry.coordinates.push(contour[0]);\n });\n\n return maskPolygon;\n}\n\nfunction unionFc(fc: FeatureCollection<Polygon | MultiPolygon>) {\n // Need to cast below as Position[][] isn't quite as strict as Geom, even\n // though they should be equivalent.\n\n // Stick with apply() below as spread operator degrades performance. Have\n // to disable prefer-spread lint rule though.\n /* eslint-disable prefer-spread */\n const unioned =\n fc.features.length === 2\n ? polyclip.union(\n fc.features[0].geometry.coordinates as polyclip.Geom,\n fc.features[1].geometry.coordinates as polyclip.Geom\n )\n : polyclip.union.apply(\n polyclip,\n fc.features.map(function (f) {\n return f.geometry.coordinates;\n }) as [polyclip.Geom, ...polyclip.Geom[]]\n );\n /* eslint-enable */\n return createGeomFromPolygonClippingOutput(unioned);\n}\n\nfunction createGeomFromPolygonClippingOutput(unioned: Position[][][]) {\n return multiPolygon(unioned);\n}\n\n/**\n * Create Mask Coordinates\n *\n * @private\n * @param {Feature<Polygon>} [mask] default to world if undefined\n * @returns {Feature<Polygon>} mask as a polygon\n */\nfunction createMask(mask: Feature<Polygon> | Polygon | undefined) {\n const world = [\n [\n [180, 90],\n [-180, 90],\n [-180, -90],\n [180, -90],\n [180, 90],\n ],\n ];\n let coordinates = world;\n if (mask) {\n if (mask.type === \"Feature\") {\n // polygon feature\n coordinates = mask.geometry.coordinates;\n } else {\n // polygon geometry\n coordinates = mask.coordinates;\n }\n }\n return createPolygon(coordinates);\n}\n\nexport { mask };\nexport default mask;\n"],"mappings":";AAOA,SAAS,WAAW,eAAe,oBAAoB;AACvD,YAAY,cAAc;AAC1B,SAAS,aAAa;AAqBt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M;AACR,QAAIA,MAAK,SAAS,WAAW;AAE3B,oBAAcA,MAAK,SAAS;AAAA,IAC9B,OAAO;AAEL,oBAAcA,MAAK;AAAA,IACrB;AAAA,EACF;AACA,SAAO,cAAc,WAAW;AAClC;AAGA,IAAO,oBAAQ;","names":["mask"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/mask",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "turf mask module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/benchmark": "^2.1.5",
|
|
55
|
-
"@types/tape": "^4.
|
|
55
|
+
"@types/tape": "^4.13.4",
|
|
56
56
|
"benchmark": "^2.1.4",
|
|
57
57
|
"load-json-file": "^7.0.1",
|
|
58
58
|
"mkdirp": "^3.0.1",
|
|
59
59
|
"npm-run-all": "^4.1.5",
|
|
60
|
-
"tape": "^5.
|
|
61
|
-
"tsup": "^8.
|
|
62
|
-
"tsx": "^4.
|
|
63
|
-
"typescript": "^5.
|
|
60
|
+
"tape": "^5.9.0",
|
|
61
|
+
"tsup": "^8.3.5",
|
|
62
|
+
"tsx": "^4.19.2",
|
|
63
|
+
"typescript": "^5.5.4",
|
|
64
64
|
"write-json-file": "^5.0.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@turf/clone": "^7.
|
|
68
|
-
"@turf/helpers": "^7.
|
|
67
|
+
"@turf/clone": "^7.2.0",
|
|
68
|
+
"@turf/helpers": "^7.2.0",
|
|
69
69
|
"@types/geojson": "^7946.0.10",
|
|
70
|
-
"
|
|
71
|
-
"tslib": "^2.
|
|
70
|
+
"polyclip-ts": "^0.16.8",
|
|
71
|
+
"tslib": "^2.8.1"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867"
|
|
74
74
|
}
|