@luma.gl/webgl 8.5.10 → 8.5.13
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 +420 -457
- 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/buffer.js +9 -2
- package/dist/es5/classes/buffer.js.map +1 -1
- package/dist/es5/classes/framebuffer.js +5 -0
- package/dist/es5/classes/framebuffer.js.map +1 -1
- package/dist/es5/classes/program.js +9 -2
- package/dist/es5/classes/program.js.map +1 -1
- package/dist/es5/classes/query.js +6 -1
- package/dist/es5/classes/query.js.map +1 -1
- package/dist/es5/classes/renderbuffer.js +6 -1
- package/dist/es5/classes/renderbuffer.js.map +1 -1
- package/dist/es5/classes/resource.js +13 -6
- package/dist/es5/classes/resource.js.map +1 -1
- package/dist/es5/classes/shader.js +20 -1
- package/dist/es5/classes/shader.js.map +1 -1
- package/dist/es5/classes/texture-2d.js +6 -1
- package/dist/es5/classes/texture-2d.js.map +1 -1
- package/dist/es5/classes/texture-3d.js +6 -1
- package/dist/es5/classes/texture-3d.js.map +1 -1
- package/dist/es5/classes/texture-cube.js +9 -2
- package/dist/es5/classes/texture-cube.js.map +1 -1
- package/dist/es5/classes/texture.js +12 -5
- package/dist/es5/classes/texture.js.map +1 -1
- package/dist/es5/classes/transform-feedback.js +6 -1
- package/dist/es5/classes/transform-feedback.js.map +1 -1
- package/dist/es5/classes/vertex-array-object.js +6 -1
- package/dist/es5/classes/vertex-array-object.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/buffer.js +4 -0
- package/dist/esm/classes/buffer.js.map +1 -1
- package/dist/esm/classes/framebuffer.js +4 -0
- package/dist/esm/classes/framebuffer.js.map +1 -1
- package/dist/esm/classes/program.js +4 -0
- package/dist/esm/classes/program.js.map +1 -1
- package/dist/esm/classes/query.js +4 -0
- package/dist/esm/classes/query.js.map +1 -1
- package/dist/esm/classes/renderbuffer.js +4 -0
- package/dist/esm/classes/renderbuffer.js.map +1 -1
- package/dist/esm/classes/resource.js +10 -6
- package/dist/esm/classes/resource.js.map +1 -1
- package/dist/esm/classes/shader.js +12 -0
- package/dist/esm/classes/shader.js.map +1 -1
- package/dist/esm/classes/texture-2d.js +4 -0
- package/dist/esm/classes/texture-2d.js.map +1 -1
- package/dist/esm/classes/texture-3d.js +4 -0
- package/dist/esm/classes/texture-3d.js.map +1 -1
- package/dist/esm/classes/texture-cube.js +4 -0
- package/dist/esm/classes/texture-cube.js.map +1 -1
- package/dist/esm/classes/texture.js +10 -3
- package/dist/esm/classes/texture.js.map +1 -1
- package/dist/esm/classes/transform-feedback.js +4 -0
- package/dist/esm/classes/transform-feedback.js.map +1 -1
- package/dist/esm/classes/vertex-array-object.js +4 -0
- package/dist/esm/classes/vertex-array-object.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/buffer.js +4 -0
- package/src/classes/framebuffer.js +4 -0
- package/src/classes/program.js +4 -0
- package/src/classes/query.js +4 -0
- package/src/classes/renderbuffer.js +4 -0
- package/src/classes/resource.js +10 -6
- package/src/classes/shader.js +14 -0
- package/src/classes/texture-2d.js +5 -0
- package/src/classes/texture-3d.js +5 -0
- package/src/classes/texture-cube.js +5 -0
- package/src/classes/texture.js +11 -4
- package/src/classes/transform-feedback.js +4 -0
- package/src/classes/vertex-array-object.js +4 -0
- package/src/init.js +6 -6
- package/src/utils/is-old-ie.js +1 -1
package/dist/dist.js
CHANGED
|
@@ -96,54 +96,265 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
-
/***/ "../../node_modules/@
|
|
100
|
-
|
|
101
|
-
!*** /Users/
|
|
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
|
+
}
|
|
184
|
+
|
|
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
|
+
}
|
|
111
203
|
|
|
112
|
-
|
|
204
|
+
return 'Unknown';
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=get-browser.js.map
|
|
113
207
|
|
|
114
208
|
/***/ }),
|
|
115
209
|
|
|
116
|
-
/***/ "../../node_modules/@
|
|
117
|
-
|
|
118
|
-
!*** /Users/
|
|
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.12" : undefined;
|
|
349
|
+
const isBrowser = Object(_lib_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
350
|
+
//# sourceMappingURL=globals.js.map
|
|
140
351
|
|
|
141
352
|
/***/ }),
|
|
142
353
|
|
|
143
354
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/index.js":
|
|
144
|
-
|
|
145
|
-
!*** /Users/
|
|
146
|
-
|
|
355
|
+
/*!**********************************************************************************!*\
|
|
356
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/index.js ***!
|
|
357
|
+
\**********************************************************************************/
|
|
147
358
|
/*! exports provided: Stats, Stat, _getHiResTimestamp */
|
|
148
359
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
149
360
|
|
|
@@ -166,9 +377,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
166
377
|
/***/ }),
|
|
167
378
|
|
|
168
379
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js":
|
|
169
|
-
|
|
170
|
-
!*** /Users/
|
|
171
|
-
|
|
380
|
+
/*!*************************************************************************************!*\
|
|
381
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js ***!
|
|
382
|
+
\*************************************************************************************/
|
|
172
383
|
/*! exports provided: default */
|
|
173
384
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
174
385
|
|
|
@@ -305,9 +516,9 @@ class Stat {
|
|
|
305
516
|
/***/ }),
|
|
306
517
|
|
|
307
518
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js":
|
|
308
|
-
|
|
309
|
-
!*** /Users/
|
|
310
|
-
|
|
519
|
+
/*!**************************************************************************************!*\
|
|
520
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/lib/stats.js ***!
|
|
521
|
+
\**************************************************************************************/
|
|
311
522
|
/*! exports provided: default */
|
|
312
523
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
313
524
|
|
|
@@ -398,9 +609,9 @@ class Stats {
|
|
|
398
609
|
/***/ }),
|
|
399
610
|
|
|
400
611
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js":
|
|
401
|
-
|
|
402
|
-
!*** /Users/
|
|
403
|
-
|
|
612
|
+
/*!***************************************************************************************************!*\
|
|
613
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js ***!
|
|
614
|
+
\***************************************************************************************************/
|
|
404
615
|
/*! exports provided: default */
|
|
405
616
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
406
617
|
|
|
@@ -426,298 +637,10 @@ function getHiResTimestamp() {
|
|
|
426
637
|
|
|
427
638
|
/***/ }),
|
|
428
639
|
|
|
429
|
-
/***/ "../../node_modules/probe.gl/dist/es5/env/get-browser.js":
|
|
430
|
-
/*!************************************************************************************!*\
|
|
431
|
-
!*** /Users/alasarr/dev/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/alasarr/dev/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/alasarr/dev/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/alasarr/dev/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/alasarr/dev/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
|
-
|
|
719
|
-
!*** /Users/
|
|
720
|
-
|
|
641
|
+
/*!*************************************************************************************!*\
|
|
642
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/get-browser.js ***!
|
|
643
|
+
\*************************************************************************************/
|
|
721
644
|
/*! exports provided: isMobile, default */
|
|
722
645
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
723
646
|
|
|
@@ -776,9 +699,9 @@ function getBrowser(mockUserAgent) {
|
|
|
776
699
|
/***/ }),
|
|
777
700
|
|
|
778
701
|
/***/ "../../node_modules/probe.gl/dist/esm/env/globals.js":
|
|
779
|
-
|
|
780
|
-
!*** /Users/
|
|
781
|
-
|
|
702
|
+
/*!*********************************************************************************!*\
|
|
703
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/globals.js ***!
|
|
704
|
+
\*********************************************************************************/
|
|
782
705
|
/*! exports provided: self, window, global, document, process, console */
|
|
783
706
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
784
707
|
|
|
@@ -810,9 +733,9 @@ const console_ = console;
|
|
|
810
733
|
/***/ }),
|
|
811
734
|
|
|
812
735
|
/***/ "../../node_modules/probe.gl/dist/esm/env/is-browser.js":
|
|
813
|
-
|
|
814
|
-
!*** /Users/
|
|
815
|
-
|
|
736
|
+
/*!************************************************************************************!*\
|
|
737
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/is-browser.js ***!
|
|
738
|
+
\************************************************************************************/
|
|
816
739
|
/*! exports provided: default, isBrowserMainThread */
|
|
817
740
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
818
741
|
|
|
@@ -835,9 +758,9 @@ function isBrowserMainThread() {
|
|
|
835
758
|
/***/ }),
|
|
836
759
|
|
|
837
760
|
/***/ "../../node_modules/probe.gl/dist/esm/env/is-electron.js":
|
|
838
|
-
|
|
839
|
-
!*** /Users/
|
|
840
|
-
|
|
761
|
+
/*!*************************************************************************************!*\
|
|
762
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/env/is-electron.js ***!
|
|
763
|
+
\*************************************************************************************/
|
|
841
764
|
/*! exports provided: default */
|
|
842
765
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
843
766
|
|
|
@@ -868,9 +791,9 @@ function isElectron(mockUserAgent) {
|
|
|
868
791
|
/***/ }),
|
|
869
792
|
|
|
870
793
|
/***/ "../../node_modules/probe.gl/dist/esm/index.js":
|
|
871
|
-
|
|
872
|
-
!*** /Users/
|
|
873
|
-
|
|
794
|
+
/*!***************************************************************************!*\
|
|
795
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/index.js ***!
|
|
796
|
+
\***************************************************************************/
|
|
874
797
|
/*! exports provided: VERSION, self, window, global, document, process, console, isBrowser, isBrowserMainThread, getBrowser, isMobile, isElectron, assert, Log, COLOR, default, addColor, leftPad, rightPad, autobind, LocalStorage, getHiResTimestamp, Stats, Stat */
|
|
875
798
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
876
799
|
|
|
@@ -960,9 +883,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
960
883
|
/***/ }),
|
|
961
884
|
|
|
962
885
|
/***/ "../../node_modules/probe.gl/dist/esm/init.js":
|
|
963
|
-
|
|
964
|
-
!*** /Users/
|
|
965
|
-
|
|
886
|
+
/*!**************************************************************************!*\
|
|
887
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/init.js ***!
|
|
888
|
+
\**************************************************************************/
|
|
966
889
|
/*! no exports provided */
|
|
967
890
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
968
891
|
|
|
@@ -976,9 +899,9 @@ _utils_globals__WEBPACK_IMPORTED_MODULE_0__["global"].probe = {};
|
|
|
976
899
|
/***/ }),
|
|
977
900
|
|
|
978
901
|
/***/ "../../node_modules/probe.gl/dist/esm/lib/log.js":
|
|
979
|
-
|
|
980
|
-
!*** /Users/
|
|
981
|
-
|
|
902
|
+
/*!*****************************************************************************!*\
|
|
903
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/lib/log.js ***!
|
|
904
|
+
\*****************************************************************************/
|
|
982
905
|
/*! exports provided: default, normalizeArguments */
|
|
983
906
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
984
907
|
|
|
@@ -1411,9 +1334,9 @@ function logImageInBrowser({
|
|
|
1411
1334
|
/***/ }),
|
|
1412
1335
|
|
|
1413
1336
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/assert.js":
|
|
1414
|
-
|
|
1415
|
-
!*** /Users/
|
|
1416
|
-
|
|
1337
|
+
/*!**********************************************************************************!*\
|
|
1338
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/assert.js ***!
|
|
1339
|
+
\**********************************************************************************/
|
|
1417
1340
|
/*! exports provided: default */
|
|
1418
1341
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1419
1342
|
|
|
@@ -1430,9 +1353,9 @@ function assert(condition, message) {
|
|
|
1430
1353
|
/***/ }),
|
|
1431
1354
|
|
|
1432
1355
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/autobind.js":
|
|
1433
|
-
|
|
1434
|
-
!*** /Users/
|
|
1435
|
-
|
|
1356
|
+
/*!************************************************************************************!*\
|
|
1357
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/autobind.js ***!
|
|
1358
|
+
\************************************************************************************/
|
|
1436
1359
|
/*! exports provided: autobind */
|
|
1437
1360
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1438
1361
|
|
|
@@ -1456,9 +1379,9 @@ function autobind(obj, predefined = ['constructor']) {
|
|
|
1456
1379
|
/***/ }),
|
|
1457
1380
|
|
|
1458
1381
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/color.js":
|
|
1459
|
-
|
|
1460
|
-
!*** /Users/
|
|
1461
|
-
|
|
1382
|
+
/*!*********************************************************************************!*\
|
|
1383
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/color.js ***!
|
|
1384
|
+
\*********************************************************************************/
|
|
1462
1385
|
/*! exports provided: COLOR, addColor */
|
|
1463
1386
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1464
1387
|
|
|
@@ -1511,9 +1434,9 @@ function addColor(string, color, background) {
|
|
|
1511
1434
|
/***/ }),
|
|
1512
1435
|
|
|
1513
1436
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/formatters.js":
|
|
1514
|
-
|
|
1515
|
-
!*** /Users/
|
|
1516
|
-
|
|
1437
|
+
/*!**************************************************************************************!*\
|
|
1438
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/formatters.js ***!
|
|
1439
|
+
\**************************************************************************************/
|
|
1517
1440
|
/*! exports provided: formatTime, leftPad, rightPad, formatValue, formatImage */
|
|
1518
1441
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1519
1442
|
|
|
@@ -1614,9 +1537,9 @@ function formatImage(image, message, scale, maxWidth = 600) {
|
|
|
1614
1537
|
/***/ }),
|
|
1615
1538
|
|
|
1616
1539
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/globals.js":
|
|
1617
|
-
|
|
1618
|
-
!*** /Users/
|
|
1619
|
-
|
|
1540
|
+
/*!***********************************************************************************!*\
|
|
1541
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/globals.js ***!
|
|
1542
|
+
\***********************************************************************************/
|
|
1620
1543
|
/*! exports provided: self, window, global, document, process, console, VERSION, isBrowser */
|
|
1621
1544
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1622
1545
|
|
|
@@ -1640,16 +1563,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1640
1563
|
|
|
1641
1564
|
|
|
1642
1565
|
|
|
1643
|
-
const VERSION = true ? "8.5.
|
|
1566
|
+
const VERSION = true ? "8.5.12" : undefined;
|
|
1644
1567
|
const isBrowser = Object(_env_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
1645
1568
|
//# sourceMappingURL=globals.js.map
|
|
1646
1569
|
|
|
1647
1570
|
/***/ }),
|
|
1648
1571
|
|
|
1649
1572
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/hi-res-timestamp.js":
|
|
1650
|
-
|
|
1651
|
-
!*** /Users/
|
|
1652
|
-
|
|
1573
|
+
/*!********************************************************************************************!*\
|
|
1574
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/hi-res-timestamp.js ***!
|
|
1575
|
+
\********************************************************************************************/
|
|
1653
1576
|
/*! exports provided: default */
|
|
1654
1577
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1655
1578
|
|
|
@@ -1677,9 +1600,9 @@ function getHiResTimestamp() {
|
|
|
1677
1600
|
/***/ }),
|
|
1678
1601
|
|
|
1679
1602
|
/***/ "../../node_modules/probe.gl/dist/esm/utils/local-storage.js":
|
|
1680
|
-
|
|
1681
|
-
!*** /Users/
|
|
1682
|
-
|
|
1603
|
+
/*!*****************************************************************************************!*\
|
|
1604
|
+
!*** /Users/missx/Source/luma.gl/node_modules/probe.gl/dist/esm/utils/local-storage.js ***!
|
|
1605
|
+
\*****************************************************************************************/
|
|
1683
1606
|
/*! exports provided: default */
|
|
1684
1607
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1685
1608
|
|
|
@@ -1743,26 +1666,12 @@ 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/alasarr/dev/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":
|
|
1763
|
-
|
|
1764
|
-
!*** /Users/
|
|
1765
|
-
|
|
1672
|
+
/*!*******************************************************************!*\
|
|
1673
|
+
!*** /Users/missx/Source/luma.gl/node_modules/process/browser.js ***!
|
|
1674
|
+
\*******************************************************************/
|
|
1766
1675
|
/*! no static exports found */
|
|
1767
1676
|
/***/ (function(module, exports) {
|
|
1768
1677
|
|
|
@@ -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");
|
|
@@ -4233,9 +4135,8 @@ function trackContextState(gl, options = {}) {
|
|
|
4233
4135
|
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_2__["assert"])(copyState !== undefined);
|
|
4234
4136
|
// @ts-ignore
|
|
4235
4137
|
if (!gl.state) {
|
|
4236
|
-
const global_ = typeof global !== 'undefined' ? global : window;
|
|
4237
4138
|
// @ts-ignore
|
|
4238
|
-
const {polyfillContext} =
|
|
4139
|
+
const {polyfillContext} = globalThis;
|
|
4239
4140
|
if (polyfillContext) {
|
|
4240
4141
|
polyfillContext(gl);
|
|
4241
4142
|
}
|
|
@@ -4287,7 +4188,6 @@ function popContextState(gl) {
|
|
|
4287
4188
|
gl.state.pop();
|
|
4288
4189
|
}
|
|
4289
4190
|
|
|
4290
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
4291
4191
|
|
|
4292
4192
|
/***/ }),
|
|
4293
4193
|
|
|
@@ -5228,16 +5128,14 @@ function assertWebGL2Context(gl) {
|
|
|
5228
5128
|
/*! no static exports found */
|
|
5229
5129
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5230
5130
|
|
|
5231
|
-
|
|
5131
|
+
const moduleExports = __webpack_require__(/*! ./index */ "./src/index.js");
|
|
5232
5132
|
|
|
5233
|
-
const _global = typeof window === 'undefined' ? global : window;
|
|
5234
5133
|
// @ts-ignore
|
|
5235
|
-
|
|
5134
|
+
globalThis.luma = globalThis.luma || {};
|
|
5236
5135
|
|
|
5237
5136
|
// @ts-ignore
|
|
5238
|
-
module.exports = Object.assign(
|
|
5137
|
+
module.exports = Object.assign(globalThis.luma, moduleExports);
|
|
5239
5138
|
|
|
5240
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
5241
5139
|
|
|
5242
5140
|
/***/ }),
|
|
5243
5141
|
|
|
@@ -5447,6 +5345,10 @@ const PROP_CHECKS_SET_PROPS = {
|
|
|
5447
5345
|
};
|
|
5448
5346
|
|
|
5449
5347
|
class Buffer extends _resource__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
5348
|
+
// eslint-disable-next-line accessor-pairs
|
|
5349
|
+
get [Symbol.toStringTag]() {
|
|
5350
|
+
return 'Buffer';
|
|
5351
|
+
}
|
|
5450
5352
|
constructor(gl, props = {}) {
|
|
5451
5353
|
super(gl, props);
|
|
5452
5354
|
|
|
@@ -6369,6 +6271,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6369
6271
|
const ERR_MULTIPLE_RENDERTARGETS = 'Multiple render targets not supported';
|
|
6370
6272
|
|
|
6371
6273
|
class Framebuffer extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
6274
|
+
// eslint-disable-next-line accessor-pairs
|
|
6275
|
+
get [Symbol.toStringTag]() {
|
|
6276
|
+
return 'Framebuffer';
|
|
6277
|
+
}
|
|
6372
6278
|
static isSupported(gl, options = {}) {
|
|
6373
6279
|
const {
|
|
6374
6280
|
colorBufferFloat, // Whether floating point textures can be rendered and read
|
|
@@ -7264,6 +7170,10 @@ const V6_DEPRECATED_METHODS = [
|
|
|
7264
7170
|
];
|
|
7265
7171
|
|
|
7266
7172
|
class Program extends _resource__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
7173
|
+
// eslint-disable-next-line accessor-pairs
|
|
7174
|
+
get [Symbol.toStringTag]() {
|
|
7175
|
+
return 'Program';
|
|
7176
|
+
}
|
|
7267
7177
|
constructor(gl, props = {}) {
|
|
7268
7178
|
super(gl, props);
|
|
7269
7179
|
|
|
@@ -7655,6 +7565,10 @@ const GL_ANY_SAMPLES_PASSED = 0x8c2f; // Occlusion query (if drawing passed dept
|
|
|
7655
7565
|
const GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8d6a; // Occlusion query less accurate/faster version
|
|
7656
7566
|
|
|
7657
7567
|
class Query extends _resource__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
7568
|
+
// eslint-disable-next-line accessor-pairs
|
|
7569
|
+
get [Symbol.toStringTag]() {
|
|
7570
|
+
return 'Query';
|
|
7571
|
+
}
|
|
7658
7572
|
// Returns true if Query is supported by the WebGL implementation
|
|
7659
7573
|
// Can also check whether timestamp queries are available.
|
|
7660
7574
|
static isSupported(gl, opts = []) {
|
|
@@ -7920,6 +7834,10 @@ function isFormatSupported(gl, format, formats) {
|
|
|
7920
7834
|
}
|
|
7921
7835
|
|
|
7922
7836
|
class Renderbuffer extends _resource__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
7837
|
+
// eslint-disable-next-line accessor-pairs
|
|
7838
|
+
get [Symbol.toStringTag]() {
|
|
7839
|
+
return 'Renderbuffer';
|
|
7840
|
+
}
|
|
7923
7841
|
static isSupported(gl, {format} = {format: null}) {
|
|
7924
7842
|
return !format || isFormatSupported(gl, format, _renderbuffer_formats__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
7925
7843
|
}
|
|
@@ -8040,6 +7958,10 @@ const ERR_RESOURCE_METHOD_UNDEFINED = 'Resource subclass must define virtual met
|
|
|
8040
7958
|
// }
|
|
8041
7959
|
|
|
8042
7960
|
class Resource {
|
|
7961
|
+
// eslint-disable-next-line accessor-pairs
|
|
7962
|
+
get [Symbol.toStringTag]() {
|
|
7963
|
+
return 'Resource';
|
|
7964
|
+
}
|
|
8043
7965
|
constructor(gl, opts = {}) {
|
|
8044
7966
|
Object(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["assertWebGLContext"])(gl);
|
|
8045
7967
|
|
|
@@ -8048,7 +7970,7 @@ class Resource {
|
|
|
8048
7970
|
// @ts-ignore
|
|
8049
7971
|
this.gl2 = gl;
|
|
8050
7972
|
// this.ext = polyfillContext(gl);
|
|
8051
|
-
this.id = id || Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["uid"])(this.
|
|
7973
|
+
this.id = id || Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["uid"])(this[Symbol.toStringTag]);
|
|
8052
7974
|
this.userData = userData;
|
|
8053
7975
|
this._bound = false;
|
|
8054
7976
|
|
|
@@ -8071,7 +7993,7 @@ class Resource {
|
|
|
8071
7993
|
}
|
|
8072
7994
|
|
|
8073
7995
|
toString() {
|
|
8074
|
-
return `${this.constructor.name}(${this.id})`;
|
|
7996
|
+
return `${this[Symbol.toStringTag] || this.constructor.name}(${this.id})`;
|
|
8075
7997
|
}
|
|
8076
7998
|
|
|
8077
7999
|
get handle() {
|
|
@@ -8302,7 +8224,7 @@ class Resource {
|
|
|
8302
8224
|
}
|
|
8303
8225
|
|
|
8304
8226
|
_addStats() {
|
|
8305
|
-
const name = this.
|
|
8227
|
+
const name = this[Symbol.toStringTag];
|
|
8306
8228
|
const stats = _init__WEBPACK_IMPORTED_MODULE_1__["lumaStats"].get('Resource Counts');
|
|
8307
8229
|
|
|
8308
8230
|
stats.get('Resources Created').incrementCount();
|
|
@@ -8311,13 +8233,13 @@ class Resource {
|
|
|
8311
8233
|
}
|
|
8312
8234
|
|
|
8313
8235
|
_removeStats() {
|
|
8314
|
-
const name = this.
|
|
8236
|
+
const name = this[Symbol.toStringTag];
|
|
8315
8237
|
const stats = _init__WEBPACK_IMPORTED_MODULE_1__["lumaStats"].get('Resource Counts');
|
|
8316
8238
|
|
|
8317
8239
|
stats.get(`${name}s Active`).decrementCount();
|
|
8318
8240
|
}
|
|
8319
8241
|
|
|
8320
|
-
_trackAllocatedMemory(bytes, name = this.
|
|
8242
|
+
_trackAllocatedMemory(bytes, name = this[Symbol.toStringTag]) {
|
|
8321
8243
|
const stats = _init__WEBPACK_IMPORTED_MODULE_1__["lumaStats"].get('Memory Usage');
|
|
8322
8244
|
|
|
8323
8245
|
stats.get('GPU Memory').addCount(bytes);
|
|
@@ -8325,7 +8247,7 @@ class Resource {
|
|
|
8325
8247
|
this.byteLength = bytes;
|
|
8326
8248
|
}
|
|
8327
8249
|
|
|
8328
|
-
_trackDeallocatedMemory(name = this.
|
|
8250
|
+
_trackDeallocatedMemory(name = this[Symbol.toStringTag]) {
|
|
8329
8251
|
const stats = _init__WEBPACK_IMPORTED_MODULE_1__["lumaStats"].get('Memory Usage');
|
|
8330
8252
|
|
|
8331
8253
|
stats.get('GPU Memory').subtractCount(this.byteLength);
|
|
@@ -8366,6 +8288,11 @@ const ERR_SOURCE = 'Shader: GLSL source code must be a JavaScript string';
|
|
|
8366
8288
|
|
|
8367
8289
|
// For now this is an internal class
|
|
8368
8290
|
class Shader extends _resource__WEBPACK_IMPORTED_MODULE_5__["default"] {
|
|
8291
|
+
// eslint-disable-next-line accessor-pairs
|
|
8292
|
+
get [Symbol.toStringTag]() {
|
|
8293
|
+
return 'Shader';
|
|
8294
|
+
}
|
|
8295
|
+
|
|
8369
8296
|
static getTypeName(shaderType) {
|
|
8370
8297
|
switch (shaderType) {
|
|
8371
8298
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].VERTEX_SHADER:
|
|
@@ -8473,6 +8400,11 @@ class Shader extends _resource__WEBPACK_IMPORTED_MODULE_5__["default"] {
|
|
|
8473
8400
|
}
|
|
8474
8401
|
|
|
8475
8402
|
class VertexShader extends Shader {
|
|
8403
|
+
// eslint-disable-next-line accessor-pairs
|
|
8404
|
+
get [Symbol.toStringTag]() {
|
|
8405
|
+
return 'VertexShader';
|
|
8406
|
+
}
|
|
8407
|
+
|
|
8476
8408
|
constructor(gl, props) {
|
|
8477
8409
|
// Signature: new VertexShader(gl, source)
|
|
8478
8410
|
if (typeof props === 'string') {
|
|
@@ -8488,6 +8420,10 @@ class VertexShader extends Shader {
|
|
|
8488
8420
|
}
|
|
8489
8421
|
|
|
8490
8422
|
class FragmentShader extends Shader {
|
|
8423
|
+
// eslint-disable-next-line accessor-pairs
|
|
8424
|
+
get [Symbol.toStringTag]() {
|
|
8425
|
+
return 'FragmentShader';
|
|
8426
|
+
}
|
|
8491
8427
|
constructor(gl, props) {
|
|
8492
8428
|
// Signature: new FragmentShader(gl, source)
|
|
8493
8429
|
if (typeof props === 'string') {
|
|
@@ -8526,6 +8462,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8526
8462
|
|
|
8527
8463
|
|
|
8528
8464
|
class Texture2D extends _texture__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
8465
|
+
// eslint-disable-next-line accessor-pairs
|
|
8466
|
+
get [Symbol.toStringTag]() {
|
|
8467
|
+
return 'Texture2D';
|
|
8468
|
+
}
|
|
8469
|
+
|
|
8529
8470
|
static isSupported(gl, opts) {
|
|
8530
8471
|
return _texture__WEBPACK_IMPORTED_MODULE_2__["default"].isSupported(gl, opts);
|
|
8531
8472
|
}
|
|
@@ -8576,6 +8517,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8576
8517
|
|
|
8577
8518
|
|
|
8578
8519
|
class Texture3D extends _texture__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
8520
|
+
// eslint-disable-next-line accessor-pairs
|
|
8521
|
+
get [Symbol.toStringTag]() {
|
|
8522
|
+
return 'Texture3D';
|
|
8523
|
+
}
|
|
8524
|
+
|
|
8579
8525
|
static isSupported(gl) {
|
|
8580
8526
|
return Object(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__["isWebGL2"])(gl);
|
|
8581
8527
|
}
|
|
@@ -8693,6 +8639,11 @@ const FACES = [
|
|
|
8693
8639
|
];
|
|
8694
8640
|
|
|
8695
8641
|
class TextureCube extends _texture__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
8642
|
+
// eslint-disable-next-line accessor-pairs
|
|
8643
|
+
get [Symbol.toStringTag]() {
|
|
8644
|
+
return 'TextureCube';
|
|
8645
|
+
}
|
|
8646
|
+
|
|
8696
8647
|
constructor(gl, props = {}) {
|
|
8697
8648
|
Object(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__["assertWebGLContext"])(gl);
|
|
8698
8649
|
|
|
@@ -9022,14 +8973,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9022
8973
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Texture; });
|
|
9023
8974
|
/* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../constants/src/index.js");
|
|
9024
8975
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
9025
|
-
/* harmony import */ var
|
|
9026
|
-
/* harmony import */ var
|
|
9027
|
-
/* harmony import */ var
|
|
9028
|
-
/* harmony import */ var
|
|
9029
|
-
/* harmony import */ var
|
|
9030
|
-
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/assert */ "./src/utils/assert.js");
|
|
9031
|
-
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.js");
|
|
9032
|
-
|
|
8976
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resource */ "./src/classes/resource.js");
|
|
8977
|
+
/* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./buffer */ "./src/classes/buffer.js");
|
|
8978
|
+
/* harmony import */ var _texture_formats__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./texture-formats */ "./src/classes/texture-formats.js");
|
|
8979
|
+
/* harmony import */ var _utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/assert */ "./src/utils/assert.js");
|
|
8980
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.js");
|
|
9033
8981
|
|
|
9034
8982
|
|
|
9035
8983
|
|
|
@@ -9044,15 +8992,19 @@ const NPOT_MIN_FILTERS = [_luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
9044
8992
|
|
|
9045
8993
|
// Polyfill
|
|
9046
8994
|
// Note (Tarek): Do we really need to support this API?
|
|
9047
|
-
const WebGLBuffer =
|
|
8995
|
+
const WebGLBuffer = globalThis.WebGLBuffer || function WebGLBuffer() {};
|
|
9048
8996
|
|
|
9049
|
-
class Texture extends
|
|
8997
|
+
class Texture extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
8998
|
+
// eslint-disable-next-line accessor-pairs
|
|
8999
|
+
get [Symbol.toStringTag]() {
|
|
9000
|
+
return 'Texture';
|
|
9001
|
+
}
|
|
9050
9002
|
static isSupported(gl, opts = {}) {
|
|
9051
9003
|
const {format, linearFiltering} = opts;
|
|
9052
9004
|
let supported = true;
|
|
9053
9005
|
if (format) {
|
|
9054
|
-
supported = supported && Object(
|
|
9055
|
-
supported = supported && (!linearFiltering || Object(
|
|
9006
|
+
supported = supported && Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isFormatSupported"])(gl, format);
|
|
9007
|
+
supported = supported && (!linearFiltering || Object(_texture_formats__WEBPACK_IMPORTED_MODULE_4__["isLinearFilteringSupported"])(gl, format));
|
|
9056
9008
|
}
|
|
9057
9009
|
return supported;
|
|
9058
9010
|
}
|
|
@@ -9069,7 +9021,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9069
9021
|
// (while run-time).
|
|
9070
9022
|
constructor(gl, props) {
|
|
9071
9023
|
const {
|
|
9072
|
-
id = Object(
|
|
9024
|
+
id = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["uid"])('texture'),
|
|
9073
9025
|
handle,
|
|
9074
9026
|
target
|
|
9075
9027
|
// , magFilter, minFilter, wrapS, wrapT
|
|
@@ -9335,6 +9287,8 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9335
9287
|
|
|
9336
9288
|
let gl2;
|
|
9337
9289
|
|
|
9290
|
+
let compressedTextureSize = 0;
|
|
9291
|
+
|
|
9338
9292
|
Object(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__["withParameters"])(this.gl, parameters, () => {
|
|
9339
9293
|
switch (dataType) {
|
|
9340
9294
|
case 'null':
|
|
@@ -9383,20 +9337,22 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9383
9337
|
border,
|
|
9384
9338
|
levelData.data
|
|
9385
9339
|
);
|
|
9340
|
+
compressedTextureSize += levelData.levelSize;
|
|
9386
9341
|
}
|
|
9387
|
-
|
|
9388
9342
|
break;
|
|
9389
9343
|
default:
|
|
9390
|
-
Object(
|
|
9344
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false, 'Unknown image data type');
|
|
9391
9345
|
}
|
|
9392
9346
|
});
|
|
9393
9347
|
|
|
9394
|
-
if (
|
|
9348
|
+
if (dataType === 'compressed') {
|
|
9349
|
+
this._trackAllocatedMemory(compressedTextureSize, 'Texture');
|
|
9350
|
+
} else if (data && data.byteLength) {
|
|
9395
9351
|
this._trackAllocatedMemory(data.byteLength, 'Texture');
|
|
9396
9352
|
} else {
|
|
9397
9353
|
// NOTE(Tarek): Default to RGBA bytes
|
|
9398
|
-
const channels =
|
|
9399
|
-
const channelSize =
|
|
9354
|
+
const channels = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["DATA_FORMAT_CHANNELS"][this.dataFormat] || 4;
|
|
9355
|
+
const channelSize = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TYPE_SIZES"][this.type] || 1;
|
|
9400
9356
|
|
|
9401
9357
|
this._trackAllocatedMemory(this.width * this.height * channels * channelSize, 'Texture');
|
|
9402
9358
|
}
|
|
@@ -9462,7 +9418,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9462
9418
|
height
|
|
9463
9419
|
}));
|
|
9464
9420
|
|
|
9465
|
-
Object(
|
|
9421
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(this.depth === 0, 'texSubImage not supported for 3D textures');
|
|
9466
9422
|
|
|
9467
9423
|
// pixels variable is for API compatibility purpose
|
|
9468
9424
|
if (!data) {
|
|
@@ -9478,7 +9434,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9478
9434
|
}
|
|
9479
9435
|
|
|
9480
9436
|
// Support buffers
|
|
9481
|
-
if (data instanceof
|
|
9437
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
9482
9438
|
data = data.handle;
|
|
9483
9439
|
}
|
|
9484
9440
|
|
|
@@ -9580,7 +9536,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9580
9536
|
if (ArrayBuffer.isView(data)) {
|
|
9581
9537
|
return {data, dataType: 'typed-array'};
|
|
9582
9538
|
}
|
|
9583
|
-
if (data instanceof
|
|
9539
|
+
if (data instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__["default"]) {
|
|
9584
9540
|
return {data: data.handle, dataType: 'buffer'};
|
|
9585
9541
|
}
|
|
9586
9542
|
if (data instanceof WebGLBuffer) {
|
|
@@ -9672,7 +9628,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9672
9628
|
let {width, height, dataFormat, type, compressed} = opts;
|
|
9673
9629
|
|
|
9674
9630
|
// Deduce format and type from format
|
|
9675
|
-
const textureFormat =
|
|
9631
|
+
const textureFormat = _texture_formats__WEBPACK_IMPORTED_MODULE_4__["TEXTURE_FORMATS"][format];
|
|
9676
9632
|
dataFormat = dataFormat || (textureFormat && textureFormat.dataFormat);
|
|
9677
9633
|
type = type || (textureFormat && textureFormat.types[0]);
|
|
9678
9634
|
|
|
@@ -9704,12 +9660,12 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9704
9660
|
size = {width, height};
|
|
9705
9661
|
}
|
|
9706
9662
|
|
|
9707
|
-
Object(
|
|
9708
|
-
Object(
|
|
9663
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(size, 'Could not deduced texture size');
|
|
9664
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
9709
9665
|
width === undefined || size.width === width,
|
|
9710
9666
|
'Deduced texture width does not match supplied width'
|
|
9711
9667
|
);
|
|
9712
|
-
Object(
|
|
9668
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(
|
|
9713
9669
|
height === undefined || size.height === height,
|
|
9714
9670
|
'Deduced texture height does not match supplied height'
|
|
9715
9671
|
);
|
|
@@ -9759,7 +9715,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9759
9715
|
|
|
9760
9716
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_WIDTH:
|
|
9761
9717
|
case _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__["default"].TEXTURE_HEIGHT:
|
|
9762
|
-
Object(
|
|
9718
|
+
Object(_utils_assert__WEBPACK_IMPORTED_MODULE_5__["assert"])(false);
|
|
9763
9719
|
break;
|
|
9764
9720
|
|
|
9765
9721
|
default:
|
|
@@ -9780,7 +9736,7 @@ class Texture extends _resource__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
|
9780
9736
|
if (!this.width || !this.height) {
|
|
9781
9737
|
return false;
|
|
9782
9738
|
}
|
|
9783
|
-
return !Object(
|
|
9739
|
+
return !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.width) || !Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["isPowerOfTwo"])(this.height);
|
|
9784
9740
|
}
|
|
9785
9741
|
|
|
9786
9742
|
// Update default settings which are not supported by NPOT textures.
|
|
@@ -9851,6 +9807,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9851
9807
|
// See https://github.com/KhronosGroup/WebGL/issues/2346
|
|
9852
9808
|
|
|
9853
9809
|
class TransformFeedback extends _resource__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
9810
|
+
// eslint-disable-next-line accessor-pairs
|
|
9811
|
+
get [Symbol.toStringTag]() {
|
|
9812
|
+
return 'TransformFeedback';
|
|
9813
|
+
}
|
|
9854
9814
|
static isSupported(gl) {
|
|
9855
9815
|
return Object(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_1__["isWebGL2"])(gl);
|
|
9856
9816
|
}
|
|
@@ -10551,6 +10511,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10551
10511
|
const ERR_ELEMENTS = 'elements must be GL.ELEMENT_ARRAY_BUFFER';
|
|
10552
10512
|
|
|
10553
10513
|
class VertexArrayObject extends _resource__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
10514
|
+
// eslint-disable-next-line accessor-pairs
|
|
10515
|
+
get [Symbol.toStringTag]() {
|
|
10516
|
+
return 'VertexArrayObject';
|
|
10517
|
+
}
|
|
10554
10518
|
static isSupported(gl, options = {}) {
|
|
10555
10519
|
// Attribute 0 can not be disable on most desktop OpenGL based browsers
|
|
10556
10520
|
// and on iOS Safari browser.
|
|
@@ -12574,8 +12538,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12574
12538
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lumaStats", function() { return lumaStats; });
|
|
12575
12539
|
/* harmony import */ var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/gltools */ "../gltools/src/index.js");
|
|
12576
12540
|
/* harmony import */ var probe_gl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! probe.gl */ "../../node_modules/probe.gl/dist/esm/index.js");
|
|
12577
|
-
/* harmony import */ var
|
|
12578
|
-
/* harmony import */ var probe_gl_env__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(probe_gl_env__WEBPACK_IMPORTED_MODULE_2__);
|
|
12541
|
+
/* harmony import */ var _probe_gl_env__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @probe.gl/env */ "../../node_modules/@probe.gl/env/dist/esm/index.js");
|
|
12579
12542
|
|
|
12580
12543
|
|
|
12581
12544
|
|
|
@@ -12583,7 +12546,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12583
12546
|
// Version detection using babel plugin
|
|
12584
12547
|
/* global __VERSION__ */
|
|
12585
12548
|
// @ts-ignore
|
|
12586
|
-
const VERSION = true ? "8.5.
|
|
12549
|
+
const VERSION = true ? "8.5.12" : undefined;
|
|
12587
12550
|
|
|
12588
12551
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
12589
12552
|
// Assign luma.log.level in console to control logging: \
|
|
@@ -12606,16 +12569,16 @@ class StatsManager {
|
|
|
12606
12569
|
|
|
12607
12570
|
const lumaStats = new StatsManager();
|
|
12608
12571
|
|
|
12609
|
-
if (
|
|
12610
|
-
throw new Error(`luma.gl - multiple VERSIONs detected: ${
|
|
12572
|
+
if (globalThis.luma && globalThis.luma.VERSION !== VERSION) {
|
|
12573
|
+
throw new Error(`luma.gl - multiple VERSIONs detected: ${globalThis.luma.VERSION} vs ${VERSION}`);
|
|
12611
12574
|
}
|
|
12612
12575
|
|
|
12613
|
-
if (!
|
|
12614
|
-
if (Object(
|
|
12576
|
+
if (!globalThis.luma) {
|
|
12577
|
+
if (Object(_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["isBrowser"])()) {
|
|
12615
12578
|
_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"].log(1, `luma.gl ${VERSION} - ${STARTUP_MESSAGE}`)();
|
|
12616
12579
|
}
|
|
12617
12580
|
|
|
12618
|
-
|
|
12581
|
+
globalThis.luma = globalThis.luma || {
|
|
12619
12582
|
VERSION,
|
|
12620
12583
|
version: VERSION,
|
|
12621
12584
|
log: _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__["log"],
|
|
@@ -12637,7 +12600,7 @@ if (!probe_gl_env__WEBPACK_IMPORTED_MODULE_2__["global"].luma) {
|
|
|
12637
12600
|
}
|
|
12638
12601
|
|
|
12639
12602
|
|
|
12640
|
-
/* harmony default export */ __webpack_exports__["default"] = (
|
|
12603
|
+
/* harmony default export */ __webpack_exports__["default"] = (globalThis.luma);
|
|
12641
12604
|
|
|
12642
12605
|
|
|
12643
12606
|
/***/ }),
|