@luma.gl/core 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 +318 -577
- package/dist/dist.min.js +1 -1
- package/package.json +7 -7
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.
|
|
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":
|
|
@@ -13096,15 +13005,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13096
13005
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AnimationLoop; });
|
|
13097
13006
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
13098
13007
|
/* harmony import */ var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/webgl */ "../webgl/src/index.js");
|
|
13099
|
-
/* harmony import */ var
|
|
13100
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
|
|
13008
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
13101
13009
|
|
|
13102
13010
|
|
|
13103
13011
|
|
|
13104
13012
|
|
|
13105
13013
|
|
|
13106
13014
|
|
|
13107
|
-
const isPage = Object(
|
|
13015
|
+
const isPage = Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])() && typeof document !== 'undefined';
|
|
13108
13016
|
|
|
13109
13017
|
let statIdCounter = 0;
|
|
13110
13018
|
|
|
@@ -15556,8 +15464,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15556
15464
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContextDebugInfo", function() { return getContextDebugInfo; });
|
|
15557
15465
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resizeGLContext", function() { return resizeGLContext; });
|
|
15558
15466
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
15559
|
-
/* harmony import */ var
|
|
15560
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_1__);
|
|
15467
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
15561
15468
|
/* 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");
|
|
15562
15469
|
/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/log */ "../gltools/src/utils/log.js");
|
|
15563
15470
|
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
|
|
@@ -15577,7 +15484,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15577
15484
|
|
|
15578
15485
|
|
|
15579
15486
|
|
|
15580
|
-
const isBrowser = Object(
|
|
15487
|
+
const isBrowser = Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["isBrowser"])();
|
|
15581
15488
|
const isPage = isBrowser && typeof document !== 'undefined';
|
|
15582
15489
|
|
|
15583
15490
|
const CONTEXT_DEFAULTS = {
|
|
@@ -15676,11 +15583,11 @@ function instrumentGLContext(gl, options = {}) {
|
|
|
15676
15583
|
// Add debug instrumentation to the context
|
|
15677
15584
|
if (isBrowser && debug) {
|
|
15678
15585
|
// @ts-ignore
|
|
15679
|
-
if (!
|
|
15586
|
+
if (!globalThis.makeDebugContext) {
|
|
15680
15587
|
_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
|
|
15681
15588
|
} else {
|
|
15682
15589
|
// @ts-ignore
|
|
15683
|
-
gl =
|
|
15590
|
+
gl = globalThis.makeDebugContext(gl, options);
|
|
15684
15591
|
// Debug forces log level to at least 1
|
|
15685
15592
|
_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level = Math.max(_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level, 1);
|
|
15686
15593
|
}
|
|
@@ -16086,7 +15993,7 @@ function getParameterPolyfill(gl, originalGetParameter, pname) {
|
|
|
16086
15993
|
|
|
16087
15994
|
"use strict";
|
|
16088
15995
|
__webpack_require__.r(__webpack_exports__);
|
|
16089
|
-
/*
|
|
15996
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillContext", function() { return polyfillContext; });
|
|
16090
15997
|
/* 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");
|
|
16091
15998
|
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
|
|
16092
15999
|
/* harmony import */ var _polyfill_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./polyfill-table */ "../gltools/src/polyfill/polyfill-table.js");
|
|
@@ -16128,9 +16035,8 @@ function polyfillContext(gl) {
|
|
|
16128
16035
|
}
|
|
16129
16036
|
|
|
16130
16037
|
// TODO - is this still required?
|
|
16131
|
-
const global_ = typeof global !== 'undefined' ? global : window;
|
|
16132
16038
|
// @ts-ignore
|
|
16133
|
-
|
|
16039
|
+
globalThis.polyfillContext = polyfillContext;
|
|
16134
16040
|
|
|
16135
16041
|
function initializeExtensions(gl) {
|
|
16136
16042
|
gl.luma.extensions = {};
|
|
@@ -16195,7 +16101,6 @@ function polyfillExtension(gl, {extension, target, target2}) {
|
|
|
16195
16101
|
}
|
|
16196
16102
|
}
|
|
16197
16103
|
|
|
16198
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
16199
16104
|
|
|
16200
16105
|
/***/ }),
|
|
16201
16106
|
|
|
@@ -16390,8 +16295,6 @@ const WEBGL2_CONTEXT_OVERRIDES = {
|
|
|
16390
16295
|
"use strict";
|
|
16391
16296
|
__webpack_require__.r(__webpack_exports__);
|
|
16392
16297
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillVertexArrayObject", function() { return polyfillVertexArrayObject; });
|
|
16393
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
|
|
16394
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_0__);
|
|
16395
16298
|
/*
|
|
16396
16299
|
** Copyright (c) 2015 The Khronos Group Inc.
|
|
16397
16300
|
**
|
|
@@ -16420,19 +16323,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16420
16323
|
|
|
16421
16324
|
// @ts-nocheck external code
|
|
16422
16325
|
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
16326
|
const glErrorShadow = {};
|
|
16426
16327
|
|
|
16427
16328
|
function error(msg) {
|
|
16428
|
-
if (
|
|
16429
|
-
|
|
16329
|
+
if (globalThis.console && globalThis.console.error) {
|
|
16330
|
+
globalThis.console.error(msg);
|
|
16430
16331
|
}
|
|
16431
16332
|
}
|
|
16432
16333
|
|
|
16433
16334
|
function log(msg) {
|
|
16434
|
-
if (
|
|
16435
|
-
|
|
16335
|
+
if (globalThis.console && globalThis.console.log) {
|
|
16336
|
+
globalThis.console.log(msg);
|
|
16436
16337
|
}
|
|
16437
16338
|
}
|
|
16438
16339
|
|
|
@@ -16766,7 +16667,7 @@ function polyfillVertexArrayObject(gl) {
|
|
|
16766
16667
|
|
|
16767
16668
|
"use strict";
|
|
16768
16669
|
__webpack_require__.r(__webpack_exports__);
|
|
16769
|
-
/*
|
|
16670
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trackContextState", function() { return trackContextState; });
|
|
16770
16671
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pushContextState", function() { return pushContextState; });
|
|
16771
16672
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popContextState", function() { return popContextState; });
|
|
16772
16673
|
/* harmony import */ var _webgl_parameter_tables__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./webgl-parameter-tables */ "../gltools/src/state-tracker/webgl-parameter-tables.js");
|
|
@@ -16791,15 +16692,13 @@ function installGetterOverride(gl, functionName) {
|
|
|
16791
16692
|
const originalGetterFunc = gl[functionName].bind(gl);
|
|
16792
16693
|
|
|
16793
16694
|
// Wrap it with a spy so that we can update our state cache when it gets called
|
|
16794
|
-
gl[functionName] = function get(
|
|
16795
|
-
|
|
16796
|
-
// Invalid or blacklisted parameter, do not cache
|
|
16797
|
-
return originalGetterFunc(pname);
|
|
16798
|
-
}
|
|
16695
|
+
gl[functionName] = function get(...params) {
|
|
16696
|
+
const pname = params[0];
|
|
16799
16697
|
|
|
16698
|
+
// WebGL limits are not prepopulated in the cache, it's neither undefined in GL_PARAMETER_DEFAULTS
|
|
16699
|
+
// nor intercepted by GL_HOOKED_SETTERS. Query the original getter.
|
|
16800
16700
|
if (!(pname in gl.state.cache)) {
|
|
16801
|
-
|
|
16802
|
-
gl.state.cache[pname] = originalGetterFunc(pname);
|
|
16701
|
+
return originalGetterFunc(...params);
|
|
16803
16702
|
}
|
|
16804
16703
|
|
|
16805
16704
|
// Optionally call the original function to do a "hard" query from the WebGLRenderingContext
|
|
@@ -16807,7 +16706,7 @@ function installGetterOverride(gl, functionName) {
|
|
|
16807
16706
|
? // Call the getter the params so that it can e.g. serve from a cache
|
|
16808
16707
|
gl.state.cache[pname]
|
|
16809
16708
|
: // Optionally call the original function to do a "hard" query from the WebGLRenderingContext
|
|
16810
|
-
originalGetterFunc(
|
|
16709
|
+
originalGetterFunc(...params);
|
|
16811
16710
|
};
|
|
16812
16711
|
|
|
16813
16712
|
// Set the name of this anonymous function to help in debugging and profiling
|
|
@@ -16822,10 +16721,6 @@ function installGetterOverride(gl, functionName) {
|
|
|
16822
16721
|
// updated with a copy of the WebGL context state.
|
|
16823
16722
|
function installSetterSpy(gl, functionName, setter) {
|
|
16824
16723
|
// Get the original function from the WebGLRenderingContext
|
|
16825
|
-
if (!gl[functionName]) {
|
|
16826
|
-
// This could happen if we try to intercept WebGL2 method on a WebGL1 context
|
|
16827
|
-
return;
|
|
16828
|
-
}
|
|
16829
16724
|
const originalSetterFunc = gl[functionName].bind(gl);
|
|
16830
16725
|
|
|
16831
16726
|
// Wrap it with a spy so that we can update our state cache when it gets called
|
|
@@ -16947,9 +16842,8 @@ function trackContextState(gl, options = {}) {
|
|
|
16947
16842
|
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_2__["assert"])(copyState !== undefined);
|
|
16948
16843
|
// @ts-ignore
|
|
16949
16844
|
if (!gl.state) {
|
|
16950
|
-
const global_ = typeof global !== 'undefined' ? global : window;
|
|
16951
16845
|
// @ts-ignore
|
|
16952
|
-
const {polyfillContext} =
|
|
16846
|
+
const {polyfillContext} = globalThis;
|
|
16953
16847
|
if (polyfillContext) {
|
|
16954
16848
|
polyfillContext(gl);
|
|
16955
16849
|
}
|
|
@@ -17001,7 +16895,6 @@ function popContextState(gl) {
|
|
|
17001
16895
|
gl.state.pop();
|
|
17002
16896
|
}
|
|
17003
16897
|
|
|
17004
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
17005
16898
|
|
|
17006
16899
|
/***/ }),
|
|
17007
16900
|
|
|
@@ -17160,7 +17053,7 @@ function withParameters(gl, parameters, func) {
|
|
|
17160
17053
|
/*!**************************************************************!*\
|
|
17161
17054
|
!*** ../gltools/src/state-tracker/webgl-parameter-tables.js ***!
|
|
17162
17055
|
\**************************************************************/
|
|
17163
|
-
/*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS
|
|
17056
|
+
/*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS */
|
|
17164
17057
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17165
17058
|
|
|
17166
17059
|
"use strict";
|
|
@@ -17170,7 +17063,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17170
17063
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_COMPOSITE_PARAMETER_SETTERS", function() { return GL_COMPOSITE_PARAMETER_SETTERS; });
|
|
17171
17064
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_HOOKED_SETTERS", function() { return GL_HOOKED_SETTERS; });
|
|
17172
17065
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_PARAMETER_GETTERS", function() { return GL_PARAMETER_GETTERS; });
|
|
17173
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_CACHE_PARAMETERS", function() { return NON_CACHE_PARAMETERS; });
|
|
17174
17066
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
17175
17067
|
/* harmony import */ var _utils_webgl_checks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/webgl-checks */ "../gltools/src/utils/webgl-checks.js");
|
|
17176
17068
|
// Tables describing WebGL parameters
|
|
@@ -17200,22 +17092,14 @@ const GL_PARAMETER_DEFAULTS = {
|
|
|
17200
17092
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_RANGE]: new Float32Array([0, 1]), // TBD
|
|
17201
17093
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: true,
|
|
17202
17094
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: true,
|
|
17203
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: null,
|
|
17204
17095
|
// FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
|
|
17205
17096
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: null,
|
|
17206
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: null,
|
|
17207
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: null,
|
|
17208
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: null,
|
|
17209
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: null,
|
|
17210
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: null,
|
|
17211
17097
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CCW,
|
|
17212
17098
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
|
|
17213
17099
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: 1,
|
|
17214
17100
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FILL]: false,
|
|
17215
17101
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 0,
|
|
17216
17102
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 0,
|
|
17217
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: false,
|
|
17218
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: false,
|
|
17219
17103
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 1.0,
|
|
17220
17104
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: false,
|
|
17221
17105
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: false,
|
|
@@ -17248,13 +17132,6 @@ const GL_PARAMETER_DEFAULTS = {
|
|
|
17248
17132
|
|
|
17249
17133
|
// WEBGL2 / EXTENSIONS
|
|
17250
17134
|
// gl1: 'OES_standard_derivatives'
|
|
17251
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: null,
|
|
17252
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: null,
|
|
17253
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: null,
|
|
17254
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: null,
|
|
17255
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: null,
|
|
17256
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: null,
|
|
17257
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: null,
|
|
17258
17135
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
|
|
17259
17136
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: null,
|
|
17260
17137
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: false,
|
|
@@ -17274,38 +17151,12 @@ const enable = (gl, value, key) => (value ? gl.enable(key) : gl.disable(key));
|
|
|
17274
17151
|
const hint = (gl, value, key) => gl.hint(key, value);
|
|
17275
17152
|
const pixelStorei = (gl, value, key) => gl.pixelStorei(key, value);
|
|
17276
17153
|
|
|
17277
|
-
const
|
|
17278
|
-
|
|
17279
|
-
if (key === _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING) {
|
|
17280
|
-
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;
|
|
17281
|
-
} else {
|
|
17282
|
-
// GL.READ_FRAMEBUFFER_BINDING
|
|
17283
|
-
target = _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER;
|
|
17284
|
-
}
|
|
17154
|
+
const drawFramebuffer = (gl, value) => {
|
|
17155
|
+
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;
|
|
17285
17156
|
return gl.bindFramebuffer(target, value);
|
|
17286
17157
|
};
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
const target = {
|
|
17290
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER],
|
|
17291
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER],
|
|
17292
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER],
|
|
17293
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER],
|
|
17294
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]
|
|
17295
|
-
}[key];
|
|
17296
|
-
|
|
17297
|
-
gl.bindBuffer(target, value);
|
|
17298
|
-
};
|
|
17299
|
-
|
|
17300
|
-
const bindTexture = (gl, value, key) => {
|
|
17301
|
-
const target = {
|
|
17302
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D],
|
|
17303
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY],
|
|
17304
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D],
|
|
17305
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]
|
|
17306
|
-
}[key];
|
|
17307
|
-
|
|
17308
|
-
gl.bindTexture(target, value);
|
|
17158
|
+
const readFramebuffer = (gl, value) => {
|
|
17159
|
+
return gl.bindFramebuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER, value);
|
|
17309
17160
|
};
|
|
17310
17161
|
|
|
17311
17162
|
// Utility
|
|
@@ -17336,29 +17187,8 @@ const GL_PARAMETER_SETTERS = {
|
|
|
17336
17187
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: (gl, value) => gl.depthMask(value),
|
|
17337
17188
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: enable,
|
|
17338
17189
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: hint,
|
|
17339
|
-
|
|
17340
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: (gl, value) => gl.useProgram(value),
|
|
17341
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: (gl, value) => gl.bindRenderbuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER, value),
|
|
17342
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: (gl, value) =>
|
|
17343
|
-
gl.bindTransformFeedback && gl.bindTransformFeedback(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK, value),
|
|
17344
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: (gl, value) => gl.bindVertexArray(value),
|
|
17345
17190
|
// NOTE: FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
|
|
17346
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]:
|
|
17347
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: bindFramebuffer,
|
|
17348
|
-
|
|
17349
|
-
// Buffers
|
|
17350
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: bindBuffer,
|
|
17351
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: bindBuffer,
|
|
17352
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: bindBuffer,
|
|
17353
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: bindBuffer,
|
|
17354
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: bindBuffer,
|
|
17355
|
-
|
|
17356
|
-
// Textures
|
|
17357
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: bindTexture,
|
|
17358
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: bindTexture,
|
|
17359
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: bindTexture,
|
|
17360
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: bindTexture,
|
|
17361
|
-
|
|
17191
|
+
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: drawFramebuffer,
|
|
17362
17192
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: (gl, value) => gl.frontFace(value),
|
|
17363
17193
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: hint,
|
|
17364
17194
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: (gl, value) => gl.lineWidth(value),
|
|
@@ -17366,8 +17196,6 @@ const GL_PARAMETER_SETTERS = {
|
|
|
17366
17196
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 'polygonOffset',
|
|
17367
17197
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 'polygonOffset',
|
|
17368
17198
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: enable,
|
|
17369
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: enable,
|
|
17370
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: enable,
|
|
17371
17199
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 'sampleCoverage',
|
|
17372
17200
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: 'sampleCoverage',
|
|
17373
17201
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: enable,
|
|
@@ -17402,6 +17230,7 @@ const GL_PARAMETER_SETTERS = {
|
|
|
17402
17230
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_ROW_LENGTH]: pixelStorei,
|
|
17403
17231
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_PIXELS]: pixelStorei,
|
|
17404
17232
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_ROWS]: pixelStorei,
|
|
17233
|
+
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: readFramebuffer,
|
|
17405
17234
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_ROW_LENGTH]: pixelStorei,
|
|
17406
17235
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_IMAGE_HEIGHT]: pixelStorei,
|
|
17407
17236
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_SKIP_PIXELS]: pixelStorei,
|
|
@@ -17565,22 +17394,6 @@ const GL_HOOKED_SETTERS = {
|
|
|
17565
17394
|
}),
|
|
17566
17395
|
|
|
17567
17396
|
// SPECIFIC SETTERS
|
|
17568
|
-
useProgram: (update, value) =>
|
|
17569
|
-
update({
|
|
17570
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: value
|
|
17571
|
-
}),
|
|
17572
|
-
bindRenderbuffer: (update, target, value) =>
|
|
17573
|
-
update({
|
|
17574
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: value
|
|
17575
|
-
}),
|
|
17576
|
-
bindTransformFeedback: (update, target, value) =>
|
|
17577
|
-
update({
|
|
17578
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: value
|
|
17579
|
-
}),
|
|
17580
|
-
bindVertexArray: (update, value) =>
|
|
17581
|
-
update({
|
|
17582
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: value
|
|
17583
|
-
}),
|
|
17584
17397
|
|
|
17585
17398
|
bindFramebuffer: (update, target, framebuffer) => {
|
|
17586
17399
|
switch (target) {
|
|
@@ -17597,38 +17410,6 @@ const GL_HOOKED_SETTERS = {
|
|
|
17597
17410
|
return null;
|
|
17598
17411
|
}
|
|
17599
17412
|
},
|
|
17600
|
-
bindBuffer: (update, target, buffer) => {
|
|
17601
|
-
const pname = {
|
|
17602
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING],
|
|
17603
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING],
|
|
17604
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING],
|
|
17605
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING],
|
|
17606
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]
|
|
17607
|
-
}[target];
|
|
17608
|
-
|
|
17609
|
-
if (pname) {
|
|
17610
|
-
// @ts-ignore
|
|
17611
|
-
return update({[pname]: buffer});
|
|
17612
|
-
}
|
|
17613
|
-
// targets that should not be cached
|
|
17614
|
-
return {valueChanged: true};
|
|
17615
|
-
},
|
|
17616
|
-
|
|
17617
|
-
bindTexture: (update, target, texture) => {
|
|
17618
|
-
const pname = {
|
|
17619
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D],
|
|
17620
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY],
|
|
17621
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D],
|
|
17622
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]
|
|
17623
|
-
}[target];
|
|
17624
|
-
|
|
17625
|
-
if (pname) {
|
|
17626
|
-
// @ts-ignore
|
|
17627
|
-
return update({[pname]: texture});
|
|
17628
|
-
}
|
|
17629
|
-
return null;
|
|
17630
|
-
},
|
|
17631
|
-
|
|
17632
17413
|
blendColor: (update, r, g, b, a) =>
|
|
17633
17414
|
update({
|
|
17634
17415
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].BLEND_COLOR]: new Float32Array([r, g, b, a])
|
|
@@ -17800,43 +17581,6 @@ const GL_PARAMETER_GETTERS = {
|
|
|
17800
17581
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: isEnabled
|
|
17801
17582
|
};
|
|
17802
17583
|
|
|
17803
|
-
const NON_CACHE_PARAMETERS = new Set([
|
|
17804
|
-
// setter not intercepted
|
|
17805
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ACTIVE_TEXTURE,
|
|
17806
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_ACTIVE,
|
|
17807
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_PAUSED,
|
|
17808
|
-
|
|
17809
|
-
// setters bindBufferRange/bindBufferBase cannot be pruned based on cache
|
|
17810
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BUFFER_BINDING,
|
|
17811
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNIFORM_BUFFER_BINDING,
|
|
17812
|
-
|
|
17813
|
-
// states depending on VERTEX_ARRAY_BINDING
|
|
17814
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ELEMENT_ARRAY_BUFFER_BINDING,
|
|
17815
|
-
// states depending on READ_FRAMEBUFFER_BINDING
|
|
17816
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_FORMAT,
|
|
17817
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_TYPE,
|
|
17818
|
-
// states depending on FRAMEBUFFER_BINDING
|
|
17819
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_BUFFER,
|
|
17820
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER0,
|
|
17821
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER1,
|
|
17822
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER2,
|
|
17823
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER3,
|
|
17824
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER4,
|
|
17825
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER5,
|
|
17826
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER6,
|
|
17827
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER7,
|
|
17828
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER8,
|
|
17829
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER9,
|
|
17830
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER10,
|
|
17831
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER11,
|
|
17832
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER12,
|
|
17833
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER13,
|
|
17834
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER14,
|
|
17835
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER15,
|
|
17836
|
-
// states depending on ACTIVE_TEXTURE
|
|
17837
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLER_BINDING
|
|
17838
|
-
]);
|
|
17839
|
-
|
|
17840
17584
|
|
|
17841
17585
|
/***/ }),
|
|
17842
17586
|
|
|
@@ -18740,6 +18484,10 @@ function getPlatformShaderDefines(gl) {
|
|
|
18740
18484
|
#define DEFAULT_GPU
|
|
18741
18485
|
// Prevent driver from optimizing away the calculation necessary for emulated fp64
|
|
18742
18486
|
#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
|
|
18487
|
+
// Intel's built-in 'tan' function doesn't have acceptable precision
|
|
18488
|
+
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
18489
|
+
// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow
|
|
18490
|
+
#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
|
|
18743
18491
|
`;
|
|
18744
18492
|
}
|
|
18745
18493
|
}
|
|
@@ -23991,9 +23739,6 @@ function identifyGPUVendor(vendor, renderer) {
|
|
|
23991
23739
|
if (vendor.match(/INTEL/i) || renderer.match(/INTEL/i)) {
|
|
23992
23740
|
return 'INTEL';
|
|
23993
23741
|
}
|
|
23994
|
-
if (vendor.match(/Apple/i) || renderer.match(/Apple/i)) {
|
|
23995
|
-
return 'APPLE';
|
|
23996
|
-
}
|
|
23997
23742
|
if (
|
|
23998
23743
|
vendor.match(/AMD/i) ||
|
|
23999
23744
|
renderer.match(/AMD/i) ||
|
|
@@ -24002,7 +23747,7 @@ function identifyGPUVendor(vendor, renderer) {
|
|
|
24002
23747
|
) {
|
|
24003
23748
|
return 'AMD';
|
|
24004
23749
|
}
|
|
24005
|
-
return 'UNKNOWN';
|
|
23750
|
+
return 'UNKNOWN GPU';
|
|
24006
23751
|
}
|
|
24007
23752
|
|
|
24008
23753
|
const compiledGlslExtensions = {};
|
|
@@ -27851,14 +27596,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27851
27596
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Texture; });
|
|
27852
27597
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
27853
27598
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
27854
|
-
/* harmony import */ var
|
|
27855
|
-
/* harmony import */ var
|
|
27856
|
-
/* harmony import */ var
|
|
27857
|
-
/* harmony import */ var
|
|
27858
|
-
/* harmony import */ var
|
|
27859
|
-
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/assert */ "../webgl/src/utils/assert.js");
|
|
27860
|
-
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/utils */ "../webgl/src/utils/utils.js");
|
|
27861
|
-
|
|
27599
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resource */ "../webgl/src/classes/resource.js");
|
|
27600
|
+
/* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./buffer */ "../webgl/src/classes/buffer.js");
|
|
27601
|
+
/* harmony import */ var _texture_formats__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./texture-formats */ "../webgl/src/classes/texture-formats.js");
|
|
27602
|
+
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/assert */ "../webgl/src/utils/assert.js");
|
|
27603
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/utils */ "../webgl/src/utils/utils.js");
|
|
27862
27604
|
|
|
27863
27605
|
|
|
27864
27606
|
|
|
@@ -27873,15 +27615,15 @@ const NPOT_MIN_FILTERS = [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
27873
27615
|
|
|
27874
27616
|
// Polyfill
|
|
27875
27617
|
// Note (Tarek): Do we really need to support this API?
|
|
27876
|
-
const WebGLBuffer =
|
|
27618
|
+
const WebGLBuffer = globalThis.WebGLBuffer || function WebGLBuffer() {};
|
|
27877
27619
|
|
|
27878
|
-
class Texture extends
|
|
27620
|
+
class Texture extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
27879
27621
|
static isSupported(gl, opts = {}) {
|
|
27880
27622
|
const {format, linearFiltering} = opts;
|
|
27881
27623
|
let supported = true;
|
|
27882
27624
|
if (format) {
|
|
27883
|
-
supported = supported && Object(
|
|
27884
|
-
supported = supported && (!linearFiltering || Object(
|
|
27625
|
+
supported = supported && Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isFormatSupported"])(gl, format);
|
|
27626
|
+
supported = supported && (!linearFiltering || Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isLinearFilteringSupported"])(gl, format));
|
|
27885
27627
|
}
|
|
27886
27628
|
return supported;
|
|
27887
27629
|
}
|
|
@@ -27898,7 +27640,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
27898
27640
|
// (while run-time).
|
|
27899
27641
|
constructor(gl, props) {
|
|
27900
27642
|
const {
|
|
27901
|
-
id = Object(
|
|
27643
|
+
id = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["uid"])('texture'),
|
|
27902
27644
|
handle,
|
|
27903
27645
|
target
|
|
27904
27646
|
// , magFilter, minFilter, wrapS, wrapT
|
|
@@ -28216,7 +27958,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28216
27958
|
|
|
28217
27959
|
break;
|
|
28218
27960
|
default:
|
|
28219
|
-
Object(
|
|
27961
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false, 'Unknown image data type');
|
|
28220
27962
|
}
|
|
28221
27963
|
});
|
|
28222
27964
|
|
|
@@ -28224,8 +27966,8 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28224
27966
|
this._trackAllocatedMemory(data.byteLength, 'Texture');
|
|
28225
27967
|
} else {
|
|
28226
27968
|
// NOTE(Tarek): Default to RGBA bytes
|
|
28227
|
-
const channels =
|
|
28228
|
-
const channelSize =
|
|
27969
|
+
const channels = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["DATA_FORMAT_CHANNELS"][this.dataFormat] || 4;
|
|
27970
|
+
const channelSize = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TYPE_SIZES"][this.type] || 1;
|
|
28229
27971
|
|
|
28230
27972
|
this._trackAllocatedMemory(this.width * this.height * channels * channelSize, 'Texture');
|
|
28231
27973
|
}
|
|
@@ -28291,7 +28033,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28291
28033
|
height
|
|
28292
28034
|
}));
|
|
28293
28035
|
|
|
28294
|
-
Object(
|
|
28036
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(this.depth === 0, 'texSubImage not supported for 3D textures');
|
|
28295
28037
|
|
|
28296
28038
|
// pixels variable is for API compatibility purpose
|
|
28297
28039
|
if (!data) {
|
|
@@ -28307,7 +28049,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28307
28049
|
}
|
|
28308
28050
|
|
|
28309
28051
|
// Support buffers
|
|
28310
|
-
if (data instanceof
|
|
28052
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
28311
28053
|
data = data.handle;
|
|
28312
28054
|
}
|
|
28313
28055
|
|
|
@@ -28409,7 +28151,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28409
28151
|
if (ArrayBuffer.isView(data)) {
|
|
28410
28152
|
return {data, dataType: 'typed-array'};
|
|
28411
28153
|
}
|
|
28412
|
-
if (data instanceof
|
|
28154
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
28413
28155
|
return {data: data.handle, dataType: 'buffer'};
|
|
28414
28156
|
}
|
|
28415
28157
|
if (data instanceof WebGLBuffer) {
|
|
@@ -28501,7 +28243,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28501
28243
|
let {width, height, dataFormat, type, compressed} = opts;
|
|
28502
28244
|
|
|
28503
28245
|
// Deduce format and type from format
|
|
28504
|
-
const textureFormat =
|
|
28246
|
+
const textureFormat = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TEXTURE_FORMATS"][format];
|
|
28505
28247
|
dataFormat = dataFormat || (textureFormat && textureFormat.dataFormat);
|
|
28506
28248
|
type = type || (textureFormat && textureFormat.types[0]);
|
|
28507
28249
|
|
|
@@ -28533,12 +28275,12 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28533
28275
|
size = {width, height};
|
|
28534
28276
|
}
|
|
28535
28277
|
|
|
28536
|
-
Object(
|
|
28537
|
-
Object(
|
|
28278
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(size, 'Could not deduced texture size');
|
|
28279
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
28538
28280
|
width === undefined || size.width === width,
|
|
28539
28281
|
'Deduced texture width does not match supplied width'
|
|
28540
28282
|
);
|
|
28541
|
-
Object(
|
|
28283
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
28542
28284
|
height === undefined || size.height === height,
|
|
28543
28285
|
'Deduced texture height does not match supplied height'
|
|
28544
28286
|
);
|
|
@@ -28588,7 +28330,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28588
28330
|
|
|
28589
28331
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_WIDTH:
|
|
28590
28332
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_HEIGHT:
|
|
28591
|
-
Object(
|
|
28333
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false);
|
|
28592
28334
|
break;
|
|
28593
28335
|
|
|
28594
28336
|
default:
|
|
@@ -28609,7 +28351,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
28609
28351
|
if (!this.width || !this.height) {
|
|
28610
28352
|
return false;
|
|
28611
28353
|
}
|
|
28612
|
-
return !Object(
|
|
28354
|
+
return !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.width) || !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.height);
|
|
28613
28355
|
}
|
|
28614
28356
|
|
|
28615
28357
|
// Update default settings which are not supported by NPOT textures.
|
|
@@ -31403,8 +31145,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31403
31145
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lumaStats", function() { return lumaStats; });
|
|
31404
31146
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
31405
31147
|
/* harmony import */ var probe_gl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! probe.gl */ "../../node_modules/probe.gl/dist/esm/index.js");
|
|
31406
|
-
/* harmony import */ var
|
|
31407
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
|
|
31148
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
31408
31149
|
|
|
31409
31150
|
|
|
31410
31151
|
|
|
@@ -31412,7 +31153,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31412
31153
|
// Version detection using babel plugin
|
|
31413
31154
|
/* global __VERSION__ */
|
|
31414
31155
|
// @ts-ignore
|
|
31415
|
-
const VERSION = true ? "8.5.
|
|
31156
|
+
const VERSION = true ? "8.5.10" : undefined;
|
|
31416
31157
|
|
|
31417
31158
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
31418
31159
|
// Assign luma.log.level in console to control logging: \
|
|
@@ -31435,16 +31176,16 @@ class StatsManager {
|
|
|
31435
31176
|
|
|
31436
31177
|
const lumaStats = new StatsManager();
|
|
31437
31178
|
|
|
31438
|
-
if (
|
|
31439
|
-
throw new Error(`luma.gl - multiple VERSIONs detected: ${
|
|
31179
|
+
if (globalThis.luma && globalThis.luma.VERSION !== VERSION) {
|
|
31180
|
+
throw new Error(`luma.gl - multiple VERSIONs detected: ${globalThis.luma.VERSION} vs ${VERSION}`);
|
|
31440
31181
|
}
|
|
31441
31182
|
|
|
31442
|
-
if (!
|
|
31443
|
-
if (Object(
|
|
31183
|
+
if (!globalThis.luma) {
|
|
31184
|
+
if (Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])()) {
|
|
31444
31185
|
_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"].log(1, `luma.gl ${VERSION} - ${STARTUP_MESSAGE}`)();
|
|
31445
31186
|
}
|
|
31446
31187
|
|
|
31447
|
-
|
|
31188
|
+
globalThis.luma = globalThis.luma || {
|
|
31448
31189
|
VERSION,
|
|
31449
31190
|
version: VERSION,
|
|
31450
31191
|
log: _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"],
|
|
@@ -31466,7 +31207,7 @@ if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma) {
|
|
|
31466
31207
|
}
|
|
31467
31208
|
|
|
31468
31209
|
|
|
31469
|
-
/* harmony default export */ __webpack_exports__["default"] = (
|
|
31210
|
+
/* harmony default export */ __webpack_exports__["default"] = (globalThis.luma);
|
|
31470
31211
|
|
|
31471
31212
|
|
|
31472
31213
|
/***/ }),
|