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.
Files changed (55) hide show
  1. package/eslint.config.js +129 -0
  2. package/geo.js +93357 -93344
  3. package/geo.lean.js +64567 -64554
  4. package/geo.lean.min.js +4 -4
  5. package/geo.min.js +11 -11
  6. package/package.json +12 -10
  7. package/src/annotation/annotation.js +13 -11
  8. package/src/annotation/circleAnnotation.js +1 -1
  9. package/src/annotation/ellipseAnnotation.js +1 -1
  10. package/src/annotation/lineAnnotation.js +18 -16
  11. package/src/annotation/pointAnnotation.js +8 -8
  12. package/src/annotation/polygonAnnotation.js +12 -11
  13. package/src/annotation/rectangleAnnotation.js +19 -17
  14. package/src/annotation/squareAnnotation.js +1 -1
  15. package/src/annotationLayer.js +2 -2
  16. package/src/camera.js +22 -22
  17. package/src/canvas/canvasRenderer.js +1 -1
  18. package/src/canvas/pixelmapFeature.js +3 -3
  19. package/src/feature.js +4 -3
  20. package/src/heatmapFeature.js +1 -0
  21. package/src/isolineFeature.js +1 -1
  22. package/src/layer.js +2 -2
  23. package/src/lineFeature.js +3 -3
  24. package/src/map.js +21 -21
  25. package/src/mapInteractor.js +3 -2
  26. package/src/markerFeature.js +1 -1
  27. package/src/pixelmapFeature.js +2 -1
  28. package/src/pointFeature.js +15 -12
  29. package/src/polygonFeature.js +10 -10
  30. package/src/registry.js +2 -2
  31. package/src/svg/svgRenderer.js +2 -2
  32. package/src/tile.js +2 -2
  33. package/src/tileCache.js +1 -1
  34. package/src/tileLayer.js +7 -6
  35. package/src/trackFeature.js +2 -2
  36. package/src/transform.js +5 -5
  37. package/src/ui/colorLegendWidget.js +2 -2
  38. package/src/ui/domWidget.js +1 -1
  39. package/src/ui/scaleWidget.js +11 -11
  40. package/src/ui/widget.js +1 -2
  41. package/src/util/color.js +4 -3
  42. package/src/util/common.js +16 -13
  43. package/src/util/distanceGrid.js +1 -2
  44. package/src/util/mockVGL.js +1 -3
  45. package/src/util/polyops.js +1 -1
  46. package/src/util/throttle.js +2 -2
  47. package/src/vgl/boundingObject.js +1 -1
  48. package/src/vgl/groupNode.js +1 -0
  49. package/src/vgl/material.js +1 -1
  50. package/src/vgl/object.js +1 -1
  51. package/src/webgl/layer.js +1 -1
  52. package/src/webgl/markerFeature.js +1 -1
  53. package/src/webgl/pointFeature.js +1 -1
  54. package/src/webgl/quadFeature.js +2 -2
  55. package/src/webgl/webglRenderer.js +1 -1
@@ -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
+ ];