geojs 1.7.0 → 1.7.1
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 +10 -4
- package/geo.lean.js +10 -4
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/webgl/quadFeature.js +7 -2
package/geo.js
CHANGED
|
@@ -26252,7 +26252,7 @@ module.exports = sceneObject;
|
|
|
26252
26252
|
* @constant
|
|
26253
26253
|
* @type {string}
|
|
26254
26254
|
*/
|
|
26255
|
-
module.exports = "
|
|
26255
|
+
module.exports = "03cedc56b8ea2e6582a37ce935e354bae0a9b411";
|
|
26256
26256
|
|
|
26257
26257
|
/***/ }),
|
|
26258
26258
|
|
|
@@ -38716,7 +38716,7 @@ module.exports = vectorFeature;
|
|
|
38716
38716
|
* @constant
|
|
38717
38717
|
* @type {string}
|
|
38718
38718
|
*/
|
|
38719
|
-
module.exports = "1.7.
|
|
38719
|
+
module.exports = "1.7.1";
|
|
38720
38720
|
|
|
38721
38721
|
/***/ }),
|
|
38722
38722
|
|
|
@@ -42926,6 +42926,8 @@ var registerFeature = (__webpack_require__(4647).registerFeature);
|
|
|
42926
42926
|
var quadFeature = __webpack_require__(5017);
|
|
42927
42927
|
|
|
42928
42928
|
var timestamp = __webpack_require__(6618);
|
|
42929
|
+
|
|
42930
|
+
var _memoryCheckLargestTested = 4096 * 4096;
|
|
42929
42931
|
/**
|
|
42930
42932
|
* Create a new instance of class quadFeature.
|
|
42931
42933
|
*
|
|
@@ -43343,8 +43345,12 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
|
|
|
43343
43345
|
quad.texture.bind(renderState); // only check if the context is out of memory when using modestly large
|
|
43344
43346
|
// textures. The check is slow.
|
|
43345
43347
|
|
|
43346
|
-
if (
|
|
43347
|
-
|
|
43348
|
+
if (quad.image.width * quad.image.height > _memoryCheckLargestTested) {
|
|
43349
|
+
_memoryCheckLargestTested = quad.image.width * quad.image.height;
|
|
43350
|
+
|
|
43351
|
+
if (context.getError() === context.OUT_OF_MEMORY) {
|
|
43352
|
+
console.log('Insufficient GPU memory for texture');
|
|
43353
|
+
}
|
|
43348
43354
|
}
|
|
43349
43355
|
|
|
43350
43356
|
if (quad.opacity !== opacity) {
|
package/geo.lean.js
CHANGED
|
@@ -26252,7 +26252,7 @@ module.exports = sceneObject;
|
|
|
26252
26252
|
* @constant
|
|
26253
26253
|
* @type {string}
|
|
26254
26254
|
*/
|
|
26255
|
-
module.exports = "
|
|
26255
|
+
module.exports = "03cedc56b8ea2e6582a37ce935e354bae0a9b411";
|
|
26256
26256
|
|
|
26257
26257
|
/***/ }),
|
|
26258
26258
|
|
|
@@ -38716,7 +38716,7 @@ module.exports = vectorFeature;
|
|
|
38716
38716
|
* @constant
|
|
38717
38717
|
* @type {string}
|
|
38718
38718
|
*/
|
|
38719
|
-
module.exports = "1.7.
|
|
38719
|
+
module.exports = "1.7.1";
|
|
38720
38720
|
|
|
38721
38721
|
/***/ }),
|
|
38722
38722
|
|
|
@@ -42926,6 +42926,8 @@ var registerFeature = (__webpack_require__(4647).registerFeature);
|
|
|
42926
42926
|
var quadFeature = __webpack_require__(5017);
|
|
42927
42927
|
|
|
42928
42928
|
var timestamp = __webpack_require__(6618);
|
|
42929
|
+
|
|
42930
|
+
var _memoryCheckLargestTested = 4096 * 4096;
|
|
42929
42931
|
/**
|
|
42930
42932
|
* Create a new instance of class quadFeature.
|
|
42931
42933
|
*
|
|
@@ -43343,8 +43345,12 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
|
|
|
43343
43345
|
quad.texture.bind(renderState); // only check if the context is out of memory when using modestly large
|
|
43344
43346
|
// textures. The check is slow.
|
|
43345
43347
|
|
|
43346
|
-
if (
|
|
43347
|
-
|
|
43348
|
+
if (quad.image.width * quad.image.height > _memoryCheckLargestTested) {
|
|
43349
|
+
_memoryCheckLargestTested = quad.image.width * quad.image.height;
|
|
43350
|
+
|
|
43351
|
+
if (context.getError() === context.OUT_OF_MEMORY) {
|
|
43352
|
+
console.log('Insufficient GPU memory for texture');
|
|
43353
|
+
}
|
|
43348
43354
|
}
|
|
43349
43355
|
|
|
43350
43356
|
if (quad.opacity !== opacity) {
|