@luma.gl/engine 8.5.8 → 8.5.11

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/dist/dist.js CHANGED
@@ -96,50 +96,6 @@ return /******/ (function(modules) { // webpackBootstrap
96
96
  /************************************************************************/
97
97
  /******/ ({
98
98
 
99
- /***/ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
100
- /*!************************************************************************************************!*\
101
- !*** /Users/missx/Source/luma.gl/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
102
- \************************************************************************************************/
103
- /*! no static exports found */
104
- /***/ (function(module, exports) {
105
-
106
- function _interopRequireDefault(obj) {
107
- return obj && obj.__esModule ? obj : {
108
- "default": obj
109
- };
110
- }
111
-
112
- module.exports = _interopRequireDefault;
113
-
114
- /***/ }),
115
-
116
- /***/ "../../node_modules/@babel/runtime/helpers/typeof.js":
117
- /*!*********************************************************************************!*\
118
- !*** /Users/missx/Source/luma.gl/node_modules/@babel/runtime/helpers/typeof.js ***!
119
- \*********************************************************************************/
120
- /*! no static exports found */
121
- /***/ (function(module, exports) {
122
-
123
- function _typeof(obj) {
124
- "@babel/helpers - typeof";
125
-
126
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
127
- module.exports = _typeof = function _typeof(obj) {
128
- return typeof obj;
129
- };
130
- } else {
131
- module.exports = _typeof = function _typeof(obj) {
132
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
133
- };
134
- }
135
-
136
- return _typeof(obj);
137
- }
138
-
139
- module.exports = _typeof;
140
-
141
- /***/ }),
142
-
143
99
  /***/ "../../node_modules/@math.gl/core/dist/esm/classes/base/math-array.js":
144
100
  /*!**************************************************************************************************!*\
145
101
  !*** /Users/missx/Source/luma.gl/node_modules/@math.gl/core/dist/esm/classes/base/math-array.js ***!
@@ -3380,6 +3336,261 @@ function deprecated(method, version) {
3380
3336
 
3381
3337
  /***/ }),
3382
3338
 
3339
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/index.js":
3340
+ /*!********************************************************************************!*\
3341
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/index.js ***!
3342
+ \********************************************************************************/
3343
+ /*! exports provided: VERSION, self, window, global, document, process, console, isBrowser, isBrowserMainThread, getBrowser, isMobile, isElectron, assert */
3344
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3345
+
3346
+ "use strict";
3347
+ __webpack_require__.r(__webpack_exports__);
3348
+ /* harmony import */ var _utils_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/globals */ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js");
3349
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return _utils_globals__WEBPACK_IMPORTED_MODULE_0__["VERSION"]; });
3350
+
3351
+ /* harmony import */ var _lib_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/globals */ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js");
3352
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "self", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["self"]; });
3353
+
3354
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["window"]; });
3355
+
3356
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "global", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["global"]; });
3357
+
3358
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "document", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["document"]; });
3359
+
3360
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "process", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["process"]; });
3361
+
3362
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "console", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["console"]; });
3363
+
3364
+ /* harmony import */ var _lib_is_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/is-browser */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");
3365
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBrowser", function() { return _lib_is_browser__WEBPACK_IMPORTED_MODULE_2__["default"]; });
3366
+
3367
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBrowserMainThread", function() { return _lib_is_browser__WEBPACK_IMPORTED_MODULE_2__["isBrowserMainThread"]; });
3368
+
3369
+ /* harmony import */ var _lib_get_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/get-browser */ "../../node_modules/@probe.gl/env/dist/esm/lib/get-browser.js");
3370
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBrowser", function() { return _lib_get_browser__WEBPACK_IMPORTED_MODULE_3__["default"]; });
3371
+
3372
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return _lib_get_browser__WEBPACK_IMPORTED_MODULE_3__["isMobile"]; });
3373
+
3374
+ /* harmony import */ var _lib_is_electron__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/is-electron */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");
3375
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElectron", function() { return _lib_is_electron__WEBPACK_IMPORTED_MODULE_4__["default"]; });
3376
+
3377
+ /* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/assert */ "../../node_modules/@probe.gl/env/dist/esm/utils/assert.js");
3378
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assert", function() { return _utils_assert__WEBPACK_IMPORTED_MODULE_5__["default"]; });
3379
+
3380
+
3381
+
3382
+
3383
+
3384
+
3385
+
3386
+ //# sourceMappingURL=index.js.map
3387
+
3388
+ /***/ }),
3389
+
3390
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/lib/get-browser.js":
3391
+ /*!******************************************************************************************!*\
3392
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/get-browser.js ***!
3393
+ \******************************************************************************************/
3394
+ /*! exports provided: isMobile, default */
3395
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3396
+
3397
+ "use strict";
3398
+ __webpack_require__.r(__webpack_exports__);
3399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return isMobile; });
3400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBrowser; });
3401
+ /* harmony import */ var _is_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-browser */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");
3402
+ /* harmony import */ var _is_electron__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-electron */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");
3403
+
3404
+
3405
+ const window = globalThis;
3406
+ function isMobile() {
3407
+ return typeof window.orientation !== 'undefined';
3408
+ }
3409
+ function getBrowser(mockUserAgent) {
3410
+ if (!mockUserAgent && !Object(_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
3411
+ return 'Node';
3412
+ }
3413
+
3414
+ if (Object(_is_electron__WEBPACK_IMPORTED_MODULE_1__["default"])(mockUserAgent)) {
3415
+ return 'Electron';
3416
+ }
3417
+
3418
+ const navigator_ = typeof navigator !== 'undefined' ? navigator : {};
3419
+ const userAgent = mockUserAgent || navigator_.userAgent || '';
3420
+
3421
+ if (userAgent.indexOf('Edge') > -1) {
3422
+ return 'Edge';
3423
+ }
3424
+
3425
+ const isMSIE = userAgent.indexOf('MSIE ') !== -1;
3426
+ const isTrident = userAgent.indexOf('Trident/') !== -1;
3427
+
3428
+ if (isMSIE || isTrident) {
3429
+ return 'IE';
3430
+ }
3431
+
3432
+ if (window.chrome) {
3433
+ return 'Chrome';
3434
+ }
3435
+
3436
+ if (window.safari) {
3437
+ return 'Safari';
3438
+ }
3439
+
3440
+ if (window.mozInnerScreenX) {
3441
+ return 'Firefox';
3442
+ }
3443
+
3444
+ return 'Unknown';
3445
+ }
3446
+ //# sourceMappingURL=get-browser.js.map
3447
+
3448
+ /***/ }),
3449
+
3450
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js":
3451
+ /*!**************************************************************************************!*\
3452
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/globals.js ***!
3453
+ \**************************************************************************************/
3454
+ /*! exports provided: self, window, global, document, process, console */
3455
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3456
+
3457
+ "use strict";
3458
+ __webpack_require__.r(__webpack_exports__);
3459
+ /* WEBPACK VAR INJECTION */(function(global, process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "self", function() { return self_; });
3460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return window_; });
3461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "global", function() { return global_; });
3462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "document", function() { return document_; });
3463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "process", function() { return process_; });
3464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "console", function() { return console_; });
3465
+ const globals = {
3466
+ self: typeof self !== 'undefined' && self,
3467
+ window: typeof window !== 'undefined' && window,
3468
+ global: typeof global !== 'undefined' && global,
3469
+ document: typeof document !== 'undefined' && document,
3470
+ process: typeof process === 'object' && process
3471
+ };
3472
+ const global_ = globalThis;
3473
+ const self_ = globals.self || globals.window || globals.global;
3474
+ const window_ = globals.window || globals.self || globals.global;
3475
+ const document_ = globals.document || {};
3476
+ const process_ = globals.process || {};
3477
+ const console_ = console;
3478
+
3479
+ //# sourceMappingURL=globals.js.map
3480
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../../process/browser.js */ "../../node_modules/process/browser.js")))
3481
+
3482
+ /***/ }),
3483
+
3484
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js":
3485
+ /*!*****************************************************************************************!*\
3486
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-browser.js ***!
3487
+ \*****************************************************************************************/
3488
+ /*! exports provided: default, isBrowserMainThread */
3489
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3490
+
3491
+ "use strict";
3492
+ __webpack_require__.r(__webpack_exports__);
3493
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isBrowser; });
3494
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBrowserMainThread", function() { return isBrowserMainThread; });
3495
+ /* harmony import */ var _is_electron__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-electron */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");
3496
+
3497
+ function isBrowser() {
3498
+ const isNode = typeof process === 'object' && String(process) === '[object process]' && !process.browser;
3499
+ return !isNode || Object(_is_electron__WEBPACK_IMPORTED_MODULE_0__["default"])();
3500
+ }
3501
+ function isBrowserMainThread() {
3502
+ return isBrowser() && typeof document !== 'undefined';
3503
+ }
3504
+ //# sourceMappingURL=is-browser.js.map
3505
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../process/browser.js */ "../../node_modules/process/browser.js")))
3506
+
3507
+ /***/ }),
3508
+
3509
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js":
3510
+ /*!******************************************************************************************!*\
3511
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-electron.js ***!
3512
+ \******************************************************************************************/
3513
+ /*! exports provided: default */
3514
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3515
+
3516
+ "use strict";
3517
+ __webpack_require__.r(__webpack_exports__);
3518
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isElectron; });
3519
+ function isElectron(mockUserAgent) {
3520
+ if (typeof window !== 'undefined' && typeof window.process === 'object' && window.process.type === 'renderer') {
3521
+ return true;
3522
+ }
3523
+
3524
+ if (typeof process !== 'undefined' && typeof process.versions === 'object' && Boolean(process.versions.electron)) {
3525
+ return true;
3526
+ }
3527
+
3528
+ const realUserAgent = typeof navigator === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
3529
+ const userAgent = mockUserAgent || realUserAgent;
3530
+
3531
+ if (userAgent && userAgent.indexOf('Electron') >= 0) {
3532
+ return true;
3533
+ }
3534
+
3535
+ return false;
3536
+ }
3537
+ //# sourceMappingURL=is-electron.js.map
3538
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../process/browser.js */ "../../node_modules/process/browser.js")))
3539
+
3540
+ /***/ }),
3541
+
3542
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/utils/assert.js":
3543
+ /*!***************************************************************************************!*\
3544
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/assert.js ***!
3545
+ \***************************************************************************************/
3546
+ /*! exports provided: default */
3547
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3548
+
3549
+ "use strict";
3550
+ __webpack_require__.r(__webpack_exports__);
3551
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return assert; });
3552
+ function assert(condition, message) {
3553
+ if (!condition) {
3554
+ throw new Error(message || 'Assertion failed');
3555
+ }
3556
+ }
3557
+ //# sourceMappingURL=assert.js.map
3558
+
3559
+ /***/ }),
3560
+
3561
+ /***/ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js":
3562
+ /*!****************************************************************************************!*\
3563
+ !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/globals.js ***!
3564
+ \****************************************************************************************/
3565
+ /*! exports provided: self, window, global, document, process, console, VERSION, isBrowser */
3566
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3567
+
3568
+ "use strict";
3569
+ __webpack_require__.r(__webpack_exports__);
3570
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
3571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBrowser", function() { return isBrowser; });
3572
+ /* harmony import */ var _lib_is_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../lib/is-browser */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");
3573
+ /* harmony import */ var _lib_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/globals */ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js");
3574
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "self", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["self"]; });
3575
+
3576
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["window"]; });
3577
+
3578
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "global", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["global"]; });
3579
+
3580
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "document", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["document"]; });
3581
+
3582
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "process", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["process"]; });
3583
+
3584
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "console", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["console"]; });
3585
+
3586
+
3587
+
3588
+ const VERSION = true ? "8.5.10" : undefined;
3589
+ const isBrowser = Object(_lib_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
3590
+ //# sourceMappingURL=globals.js.map
3591
+
3592
+ /***/ }),
3593
+
3383
3594
  /***/ "../../node_modules/@probe.gl/stats/dist/esm/index.js":
