geojs 1.14.1 → 1.14.2
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/geo.js +46 -21
- package/geo.lean.js +46 -21
- package/geo.lean.min.js +2 -2
- package/geo.min.js +2 -2
- package/package.json +4 -4
- package/src/quadFeature.js +5 -0
- package/src/trackFeature.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geojs",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "JavaScript Geo Visualization and Analysis Library",
|
|
5
5
|
"homepage": "https://github.com/OpenGeoscience/geojs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"url": "https://github.com/OpenGeoscience/geojs"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"canvas": "^
|
|
15
|
+
"canvas": "^3.0.0",
|
|
16
16
|
"color-name": "^2.0.0",
|
|
17
17
|
"docdash": "^2.0.1",
|
|
18
18
|
"earcut": "^3.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@egjs/hammerjs": "^2.0.8",
|
|
31
31
|
"d3": "^7.8.5",
|
|
32
32
|
"glslang-validator-prebuilt-predownloaded": "^0.0.2",
|
|
33
|
-
"vtk.js": "
|
|
33
|
+
"vtk.js": "<32.10.0 || >32.10.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.17.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"terser-webpack-plugin": "^5.3.1",
|
|
94
94
|
"touch-emulator": "^1.0.0",
|
|
95
95
|
"webpack": "^5.68.0",
|
|
96
|
-
"webpack-cli": "^
|
|
96
|
+
"webpack-cli": "^6.0.1",
|
|
97
97
|
"webpack-merge": "^6.0.1",
|
|
98
98
|
"webpack-string-replacer": "^0.0.20"
|
|
99
99
|
},
|
package/src/quadFeature.js
CHANGED
|
@@ -237,6 +237,11 @@ var quadFeature = function (arg) {
|
|
|
237
237
|
coordbasis.y = 1 - coordbasis.y;
|
|
238
238
|
}
|
|
239
239
|
if (coordbasis) {
|
|
240
|
+
if (quad.crop && quad.crop.x !== undefined && quad.crop.y !== undefined && (coordbasis.x >= quad.crop.x || coordbasis.y >= quad.crop.y)) {
|
|
241
|
+
indices.pop();
|
|
242
|
+
found.pop();
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
240
245
|
extra[quad.idx] = {basis: coordbasis, _quad: quad};
|
|
241
246
|
}
|
|
242
247
|
}
|
package/src/trackFeature.js
CHANGED
|
@@ -216,6 +216,8 @@ var trackFeature = function (arg) {
|
|
|
216
216
|
highidx = testidx;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
+
// todo: if we want non-linear travel between points, we would adjust
|
|
220
|
+
// fl and fh here
|
|
219
221
|
var fh = (time - lowt) / (hight - lowt), fl = 1 - fh;
|
|
220
222
|
return {posidx0: lowidx, posidx1: highidx, factor0: fl, factor1: fh, angidx0: lowidx, angidx1: highidx};
|
|
221
223
|
});
|