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.
- package/.github/workflows/main.yml +6 -3
- package/.pre-commit-config.yaml +3 -3
- package/eslint.config.js +129 -0
- package/geo.js +93362 -93349
- package/geo.lean.js +64743 -64730
- package/geo.lean.min.js +4 -4
- package/geo.min.js +11 -11
- package/package.json +12 -10
- package/src/annotation/annotation.js +13 -11
- package/src/annotation/circleAnnotation.js +1 -1
- package/src/annotation/ellipseAnnotation.js +1 -1
- package/src/annotation/lineAnnotation.js +18 -16
- package/src/annotation/pointAnnotation.js +8 -8
- package/src/annotation/polygonAnnotation.js +12 -11
- package/src/annotation/rectangleAnnotation.js +19 -17
- package/src/annotation/squareAnnotation.js +1 -1
- package/src/annotationLayer.js +2 -2
- package/src/camera.js +22 -22
- package/src/canvas/canvasRenderer.js +1 -1
- package/src/canvas/pixelmapFeature.js +3 -3
- package/src/feature.js +4 -3
- package/src/heatmapFeature.js +1 -0
- package/src/isolineFeature.js +1 -1
- package/src/layer.js +2 -2
- package/src/lineFeature.js +3 -3
- package/src/map.js +21 -21
- package/src/mapInteractor.js +5 -4
- package/src/markerFeature.js +1 -1
- package/src/pixelmapFeature.js +2 -1
- package/src/pointFeature.js +1 -1
- package/src/polygonFeature.js +10 -10
- package/src/registry.js +2 -2
- package/src/svg/svgRenderer.js +2 -2
- package/src/tile.js +2 -2
- package/src/tileCache.js +1 -1
- package/src/tileLayer.js +7 -6
- package/src/trackFeature.js +2 -2
- package/src/transform.js +5 -5
- package/src/ui/colorLegendWidget.js +2 -2
- package/src/ui/domWidget.js +1 -1
- package/src/ui/scaleWidget.js +11 -11
- package/src/ui/widget.js +1 -2
- package/src/util/color.js +4 -3
- package/src/util/common.js +15 -12
- package/src/util/mockVGL.js +1 -3
- package/src/util/polyops.js +1 -1
- package/src/util/throttle.js +2 -2
- package/src/vgl/boundingObject.js +1 -1
- package/src/vgl/groupNode.js +1 -0
- package/src/vgl/material.js +1 -1
- package/src/vgl/object.js +1 -1
- package/src/webgl/layer.js +1 -1
- package/src/webgl/markerFeature.js +1 -1
- package/src/webgl/pointFeature.js +1 -1
- package/src/webgl/quadFeature.js +2 -2
- 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
|
|
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
|
|
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
|
|
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
|
package/.pre-commit-config.yaml
CHANGED
|
@@ -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.
|
|
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.
|
|
58
|
+
rev: v9.22.0
|
|
59
59
|
hooks:
|
|
60
60
|
- id: commitlint
|
|
61
61
|
language_version: "22.10.0"
|
package/eslint.config.js
ADDED
|
@@ -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
|
+
];
|