3384
3595
  /*!**********************************************************************************!*\
3385
3596
  !*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/index.js ***!
@@ -9443,294 +9654,6 @@ var forEach = function () {
9443
9654
 
9444
9655
  /***/ }),
9445
9656
 
9446
- /***/ "../../node_modules/probe.gl/dist/es5/env/get-browser.js":
9447
- /*!*************************************************************************************!*\
9448
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/get-browser.js ***!
9449
- \*************************************************************************************/
9450
- /*! no static exports found */
9451
- /***/ (function(module, exports, __webpack_require__) {
9452
-
9453
- "use strict";
9454
-
9455
-
9456
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
9457
-
9458
- Object.defineProperty(exports, "__esModule", {
9459
- value: true
9460
- });
9461
- exports.isMobile = isMobile;
9462
- exports.default = getBrowser;
9463
-
9464
- var _globals = __webpack_require__(/*! ./globals */ "../../node_modules/probe.gl/dist/es5/env/globals.js");
9465
-
9466
- var _isBrowser = _interopRequireDefault(__webpack_require__(/*! ./is-browser */ "../../node_modules/probe.gl/dist/es5/env/is-browser.js"));
9467
-
9468
- var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
9469
-
9470
- function isMobile() {
9471
- return typeof _globals.window.orientation !== 'undefined';
9472
- }
9473
-
9474
- function getBrowser(mockUserAgent) {
9475
- if (!mockUserAgent && !(0, _isBrowser.default)()) {
9476
- return 'Node';
9477
- }
9478
-
9479
- if ((0, _isElectron.default)(mockUserAgent)) {
9480
- return 'Electron';
9481
- }
9482
-
9483
- var navigator_ = typeof navigator !== 'undefined' ? navigator : {};
9484
- var userAgent = mockUserAgent || navigator_.userAgent || '';
9485
-
9486
- if (userAgent.indexOf('Edge') > -1) {
9487
- return 'Edge';
9488
- }
9489
-
9490
- var isMSIE = userAgent.indexOf('MSIE ') !== -1;
9491
- var isTrident = userAgent.indexOf('Trident/') !== -1;
9492
-
9493
- if (isMSIE || isTrident) {
9494
- return 'IE';
9495
- }
9496
-
9497
- if (_globals.window.chrome) {
9498
- return 'Chrome';
9499
- }
9500
-
9501
- if (_globals.window.safari) {
9502
- return 'Safari';
9503
- }
9504
-
9505
- if (_globals.window.mozInnerScreenX) {
9506
- return 'Firefox';
9507
- }
9508
-
9509
- return 'Unknown';
9510
- }
9511
- //# sourceMappingURL=get-browser.js.map
9512
-
9513
- /***/ }),
9514
-
9515
- /***/ "../../node_modules/probe.gl/dist/es5/env/globals.js":
9516
- /*!*********************************************************************************!*\
9517
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/globals.js ***!
9518
- \*********************************************************************************/
9519
- /*! no static exports found */
9520
- /***/ (function(module, exports, __webpack_require__) {
9521
-
9522
- "use strict";
9523
- /* WEBPACK VAR INJECTION */(function(global, process) {
9524
-
9525
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
9526
-
9527
- Object.defineProperty(exports, "__esModule", {
9528
- value: true
9529
- });
9530
- exports.console = exports.process = exports.document = exports.global = exports.window = exports.self = void 0;
9531
-
9532
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
9533
-
9534
- var globals = {
9535
- self: typeof self !== 'undefined' && self,
9536
- window: typeof window !== 'undefined' && window,
9537
- global: typeof global !== 'undefined' && global,
9538
- document: typeof document !== 'undefined' && document,
9539
- process: (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && process
9540
- };
9541
- var self_ = globals.self || globals.window || globals.global;
9542
- exports.self = self_;
9543
- var window_ = globals.window || globals.self || globals.global;
9544
- exports.window = window_;
9545
- var global_ = globals.global || globals.self || globals.window;
9546
- exports.global = global_;
9547
- var document_ = globals.document || {};
9548
- exports.document = document_;
9549
- var process_ = globals.process || {};
9550
- exports.process = process_;
9551
- var console_ = console;
9552
- exports.console = console_;
9553
- //# sourceMappingURL=globals.js.map
9554
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../process/browser.js */ "../../node_modules/process/browser.js")))
9555
-
9556
- /***/ }),
9557
-
9558
- /***/ "../../node_modules/probe.gl/dist/es5/env/index.js":
9559
- /*!*******************************************************************************!*\
9560
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/index.js ***!
9561
- \*******************************************************************************/
9562
- /*! no static exports found */
9563
- /***/ (function(module, exports, __webpack_require__) {
9564
-
9565
- "use strict";
9566
-
9567
-
9568
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
9569
-
9570
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js");
9571
-
9572
- Object.defineProperty(exports, "__esModule", {
9573
- value: true
9574
- });
9575
- Object.defineProperty(exports, "self", {
9576
- enumerable: true,
9577
- get: function get() {
9578
- return _globals.self;
9579
- }
9580
- });
9581
- Object.defineProperty(exports, "window", {
9582
- enumerable: true,
9583
- get: function get() {
9584
- return _globals.window;
9585
- }
9586
- });
9587
- Object.defineProperty(exports, "global", {
9588
- enumerable: true,
9589
- get: function get() {
9590
- return _globals.global;
9591
- }
9592
- });
9593
- Object.defineProperty(exports, "document", {
9594
- enumerable: true,
9595
- get: function get() {
9596
- return _globals.document;
9597
- }
9598
- });
9599
- Object.defineProperty(exports, "process", {
9600
- enumerable: true,
9601
- get: function get() {
9602
- return _globals.process;
9603
- }
9604
- });
9605
- Object.defineProperty(exports, "console", {
9606
- enumerable: true,
9607
- get: function get() {
9608
- return _globals.console;
9609
- }
9610
- });
9611
- Object.defineProperty(exports, "isBrowser", {
9612
- enumerable: true,
9613
- get: function get() {
9614
- return _isBrowser.default;
9615
- }
9616
- });
9617
- Object.defineProperty(exports, "isBrowserMainThread", {
9618
- enumerable: true,
9619
- get: function get() {
9620
- return _isBrowser.isBrowserMainThread;
9621
- }
9622
- });
9623
- Object.defineProperty(exports, "getBrowser", {
9624
- enumerable: true,
9625
- get: function get() {
9626
- return _getBrowser.default;
9627
- }
9628
- });
9629
- Object.defineProperty(exports, "isMobile", {
9630
- enumerable: true,
9631
- get: function get() {
9632
- return _getBrowser.isMobile;
9633
- }
9634
- });
9635
- Object.defineProperty(exports, "isElectron", {
9636
- enumerable: true,
9637
- get: function get() {
9638
- return _isElectron.default;
9639
- }
9640
- });
9641
-
9642
- var _globals = __webpack_require__(/*! ./globals */ "../../node_modules/probe.gl/dist/es5/env/globals.js");
9643
-
9644
- var _isBrowser = _interopRequireWildcard(__webpack_require__(/*! ./is-browser */ "../../node_modules/probe.gl/dist/es5/env/is-browser.js"));
9645
-
9646
- var _getBrowser = _interopRequireWildcard(__webpack_require__(/*! ./get-browser */ "../../node_modules/probe.gl/dist/es5/env/get-browser.js"));
9647
-
9648
- var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
9649
-
9650
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9651
-
9652
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9653
- //# sourceMappingURL=index.js.map
9654
-
9655
- /***/ }),
9656
-
9657
- /***/ "../../node_modules/probe.gl/dist/es5/env/is-browser.js":
9658
- /*!************************************************************************************!*\
9659
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/is-browser.js ***!
9660
- \************************************************************************************/
9661
- /*! no static exports found */
9662
- /***/ (function(module, exports, __webpack_require__) {
9663
-
9664
- "use strict";
9665
- /* WEBPACK VAR INJECTION */(function(process) {
9666
-
9667
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
9668
-
9669
- Object.defineProperty(exports, "__esModule", {
9670
- value: true
9671
- });
9672
- exports.default = isBrowser;
9673
- exports.isBrowserMainThread = isBrowserMainThread;
9674
-
9675
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
9676
-
9677
- var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
9678
-
9679
- function isBrowser() {
9680
- var isNode = (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && String(process) === '[object process]' && !process.browser;
9681
- return !isNode || (0, _isElectron.default)();
9682
- }
9683
-
9684
- function isBrowserMainThread() {
9685
- return isBrowser() && typeof document !== 'undefined';
9686
- }
9687
- //# sourceMappingURL=is-browser.js.map
9688
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "../../node_modules/process/browser.js")))
9689
-
9690
- /***/ }),
9691
-
9692
- /***/ "../../node_modules/probe.gl/dist/es5/env/is-electron.js":
9693
- /*!*************************************************************************************!*\
9694
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/is-electron.js ***!
9695
- \*************************************************************************************/
9696
- /*! no static exports found */
9697
- /***/ (function(module, exports, __webpack_require__) {
9698
-
9699
- "use strict";
9700
- /* WEBPACK VAR INJECTION */(function(process) {
9701
-
9702
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
9703
-
9704
- Object.defineProperty(exports, "__esModule", {
9705
- value: true
9706
- });
9707
- exports.default = isElectron;
9708
-
9709
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
9710
-
9711
- function isElectron(mockUserAgent) {
9712
- if (typeof window !== 'undefined' && (0, _typeof2.default)(window.process) === 'object' && window.process.type === 'renderer') {
9713
- return true;
9714
- }
9715
-
9716
- if (typeof process !== 'undefined' && (0, _typeof2.default)(process.versions) === 'object' && Boolean(process.versions.electron)) {
9717
- return true;
9718
- }
9719
-
9720
- var realUserAgent = (typeof navigator === "undefined" ? "undefined" : (0, _typeof2.default)(navigator)) === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
9721
- var userAgent = mockUserAgent || realUserAgent;
9722
-
9723
- if (userAgent && userAgent.indexOf('Electron') >= 0) {
9724
- return true;
9725
- }
9726
-
9727
- return false;
9728
- }
9729
- //# sourceMappingURL=is-electron.js.map
9730
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "../../node_modules/process/browser.js")))
9731
-
9732
- /***/ }),
9733
-
9734
9657
  /***/ "../../node_modules/probe.gl/dist/esm/env/get-browser.js":
