geojs 1.14.3 → 1.14.5

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 (56) hide show
  1. package/.github/workflows/main.yml +6 -3
  2. package/.pre-commit-config.yaml +3 -3
  3. package/eslint.config.js +129 -0
  4. package/geo.js +93362 -93349
  5. package/geo.lean.js +64743 -64730
  6. package/geo.lean.min.js +4 -4
  7. package/geo.min.js +11 -11
  8. package/package.json +12 -10
  9. package/src/annotation/annotation.js +13 -11
  10. package/src/annotation/circleAnnotation.js +1 -1
  11. package/src/annotation/ellipseAnnotation.js +1 -1
  12. package/src/annotation/lineAnnotation.js +18 -16
  13. package/src/annotation/pointAnnotation.js +8 -8
  14. package/src/annotation/polygonAnnotation.js +12 -11
  15. package/src/annotation/rectangleAnnotation.js +19 -17
  16. package/src/annotation/squareAnnotation.js +1 -1
  17. package/src/annotationLayer.js +2 -2
  18. package/src/camera.js +22 -22
  19. package/src/canvas/canvasRenderer.js +1 -1
  20. package/src/canvas/pixelmapFeature.js +3 -3
  21. package/src/feature.js +4 -3
  22. package/src/heatmapFeature.js +1 -0
  23. package/src/isolineFeature.js +1 -1
  24. package/src/layer.js +2 -2
  25. package/src/lineFeature.js +3 -3
  26. package/src/map.js +21 -21
  27. package/src/mapInteractor.js +5 -4
  28. package/src/markerFeature.js +1 -1
  29. package/src/pixelmapFeature.js +2 -1
  30. package/src/pointFeature.js +1 -1
  31. package/src/polygonFeature.js +10 -10
  32. package/src/registry.js +2 -2
  33. package/src/svg/svgRenderer.js +2 -2
  34. package/src/tile.js +2 -2
  35. package/src/tileCache.js +1 -1
  36. package/src/tileLayer.js +7 -6
  37. package/src/trackFeature.js +2 -2
  38. package/src/transform.js +5 -5
  39. package/src/ui/colorLegendWidget.js +2 -2
  40. package/src/ui/domWidget.js +1 -1
  41. package/src/ui/scaleWidget.js +11 -11
  42. package/src/ui/widget.js +1 -2
  43. package/src/util/color.js +4 -3
  44. package/src/util/common.js +15 -12
  45. package/src/util/mockVGL.js +1 -3
  46. package/src/util/polyops.js +1 -1
  47. package/src/util/throttle.js +2 -2
  48. package/src/vgl/boundingObject.js +1 -1
  49. package/src/vgl/groupNode.js +1 -0
  50. package/src/vgl/material.js +1 -1
  51. package/src/vgl/object.js +1 -1
  52. package/src/webgl/layer.js +1 -1
  53. package/src/webgl/markerFeature.js +1 -1
  54. package/src/webgl/pointFeature.js +1 -1
  55. package/src/webgl/quadFeature.js +2 -2
  56. package/src/webgl/webglRenderer.js +1 -1
@@ -22,7 +22,8 @@ jobs:
22
22
  with:
23
23
  node-version: '20'
24
24
  - uses: browser-actions/setup-firefox@latest
25
- - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
25
+ - run: sudo apt-get update
26
+ - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
26
27
  - run: sudo apt-get remove --yes fonts-lato
27
28
  - run: fc-list
28
29
  - run: firefox --version
@@ -75,7 +76,8 @@ jobs:
75
76
  node-version: 'lts/*'
76
77
  - run: npm --version && node --version
77
78
  - uses: browser-actions/setup-firefox@latest
78
- - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
79
+ - run: sudo apt-get update
80
+ - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
79
81
  - run: sudo apt-get remove --yes fonts-lato
80
82
  - run: fc-list
81
83
  - run: firefox --version
@@ -111,7 +113,8 @@ jobs:
111
113
  - uses: actions/setup-node@v4
112
114
  with:
113
115
  node-version: 'lts/*'
114
- - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
116
+ - run: sudo apt-get update
117
+ - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
115
118
  - run: npm ci
116
119
  - name: Import artifacts
117
120
  uses: actions/download-artifact@v4
@@ -46,16 +46,16 @@ repos:
46
46
  files: README.rst
47
47
  name: rst-linter of README.rst
48
48
  - repo: https://github.com/codespell-project/codespell
49
- rev: v2.3.0
49
+ rev: v2.4.1
50
50
  hooks:
51
51
  - id: codespell
52
52
  args:
53
53
  - --ignore-words-list
54
54
  - "hist,indext,pixelx,thex,hight,reenable,lastr,xdescribe,afterall,countr,curvelinear"
55
55
  - --skip
56
- - examples/sld/index.pug,package-lock.json,examples/reprojection/proj.json,website/themes/agency/source/vendor/jquery/jquery.min.js,examples/reprojection/capitals.json
56
+ - examples/sld/index.pug,package-lock.json,examples/reprojection/proj.json,website/themes/agency/source/vendor/jquery/jquery.min.js,examples/reprojection/capitals.json,website/themes/agency/source/vendor/jquery/jquery.js
57
57
  - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
58
- rev: v9.18.0
58
+ rev: v9.22.0
59
59
  hooks:
60
60
  - id: commitlint
61
61
  language_version: "22.10.0"
@@ -0,0 +1,129 @@
1
+ const globals = require('globals');
2
+ const neostandard = require('neostandard');
3
+ const jsdoc = require('eslint-plugin-jsdoc');
4
+
5
+ module.exports = [
6
+ ...neostandard({
7
+ semi: true
8
+ }),
9
+ jsdoc.configs['flat/recommended'],
10
+ {
11
+ languageOptions: {
12
+ globals: {
13
+ ...globals.browser,
14
+ sinon: true
15
+ }
16
+ },
17
+ rules: {
18
+ '@stylistic/indent': ['error', 2, {
19
+ CallExpression: {arguments: 'first'},
20
+ MemberExpression: 'off',
21
+ SwitchCase: 1,
22
+ VariableDeclarator: 2
23
+ }],
24
+ '@stylistic/key-spacing': 'off',
25
+ '@stylistic/multiline-ternary': 'off',
26
+ '@stylistic/no-multi-spaces': 'off',
27
+ '@stylistic/object-curly-newline': 'off',
28
+ '@stylistic/object-curly-spacing': 'off',
29
+ '@stylistic/object-shorthand': 'off',
30
+ '@stylistic/operator-linebreak': 'off',
31
+ '@stylistic/padded-blocks': 'off',
32
+ '@stylistic/space-before-function-paren': ['error', {anonymous: 'always', named: 'never'}],
33
+ '@stylistic/spaced-comment': 'off',
34
+ camelcase: 'off',
35
+ 'new-cap': 'off',
36
+ 'no-loss-of-precision': 'off',
37
+ 'no-prototype-builtins': 'off',
38
+ 'no-throw-literal': 'off',
39
+ 'no-unneeded-ternary': 'off',
40
+ 'no-useless-call': 'off',
41
+ 'no-var': 'off',
42
+ 'object-shorthand': 'off',
43
+ 'one-var': 'off',
44
+ yoda: 'off',
45
+
46
+ }
47
+ }, {
48
+ files: ['examples/**', 'tutorials/**'],
49
+ languageOptions: {
50
+ globals: {
51
+ ...globals.browser,
52
+ $: true,
53
+ CodeMirror: true,
54
+ d3: true,
55
+ geo: true,
56
+ sinon: true
57
+ }
58
+ },
59
+ rules: {
60
+ }
61
+ }, {
62
+ files: ['tests/**'],
63
+ languageOptions: {
64
+ globals: {
65
+ ...globals.jasmine,
66
+ sinon: true
67
+ }
68
+ },
69
+ rules: {
70
+ }
71
+ }, {
72
+ files: ['src/**/*.js'],
73
+ plugins: {
74
+ jsdoc,
75
+ },
76
+ rules: {
77
+ 'jsdoc/check-types': ['warn', {
78
+ unifyParentAndChildTypeChecks: true,
79
+ noDefaults: true
80
+ }],
81
+ 'jsdoc/require-jsdoc': ['error', {
82
+ require: {
83
+ FunctionDeclaration: false,
84
+ MethodDefinition: true,
85
+ ClassDeclaration: true
86
+ }
87
+ }],
88
+ 'jsdoc/check-param-names': 'off',
89
+ 'jsdoc/check-tag-names': 'off',
90
+ 'jsdoc/no-undefined-types': 'off',
91
+ 'jsdoc/require-param-description': 'off',
92
+ 'jsdoc/require-returns-description': 'off',
93
+ 'jsdoc/tag-lines': 'off',
94
+ }
95
+ }, {
96
+ files: ['tutorials/**', 'examples/**', 'tests/**', 'scripts/**', 'plugins/**', 'karma*.*', 'jsdoc/**'],
97
+ rules: {
98
+ 'jsdoc/check-param-names': 'off',
99
+ 'jsdoc/check-tag-names': 'off',
100
+ 'jsdoc/check-types': 'off',
101
+ 'jsdoc/match-description': 'off',
102
+ 'jsdoc/multiline-blocks': 'off',
103
+ 'jsdoc/no-defaults': 'off',
104
+ 'jsdoc/no-multi-asterisks': 'off',
105
+ 'jsdoc/no-undefined-types': 'off',
106
+ 'jsdoc/require-jsdoc': 'off',
107
+ 'jsdoc/require-param': 'off',
108
+ 'jsdoc/require-param-description': 'off',
109
+ 'jsdoc/require-param-type': 'off',
110
+ 'jsdoc/require-returns': 'off',
111
+ 'jsdoc/require-returns-check': 'off',
112
+ 'jsdoc/require-returns-description': 'off',
113
+ 'jsdoc/tag-lines': 'off',
114
+ 'jsdoc/valid-types': 'off',
115
+ }
116
+ }, {
117
+ ignores: [
118
+ 'src/util/distanceGrid.js',
119
+ 'dist/**',
120
+ 'website/**',
121
+ '**/*.min.js',
122
+ 'jsdoc/template/publish.js',
123
+ 'jsdoc/template/static/**',
124
+ 'jsdoc/template/tmpl/**',
125
+ '_build/**',
126
+ 'docs/_build/**',
127
+ ]
128
+ }
129
+ ];