geojs 1.14.4 → 1.14.6
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/eslint.config.js +129 -0
- package/geo.js +93357 -93344
- package/geo.lean.js +64567 -64554
- 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 +3 -2
- package/src/markerFeature.js +1 -1
- package/src/pixelmapFeature.js +2 -1
- package/src/pointFeature.js +15 -12
- 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 +16 -13
- package/src/util/distanceGrid.js +1 -2
- 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
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
|
+
];
|