9735
9658
  /*!*************************************************************************************!*\
9736
9659
  !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/get-browser.js ***!
@@ -10657,7 +10580,7 @@ __webpack_require__.r(__webpack_exports__);
10657
10580
 
10658
10581
 
10659
10582
 
10660
- const VERSION = true ? "8.5.7" : undefined;
10583
+ const VERSION = true ? "8.5.10" : undefined;
10661
10584
  const isBrowser = Object(_env_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
10662
10585
  //# sourceMappingURL=globals.js.map
10663
10586
 
@@ -10760,20 +10683,6 @@ class LocalStorage {
10760
10683
  }
10761
10684
  //# sourceMappingURL=local-storage.js.map
10762
10685
 
10763
- /***/ }),
10764
-
10765
- /***/ "../../node_modules/probe.gl/env.js":
10766
- /*!****************************************************************!*\
10767
- !*** /Users/missx/Source/luma.gl/node_modules/probe.gl/env.js ***!
10768
- \****************************************************************/
10769
- /*! no static exports found */
10770
- /***/ (function(module, exports, __webpack_require__) {
10771
-
10772
- // This file enables: import 'probe.gl/bench'.
10773
- // Note: Must be published using package.json "files" field
10774
- module.exports = __webpack_require__(/*! ./dist/es5/env */ "../../node_modules/probe.gl/dist/es5/env/index.js");
10775
-
10776
-
10777
10686
  /***/ }),
