w-gis 1.0.34 → 1.0.36

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 (45) hide show
  1. package/.eslintrc.js +17 -17
  2. package/.github/workflows/ci-test.yml +1 -1
  3. package/README.md +1 -1
  4. package/babel.config.js +1 -0
  5. package/dist/interp2.wk.umd.js +1 -1
  6. package/dist/w-gis.umd.js +2 -2
  7. package/dist/w-gis.umd.js.map +1 -1
  8. package/docs/-_class.mjs.html +5 -2
  9. package/docs/bufferMultiPolygon.mjs.html +5 -2
  10. package/docs/convertCoordinate.mjs.html +5 -2
  11. package/docs/examples/ex-convertCoordinate.html +1 -1
  12. package/docs/examples/ex-getCenterOfMassMultiPolygon.html +1 -1
  13. package/docs/examples/ex-getCentroidMultiPolygon.html +1 -1
  14. package/docs/fixCloseMultiPolygon.mjs.html +5 -2
  15. package/docs/fixNoCloseMultiPolygon.mjs.html +5 -2
  16. package/docs/getAreaMultiPolygon.mjs.html +5 -2
  17. package/docs/getAreaMultiPolygonSm.mjs.html +5 -2
  18. package/docs/getAreaPolygon.mjs.html +5 -2
  19. package/docs/getAreaRingString.mjs.html +5 -2
  20. package/docs/getBoxPolygon.mjs.html +5 -2
  21. package/docs/getCenterOfMassMultiPolygon.mjs.html +5 -2
  22. package/docs/getCentroidMultiPolygon.mjs.html +5 -2
  23. package/docs/importTurf.mjs.html +5 -2
  24. package/docs/index.html +5 -2
  25. package/docs/interp2.mjs.html +5 -2
  26. package/docs/interp2Kriging.mjs.html +5 -2
  27. package/docs/interp2NaturalNeighbor.mjs.html +5 -2
  28. package/docs/normalizeArray.mjs.html +5 -2
  29. package/docs/ptsXYZtoArr.mjs.html +5 -2
  30. package/docs/ptsXYtoArr.mjs.html +5 -2
  31. package/docs/scripts/collapse.js +19 -0
  32. package/docs/scripts/commonNav.js +28 -0
  33. package/docs/scripts/search.js +16 -0
  34. package/docs/styles/jsdoc.css +13 -2
  35. package/docs/styles/prettify.css +1 -0
  36. package/docs/toMultiPoint.mjs.html +8 -5
  37. package/docs/toMultiPolygon.mjs.html +8 -5
  38. package/docs/toPolygon.mjs.html +8 -5
  39. package/docs/w-gis.html +350 -287
  40. package/{g.mjs → g-convertCoordinate.mjs} +8 -9
  41. package/package.json +5 -5
  42. package/src/toMultiPoint.mjs +3 -3
  43. package/src/toMultiPolygon.mjs +3 -3
  44. package/src/toPolygon.mjs +3 -3
  45. package/test/convertCoordinate.test.mjs +6 -6
package/.eslintrc.js CHANGED
@@ -1,24 +1,24 @@
1
1
  module.exports = {
2
- "env": {
3
- "browser": true,
4
- "es6": true,
5
- "mocha": true
2
+ 'env': {
3
+ 'browser': true,
4
+ 'es6': true,
5
+ 'mocha': true
6
6
  },
7
- "extends": ["plugin:vue/base", "plugin:vue/essential", "standard"],
8
- "plugins": [
9
- "vue"
7
+ 'extends': ['plugin:vue/base', 'plugin:vue/essential', 'standard'],
8
+ 'plugins': [
9
+ 'vue'
10
10
  ],
11
- "globals": {
12
- "Atomics": "readonly",
13
- "SharedArrayBuffer": "readonly"
11
+ 'globals': {
12
+ 'Atomics': 'readonly',
13
+ 'SharedArrayBuffer': 'readonly'
14
14
  },
15
- "parser": "vue-eslint-parser",
16
- "parserOptions": {
17
- "parser": "babel-eslint",
18
- "ecmaVersion": 2019,
19
- "sourceType": "module",
15
+ 'parser': 'vue-eslint-parser',
16
+ 'parserOptions': {
17
+ 'parser': '@babel/eslint-parser',
18
+ 'ecmaVersion': 2019,
19
+ 'sourceType': 'module',
20
20
  },
21
- rules: {
21
+ 'rules': {
22
22
  'generator-star-spacing': 'off',
23
23
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
24
24
  'indent': ['error', 4],
@@ -51,4 +51,4 @@ module.exports = {
51
51
  'array-callback-return': 'off',
52
52
  'no-unreachable-loop': 'off',
53
53
  }
54
- };
54
+ }
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [16.x]
12
+ node-version: [18.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
package/README.md CHANGED
@@ -31,6 +31,6 @@ npm i w-gis
31
31
 
32
32
  Add script for w-gis.
33
33
  ```alias
34
- <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.34/dist/w-gis.umd.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.36/dist/w-gis.umd.js"></script>
35
35
 
36
36
  ```
package/babel.config.js CHANGED
@@ -7,6 +7,7 @@ module.exports = {
7
7
  ],
8
8
  'plugins': [
9
9
  '@babel/plugin-transform-runtime',
10
+ '@babel/plugin-syntax-import-assertions',
10
11
  '@babel/plugin-proposal-export-default-from',
11
12
  '@babel/plugin-proposal-nullish-coalescing-operator',
12
13
  '@babel/plugin-proposal-optional-chaining'