w-gis 1.0.69 → 1.0.71

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 (68) hide show
  1. package/.github/workflows/ci-test.yml +1 -1
  2. package/LICENSE +4 -0
  3. package/README.md +11 -1
  4. package/babel.config.js +4 -3
  5. package/dist/interp2.wk.umd.js +1 -1
  6. package/dist/w-gis.umd.js +4 -4
  7. package/dist/w-gis.umd.js.map +1 -1
  8. package/docs/-_class.mjs.html +1 -1
  9. package/docs/bufferMultiPolygon.mjs.html +1 -1
  10. package/docs/buildFindPointInGeojson.mjs.html +1 -1
  11. package/docs/buildFindPointInKpBoxPolygons.mjs.html +1 -1
  12. package/docs/buildFindPointInKpPolygons.mjs.html +1 -1
  13. package/docs/buildFindPointInTiff.mjs.html +1 -1
  14. package/docs/calcContours.mjs.html +1 -1
  15. package/docs/calcDelaunay.mjs.html +1 -1
  16. package/docs/calcVoronoi.mjs.html +1 -1
  17. package/docs/convertCoordinate.mjs.html +1 -1
  18. package/docs/examples/ex-convertCoordinate.html +1 -1
  19. package/docs/examples/ex-getCenterOfMassMultiPolygon.html +1 -1
  20. package/docs/examples/ex-getCentroidMultiPolygon.html +1 -1
  21. package/docs/findPointInKpBoxPolygons.mjs.html +1 -1
  22. package/docs/findPointInKpFeature.mjs.html +1 -1
  23. package/docs/findPointInKpPolygons.mjs.html +1 -1
  24. package/docs/fixCloseMultiPolygon.mjs.html +1 -1
  25. package/docs/fixNoCloseMultiPolygon.mjs.html +1 -1
  26. package/docs/getAreaMultiPolygon.mjs.html +1 -1
  27. package/docs/getAreaMultiPolygonSm.mjs.html +1 -1
  28. package/docs/getAreaPolygon.mjs.html +1 -1
  29. package/docs/getAreaRingString.mjs.html +1 -1
  30. package/docs/getBox.mjs.html +1 -1
  31. package/docs/getBoxFromGeojson.mjs.html +1 -1
  32. package/docs/getBoxPolygon.mjs.html +1 -1
  33. package/docs/getCenterOfMassMultiPolygon.mjs.html +1 -1
  34. package/docs/getCentroidMultiPolygon.mjs.html +1 -1
  35. package/docs/getKpFeatureFromGeojson.mjs.html +14 -5
  36. package/docs/importTurf.mjs.html +1 -1
  37. package/docs/index.html +1 -1
  38. package/docs/interp1.mjs.html +1 -1
  39. package/docs/interp2.mjs.html +1 -1
  40. package/docs/interp2Kriging.mjs.html +3 -4
  41. package/docs/interp2NaturalNeighbor.mjs.html +1 -1
  42. package/docs/interp3.mjs.html +1 -1
  43. package/docs/isPointInPolygons.mjs.html +1 -1
  44. package/docs/normalizeArray.mjs.html +1 -1
  45. package/docs/ptXYtoObj.mjs.html +1 -1
  46. package/docs/ptsXYZVtoArr.mjs.html +1 -1
  47. package/docs/ptsXYZtoArr.mjs.html +1 -1
  48. package/docs/ptsXYtoArr.mjs.html +1 -1
  49. package/docs/ptsXtoArr.mjs.html +1 -1
  50. package/docs/toMultiPoint.mjs.html +1 -1
  51. package/docs/toMultiPolygon.mjs.html +1 -1
  52. package/docs/toPolygon.mjs.html +1 -1
  53. package/docs/w-gis.html +4 -3
  54. package/g.mjs +1 -1
  55. package/g_calcContours.mjs +1 -1
  56. package/g_calcDelaunay.mjs +1 -1
  57. package/g_calcVoronoi.mjs +1 -1
  58. package/g_convertCoordinate.mjs +1 -1
  59. package/g_interp1.mjs +1 -1
  60. package/g_interp2.mjs +1 -1
  61. package/g_interp2Kriging.mjs +1 -1
  62. package/g_interp2NaturalNeighbor.mjs +1 -1
  63. package/g_interp3.mjs +1 -1
  64. package/package.json +3 -3
  65. package/script.txt +6 -6
  66. package/src/_convertTurfCode.mjs +1 -1
  67. package/src/getKpFeatureFromGeojson.mjs +13 -4
  68. package/src/interp2Kriging.mjs +2 -3
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [20.x]
12
+ node-version: [22.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
package/LICENSE CHANGED
@@ -12,6 +12,10 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
+ This project also incorporates code from the following upstream open-source project, licensed under the MIT License:
16
+
17
+ - [kriging.js](https://github.com/oeo4b/kriging.js) by oeo4b
18
+
15
19
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
20
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
21
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
package/README.md CHANGED
@@ -8,6 +8,16 @@ A tool for geotech analysis.
8
8
  [![npm download](https://img.shields.io/npm/dm/w-gis.svg)](https://npmjs.org/package/w-gis)
9
9
  [![jsdelivr download](https://img.shields.io/jsdelivr/npm/hm/w-gis.svg)](https://www.jsdelivr.com/package/npm/w-gis)
10
10
 
11
+ ## Statement
12
+
13
+ This project is forked and adapted from the following open-source project:
14
+
15
+ - Forked from [kriging.js](https://github.com/oeo4b/kriging.js) by oeo4b
16
+
17
+ The original project is licensed under the MIT License, and this project is also distributed under the MIT License.
18
+
19
+ Special thanks to the original author for their valuable contribution, which made this project possible. 🙏
20
+
11
21
  ## Documentation
12
22
  To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-gis/w-gis.html).
13
23
 
@@ -30,6 +40,6 @@ npm i w-gis
30
40
 
31
41
  Add script for w-gis.
32
42
  ```alias
33
- <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.69/dist/w-gis.umd.js"></script>
43
+ <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.71/dist/w-gis.umd.js"></script>
34
44
 
35
45
  ```
package/babel.config.js CHANGED
@@ -7,9 +7,10 @@ module.exports = {
7
7
  ],
8
8
  'plugins': [
9
9
  '@babel/plugin-transform-runtime',
10
- '@babel/plugin-syntax-import-assertions',
11
10
  '@babel/plugin-proposal-export-default-from',
12
- '@babel/plugin-proposal-nullish-coalescing-operator',
13
- '@babel/plugin-proposal-optional-chaining'
11
+ // '@babel/plugin-syntax-import-assertions', //已被棄用
12
+ // '@babel/plugin-proposal-nullish-coalescing-operator', //browser與nodejs已支援
13
+ // '@babel/plugin-proposal-object-rest-spread', //browser與nodejs已支援
14
+ // '@babel/plugin-proposal-optional-chaining', //browser與nodejs已支援
14
15
  ]
15
16
  }