10778
10687
 
10779
10688
  /***/ "../../node_modules/process/browser.js":
@@ -11865,8 +11774,7 @@ __webpack_require__.r(__webpack_exports__);
11865
11774
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContextDebugInfo", function() { return getContextDebugInfo; });
11866
11775
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resizeGLContext", function() { return resizeGLContext; });
11867
11776
  /* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
11868
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
11869
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_1__);
11777
+ /* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
11870
11778
  /* harmony import */ var _state_tracker_track_context_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../state-tracker/track-context-state */ "../gltools/src/state-tracker/track-context-state.js");
11871
11779
  /* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/log */ "../gltools/src/utils/log.js");
11872
11780
  /* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
@@ -11886,7 +11794,7 @@ __webpack_require__.r(__webpack_exports__);
11886
11794
 
11887
11795
 
11888
11796
 
11889
- const isBrowser = Object(probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["isBrowser"])();
11797
+ const isBrowser = Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["isBrowser"])();
11890
11798
  const isPage = isBrowser && typeof document !== 'undefined';
11891
11799
 
11892
11800
  const CONTEXT_DEFAULTS = {
@@ -11985,11 +11893,11 @@ function instrumentGLContext(gl, options = {}) {
11985
11893
  // Add debug instrumentation to the context
11986
11894
  if (isBrowser && debug) {
11987
11895
  // @ts-ignore
11988
- if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["global"].makeDebugContext) {
11896
+ if (!globalThis.makeDebugContext) {
11989
11897
  _utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
11990
11898
  } else {
11991
11899
  // @ts-ignore
11992
- gl = probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["global"].makeDebugContext(gl, options);
11900
+ gl = globalThis.makeDebugContext(gl, options);
11993
11901
  // Debug forces log level to at least 1
11994
11902
  _utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level = Math.max(_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level, 1);
11995
11903
  }
@@ -12395,7 +12303,7 @@ function getParameterPolyfill(gl, originalGetParameter, pname) {
12395
12303
 
12396
12304
  "use strict";
12397
12305
  __webpack_require__.r(__webpack_exports__);
12398
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillContext", function() { return polyfillContext; });
12306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillContext", function() { return polyfillContext; });
12399
12307
  /* harmony import */ var _polyfill_vertex_array_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./polyfill-vertex-array-object */ "../gltools/src/polyfill/polyfill-vertex-array-object.js");
12400
12308
  /* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
12401
12309
  /* harmony import */ var _polyfill_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./polyfill-table */ "../gltools/src/polyfill/polyfill-table.js");
@@ -12437,9 +12345,8 @@ function polyfillContext(gl) {
12437
12345
  }
12438
12346
 
12439
12347
  // TODO - is this still required?
12440
- const global_ = typeof global !== 'undefined' ? global : window;
12441
12348
  // @ts-ignore
12442
- global_.polyfillContext = polyfillContext;
12349
+ globalThis.polyfillContext = polyfillContext;
12443
12350
 
12444
12351
  function initializeExtensions(gl) {
12445
12352
  gl.luma.extensions = {};
@@ -12504,7 +12411,6 @@ function polyfillExtension(gl, {extension, target, target2}) {
12504
12411
  }
12505
12412
  }
12506
12413
 
12507
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
12508
12414
 
12509
12415
  /***/ }),
