w-gis 1.0.12 → 1.0.13

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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/w-gis.umd.js +2 -2
  3. package/dist/w-gis.umd.js.map +1 -1
  4. package/docs/-_class.mjs.html +1 -1
  5. package/docs/convertCoordinate.mjs.html +1 -1
  6. package/docs/examples/ex-getCenterOfMassMultiPolygon.html +1 -1
  7. package/docs/examples/ex-getCentroidMultiPolygon.html +1 -1
  8. package/docs/index.html +1 -1
  9. package/docs/w-gis.html +1 -1
  10. package/g-getCenterOfMassMultiPolygon.mjs +3 -3
  11. package/g-getCentroidMultiPolygon.mjs +3 -3
  12. package/package.json +2 -1
  13. package/src/WGis.mjs +18 -585
  14. package/src/{convertTurfCode.mjs → _convertTurfCode.mjs} +5 -5
  15. package/src/{importTurfBrowser.mjs → _importTurfBrowser.mjs} +1 -4
  16. package/src/{importTurfNode.mjs → _importTurfNode.mjs} +0 -0
  17. package/src/_turfCoreBrowser.mjs +1 -0
  18. package/src/calcContours.mjs +267 -0
  19. package/src/clipMultiPolygon.mjs +15 -0
  20. package/src/distilMultiPolygon.mjs +30 -0
  21. package/src/fixGeometryMultiPolygon.mjs +52 -0
  22. package/src/getArea.mjs +20 -0
  23. package/src/getCenterOfMassMultiPolygon.mjs +24 -0
  24. package/src/getCentroidMultiPolygon.mjs +24 -0
  25. package/src/getTurf.mjs +32 -0
  26. package/src/intersectMultiPolygon.mjs +21 -0
  27. package/src/invCoordMultiPolygon.mjs +22 -0
  28. package/src/invCoordPolygon.mjs +24 -0
  29. package/src/isPointInPolygon.mjs +21 -0
  30. package/src/maskMultiPolygon.mjs +21 -0
  31. package/src/parseGeometryCollection.mjs +27 -0
  32. package/src/simplifyMultiPolygon.mjs +41 -0
  33. package/src/splineMultiPolygon.mjs +38 -0
  34. package/src/toMultiPolygon.mjs +49 -0
  35. package/toolg/gPackageIndex.mjs +46 -0
  36. package/src/importTurfBrowser.json +0 -1
@@ -59,7 +59,7 @@
59
59
  <br class="clear">
60
60
 
61
61
  <footer>
62
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 17:04:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
62
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Jul 28 2022 17:58:02 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
63
63
  </footer>
64
64
 
65
65
  <script>prettyPrint();</script>
@@ -213,7 +213,7 @@ export default convertCoordinate
213
213
  <br class="clear">
214
214
 
215
215
  <footer>
216
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 17:04:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
216
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Jul 28 2022 17:58:02 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
217
  </footer>
218
218
 
219
219
  <script>prettyPrint();</script>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
12
12
 
13
- <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.12/dist/w-gis.umd.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.13/dist/w-gis.umd.js"></script>
14
14
 
15
15
  </head>
16
16
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  <script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
12
12
 
13
- <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.12/dist/w-gis.umd.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.13/dist/w-gis.umd.js"></script>
14
14
 
15
15
  </head>
16
16
 
package/docs/index.html CHANGED
@@ -68,7 +68,7 @@
68
68
  <br class="clear">
69
69
 
70
70
  <footer>
71
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 17:04:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
71
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Jul 28 2022 17:58:02 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
72
72
  </footer>
73
73
 
74
74
  <script>prettyPrint();</script>
package/docs/w-gis.html CHANGED
@@ -174,7 +174,7 @@
174
174
  <br class="clear">
175
175
 
176
176
  <footer>
177
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 17:04:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
177
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Jul 28 2022 17:58:02 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
178
178
  </footer>
179
179
 
180
180
  <script>prettyPrint();</script>
@@ -1,4 +1,4 @@
1
- import gis from './src/WGis.mjs'
1
+ import getCenterOfMassMultiPolygon from './src/getCenterOfMassMultiPolygon.mjs'
2
2
 
3
3
 
4
4
  let pg
@@ -11,7 +11,7 @@ pg = [
11
11
  [0, 1],
12
12
  [0, 0], //閉合不會影響質心值
13
13
  ]
14
- p = gis.getCenterOfMassMultiPolygon(pg)
14
+ p = getCenterOfMassMultiPolygon(pg)
15
15
  console.log(p)
16
16
  // => [ 33.336633663366335, 0.3366336633663366 ]
17
17
 
@@ -21,7 +21,7 @@ pg = [
21
21
  [1, 1],
22
22
  [0, 1],
23
23
  ]
24
- p = gis.getCenterOfMassMultiPolygon(pg)
24
+ p = getCenterOfMassMultiPolygon(pg)
25
25
  console.log(p)
26
26
  // => [ 33.336633663366335, 0.3366336633663366 ]
27
27
 
@@ -1,4 +1,4 @@
1
- import gis from './src/WGis.mjs'
1
+ import getCentroidMultiPolygon from './src/getCentroidMultiPolygon.mjs'
2
2
 
3
3
 
4
4
  let pg
@@ -11,7 +11,7 @@ pg = [
11
11
  [0, 1],
12
12
  [0, 0], //閉合會影響形心值, turf問題
13
13
  ]
14
- p = gis.getCentroidMultiPolygon(pg)
14
+ p = getCentroidMultiPolygon(pg)
15
15
  console.log(p)
16
16
  // => [ 25.25, 0.5 ]
17
17
 
@@ -21,7 +21,7 @@ pg = [
21
21
  [1, 1],
22
22
  [0, 1],
23
23
  ]
24
- p = gis.getCentroidMultiPolygon(pg)
24
+ p = getCentroidMultiPolygon(pg)
25
25
  console.log(p)
26
26
  // => [ 33.666666666666664, 0.3333333333333333 ]
27
27
 
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "w-gis",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "main": "dist/w-gis.umd.js",
5
5
  "dependencies": {
6
6
  "@turf/turf": "^6.5.0",
7
7
  "d3-tricontour": "^1.0.2",
8
8
  "lodash": "^4.17.21",
9
+ "polybooljs": "^1.2.0",
9
10
  "proj4": "^2.8.0",
10
11
  "wsemi": "^1.6.69"
11
12
  },