@luma.gl/webgl 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 +299 -560
- package/dist/dist.min.js +1 -1
- package/dist/es5/bundle.js +2 -4
- package/dist/es5/bundle.js.map +1 -1
- package/dist/es5/classes/texture.js +1 -3
- package/dist/es5/classes/texture.js.map +1 -1
- package/dist/es5/init.js +7 -7
- package/dist/es5/init.js.map +1 -1
- package/dist/es5/utils/is-old-ie.js +1 -1
- package/dist/es5/utils/is-old-ie.js.map +1 -1
- package/dist/esm/bundle.js +2 -4
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/classes/texture.js +1 -2
- package/dist/esm/classes/texture.js.map +1 -1
- package/dist/esm/init.js +7 -7
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/utils/is-old-ie.js +1 -1
- package/dist/esm/utils/is-old-ie.js.map +1 -1
- package/package.json +5 -4
- package/src/bundle.js +2 -3
- package/src/classes/texture.js +1 -2
- package/src/init.js +6 -6
- package/src/utils/is-old-ie.js +1 -1
package/dist/dist.js
CHANGED
|
@@ -96,47 +96,258 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
-
/***/ "../../node_modules/@
|
|
100
|
-
|
|
101
|
-
!*** /Users/missx/Source/luma.gl/node_modules/@
|
|
102
|
-
|
|
103
|
-
/*!
|
|
104
|
-
/***/ (function(module,
|
|
99
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/index.js":
|
|
100
|
+
/*!********************************************************************************!*\
|
|
101
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/index.js ***!
|
|
102
|
+
\********************************************************************************/
|
|
103
|
+
/*! exports provided: VERSION, self, window, global, document, process, console, isBrowser, isBrowserMainThread, getBrowser, isMobile, isElectron, assert */
|
|
104
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
"use strict";
|
|
107
|
+
__webpack_require__.r(__webpack_exports__);
|
|
108
|
+
/* harmony import */ var _utils_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/globals */ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js");
|
|
109
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return _utils_globals__WEBPACK_IMPORTED_MODULE_0__["VERSION"]; });
|
|
110
|
+
|
|
111
|
+
/* harmony import */ var _lib_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/globals */ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js");
|
|
112
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "self", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["self"]; });
|
|
113
|
+
|
|
114
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["window"]; });
|
|
115
|
+
|
|
116
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "global", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["global"]; });
|
|
117
|
+
|
|
118
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "document", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["document"]; });
|
|
119
|
+
|
|
120
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "process", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["process"]; });
|
|
121
|
+
|
|
122
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "console", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["console"]; });
|
|
123
|
+
|
|
124
|
+
/* 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");
|
|
125
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBrowser", function() { return _lib_is_browser__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
126
|
+
|
|
127
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBrowserMainThread", function() { return _lib_is_browser__WEBPACK_IMPORTED_MODULE_2__["isBrowserMainThread"]; });
|
|
128
|
+
|
|
129
|
+
/* 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");
|
|
130
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBrowser", function() { return _lib_get_browser__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
131
|
+
|
|
132
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return _lib_get_browser__WEBPACK_IMPORTED_MODULE_3__["isMobile"]; });
|
|
133
|
+
|
|
134
|
+
/* 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");
|
|
135
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElectron", function() { return _lib_is_electron__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
|
136
|
+
|
|
137
|
+
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/assert */ "../../node_modules/@probe.gl/env/dist/esm/utils/assert.js");
|
|
138
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assert", function() { return _utils_assert__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=index.js.map
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
|
|
150
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/get-browser.js":
|
|
151
|
+
/*!******************************************************************************************!*\
|
|
152
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/get-browser.js ***!
|
|
153
|
+
\******************************************************************************************/
|
|
154
|
+
/*! exports provided: isMobile, default */
|
|
155
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
156
|
+
|
|
157
|
+
"use strict";
|
|
158
|
+
__webpack_require__.r(__webpack_exports__);
|
|
159
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return isMobile; });
|
|
160
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBrowser; });
|
|
161
|
+
/* harmony import */ var _is_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-browser */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");
|
|
162
|
+
/* harmony import */ var _is_electron__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-electron */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
const window = globalThis;
|
|
166
|
+
function isMobile() {
|
|
167
|
+
return typeof window.orientation !== 'undefined';
|
|
110
168
|
}
|
|
169
|
+
function getBrowser(mockUserAgent) {
|
|
170
|
+
if (!mockUserAgent && !Object(_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
|
|
171
|
+
return 'Node';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (Object(_is_electron__WEBPACK_IMPORTED_MODULE_1__["default"])(mockUserAgent)) {
|
|
175
|
+
return 'Electron';
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const navigator_ = typeof navigator !== 'undefined' ? navigator : {};
|
|
179
|
+
const userAgent = mockUserAgent || navigator_.userAgent || '';
|
|
180
|
+
|
|
181
|
+
if (userAgent.indexOf('Edge') > -1) {
|
|
182
|
+
return 'Edge';
|
|
183
|
+
}
|
|
111
184
|
|
|
112
|
-
|
|
185
|
+
const isMSIE = userAgent.indexOf('MSIE ') !== -1;
|
|
186
|
+
const isTrident = userAgent.indexOf('Trident/') !== -1;
|
|
187
|
+
|
|
188
|
+
if (isMSIE || isTrident) {
|
|
189
|
+
return 'IE';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (window.chrome) {
|
|
193
|
+
return 'Chrome';
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (window.safari) {
|
|
197
|
+
return 'Safari';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (window.mozInnerScreenX) {
|
|
201
|
+
return 'Firefox';
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return 'Unknown';
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=get-browser.js.map
|
|
113
207
|
|
|
114
208
|
/***/ }),
|
|
115
209
|
|
|
116
|
-
/***/ "../../node_modules/@
|
|
117
|
-
|
|
118
|
-
!*** /Users/missx/Source/luma.gl/node_modules/@
|
|
119
|
-
|
|
120
|
-
/*!
|
|
121
|
-
/***/ (function(module,
|
|
210
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js":
|
|
211
|
+
/*!**************************************************************************************!*\
|
|
212
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/globals.js ***!
|
|
213
|
+
\**************************************************************************************/
|
|
214
|
+
/*! exports provided: self, window, global, document, process, console */
|
|
215
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
122
216
|
|
|
123
|
-
|
|
124
|
-
|
|
217
|
+
"use strict";
|
|
218
|
+
__webpack_require__.r(__webpack_exports__);
|
|
219
|
+
/* WEBPACK VAR INJECTION */(function(global, process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "self", function() { return self_; });
|
|
220
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return window_; });
|
|
221
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "global", function() { return global_; });
|
|
222
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "document", function() { return document_; });
|
|
223
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "process", function() { return process_; });
|
|
224
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "console", function() { return console_; });
|
|
225
|
+
const globals = {
|
|
226
|
+
self: typeof self !== 'undefined' && self,
|
|
227
|
+
window: typeof window !== 'undefined' && window,
|
|
228
|
+
global: typeof global !== 'undefined' && global,
|
|
229
|
+
document: typeof document !== 'undefined' && document,
|
|
230
|
+
process: typeof process === 'object' && process
|
|
231
|
+
};
|
|
232
|
+
const global_ = globalThis;
|
|
233
|
+
const self_ = globals.self || globals.window || globals.global;
|
|
234
|
+
const window_ = globals.window || globals.self || globals.global;
|
|
235
|
+
const document_ = globals.document || {};
|
|
236
|
+
const process_ = globals.process || {};
|
|
237
|
+
const console_ = console;
|
|
125
238
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
239
|
+
//# sourceMappingURL=globals.js.map
|
|
240
|
+
/* 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")))
|
|
241
|
+
|
|
242
|
+
/***/ }),
|
|
243
|
+
|
|
244
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js":
|
|
245
|
+
/*!*****************************************************************************************!*\
|
|
246
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-browser.js ***!
|
|
247
|
+
\*****************************************************************************************/
|
|
248
|
+
/*! exports provided: default, isBrowserMainThread */
|
|
249
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
250
|
+
|
|
251
|
+
"use strict";
|
|
252
|
+
__webpack_require__.r(__webpack_exports__);
|
|
253
|
+
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isBrowser; });
|
|
254
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBrowserMainThread", function() { return isBrowserMainThread; });
|
|
255
|
+
/* harmony import */ var _is_electron__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-electron */ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");
|
|
256
|
+
|
|
257
|
+
function isBrowser() {
|
|
258
|
+
const isNode = typeof process === 'object' && String(process) === '[object process]' && !process.browser;
|
|
259
|
+
return !isNode || Object(_is_electron__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
260
|
+
}
|
|
261
|
+
function isBrowserMainThread() {
|
|
262
|
+
return isBrowser() && typeof document !== 'undefined';
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=is-browser.js.map
|
|
265
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../process/browser.js */ "../../node_modules/process/browser.js")))
|
|
266
|
+
|
|
267
|
+
/***/ }),
|
|
268
|
+
|
|
269
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js":
|
|
270
|
+
/*!******************************************************************************************!*\
|
|
271
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-electron.js ***!
|
|
272
|
+
\******************************************************************************************/
|
|
273
|
+
/*! exports provided: default */
|
|
274
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
275
|
+
|
|
276
|
+
"use strict";
|
|
277
|
+
__webpack_require__.r(__webpack_exports__);
|
|
278
|
+
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isElectron; });
|
|
279
|
+
function isElectron(mockUserAgent) {
|
|
280
|
+
if (typeof window !== 'undefined' && typeof window.process === 'object' && window.process.type === 'renderer') {
|
|
281
|
+
return true;
|
|
134
282
|
}
|
|
135
283
|
|
|
136
|
-
|
|
284
|
+
if (typeof process !== 'undefined' && typeof process.versions === 'object' && Boolean(process.versions.electron)) {
|
|
285
|
+
return true;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const realUserAgent = typeof navigator === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
|
|
289
|
+
const userAgent = mockUserAgent || realUserAgent;
|
|
290
|
+
|
|
291
|
+
if (userAgent && userAgent.indexOf('Electron') >= 0) {
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return false;
|
|
137
296
|
}
|
|
297
|
+
//# sourceMappingURL=is-electron.js.map
|
|
298
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../process/browser.js */ "../../node_modules/process/browser.js")))
|
|
138
299
|
|
|
139
|
-
|
|
300
|
+
/***/ }),
|
|
301
|
+
|
|
302
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/utils/assert.js":
|
|
303
|
+
/*!***************************************************************************************!*\
|
|
304
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/assert.js ***!
|
|
305
|
+
\***************************************************************************************/
|
|
306
|
+
/*! exports provided: default */
|
|
307
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
308
|
+
|
|
309
|
+
"use strict";
|
|
310
|
+
__webpack_require__.r(__webpack_exports__);
|
|
311
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return assert; });
|
|
312
|
+
function assert(condition, message) {
|
|
313
|
+
if (!condition) {
|
|
314
|
+
throw new Error(message || 'Assertion failed');
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
//# sourceMappingURL=assert.js.map
|
|
318
|
+
|
|
319
|
+
/***/ }),
|
|
320
|
+
|
|
321
|
+
/***/ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js":
|
|
322
|
+
/*!****************************************************************************************!*\
|
|
323
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/globals.js ***!
|
|
324
|
+
\****************************************************************************************/
|
|
325
|
+
/*! exports provided: self, window, global, document, process, console, VERSION, isBrowser */
|
|
326
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
327
|
+
|
|
328
|
+
"use strict";
|
|
329
|
+
__webpack_require__.r(__webpack_exports__);
|
|
330
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
|
|
331
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBrowser", function() { return isBrowser; });
|
|
332
|
+
/* 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");
|
|
333
|
+
/* harmony import */ var _lib_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/globals */ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js");
|
|
334
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "self", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["self"]; });
|
|
335
|
+
|
|
336
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["window"]; });
|
|
337
|
+
|
|
338
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "global", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["global"]; });
|
|
339
|
+
|
|
340
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "document", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["document"]; });
|
|
341
|
+
|
|
342
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "process", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["process"]; });
|
|
343
|
+
|
|
344
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "console", function() { return _lib_globals__WEBPACK_IMPORTED_MODULE_1__["console"]; });
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
const VERSION = true ? "8.5.10" : undefined;
|
|
349
|
+
const isBrowser = Object(_lib_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
350
|
+
//# sourceMappingURL=globals.js.map
|
|
140
351
|
|
|
141
352
|
/***/ }),
|
|
142
353
|
|
|
@@ -426,294 +637,6 @@ function getHiResTimestamp() {
|
|
|
426
637
|
|
|
427
638
|
/***/ }),
|
|
428
639
|
|
|
429
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/get-browser.js":
|
|
430
|
-
/*!*************************************************************************************!*\
|
|
431
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/get-browser.js ***!
|
|
432
|
-
\*************************************************************************************/
|
|
433
|
-
/*! no static exports found */
|
|
434
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
435
|
-
|
|
436
|
-
"use strict";
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
440
|
-
|
|
441
|
-
Object.defineProperty(exports, "__esModule", {
|
|
442
|
-
value: true
|
|
443
|
-
});
|
|
444
|
-
exports.isMobile = isMobile;
|
|
445
|
-
exports.default = getBrowser;
|
|
446
|
-
|
|
447
|
-
var _globals = __webpack_require__(/*! ./globals */ "../../node_modules/probe.gl/dist/es5/env/globals.js");
|
|
448
|
-
|
|
449
|
-
var _isBrowser = _interopRequireDefault(__webpack_require__(/*! ./is-browser */ "../../node_modules/probe.gl/dist/es5/env/is-browser.js"));
|
|
450
|
-
|
|
451
|
-
var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
|
|
452
|
-
|
|
453
|
-
function isMobile() {
|
|
454
|
-
return typeof _globals.window.orientation !== 'undefined';
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
function getBrowser(mockUserAgent) {
|
|
458
|
-
if (!mockUserAgent && !(0, _isBrowser.default)()) {
|
|
459
|
-
return 'Node';
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
if ((0, _isElectron.default)(mockUserAgent)) {
|
|
463
|
-
return 'Electron';
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
var navigator_ = typeof navigator !== 'undefined' ? navigator : {};
|
|
467
|
-
var userAgent = mockUserAgent || navigator_.userAgent || '';
|
|
468
|
-
|
|
469
|
-
if (userAgent.indexOf('Edge') > -1) {
|
|
470
|
-
return 'Edge';
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
var isMSIE = userAgent.indexOf('MSIE ') !== -1;
|
|
474
|
-
var isTrident = userAgent.indexOf('Trident/') !== -1;
|
|
475
|
-
|
|
476
|
-
if (isMSIE || isTrident) {
|
|
477
|
-
return 'IE';
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
if (_globals.window.chrome) {
|
|
481
|
-
return 'Chrome';
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
if (_globals.window.safari) {
|
|
485
|
-
return 'Safari';
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
if (_globals.window.mozInnerScreenX) {
|
|
489
|
-
return 'Firefox';
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
return 'Unknown';
|
|
493
|
-
}
|
|
494
|
-
//# sourceMappingURL=get-browser.js.map
|
|
495
|
-
|
|
496
|
-
/***/ }),
|
|
497
|
-
|
|
498
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/globals.js":
|
|
499
|
-
/*!*********************************************************************************!*\
|
|
500
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/globals.js ***!
|
|
501
|
-
\*********************************************************************************/
|
|
502
|
-
/*! no static exports found */
|
|
503
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
504
|
-
|
|
505
|
-
"use strict";
|
|
506
|
-
/* WEBPACK VAR INJECTION */(function(global, process) {
|
|
507
|
-
|
|
508
|
-
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
509
|
-
|
|
510
|
-
Object.defineProperty(exports, "__esModule", {
|
|
511
|
-
value: true
|
|
512
|
-
});
|
|
513
|
-
exports.console = exports.process = exports.document = exports.global = exports.window = exports.self = void 0;
|
|
514
|
-
|
|
515
|
-
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
|
|
516
|
-
|
|
517
|
-
var globals = {
|
|
518
|
-
self: typeof self !== 'undefined' && self,
|
|
519
|
-
window: typeof window !== 'undefined' && window,
|
|
520
|
-
global: typeof global !== 'undefined' && global,
|
|
521
|
-
document: typeof document !== 'undefined' && document,
|
|
522
|
-
process: (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && process
|
|
523
|
-
};
|
|
524
|
-
var self_ = globals.self || globals.window || globals.global;
|
|
525
|
-
exports.self = self_;
|
|
526
|
-
var window_ = globals.window || globals.self || globals.global;
|
|
527
|
-
exports.window = window_;
|
|
528
|
-
var global_ = globals.global || globals.self || globals.window;
|
|
529
|
-
exports.global = global_;
|
|
530
|
-
var document_ = globals.document || {};
|
|
531
|
-
exports.document = document_;
|
|
532
|
-
var process_ = globals.process || {};
|
|
533
|
-
exports.process = process_;
|
|
534
|
-
var console_ = console;
|
|
535
|
-
exports.console = console_;
|
|
536
|
-
//# sourceMappingURL=globals.js.map
|
|
537
|
-
/* 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")))
|
|
538
|
-
|
|
539
|
-
/***/ }),
|
|
540
|
-
|
|
541
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/index.js":
|
|
542
|
-
/*!*******************************************************************************!*\
|
|
543
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/index.js ***!
|
|
544
|
-
\*******************************************************************************/
|
|
545
|
-
/*! no static exports found */
|
|
546
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
547
|
-
|
|
548
|
-
"use strict";
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
552
|
-
|
|
553
|
-
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js");
|
|
554
|
-
|
|
555
|
-
Object.defineProperty(exports, "__esModule", {
|
|
556
|
-
value: true
|
|
557
|
-
});
|
|
558
|
-
Object.defineProperty(exports, "self", {
|
|
559
|
-
enumerable: true,
|
|
560
|
-
get: function get() {
|
|
561
|
-
return _globals.self;
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
Object.defineProperty(exports, "window", {
|
|
565
|
-
enumerable: true,
|
|
566
|
-
get: function get() {
|
|
567
|
-
return _globals.window;
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
Object.defineProperty(exports, "global", {
|
|
571
|
-
enumerable: true,
|
|
572
|
-
get: function get() {
|
|
573
|
-
return _globals.global;
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
Object.defineProperty(exports, "document", {
|
|
577
|
-
enumerable: true,
|
|
578
|
-
get: function get() {
|
|
579
|
-
return _globals.document;
|
|
580
|
-
}
|
|
581
|
-
});
|
|
582
|
-
Object.defineProperty(exports, "process", {
|
|
583
|
-
enumerable: true,
|
|
584
|
-
get: function get() {
|
|
585
|
-
return _globals.process;
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
Object.defineProperty(exports, "console", {
|
|
589
|
-
enumerable: true,
|
|
590
|
-
get: function get() {
|
|
591
|
-
return _globals.console;
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
Object.defineProperty(exports, "isBrowser", {
|
|
595
|
-
enumerable: true,
|
|
596
|
-
get: function get() {
|
|
597
|
-
return _isBrowser.default;
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
|
-
Object.defineProperty(exports, "isBrowserMainThread", {
|
|
601
|
-
enumerable: true,
|
|
602
|
-
get: function get() {
|
|
603
|
-
return _isBrowser.isBrowserMainThread;
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
Object.defineProperty(exports, "getBrowser", {
|
|
607
|
-
enumerable: true,
|
|
608
|
-
get: function get() {
|
|
609
|
-
return _getBrowser.default;
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
Object.defineProperty(exports, "isMobile", {
|
|
613
|
-
enumerable: true,
|
|
614
|
-
get: function get() {
|
|
615
|
-
return _getBrowser.isMobile;
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
Object.defineProperty(exports, "isElectron", {
|
|
619
|
-
enumerable: true,
|
|
620
|
-
get: function get() {
|
|
621
|
-
return _isElectron.default;
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
|
|
625
|
-
var _globals = __webpack_require__(/*! ./globals */ "../../node_modules/probe.gl/dist/es5/env/globals.js");
|
|
626
|
-
|
|
627
|
-
var _isBrowser = _interopRequireWildcard(__webpack_require__(/*! ./is-browser */ "../../node_modules/probe.gl/dist/es5/env/is-browser.js"));
|
|
628
|
-
|
|
629
|
-
var _getBrowser = _interopRequireWildcard(__webpack_require__(/*! ./get-browser */ "../../node_modules/probe.gl/dist/es5/env/get-browser.js"));
|
|
630
|
-
|
|
631
|
-
var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
|
|
632
|
-
|
|
633
|
-
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); }
|
|
634
|
-
|
|
635
|
-
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; }
|
|
636
|
-
//# sourceMappingURL=index.js.map
|
|
637
|
-
|
|
638
|
-
/***/ }),
|
|
639
|
-
|
|
640
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/is-browser.js":
|
|
641
|
-
/*!************************************************************************************!*\
|
|
642
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/is-browser.js ***!
|
|
643
|
-
\************************************************************************************/
|
|
644
|
-
/*! no static exports found */
|
|
645
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
646
|
-
|
|
647
|
-
"use strict";
|
|
648
|
-
/* WEBPACK VAR INJECTION */(function(process) {
|
|
649
|
-
|
|
650
|
-
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
651
|
-
|
|
652
|
-
Object.defineProperty(exports, "__esModule", {
|
|
653
|
-
value: true
|
|
654
|
-
});
|
|
655
|
-
exports.default = isBrowser;
|
|
656
|
-
exports.isBrowserMainThread = isBrowserMainThread;
|
|
657
|
-
|
|
658
|
-
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
|
|
659
|
-
|
|
660
|
-
var _isElectron = _interopRequireDefault(__webpack_require__(/*! ./is-electron */ "../../node_modules/probe.gl/dist/es5/env/is-electron.js"));
|
|
661
|
-
|
|
662
|
-
function isBrowser() {
|
|
663
|
-
var isNode = (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && String(process) === '[object process]' && !process.browser;
|
|
664
|
-
return !isNode || (0, _isElectron.default)();
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
function isBrowserMainThread() {
|
|
668
|
-
return isBrowser() && typeof document !== 'undefined';
|
|
669
|
-
}
|
|
670
|
-
//# sourceMappingURL=is-browser.js.map
|
|
671
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "../../node_modules/process/browser.js")))
|
|
672
|
-
|
|
673
|
-
/***/ }),
|
|
674
|
-
|
|
675
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/is-electron.js":
|
|
676
|
-
/*!*************************************************************************************!*\
|
|
677
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/es5/env/is-electron.js ***!
|
|
678
|
-
\*************************************************************************************/
|
|
679
|
-
/*! no static exports found */
|
|
680
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
681
|
-
|
|
682
|
-
"use strict";
|
|
683
|
-
/* WEBPACK VAR INJECTION */(function(process) {
|
|
684
|
-
|
|
685
|
-
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
686
|
-
|
|
687
|
-
Object.defineProperty(exports, "__esModule", {
|
|
688
|
-
value: true
|
|
689
|
-
});
|
|
690
|
-
exports.default = isElectron;
|
|
691
|
-
|
|
692
|
-
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../node_modules/@babel/runtime/helpers/typeof.js"));
|
|
693
|
-
|
|
694
|
-
function isElectron(mockUserAgent) {
|
|
695
|
-
if (typeof window !== 'undefined' && (0, _typeof2.default)(window.process) === 'object' && window.process.type === 'renderer') {
|
|
696
|
-
return true;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (typeof process !== 'undefined' && (0, _typeof2.default)(process.versions) === 'object' && Boolean(process.versions.electron)) {
|
|
700
|
-
return true;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
var realUserAgent = (typeof navigator === "undefined" ? "undefined" : (0, _typeof2.default)(navigator)) === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
|
|
704
|
-
var userAgent = mockUserAgent || realUserAgent;
|
|
705
|
-
|
|
706
|
-
if (userAgent && userAgent.indexOf('Electron') >= 0) {
|
|
707
|
-
return true;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
return false;
|
|
711
|
-
}
|
|
712
|
-
//# sourceMappingURL=is-electron.js.map
|
|
713
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "../../node_modules/process/browser.js")))
|
|
714
|
-
|
|
715
|
-
/***/ }),
|
|
716
|
-
|
|
717
640
|
/***/ "../../node_modules/probe.gl/dist/esm/env/get-browser.js":
|
|
718
641
|
/*!*************************************************************************************!*\
|
|
719
642
|
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/get-browser.js ***!
|
|
@@ -1640,7 +1563,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1640
1563
|
|
|
1641
1564
|
|
|
1642
1565
|
|
|
1643
|
-
const VERSION = true ? "8.5.
|
|
1566
|
+
const VERSION = true ? "8.5.10" : undefined;
|
|
1644
1567
|
const isBrowser = Object(_env_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
1645
1568
|
//# sourceMappingURL=globals.js.map
|
|
1646
1569
|
|
|
@@ -1743,20 +1666,6 @@ class LocalStorage {
|
|
|
1743
1666
|
}
|
|
1744
1667
|
//# sourceMappingURL=local-storage.js.map
|
|
1745
1668
|
|
|
1746
|
-
/***/ }),
|
|
1747
|
-
|
|
1748
|
-
/***/ "../../node_modules/probe.gl/env.js":
|
|
1749
|
-
/*!****************************************************************!*\
|
|
1750
|
-
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/env.js ***!
|
|
1751
|
-
\****************************************************************/
|
|
1752
|
-
/*! no static exports found */
|
|
1753
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1754
|
-
|
|
1755
|
-
// This file enables: import 'probe.gl/bench'.
|
|
1756
|
-
// Note: Must be published using package.json "files" field
|
|
1757
|
-
module.exports = __webpack_require__(/*! ./dist/es5/env */ "../../node_modules/probe.gl/dist/es5/env/index.js");
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
1669
|
/***/ }),
|
|
1761
1670
|
|
|
1762
1671
|
/***/ "../../node_modules/process/browser.js":
|
|
@@ -2848,8 +2757,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2848
2757
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContextDebugInfo", function() { return getContextDebugInfo; });
|
|
2849
2758
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resizeGLContext", function() { return resizeGLContext; });
|
|
2850
2759
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
2851
|
-
/* harmony import */ var
|
|
2852
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_1__);
|
|
2760
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
2853
2761
|
/* 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");
|
|
2854
2762
|
/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/log */ "../gltools/src/utils/log.js");
|
|
2855
2763
|
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
|
|
@@ -2869,7 +2777,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2869
2777
|
|
|
2870
2778
|
|
|
2871
2779
|
|
|
2872
|
-
const isBrowser = Object(
|
|
2780
|
+
const isBrowser = Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_1__["isBrowser"])();
|
|
2873
2781
|
const isPage = isBrowser && typeof document !== 'undefined';
|
|
2874
2782
|
|
|
2875
2783
|
const CONTEXT_DEFAULTS = {
|
|
@@ -2968,11 +2876,11 @@ function instrumentGLContext(gl, options = {}) {
|
|
|
2968
2876
|
// Add debug instrumentation to the context
|
|
2969
2877
|
if (isBrowser && debug) {
|
|
2970
2878
|
// @ts-ignore
|
|
2971
|
-
if (!
|
|
2879
|
+
if (!globalThis.makeDebugContext) {
|
|
2972
2880
|
_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
|
|
2973
2881
|
} else {
|
|
2974
2882
|
// @ts-ignore
|
|
2975
|
-
gl =
|
|
2883
|
+
gl = globalThis.makeDebugContext(gl, options);
|
|
2976
2884
|
// Debug forces log level to at least 1
|
|
2977
2885
|
_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level = Math.max(_utils_log__WEBPACK_IMPORTED_MODULE_3__["log"].level, 1);
|
|
2978
2886
|
}
|
|
@@ -3378,7 +3286,7 @@ function getParameterPolyfill(gl, originalGetParameter, pname) {
|
|
|
3378
3286
|
|
|
3379
3287
|
"use strict";
|
|
3380
3288
|
__webpack_require__.r(__webpack_exports__);
|
|
3381
|
-
/*
|
|
3289
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillContext", function() { return polyfillContext; });
|
|
3382
3290
|
/* 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");
|
|
3383
3291
|
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/assert */ "../gltools/src/utils/assert.js");
|
|
3384
3292
|
/* harmony import */ var _polyfill_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./polyfill-table */ "../gltools/src/polyfill/polyfill-table.js");
|
|
@@ -3420,9 +3328,8 @@ function polyfillContext(gl) {
|
|
|
3420
3328
|
}
|
|
3421
3329
|
|
|
3422
3330
|
// TODO - is this still required?
|
|
3423
|
-
const global_ = typeof global !== 'undefined' ? global : window;
|
|
3424
3331
|
// @ts-ignore
|
|
3425
|
-
|
|
3332
|
+
globalThis.polyfillContext = polyfillContext;
|
|
3426
3333
|
|
|
3427
3334
|
function initializeExtensions(gl) {
|
|
3428
3335
|
gl.luma.extensions = {};
|
|
@@ -3487,7 +3394,6 @@ function polyfillExtension(gl, {extension, target, target2}) {
|
|
|
3487
3394
|
}
|
|
3488
3395
|
}
|
|
3489
3396
|
|
|
3490
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
3491
3397
|
|
|
3492
3398
|
/***/ }),
|
|
3493
3399
|
|
|
@@ -3682,8 +3588,6 @@ const WEBGL2_CONTEXT_OVERRIDES = {
|
|
|
3682
3588
|
"use strict";
|
|
3683
3589
|
__webpack_require__.r(__webpack_exports__);
|
|
3684
3590
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfillVertexArrayObject", function() { return polyfillVertexArrayObject; });
|
|
3685
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! probe.gl/env */ "../../node_modules/probe.gl/env.js");
|
|
3686
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_0__);
|
|
3687
3591
|
/*
|
|
3688
3592
|
** Copyright (c) 2015 The Khronos Group Inc.
|
|
3689
3593
|
**
|
|
@@ -3712,19 +3616,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3712
3616
|
|
|
3713
3617
|
// @ts-nocheck external code
|
|
3714
3618
|
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
3619
|
const glErrorShadow = {};
|
|
3718
3620
|
|
|
3719
3621
|
function error(msg) {
|
|
3720
|
-
if (
|
|
3721
|
-
|
|
3622
|
+
if (globalThis.console && globalThis.console.error) {
|
|
3623
|
+
globalThis.console.error(msg);
|
|
3722
3624
|
}
|
|
3723
3625
|
}
|
|
3724
3626
|
|
|
3725
3627
|
function log(msg) {
|
|
3726
|
-
if (
|
|
3727
|
-
|
|
3628
|
+
if (globalThis.console && globalThis.console.log) {
|
|
3629
|
+
globalThis.console.log(msg);
|
|
3728
3630
|
}
|
|
3729
3631
|
}
|
|
3730
3632
|
|
|
@@ -4058,7 +3960,7 @@ function polyfillVertexArrayObject(gl) {
|
|
|
4058
3960
|
|
|
4059
3961
|
"use strict";
|
|
4060
3962
|
__webpack_require__.r(__webpack_exports__);
|
|
4061
|
-
/*
|
|
3963
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trackContextState", function() { return trackContextState; });
|
|
4062
3964
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pushContextState", function() { return pushContextState; });
|
|
4063
3965
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popContextState", function() { return popContextState; });
|
|
4064
3966
|
/* harmony import */ var _webgl_parameter_tables__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./webgl-parameter-tables */ "../gltools/src/state-tracker/webgl-parameter-tables.js");
|
|
@@ -4083,15 +3985,13 @@ function installGetterOverride(gl, functionName) {
|
|
|
4083
3985
|
const originalGetterFunc = gl[functionName].bind(gl);
|
|
4084
3986
|
|
|
4085
3987
|
// Wrap it with a spy so that we can update our state cache when it gets called
|
|
4086
|
-
gl[functionName] = function get(
|
|
4087
|
-
|
|
4088
|
-
// Invalid or blacklisted parameter, do not cache
|
|
4089
|
-
return originalGetterFunc(pname);
|
|
4090
|
-
}
|
|
3988
|
+
gl[functionName] = function get(...params) {
|
|
3989
|
+
const pname = params[0];
|
|
4091
3990
|
|
|
3991
|
+
// WebGL limits are not prepopulated in the cache, it's neither undefined in GL_PARAMETER_DEFAULTS
|
|
3992
|
+
// nor intercepted by GL_HOOKED_SETTERS. Query the original getter.
|
|
4092
3993
|
if (!(pname in gl.state.cache)) {
|
|
4093
|
-
|
|
4094
|
-
gl.state.cache[pname] = originalGetterFunc(pname);
|
|
3994
|
+
return originalGetterFunc(...params);
|
|
4095
3995
|
}
|
|
4096
3996
|
|
|
4097
3997
|
// Optionally call the original function to do a "hard" query from the WebGLRenderingContext
|
|
@@ -4099,7 +3999,7 @@ function installGetterOverride(gl, functionName) {
|
|
|
4099
3999
|
? // Call the getter the params so that it can e.g. serve from a cache
|
|
4100
4000
|
gl.state.cache[pname]
|
|
4101
4001
|
: // Optionally call the original function to do a "hard" query from the WebGLRenderingContext
|
|
4102
|
-
originalGetterFunc(
|
|
4002
|
+
originalGetterFunc(...params);
|
|
4103
4003
|
};
|
|
4104
4004
|
|
|
4105
4005
|
// Set the name of this anonymous function to help in debugging and profiling
|
|
@@ -4114,10 +4014,6 @@ function installGetterOverride(gl, functionName) {
|
|
|
4114
4014
|
// updated with a copy of the WebGL context state.
|
|
4115
4015
|
function installSetterSpy(gl, functionName, setter) {
|
|
4116
4016
|
// Get the original function from the WebGLRenderingContext
|
|
4117
|
-
if (!gl[functionName]) {
|
|
4118
|
-
// This could happen if we try to intercept WebGL2 method on a WebGL1 context
|
|
4119
|
-
return;
|
|
4120
|
-
}
|
|
4121
4017
|
const originalSetterFunc = gl[functionName].bind(gl);
|
|
4122
4018
|
|
|
4123
4019
|
// Wrap it with a spy so that we can update our state cache when it gets called
|
|
@@ -4239,9 +4135,8 @@ function trackContextState(gl, options = {}) {
|
|
|
4239
4135
|
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_2__["assert"])(copyState !== undefined);
|
|
4240
4136
|
// @ts-ignore
|
|
4241
4137
|
if (!gl.state) {
|
|
4242
|
-
const global_ = typeof global !== 'undefined' ? global : window;
|
|
4243
4138
|
// @ts-ignore
|
|
4244
|
-
const {polyfillContext} =
|
|
4139
|
+
const {polyfillContext} = globalThis;
|
|
4245
4140
|
if (polyfillContext) {
|
|
4246
4141
|
polyfillContext(gl);
|
|
4247
4142
|
}
|
|
@@ -4293,7 +4188,6 @@ function popContextState(gl) {
|
|
|
4293
4188
|
gl.state.pop();
|
|
4294
4189
|
}
|
|
4295
4190
|
|
|
4296
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
4297
4191
|
|
|
4298
4192
|
/***/ }),
|
|
4299
4193
|
|
|
@@ -4452,7 +4346,7 @@ function withParameters(gl, parameters, func) {
|
|
|
4452
4346
|
/*!**************************************************************!*\
|
|
4453
4347
|
!*** ../gltools/src/state-tracker/webgl-parameter-tables.js ***!
|
|
4454
4348
|
\**************************************************************/
|
|
4455
|
-
/*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS
|
|
4349
|
+
/*! exports provided: GL_PARAMETER_DEFAULTS, GL_PARAMETER_SETTERS, GL_COMPOSITE_PARAMETER_SETTERS, GL_HOOKED_SETTERS, GL_PARAMETER_GETTERS */
|
|
4456
4350
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4457
4351
|
|
|
4458
4352
|
"use strict";
|
|
@@ -4462,7 +4356,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4462
4356
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_COMPOSITE_PARAMETER_SETTERS", function() { return GL_COMPOSITE_PARAMETER_SETTERS; });
|
|
4463
4357
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_HOOKED_SETTERS", function() { return GL_HOOKED_SETTERS; });
|
|
4464
4358
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GL_PARAMETER_GETTERS", function() { return GL_PARAMETER_GETTERS; });
|
|
4465
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_CACHE_PARAMETERS", function() { return NON_CACHE_PARAMETERS; });
|
|
4466
4359
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
4467
4360
|
/* harmony import */ var _utils_webgl_checks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/webgl-checks */ "../gltools/src/utils/webgl-checks.js");
|
|
4468
4361
|
// Tables describing WebGL parameters
|
|
@@ -4492,22 +4385,14 @@ const GL_PARAMETER_DEFAULTS = {
|
|
|
4492
4385
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_RANGE]: new Float32Array([0, 1]), // TBD
|
|
4493
4386
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: true,
|
|
4494
4387
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: true,
|
|
4495
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: null,
|
|
4496
4388
|
// FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
|
|
4497
4389
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: null,
|
|
4498
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: null,
|
|
4499
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: null,
|
|
4500
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: null,
|
|
4501
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: null,
|
|
4502
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: null,
|
|
4503
4390
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CCW,
|
|
4504
4391
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
|
|
4505
4392
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: 1,
|
|
4506
4393
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FILL]: false,
|
|
4507
4394
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 0,
|
|
4508
4395
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 0,
|
|
4509
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: false,
|
|
4510
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: false,
|
|
4511
4396
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 1.0,
|
|
4512
4397
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: false,
|
|
4513
4398
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: false,
|
|
@@ -4540,13 +4425,6 @@ const GL_PARAMETER_DEFAULTS = {
|
|
|
4540
4425
|
|
|
4541
4426
|
// WEBGL2 / EXTENSIONS
|
|
4542
4427
|
// gl1: 'OES_standard_derivatives'
|
|
4543
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: null,
|
|
4544
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: null,
|
|
4545
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: null,
|
|
4546
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: null,
|
|
4547
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: null,
|
|
4548
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: null,
|
|
4549
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: null,
|
|
4550
4428
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DONT_CARE,
|
|
4551
4429
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: null,
|
|
4552
4430
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: false,
|
|
@@ -4566,38 +4444,12 @@ const enable = (gl, value, key) => (value ? gl.enable(key) : gl.disable(key));
|
|
|
4566
4444
|
const hint = (gl, value, key) => gl.hint(key, value);
|
|
4567
4445
|
const pixelStorei = (gl, value, key) => gl.pixelStorei(key, value);
|
|
4568
4446
|
|
|
4569
|
-
const
|
|
4570
|
-
|
|
4571
|
-
if (key === _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING) {
|
|
4572
|
-
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;
|
|
4573
|
-
} else {
|
|
4574
|
-
// GL.READ_FRAMEBUFFER_BINDING
|
|
4575
|
-
target = _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER;
|
|
4576
|
-
}
|
|
4447
|
+
const drawFramebuffer = (gl, value) => {
|
|
4448
|
+
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;
|
|
4577
4449
|
return gl.bindFramebuffer(target, value);
|
|
4578
4450
|
};
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
const target = {
|
|
4582
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER],
|
|
4583
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER],
|
|
4584
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER],
|
|
4585
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER],
|
|
4586
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]
|
|
4587
|
-
}[key];
|
|
4588
|
-
|
|
4589
|
-
gl.bindBuffer(target, value);
|
|
4590
|
-
};
|
|
4591
|
-
|
|
4592
|
-
const bindTexture = (gl, value, key) => {
|
|
4593
|
-
const target = {
|
|
4594
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D],
|
|
4595
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY],
|
|
4596
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D],
|
|
4597
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]
|
|
4598
|
-
}[key];
|
|
4599
|
-
|
|
4600
|
-
gl.bindTexture(target, value);
|
|
4451
|
+
const readFramebuffer = (gl, value) => {
|
|
4452
|
+
return gl.bindFramebuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER, value);
|
|
4601
4453
|
};
|
|
4602
4454
|
|
|
4603
4455
|
// Utility
|
|
@@ -4628,29 +4480,8 @@ const GL_PARAMETER_SETTERS = {
|
|
|
4628
4480
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DEPTH_WRITEMASK]: (gl, value) => gl.depthMask(value),
|
|
4629
4481
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DITHER]: enable,
|
|
4630
4482
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAGMENT_SHADER_DERIVATIVE_HINT]: hint,
|
|
4631
|
-
|
|
4632
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: (gl, value) => gl.useProgram(value),
|
|
4633
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: (gl, value) => gl.bindRenderbuffer(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER, value),
|
|
4634
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: (gl, value) =>
|
|
4635
|
-
gl.bindTransformFeedback && gl.bindTransformFeedback(_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK, value),
|
|
4636
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: (gl, value) => gl.bindVertexArray(value),
|
|
4637
4483
|
// NOTE: FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
|
|
4638
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]:
|
|
4639
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: bindFramebuffer,
|
|
4640
|
-
|
|
4641
|
-
// Buffers
|
|
4642
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING]: bindBuffer,
|
|
4643
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING]: bindBuffer,
|
|
4644
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING]: bindBuffer,
|
|
4645
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING]: bindBuffer,
|
|
4646
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]: bindBuffer,
|
|
4647
|
-
|
|
4648
|
-
// Textures
|
|
4649
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D]: bindTexture,
|
|
4650
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY]: bindTexture,
|
|
4651
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D]: bindTexture,
|
|
4652
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]: bindTexture,
|
|
4653
|
-
|
|
4484
|
+
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRAMEBUFFER_BINDING]: drawFramebuffer,
|
|
4654
4485
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].FRONT_FACE]: (gl, value) => gl.frontFace(value),
|
|
4655
4486
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].GENERATE_MIPMAP_HINT]: hint,
|
|
4656
4487
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].LINE_WIDTH]: (gl, value) => gl.lineWidth(value),
|
|
@@ -4658,8 +4489,6 @@ const GL_PARAMETER_SETTERS = {
|
|
|
4658
4489
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_FACTOR]: 'polygonOffset',
|
|
4659
4490
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].POLYGON_OFFSET_UNITS]: 'polygonOffset',
|
|
4660
4491
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: enable,
|
|
4661
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_ALPHA_TO_COVERAGE]: enable,
|
|
4662
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE]: enable,
|
|
4663
4492
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_VALUE]: 'sampleCoverage',
|
|
4664
4493
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLE_COVERAGE_INVERT]: 'sampleCoverage',
|
|
4665
4494
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SCISSOR_TEST]: enable,
|
|
@@ -4694,6 +4523,7 @@ const GL_PARAMETER_SETTERS = {
|
|
|
4694
4523
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_ROW_LENGTH]: pixelStorei,
|
|
4695
4524
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_PIXELS]: pixelStorei,
|
|
4696
4525
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PACK_SKIP_ROWS]: pixelStorei,
|
|
4526
|
+
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_FRAMEBUFFER_BINDING]: readFramebuffer,
|
|
4697
4527
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_ROW_LENGTH]: pixelStorei,
|
|
4698
4528
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_IMAGE_HEIGHT]: pixelStorei,
|
|
4699
4529
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNPACK_SKIP_PIXELS]: pixelStorei,
|
|
@@ -4857,22 +4687,6 @@ const GL_HOOKED_SETTERS = {
|
|
|
4857
4687
|
}),
|
|
4858
4688
|
|
|
4859
4689
|
// SPECIFIC SETTERS
|
|
4860
|
-
useProgram: (update, value) =>
|
|
4861
|
-
update({
|
|
4862
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].CURRENT_PROGRAM]: value
|
|
4863
|
-
}),
|
|
4864
|
-
bindRenderbuffer: (update, target, value) =>
|
|
4865
|
-
update({
|
|
4866
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RENDERBUFFER_BINDING]: value
|
|
4867
|
-
}),
|
|
4868
|
-
bindTransformFeedback: (update, target, value) =>
|
|
4869
|
-
update({
|
|
4870
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BINDING]: value
|
|
4871
|
-
}),
|
|
4872
|
-
bindVertexArray: (update, value) =>
|
|
4873
|
-
update({
|
|
4874
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_ARRAY_BINDING]: value
|
|
4875
|
-
}),
|
|
4876
4690
|
|
|
4877
4691
|
bindFramebuffer: (update, target, framebuffer) => {
|
|
4878
4692
|
switch (target) {
|
|
@@ -4889,38 +4703,6 @@ const GL_HOOKED_SETTERS = {
|
|
|
4889
4703
|
return null;
|
|
4890
4704
|
}
|
|
4891
4705
|
},
|
|
4892
|
-
bindBuffer: (update, target, buffer) => {
|
|
4893
|
-
const pname = {
|
|
4894
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ARRAY_BUFFER_BINDING],
|
|
4895
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_READ_BUFFER_BINDING],
|
|
4896
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].COPY_WRITE_BUFFER_BINDING],
|
|
4897
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_PACK_BUFFER_BINDING],
|
|
4898
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].PIXEL_UNPACK_BUFFER_BINDING]
|
|
4899
|
-
}[target];
|
|
4900
|
-
|
|
4901
|
-
if (pname) {
|
|
4902
|
-
// @ts-ignore
|
|
4903
|
-
return update({[pname]: buffer});
|
|
4904
|
-
}
|
|
4905
|
-
// targets that should not be cached
|
|
4906
|
-
return {valueChanged: true};
|
|
4907
|
-
},
|
|
4908
|
-
|
|
4909
|
-
bindTexture: (update, target, texture) => {
|
|
4910
|
-
const pname = {
|
|
4911
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D],
|
|
4912
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_2D_ARRAY]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_2D_ARRAY],
|
|
4913
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_3D]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_3D],
|
|
4914
|
-
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_CUBE_MAP]: [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_BINDING_CUBE_MAP]
|
|
4915
|
-
}[target];
|
|
4916
|
-
|
|
4917
|
-
if (pname) {
|
|
4918
|
-
// @ts-ignore
|
|
4919
|
-
return update({[pname]: texture});
|
|
4920
|
-
}
|
|
4921
|
-
return null;
|
|
4922
|
-
},
|
|
4923
|
-
|
|
4924
4706
|
blendColor: (update, r, g, b, a) =>
|
|
4925
4707
|
update({
|
|
4926
4708
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].BLEND_COLOR]: new Float32Array([r, g, b, a])
|
|
@@ -5092,43 +4874,6 @@ const GL_PARAMETER_GETTERS = {
|
|
|
5092
4874
|
[_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].RASTERIZER_DISCARD]: isEnabled
|
|
5093
4875
|
};
|
|
5094
4876
|
|
|
5095
|
-
const NON_CACHE_PARAMETERS = new Set([
|
|
5096
|
-
// setter not intercepted
|
|
5097
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ACTIVE_TEXTURE,
|
|
5098
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_ACTIVE,
|
|
5099
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_PAUSED,
|
|
5100
|
-
|
|
5101
|
-
// setters bindBufferRange/bindBufferBase cannot be pruned based on cache
|
|
5102
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TRANSFORM_FEEDBACK_BUFFER_BINDING,
|
|
5103
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].UNIFORM_BUFFER_BINDING,
|
|
5104
|
-
|
|
5105
|
-
// states depending on VERTEX_ARRAY_BINDING
|
|
5106
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].ELEMENT_ARRAY_BUFFER_BINDING,
|
|
5107
|
-
// states depending on READ_FRAMEBUFFER_BINDING
|
|
5108
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_FORMAT,
|
|
5109
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].IMPLEMENTATION_COLOR_READ_TYPE,
|
|
5110
|
-
// states depending on FRAMEBUFFER_BINDING
|
|
5111
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].READ_BUFFER,
|
|
5112
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER0,
|
|
5113
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER1,
|
|
5114
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER2,
|
|
5115
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER3,
|
|
5116
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER4,
|
|
5117
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER5,
|
|
5118
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER6,
|
|
5119
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER7,
|
|
5120
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER8,
|
|
5121
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER9,
|
|
5122
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER10,
|
|
5123
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER11,
|
|
5124
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER12,
|
|
5125
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER13,
|
|
5126
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER14,
|
|
5127
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].DRAW_BUFFER15,
|
|
5128
|
-
// states depending on ACTIVE_TEXTURE
|
|
5129
|
-
_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].SAMPLER_BINDING
|
|
5130
|
-
]);
|
|
5131
|
-
|
|
5132
4877
|
|
|
5133
4878
|
/***/ }),
|
|
5134
4879
|
|
|
@@ -5383,16 +5128,14 @@ function assertWebGL2Context(gl) {
|
|
|
5383
5128
|
/*! no static exports found */
|
|
5384
5129
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5385
5130
|
|
|
5386
|
-
|
|
5131
|
+
const moduleExports = __webpack_require__(/*! ./index */ "./src/index.js");
|
|
5387
5132
|
|
|
5388
|
-
const _global = typeof window === 'undefined' ? global : window;
|
|
5389
5133
|
// @ts-ignore
|
|
5390
|
-
|
|
5134
|
+
globalThis.luma = globalThis.luma || {};
|
|
5391
5135
|
|
|
5392
5136
|
// @ts-ignore
|
|
5393
|
-
module.exports = Object.assign(
|
|
5137
|
+
module.exports = Object.assign(globalThis.luma, moduleExports);
|
|
5394
5138
|
|
|
5395
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
5396
5139
|
|
|
5397
5140
|
/***/ }),
|
|
5398
5141
|
|
|
@@ -9177,14 +8920,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9177
8920
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Texture; });
|
|
9178
8921
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
9179
8922
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
9180
|
-
/* harmony import */ var
|
|
9181
|
-
/* harmony import */ var
|
|
9182
|
-
/* harmony import */ var
|
|
9183
|
-
/* harmony import */ var
|
|
9184
|
-
/* harmony import */ var
|
|
9185
|
-
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/assert */ "./src/utils/assert.js");
|
|
9186
|
-
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.js");
|
|
9187
|
-
|
|
8923
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resource */ "./src/classes/resource.js");
|
|
8924
|
+
/* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./buffer */ "./src/classes/buffer.js");
|
|
8925
|
+
/* harmony import */ var _texture_formats__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./texture-formats */ "./src/classes/texture-formats.js");
|
|
8926
|
+
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/assert */ "./src/utils/assert.js");
|
|
8927
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.js");
|
|
9188
8928
|
|
|
9189
8929
|
|
|
9190
8930
|
|
|
@@ -9199,15 +8939,15 @@ const NPOT_MIN_FILTERS = [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
9199
8939
|
|
|
9200
8940
|
// Polyfill
|
|
9201
8941
|
// Note (Tarek): Do we really need to support this API?
|
|
9202
|
-
const WebGLBuffer =
|
|
8942
|
+
const WebGLBuffer = globalThis.WebGLBuffer || function WebGLBuffer() {};
|
|
9203
8943
|
|
|
9204
|
-
class Texture extends
|
|
8944
|
+
class Texture extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
9205
8945
|
static isSupported(gl, opts = {}) {
|
|
9206
8946
|
const {format, linearFiltering} = opts;
|
|
9207
8947
|
let supported = true;
|
|
9208
8948
|
if (format) {
|
|
9209
|
-
supported = supported && Object(
|
|
9210
|
-
supported = supported && (!linearFiltering || Object(
|
|
8949
|
+
supported = supported && Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isFormatSupported"])(gl, format);
|
|
8950
|
+
supported = supported && (!linearFiltering || Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isLinearFilteringSupported"])(gl, format));
|
|
9211
8951
|
}
|
|
9212
8952
|
return supported;
|
|
9213
8953
|
}
|
|
@@ -9224,7 +8964,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9224
8964
|
// (while run-time).
|
|
9225
8965
|
constructor(gl, props) {
|
|
9226
8966
|
const {
|
|
9227
|
-
id = Object(
|
|
8967
|
+
id = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["uid"])('texture'),
|
|
9228
8968
|
handle,
|
|
9229
8969
|
target
|
|
9230
8970
|
// , magFilter, minFilter, wrapS, wrapT
|
|
@@ -9542,7 +9282,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9542
9282
|
|
|
9543
9283
|
break;
|
|
9544
9284
|
default:
|
|
9545
|
-
Object(
|
|
9285
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false, 'Unknown image data type');
|
|
9546
9286
|
}
|
|
9547
9287
|
});
|
|
9548
9288
|
|
|
@@ -9550,8 +9290,8 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9550
9290
|
this._trackAllocatedMemory(data.byteLength, 'Texture');
|
|
9551
9291
|
} else {
|
|
9552
9292
|
// NOTE(Tarek): Default to RGBA bytes
|
|
9553
|
-
const channels =
|
|
9554
|
-
const channelSize =
|
|
9293
|
+
const channels = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["DATA_FORMAT_CHANNELS"][this.dataFormat] || 4;
|
|
9294
|
+
const channelSize = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TYPE_SIZES"][this.type] || 1;
|
|
9555
9295
|
|
|
9556
9296
|
this._trackAllocatedMemory(this.width * this.height * channels * channelSize, 'Texture');
|
|
9557
9297
|
}
|
|
@@ -9617,7 +9357,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9617
9357
|
height
|
|
9618
9358
|
}));
|
|
9619
9359
|
|
|
9620
|
-
Object(
|
|
9360
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(this.depth === 0, 'texSubImage not supported for 3D textures');
|
|
9621
9361
|
|
|
9622
9362
|
// pixels variable is for API compatibility purpose
|
|
9623
9363
|
if (!data) {
|
|
@@ -9633,7 +9373,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9633
9373
|
}
|
|
9634
9374
|
|
|
9635
9375
|
// Support buffers
|
|
9636
|
-
if (data instanceof
|
|
9376
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
9637
9377
|
data = data.handle;
|
|
9638
9378
|
}
|
|
9639
9379
|
|
|
@@ -9735,7 +9475,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9735
9475
|
if (ArrayBuffer.isView(data)) {
|
|
9736
9476
|
return {data, dataType: 'typed-array'};
|
|
9737
9477
|
}
|
|
9738
|
-
if (data instanceof
|
|
9478
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
9739
9479
|
return {data: data.handle, dataType: 'buffer'};
|
|
9740
9480
|
}
|
|
9741
9481
|
if (data instanceof WebGLBuffer) {
|
|
@@ -9827,7 +9567,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9827
9567
|
let {width, height, dataFormat, type, compressed} = opts;
|
|
9828
9568
|
|
|
9829
9569
|
// Deduce format and type from format
|
|
9830
|
-
const textureFormat =
|
|
9570
|
+
const textureFormat = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TEXTURE_FORMATS"][format];
|
|
9831
9571
|
dataFormat = dataFormat || (textureFormat && textureFormat.dataFormat);
|
|
9832
9572
|
type = type || (textureFormat && textureFormat.types[0]);
|
|
9833
9573
|
|
|
@@ -9859,12 +9599,12 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9859
9599
|
size = {width, height};
|
|
9860
9600
|
}
|
|
9861
9601
|
|
|
9862
|
-
Object(
|
|
9863
|
-
Object(
|
|
9602
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(size, 'Could not deduced texture size');
|
|
9603
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
9864
9604
|
width === undefined || size.width === width,
|
|
9865
9605
|
'Deduced texture width does not match supplied width'
|
|
9866
9606
|
);
|
|
9867
|
-
Object(
|
|
9607
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
9868
9608
|
height === undefined || size.height === height,
|
|
9869
9609
|
'Deduced texture height does not match supplied height'
|
|
9870
9610
|
);
|
|
@@ -9914,7 +9654,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9914
9654
|
|
|
9915
9655
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_WIDTH:
|
|
9916
9656
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_HEIGHT:
|
|
9917
|
-
Object(
|
|
9657
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false);
|
|
9918
9658
|
break;
|
|
9919
9659
|
|
|
9920
9660
|
default:
|
|
@@ -9935,7 +9675,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9935
9675
|
if (!this.width || !this.height) {
|
|
9936
9676
|
return false;
|
|
9937
9677
|
}
|
|
9938
|
-
return !Object(
|
|
9678
|
+
return !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.width) || !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.height);
|
|
9939
9679
|
}
|
|
9940
9680
|
|
|
9941
9681
|
// Update default settings which are not supported by NPOT textures.
|
|
@@ -12729,8 +12469,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12729
12469
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lumaStats", function() { return lumaStats; });
|
|
12730
12470
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
12731
12471
|
/* harmony import */ var probe_gl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! probe.gl */ "../../node_modules/probe.gl/dist/esm/index.js");
|
|
12732
|
-
/* harmony import */ var
|
|
12733
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
|
|
12472
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
12734
12473
|
|
|
12735
12474
|
|
|
12736
12475
|
|
|
@@ -12738,7 +12477,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12738
12477
|
// Version detection using babel plugin
|
|
12739
12478
|
/* global __VERSION__ */
|
|
12740
12479
|
// @ts-ignore
|
|
12741
|
-
const VERSION = true ? "8.5.
|
|
12480
|
+
const VERSION = true ? "8.5.10" : undefined;
|
|
12742
12481
|
|
|
12743
12482
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
12744
12483
|
// Assign luma.log.level in console to control logging: \
|
|
@@ -12761,16 +12500,16 @@ class StatsManager {
|
|
|
12761
12500
|
|
|
12762
12501
|
const lumaStats = new StatsManager();
|
|
12763
12502
|
|
|
12764
|
-
if (
|
|
12765
|
-
throw new Error(`luma.gl - multiple VERSIONs detected: ${
|
|
12503
|
+
if (globalThis.luma && globalThis.luma.VERSION !== VERSION) {
|
|
12504
|
+
throw new Error(`luma.gl - multiple VERSIONs detected: ${globalThis.luma.VERSION} vs ${VERSION}`);
|
|
12766
12505
|
}
|
|
12767
12506
|
|
|
12768
|
-
if (!
|
|
12769
|
-
if (Object(
|
|
12507
|
+
if (!globalThis.luma) {
|
|
12508
|
+
if (Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])()) {
|
|
12770
12509
|
_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"].log(1, `luma.gl ${VERSION} - ${STARTUP_MESSAGE}`)();
|
|
12771
12510
|
}
|
|
12772
12511
|
|
|
12773
|
-
|
|
12512
|
+
globalThis.luma = globalThis.luma || {
|
|
12774
12513
|
VERSION,
|
|
12775
12514
|
version: VERSION,
|
|
12776
12515
|
log: _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"],
|
|
@@ -12792,7 +12531,7 @@ if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma) {
|
|
|
12792
12531
|
}
|
|
12793
12532
|
|
|
12794
12533
|
|
|
12795
|
-
/* harmony default export */ __webpack_exports__["default"] = (
|
|
12534
|
+
/* harmony default export */ __webpack_exports__["default"] = (globalThis.luma);
|
|
12796
12535
|
|
|
12797
12536
|
|
|
12798
12537
|
/***/ }),
|