12510
12416
 
@@ -12699,8 +12605,6 @@ const WEBGL2_CONTEXT_OVERRIDES = {
12699
12605
  "use strict";
12700
12606
  __webpack_require__.r(__webpack_exports__);
12701
12607
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillVertexArrayObject", function() { return polyfillVertexArrayObject; });
12702
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
12703
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_0__);
12704
12608
  /*
12705
12609
  ** Copyright (c) 2015 The Khronos Group Inc.
12706
12610
  **
@@ -12729,19 +12633,17 @@ __webpack_require__.r(__webpack_exports__);
12729
12633
 
12730
12634
  // @ts-nocheck external code
12731
12635
 
12732
-
12733
-
12734
12636
  const glErrorShadow = {};
12735
12637
 
12736
12638
  function error(msg) {
12737
- if (probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console && probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console.error) {
12738
- probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console.error(msg);
12639
+ if (globalThis.console && globalThis.console.error) {
12640
+ globalThis.console.error(msg);
12739
12641
  }
12740
12642
  }
12741
12643
 
12742
12644
  function log(msg) {
12743
- if (probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console && probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console.log) {
12744
- probe_gl_env__WEBPACK_IMPORTED_MODULE_0__["global"].console.log(msg);
12645
+ if (globalThis.console && globalThis.console.log) {
12646
+ globalThis.console.log(msg);
12745
12647
  }
12746
12648
  }
12747
12649
 
@@ -13075,7 +12977,7 @@ function polyfillVertexArrayObject(gl) {
13075
12977
 
13076
12978
  "use strict";
13077
12979
  __webpack_require__.r(__webpack_exports__);
13078
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trackContextState", function() { return trackContextState; });
12980
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trackContextState", function() { return trackContextState; });
13079
12981
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pushContextState", function() { return pushContextState; });
13080
12982
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popContextState", function() { return popContextState; });
13081
12983
  /* harmony import */ var _webgl_parameter_tables__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./webgl-parameter-tables */ "../gltools/src/state-tracker/webgl-parameter-tables.js");
@@ -13100,15 +13002,13 @@ function installGetterOverride(gl, functionName) {
13100
13002
  const originalGetterFunc = gl[functionName].bind(gl);
13101
13003
 
13102
13004
  // Wrap it with a spy so that we can update our state cache when it gets called
13103
- gl[functionName] = function get(pname) {
13104
- if (pname === undefined || _webgl_parameter_tables__WEBPACK_IMPORTED_MODULE_0__["NON_CACHE_PARAMETERS"].has(pname)) {
13105
- // Invalid or blacklisted parameter, do not cache
13106
- return originalGetterFunc(pname);
13107
- }
13005
+ gl[functionName] = function get(...params) {
13006
+ const pname = params[0];
13108
13007
 
13008
+ // WebGL limits are not prepopulated in the cache, it's neither undefined in GL_PARAMETER_DEFAULTS
13009
+ // nor intercepted by GL_HOOKED_SETTERS. Query the original getter.
13109
13010
  if (!(pname in gl.state.cache)) {
13110
- // WebGL limits are not prepopulated in the cache, call the original getter when first queried.
13111
- gl.state.cache[pname] = originalGetterFunc(pname);
13011
+ return originalGetterFunc(...params);
13112
13012
  }
13113
13013
 
13114
13014
  // Optionally call the original function to do a "hard" query from the WebGLRenderingContext
@@ -13116,7 +13016,7 @@ function installGetterOverride(gl, functionName) {
13116
13016
  ? // Call the getter the params so that it can e.g. serve from a cache
13117
13017
  gl.state.cache[pname]
13118
13018
  : // Optionally call the original function to do a "hard" query from the WebGLRenderingContext
13119
- originalGetterFunc(pname);
13019
+ originalGetterFunc(...params);
13120
13020
  };
13121
13021
 
13122
13022
  // Set the name of this anonymous function to help in debugging and profiling
@@ -13131,10 +13031,6 @@ function installGetterOverride(gl, functionName) {
13131
13031
  // updated with a copy of the WebGL context state.
13132
13032
  function installSetterSpy(gl, functionName, setter) {
13133
13033
  // Get the original function from the WebGLRenderingContext
13134
- if (!gl[functionName]) {
13135
- // This could happen if we try to intercept WebGL2 method on a WebGL1 context
13136
- return;
13137
- }
13138
13034
  const originalSetterFunc = gl[functionName].bind(gl);
13139
13035
 
13140
13036
  // Wrap it with a spy so that we can update our state cache when it gets called
@@ -13256,9 +13152,8 @@ function trackContextState(gl, options = {}) {
13256
13152
  Object(_utils_assert__WEBPACK_IMPORTED_MODULE_2__["assert"])(copyState !== undefined);
13257
13153
  // @ts-ignore
13258
13154
  if (!gl.state) {
13259
- const global_ = typeof global !== 'undefined' ? global : window;
13260
13155
  // @ts-ignore
13261
- const {polyfillContext} = global_;
13156
+ const {polyfillContext} = globalThis;
13262
13157
  if (polyfillContext) {
13263
13158
  polyfillContext(gl);
13264
13159
  }
@@ -13310,7 +13205,6 @@ function popContextState(gl) {
13310
13205
  gl.state.pop();
13311
13206
  }
13312
13207
 
13313
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
13314
13208
 
13315
13209
  /***/ }),
13316
13210
 
@@ -13469,7 +13363,7 @@ function withParameters(gl, parameters, func) {
13469
13363
  /*!**************************************************************!*\
13470
13364
  !*** ../gltools/src/state-tracker/webgl-parameter-tables.js ***!
13471
13365
  \**************************************************************/
13472
- /*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS, NON_CACHE_PARAMETERS */
13366
+ /*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS */
13473
13367
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13474
13368
 
13475
13369
  "use strict";
@@ -13479,7 +13373,6 @@ __webpack_require__.r(__webpack_exports__);
13479
13373
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_COMPOSITE_PARAMETER_SETTERS", function() { return GL_COMPOSITE_PARAMETER_SETTERS; });
13480
13374
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_HOOKED_SETTERS", function() { return GL_HOOKED_SETTERS; });
13481
13375
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_PARAMETER_GETTERS", function() { return GL_PARAMETER_GETTERS; });
13482
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_CACHE_PARAMETERS", function() { return NON_CACHE_PARAMETERS; });
13483
13376
  /* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
13484
13377
  /* harmony import */ var _utils_webgl_checks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/webgl-checks */ "../gltools/src/utils/webgl-checks.js");
13485
13378
  // Tables describing WebGL parameters
@@ -13509,22 +13402,14 @@ const GL_PARAMETER_DEFAULTS = {
13509
13402
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_RANGE]: new Float32Array([0, 1]), // TBD
13510
13403
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: true,
13511
13404
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: true,
13512
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: null,
13513
13405
  // FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
13514
13406
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: null,
13515
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: null,
13516
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: null,
13517
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: null,
13518
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: null,
13519
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: null,
13520
13407
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CCW,
13521
13408
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
13522
13409
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: 1,
13523
13410
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FILL]: false,
13524
13411
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 0,
13525
13412
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 0,
13526
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: false,
13527
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: false,
13528
13413
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 1.0,
13529
13414
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: false,
13530
13415
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: false,
@@ -13557,13 +13442,6 @@ const GL_PARAMETER_DEFAULTS = {
13557
13442
 
13558
13443
  // WEBGL2 / EXTENSIONS
13559
13444
  // gl1: 'OES_standard_derivatives'
13560
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: null,
13561
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: null,
13562
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: null,
13563
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: null,
13564
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: null,
13565
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: null,
13566
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: null,
13567
13445
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
13568
13446
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: null,
13569
13447
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: false,
@@ -13583,38 +13461,12 @@ const enable = (gl, value, key) => (value ? gl.enable(key) : gl.disable(key));
13583
13461
  const hint = (gl, value, key) => gl.hint(key, value);
13584
13462
  const pixelStorei = (gl, value, key) => gl.pixelStorei(key, value);
13585
13463
 
13586
- const bindFramebuffer = (gl, value, key) => {
13587
- let target;
13588
- if (key === _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING) {
13589
- target = Object(_utils_webgl_checks__WEBPACK_IMPORTED_MODULE_1__["isWebGL2"])(gl) ? _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_FRAMEBUFFER : _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER;
13590
- } else {
13591
- // GL.READ_FRAMEBUFFER_BINDING
13592
- target = _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER;
13593
- }
13464
+ const drawFramebuffer = (gl, value) => {
13465
+ const target = Object(_utils_webgl_checks__WEBPACK_IMPORTED_MODULE_1__["isWebGL2"])(gl) ? _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_FRAMEBUFFER : _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER;
13594
13466
  return gl.bindFramebuffer(target, value);
13595
13467
  };
13596
-
13597
- const bindBuffer = (gl, value, key) => {
13598
- const target = {
13599
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER],
13600
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER],
13601
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER],
13602
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER],
13603
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]
13604
- }[key];
13605
-
13606
- gl.bindBuffer(target, value);
13607
- };
13608
-
13609
- const bindTexture = (gl, value, key) => {
13610
- const target = {
13611
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D],
13612
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY],
13613
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D],
13614
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]
13615
- }[key];
13616
-
13617
- gl.bindTexture(target, value);
13468
+ const readFramebuffer = (gl, value) => {
13469
+ return gl.bindFramebuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER, value);
13618
13470
  };
13619
13471
 
13620
13472
  // Utility
@@ -13645,29 +13497,8 @@ const GL_PARAMETER_SETTERS = {
13645
13497
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: (gl, value) => gl.depthMask(value),
13646
13498
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: enable,
13647
13499
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: hint,
13648
-
13649
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: (gl, value) => gl.useProgram(value),
13650
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: (gl, value) => gl.bindRenderbuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER, value),
13651
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: (gl, value) =>
13652
- gl.bindTransformFeedback && gl.bindTransformFeedback(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK, value),
13653
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: (gl, value) => gl.bindVertexArray(value),
13654
13500
  // NOTE: FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
13655
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: bindFramebuffer,
13656
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: bindFramebuffer,
13657
-
13658
- // Buffers
13659
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: bindBuffer,
13660
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: bindBuffer,
13661
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: bindBuffer,
13662
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: bindBuffer,
13663
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: bindBuffer,
13664
-
13665
- // Textures
13666
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: bindTexture,
13667
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: bindTexture,
13668
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: bindTexture,
13669
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: bindTexture,
13670
-
13501
+ [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: drawFramebuffer,
13671
13502
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: (gl, value) => gl.frontFace(value),
13672
13503
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: hint,
13673
13504
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: (gl, value) => gl.lineWidth(value),
@@ -13675,8 +13506,6 @@ const GL_PARAMETER_SETTERS = {
13675
13506
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 'polygonOffset',
13676
13507
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 'polygonOffset',
13677
13508
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: enable,
13678
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: enable,
13679
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: enable,
13680
13509
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 'sampleCoverage',
13681
13510
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: 'sampleCoverage',
13682
13511
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: enable,
@@ -13711,6 +13540,7 @@ const GL_PARAMETER_SETTERS = {
13711
13540
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_ROW_LENGTH]: pixelStorei,
13712
13541
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_PIXELS]: pixelStorei,
13713
13542
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_ROWS]: pixelStorei,
13543
+ [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: readFramebuffer,
13714
13544
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_ROW_LENGTH]: pixelStorei,
13715
13545
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_IMAGE_HEIGHT]: pixelStorei,
13716
13546
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_SKIP_PIXELS]: pixelStorei,
@@ -13874,22 +13704,6 @@ const GL_HOOKED_SETTERS = {
13874
13704
  }),
13875
13705
 
13876
13706
  // SPECIFIC SETTERS
13877
- useProgram: (update, value) =>
13878
- update({
13879
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: value
13880
- }),
13881
- bindRenderbuffer: (update, target, value) =>
13882
- update({
13883
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: value
13884
- }),
13885
- bindTransformFeedback: (update, target, value) =>
13886
- update({
13887
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: value
13888
- }),
13889
- bindVertexArray: (update, value) =>
13890
- update({
13891
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: value
13892
- }),
13893
13707
 
13894
13708
  bindFramebuffer: (update, target, framebuffer) => {
13895
13709
  switch (target) {
@@ -13906,38 +13720,6 @@ const GL_HOOKED_SETTERS = {
13906
13720
  return null;
13907
13721
  }
13908
13722
  },
13909
- bindBuffer: (update, target, buffer) => {
13910
- const pname = {
13911
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING],
13912
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING],
13913
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING],
13914
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING],
13915
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]
13916
- }[target];
13917
-
13918
- if (pname) {
13919
- // @ts-ignore
13920
- return update({[pname]: buffer});
13921
- }
13922
- // targets that should not be cached
13923
- return {valueChanged: true};
13924
- },
13925
-
13926
- bindTexture: (update, target, texture) => {
13927
- const pname = {
13928
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D],
13929
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY],
13930
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D],
13931
- [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]
13932
- }[target];
13933
-
13934
- if (pname) {
13935
- // @ts-ignore
13936
- return update({[pname]: texture});
13937
- }
13938
- return null;
13939
- },
13940
-
13941
13723
  blendColor: (update, r, g, b, a) =>
13942
13724
  update({
13943
13725
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].BLEND_COLOR]: new Float32Array([r, g, b, a])
@@ -14109,43 +13891,6 @@ const GL_PARAMETER_GETTERS = {
14109
13891
  [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: isEnabled
14110
13892
  };
14111
13893
 
14112
- const NON_CACHE_PARAMETERS = new Set([
14113
- // setter not intercepted
14114
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ACTIVE_TEXTURE,
14115
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_ACTIVE,
14116
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_PAUSED,
14117
-
14118
- // setters bindBufferRange/bindBufferBase cannot be pruned based on cache
14119
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BUFFER_BINDING,
14120
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNIFORM_BUFFER_BINDING,
14121
-
14122
- // states depending on VERTEX_ARRAY_BINDING
14123
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ELEMENT_ARRAY_BUFFER_BINDING,
14124
- // states depending on READ_FRAMEBUFFER_BINDING
14125
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_FORMAT,
14126
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_TYPE,
14127
- // states depending on FRAMEBUFFER_BINDING
14128
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_BUFFER,
14129
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER0,
14130
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER1,
14131
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER2,
14132
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER3,
14133
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER4,
14134
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER5,
14135
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER6,
14136
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER7,
14137
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER8,
14138
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER9,
14139
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER10,
14140
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER11,
14141
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER12,
14142
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER13,
14143
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER14,
14144
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER15,
14145
- // states depending on ACTIVE_TEXTURE
14146
- _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLER_BINDING
14147
- ]);
14148
-
14149
13894
 
14150
13895
  /***/ }),
14151
13896
 
@@ -15049,6 +14794,10 @@ function getPlatformShaderDefines(gl) {
15049
14794
  #define DEFAULT_GPU
15050
14795
  // Prevent driver from optimizing away the calculation necessary for emulated fp64
15051
14796
  #define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
14797
+ // Intel's built-in 'tan' function doesn't have acceptable precision
14798
+ #define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
14799
+ // Intel GPU doesn't have full 32 bits precision in same cases, causes overflow
14800
+ #define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
15052
14801
  `;
15053
14802
  }
15054
14803
  }
@@ -20300,9 +20049,6 @@ function identifyGPUVendor(vendor, renderer) {
20300
20049
  if (vendor.match(/INTEL/i) || renderer.match(/INTEL/i)) {
20301
20050
  return 'INTEL';
20302
20051
  }
20303
- if (vendor.match(/Apple/i) || renderer.match(/Apple/i)) {
20304
- return 'APPLE';
20305
- }
20306
20052
  if (
20307
20053
  vendor.match(/AMD/i) ||
20308
20054
  renderer.match(/AMD/i) ||
@@ -20311,7 +20057,7 @@ function identifyGPUVendor(vendor, renderer) {
20311
20057
  ) {
20312
20058
  return 'AMD';
20313
20059
  }
20314
- return 'UNKNOWN';
20060
+ return 'UNKNOWN GPU';
20315
20061
  }
20316
20062
 
20317
20063
  const compiledGlslExtensions = {};
@@ -24160,14 +23906,11 @@ __webpack_require__.r(__webpack_exports__);
24160
23906
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Texture; });
24161
23907
  /* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
24162
23908
  /* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
24163
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
24164
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
24165
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./resource */ "../webgl/src/classes/resource.js");
24166
- /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./buffer */ "../webgl/src/classes/buffer.js");
24167
- /* harmony import */ var _texture_formats__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./texture-formats */ "../webgl/src/classes/texture-formats.js");
24168
- /* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/assert */ "../webgl/src/utils/assert.js");
24169
- /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/utils */ "../webgl/src/utils/utils.js");
24170
-
23909
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resource */ "../webgl/src/classes/resource.js");
23910
+ /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./buffer */ "../webgl/src/classes/buffer.js");
23911
+ /* harmony import */ var _texture_formats__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./texture-formats */ "../webgl/src/classes/texture-formats.js");
23912
+ /* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/assert */ "../webgl/src/utils/assert.js");
23913
+ /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/utils */ "../webgl/src/utils/utils.js");
24171
23914
 
24172
23915
 
24173
23916
 
@@ -24182,15 +23925,15 @@ const NPOT_MIN_FILTERS = [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["defau
24182
23925
 
24183
23926
  // Polyfill
24184
23927
  // Note (Tarek): Do we really need to support this API?
24185
- const WebGLBuffer = probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].WebGLBuffer || function WebGLBuffer() {};
23928
+ const WebGLBuffer = globalThis.WebGLBuffer || function WebGLBuffer() {};
24186
23929
 
24187
- class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
23930
+ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
24188
23931
  static isSupported(gl, opts = {}) {
24189
23932
  const {format, linearFiltering} = opts;
24190
23933
  let supported = true;
24191
23934
  if (format) {
24192
- supported = supported && Object(_texture_formats__WEBPACK_IMPORTED_MODULE_5__["isFormatSupported"])(gl, format);
24193
- supported = supported && (!linearFiltering || Object(_texture_formats__WEBPACK_IMPORTED_MODULE_5__["isLinearFilteringSupported"])(gl, format));
23935
+ supported = supported && Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isFormatSupported"])(gl, format);
23936
+ supported = supported && (!linearFiltering || Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isLinearFilteringSupported"])(gl, format));
24194
23937
  }
24195
23938
  return supported;
24196
23939
  }
@@ -24207,7 +23950,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24207
23950
  // (while run-time).
24208
23951
  constructor(gl, props) {
24209
23952
  const {
24210
- id = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_7__["uid"])('texture'),
23953
+ id = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["uid"])('texture'),
24211
23954
  handle,
24212
23955
  target
24213
23956
  // , magFilter, minFilter, wrapS, wrapT
@@ -24525,7 +24268,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24525
24268
 
24526
24269
  break;
24527
24270
  default:
24528
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(false, 'Unknown image data type');
24271
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false, 'Unknown image data type');
24529
24272
  }
24530
24273
  });
24531
24274
 
@@ -24533,8 +24276,8 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24533
24276
  this._trackAllocatedMemory(data.byteLength, 'Texture');
24534
24277
  } else {
24535
24278
  // NOTE(Tarek): Default to RGBA bytes
24536
- const channels = _texture_formats__WEBPACK_IMPORTED_MODULE_5__["DATA_FORMAT_CHANNELS"][this.dataFormat] || 4;
24537
- const channelSize = _texture_formats__WEBPACK_IMPORTED_MODULE_5__["TYPE_SIZES"][this.type] || 1;
24279
+ const channels = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["DATA_FORMAT_CHANNELS"][this.dataFormat] || 4;
24280
+ const channelSize = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TYPE_SIZES"][this.type] || 1;
24538
24281
 
24539
24282
  this._trackAllocatedMemory(this.width * this.height * channels * channelSize, 'Texture');
24540
24283
  }
@@ -24600,7 +24343,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24600
24343
  height
24601
24344
  }));
24602
24345
 
24603
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(this.depth === 0, 'texSubImage not supported for 3D textures');
24346
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(this.depth === 0, 'texSubImage not supported for 3D textures');
24604
24347
 
24605
24348
  // pixels variable is for API compatibility purpose
24606
24349
  if (!data) {
@@ -24616,7 +24359,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24616
24359
  }
24617
24360
 
24618
24361
  // Support buffers
24619
- if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_4__["default"]) {
24362
+ if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
24620
24363
  data = data.handle;
24621
24364
  }
24622
24365
 
@@ -24718,7 +24461,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24718
24461
  if (ArrayBuffer.isView(data)) {
24719
24462
  return {data, dataType: 'typed-array'};
24720
24463
  }
24721
- if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_4__["default"]) {
24464
+ if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
24722
24465
  return {data: data.handle, dataType: 'buffer'};
24723
24466
  }
24724
24467
  if (data instanceof WebGLBuffer) {
@@ -24810,7 +24553,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24810
24553
  let {width, height, dataFormat, type, compressed} = opts;
24811
24554
 
24812
24555
  // Deduce format and type from format
24813
- const textureFormat = _texture_formats__WEBPACK_IMPORTED_MODULE_5__["TEXTURE_FORMATS"][format];
24556
+ const textureFormat = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TEXTURE_FORMATS"][format];
24814
24557
  dataFormat = dataFormat || (textureFormat && textureFormat.dataFormat);
24815
24558
  type = type || (textureFormat && textureFormat.types[0]);
24816
24559
 
@@ -24842,12 +24585,12 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24842
24585
  size = {width, height};
24843
24586
  }
24844
24587
 
24845
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(size, 'Could not deduced texture size');
24846
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(
24588
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(size, 'Could not deduced texture size');
24589
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
24847
24590
  width === undefined || size.width === width,
24848
24591
  'Deduced texture width does not match supplied width'
24849
24592
  );
24850
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(
24593
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
24851
24594
  height === undefined || size.height === height,
24852
24595
  'Deduced texture height does not match supplied height'
24853
24596
  );
@@ -24897,7 +24640,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24897
24640
 
24898
24641
  case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_WIDTH:
24899
24642
  case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_HEIGHT:
24900
- Object(_utils_assert__WEBPACK_IMPORTED_MODULE_6__["assert"])(false);
24643
+ Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false);
24901
24644
  break;
24902
24645
 
24903
24646
  default:
@@ -24918,7 +24661,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
24918
24661
  if (!this.width || !this.height) {
24919
24662
  return false;
24920
24663
  }
24921
- return !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_7__["isPowerOfTwo"])(this.width) || !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_7__["isPowerOfTwo"])(this.height);
24664
+ return !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.width) || !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.height);
24922
24665
  }
24923
24666
 
24924
24667
  // Update default settings which are not supported by NPOT textures.
@@ -27712,8 +27455,7 @@ __webpack_require__.r(__webpack_exports__);
27712
27455
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lumaStats", function() { return lumaStats; });
27713
27456
  /* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
27714
27457
  /* harmony import */ var probe_gl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! probe.gl */ "../../node_modules/probe.gl/dist/esm/index.js");
27715
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
27716
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
27458
+ /* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
27717
27459
 
27718
27460
 
27719
27461
 
@@ -27721,7 +27463,7 @@ __webpack_require__.r(__webpack_exports__);
27721
27463
  // Version detection using babel plugin
27722
27464
  /* global __VERSION__ */
27723
27465
  // @ts-ignore
27724
- const VERSION = true ? "8.5.7" : undefined;
27466
+ const VERSION = true ? "8.5.10" : undefined;
27725
27467
 
27726
27468
  const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
27727
27469
  // Assign luma.log.level in console to control logging: \
@@ -27744,16 +27486,16 @@ class StatsManager {
27744
27486
 
27745
27487
  const lumaStats = new StatsManager();
27746
27488
 
27747
- if (probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma && probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma.VERSION !== VERSION) {
27748
- throw new Error(`luma.gl - multiple VERSIONs detected: ${probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma.VERSION} vs ${VERSION}`);
27489
+ if (globalThis.luma && globalThis.luma.VERSION !== VERSION) {
27490
+ throw new Error(`luma.gl - multiple VERSIONs detected: ${globalThis.luma.VERSION} vs ${VERSION}`);
27749
27491
  }
27750
27492
 
27751
- if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma) {
27752
- if (Object(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])()) {
27493
+ if (!globalThis.luma) {
27494
+ if (Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])()) {
27753
27495
  _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"].log(1, `luma.gl ${VERSION} - ${STARTUP_MESSAGE}`)();
27754
27496
  }
27755
27497
 
27756
- probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma = probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma || {
27498
+ globalThis.luma = globalThis.luma || {
27757
27499
  VERSION,
27758
27500
  version: VERSION,
27759
27501
  log: _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"],
@@ -27775,7 +27517,7 @@ if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma) {
27775
27517
  }
27776
27518
 
27777
27519
 
27778
- /* harmony default export */ __webpack_exports__["default"] = (probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma);
27520
+ /* harmony default export */ __webpack_exports__["default"] = (globalThis.luma);
27779
27521
 
27780
27522
 
27781
27523
  /***/ }),
@@ -28912,15 +28654,13 @@ class Timeline {
28912
28654
  /*! no static exports found */
28913
28655
  /***/ (function(module, exports, __webpack_require__) {
28914
28656
 
28915
- /* WEBPACK VAR INJECTION */(function(global) {const moduleExports = __webpack_require__(/*! ./index */ "./src/index.js");
28657
+ const moduleExports = __webpack_require__(/*! ./index */ "./src/index.js");
28916
28658
 
28917
- const _global = typeof window === 'undefined' ? global : window;
28918
28659
  // @ts-ignore
28919
- _global.luma = _global.luma || {};
28660
+ globalThis.luma = globalThis.luma || {};
28920
28661
  // @ts-ignore
28921
- module.exports = Object.assign(_global.luma, moduleExports);
28662
+ module.exports = Object.assign(globalThis.luma, moduleExports);
28922
28663
 
28923
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
28924
28664
 
28925
28665
  /***/ }),
28926
28666
 
@@ -29942,15 +29682,14 @@ __webpack_require__.r(__webpack_exports__);
29942
29682
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AnimationLoop; });
29943
29683
  /* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
29944
29684
  /* harmony import */ var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/webgl */ "../webgl/src/index.js");
29945
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
29946
- /* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
29685
+ /* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
29947
29686
 
29948
29687
 
29949
29688
 
29950
29689
 
29951
29690
 
29952
29691
 
29953
- const isPage = Object(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])() && typeof document !== 'undefined';
29692
+ const isPage = Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])() && typeof document !== 'undefined';
29954
29693
 
29955
29694
  let statIdCounter = 0;
29956
29695