babylonjs-loaders 6.6.1 → 6.8.0
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/babylon.glTF1FileLoader.js +488 -432
- package/babylon.glTF1FileLoader.js.map +1 -1
- package/babylon.glTF1FileLoader.min.js +1 -1
- package/babylon.glTF1FileLoader.min.js.map +1 -1
- package/babylon.glTF2FileLoader.js +631 -573
- package/babylon.glTF2FileLoader.js.map +1 -1
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +700 -642
- package/babylon.glTFFileLoader.js.map +1 -1
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylon.objFileLoader.js +27 -27
- package/babylon.objFileLoader.js.map +1 -1
- package/babylon.objFileLoader.min.js +1 -1
- package/babylon.objFileLoader.min.js.map +1 -1
- package/babylon.stlFileLoader.js +8 -8
- package/babylon.stlFileLoader.js.map +1 -1
- package/babylon.stlFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +6 -2
- package/babylonjs.loaders.js +749 -691
- package/babylonjs.loaders.js.map +1 -1
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +12 -4
- package/package.json +3 -3
|
@@ -7,346 +7,11 @@
|
|
|
7
7
|
exports["babylonjs-loaders"] = factory(require("babylonjs"));
|
|
8
8
|
else
|
|
9
9
|
root["LOADERS"] = factory(root["BABYLON"]);
|
|
10
|
-
})((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), (
|
|
10
|
+
})((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), (__WEBPACK_EXTERNAL_MODULE_core_Misc_tools__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/ "../../../../node_modules/tslib/tslib.es6.js":
|
|
16
|
-
/*!***************************************************!*\
|
|
17
|
-
!*** ../../../../node_modules/tslib/tslib.es6.js ***!
|
|
18
|
-
\***************************************************/
|
|
19
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
20
|
-
|
|
21
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
/* harmony export */ "__assign": () => (/* binding */ __assign),
|
|
24
|
-
/* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
|
|
25
|
-
/* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
|
|
26
|
-
/* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
|
|
27
|
-
/* harmony export */ "__await": () => (/* binding */ __await),
|
|
28
|
-
/* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
|
|
29
|
-
/* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
|
|
30
|
-
/* harmony export */ "__classPrivateFieldIn": () => (/* binding */ __classPrivateFieldIn),
|
|
31
|
-
/* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
|
|
32
|
-
/* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
|
|
33
|
-
/* harmony export */ "__decorate": () => (/* binding */ __decorate),
|
|
34
|
-
/* harmony export */ "__esDecorate": () => (/* binding */ __esDecorate),
|
|
35
|
-
/* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
|
|
36
|
-
/* harmony export */ "__extends": () => (/* binding */ __extends),
|
|
37
|
-
/* harmony export */ "__generator": () => (/* binding */ __generator),
|
|
38
|
-
/* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
|
|
39
|
-
/* harmony export */ "__importStar": () => (/* binding */ __importStar),
|
|
40
|
-
/* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
|
|
41
|
-
/* harmony export */ "__metadata": () => (/* binding */ __metadata),
|
|
42
|
-
/* harmony export */ "__param": () => (/* binding */ __param),
|
|
43
|
-
/* harmony export */ "__propKey": () => (/* binding */ __propKey),
|
|
44
|
-
/* harmony export */ "__read": () => (/* binding */ __read),
|
|
45
|
-
/* harmony export */ "__rest": () => (/* binding */ __rest),
|
|
46
|
-
/* harmony export */ "__runInitializers": () => (/* binding */ __runInitializers),
|
|
47
|
-
/* harmony export */ "__setFunctionName": () => (/* binding */ __setFunctionName),
|
|
48
|
-
/* harmony export */ "__spread": () => (/* binding */ __spread),
|
|
49
|
-
/* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
|
|
50
|
-
/* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
|
|
51
|
-
/* harmony export */ "__values": () => (/* binding */ __values)
|
|
52
|
-
/* harmony export */ });
|
|
53
|
-
/******************************************************************************
|
|
54
|
-
Copyright (c) Microsoft Corporation.
|
|
55
|
-
|
|
56
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
57
|
-
purpose with or without fee is hereby granted.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
60
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
61
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
62
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
63
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
64
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
65
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
-
***************************************************************************** */
|
|
67
|
-
/* global Reflect, Promise */
|
|
68
|
-
|
|
69
|
-
var extendStatics = function(d, b) {
|
|
70
|
-
extendStatics = Object.setPrototypeOf ||
|
|
71
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
72
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
73
|
-
return extendStatics(d, b);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
function __extends(d, b) {
|
|
77
|
-
if (typeof b !== "function" && b !== null)
|
|
78
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
-
extendStatics(d, b);
|
|
80
|
-
function __() { this.constructor = d; }
|
|
81
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var __assign = function() {
|
|
85
|
-
__assign = Object.assign || function __assign(t) {
|
|
86
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
87
|
-
s = arguments[i];
|
|
88
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
return __assign.apply(this, arguments);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function __rest(s, e) {
|
|
96
|
-
var t = {};
|
|
97
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
98
|
-
t[p] = s[p];
|
|
99
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
100
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
101
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
102
|
-
t[p[i]] = s[p[i]];
|
|
103
|
-
}
|
|
104
|
-
return t;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function __decorate(decorators, target, key, desc) {
|
|
108
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
109
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
110
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
111
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function __param(paramIndex, decorator) {
|
|
115
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
119
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
120
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
121
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
122
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
123
|
-
var _, done = false;
|
|
124
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
125
|
-
var context = {};
|
|
126
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
127
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
128
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
129
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
130
|
-
if (kind === "accessor") {
|
|
131
|
-
if (result === void 0) continue;
|
|
132
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
133
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
134
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
135
|
-
if (_ = accept(result.init)) initializers.push(_);
|
|
136
|
-
}
|
|
137
|
-
else if (_ = accept(result)) {
|
|
138
|
-
if (kind === "field") initializers.push(_);
|
|
139
|
-
else descriptor[key] = _;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
143
|
-
done = true;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
147
|
-
var useValue = arguments.length > 2;
|
|
148
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
149
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
150
|
-
}
|
|
151
|
-
return useValue ? value : void 0;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
function __propKey(x) {
|
|
155
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function __setFunctionName(f, name, prefix) {
|
|
159
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
160
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
function __metadata(metadataKey, metadataValue) {
|
|
164
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
168
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
169
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
170
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
171
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
172
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
173
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function __generator(thisArg, body) {
|
|
178
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
179
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
180
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
181
|
-
function step(op) {
|
|
182
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
183
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
184
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
185
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
186
|
-
switch (op[0]) {
|
|
187
|
-
case 0: case 1: t = op; break;
|
|
188
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
189
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
190
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
191
|
-
default:
|
|
192
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
193
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
194
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
195
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
196
|
-
if (t[2]) _.ops.pop();
|
|
197
|
-
_.trys.pop(); continue;
|
|
198
|
-
}
|
|
199
|
-
op = body.call(thisArg, _);
|
|
200
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
201
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined) k2 = k;
|
|
207
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
208
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
209
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
210
|
-
}
|
|
211
|
-
Object.defineProperty(o, k2, desc);
|
|
212
|
-
}) : (function(o, m, k, k2) {
|
|
213
|
-
if (k2 === undefined) k2 = k;
|
|
214
|
-
o[k2] = m[k];
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
function __exportStar(m, o) {
|
|
218
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function __values(o) {
|
|
222
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
223
|
-
if (m) return m.call(o);
|
|
224
|
-
if (o && typeof o.length === "number") return {
|
|
225
|
-
next: function () {
|
|
226
|
-
if (o && i >= o.length) o = void 0;
|
|
227
|
-
return { value: o && o[i++], done: !o };
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function __read(o, n) {
|
|
234
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
235
|
-
if (!m) return o;
|
|
236
|
-
var i = m.call(o), r, ar = [], e;
|
|
237
|
-
try {
|
|
238
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
239
|
-
}
|
|
240
|
-
catch (error) { e = { error: error }; }
|
|
241
|
-
finally {
|
|
242
|
-
try {
|
|
243
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
244
|
-
}
|
|
245
|
-
finally { if (e) throw e.error; }
|
|
246
|
-
}
|
|
247
|
-
return ar;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** @deprecated */
|
|
251
|
-
function __spread() {
|
|
252
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
253
|
-
ar = ar.concat(__read(arguments[i]));
|
|
254
|
-
return ar;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
function __spreadArrays() {
|
|
259
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
260
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
261
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
262
|
-
r[k] = a[j];
|
|
263
|
-
return r;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function __spreadArray(to, from, pack) {
|
|
267
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
-
if (ar || !(i in from)) {
|
|
269
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
270
|
-
ar[i] = from[i];
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
function __await(v) {
|
|
277
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
281
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
282
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
283
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
284
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
285
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
286
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
-
function fulfill(value) { resume("next", value); }
|
|
288
|
-
function reject(value) { resume("throw", value); }
|
|
289
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function __asyncDelegator(o) {
|
|
293
|
-
var i, p;
|
|
294
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
function __asyncValues(o) {
|
|
299
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
-
var m = o[Symbol.asyncIterator], i;
|
|
301
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
function __makeTemplateObject(cooked, raw) {
|
|
307
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
308
|
-
return cooked;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
312
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
313
|
-
}) : function(o, v) {
|
|
314
|
-
o["default"] = v;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
function __importStar(mod) {
|
|
318
|
-
if (mod && mod.__esModule) return mod;
|
|
319
|
-
var result = {};
|
|
320
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
321
|
-
__setModuleDefault(result, mod);
|
|
322
|
-
return result;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function __importDefault(mod) {
|
|
326
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
330
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
331
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
332
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
336
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
337
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
338
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
343
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
344
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
/***/ }),
|
|
349
|
-
|
|
350
15
|
/***/ "../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js":
|
|
351
16
|
/*!*****************************************************************!*\
|
|
352
17
|
!*** ../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js ***!
|
|
@@ -355,12 +20,12 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
355
20
|
|
|
356
21
|
__webpack_require__.r(__webpack_exports__);
|
|
357
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
358
|
-
/* harmony export */
|
|
23
|
+
/* harmony export */ GLTFBinaryExtension: () => (/* binding */ GLTFBinaryExtension)
|
|
359
24
|
/* harmony export */ });
|
|
360
|
-
/* harmony import */ var
|
|
361
|
-
/* harmony import */ var
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
25
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
26
|
+
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
27
|
+
/* harmony import */ var _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glTFLoaderUtils */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderUtils.js");
|
|
28
|
+
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
364
29
|
|
|
365
30
|
|
|
366
31
|
|
|
@@ -371,7 +36,7 @@ var BinaryExtensionBufferName = "binary_glTF";
|
|
|
371
36
|
* @deprecated
|
|
372
37
|
*/
|
|
373
38
|
var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
374
|
-
(0,
|
|
39
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__.__extends)(GLTFBinaryExtension, _super);
|
|
375
40
|
function GLTFBinaryExtension() {
|
|
376
41
|
return _super.call(this, "KHR_binary_glTF") || this;
|
|
377
42
|
}
|
|
@@ -381,7 +46,7 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
381
46
|
return false;
|
|
382
47
|
}
|
|
383
48
|
this._bin = data.bin;
|
|
384
|
-
onSuccess(
|
|
49
|
+
onSuccess(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.CreateRuntime(data.json, scene, rootUrl));
|
|
385
50
|
return true;
|
|
386
51
|
};
|
|
387
52
|
GLTFBinaryExtension.prototype.loadBufferAsync = function (gltfRuntime, id, onSuccess, onError) {
|
|
@@ -402,7 +67,7 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
402
67
|
}
|
|
403
68
|
var sourceExt = source.extensions[this.name];
|
|
404
69
|
var bufferView = gltfRuntime.bufferViews[sourceExt.bufferView];
|
|
405
|
-
var buffer =
|
|
70
|
+
var buffer = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.GetBufferFromBufferView(gltfRuntime, bufferView, 0, bufferView.byteLength, _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType.UNSIGNED_BYTE);
|
|
406
71
|
onSuccess(buffer);
|
|
407
72
|
return true;
|
|
408
73
|
};
|
|
@@ -413,17 +78,17 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
413
78
|
}
|
|
414
79
|
var binaryExtensionShader = shader.extensions[this.name];
|
|
415
80
|
var bufferView = gltfRuntime.bufferViews[binaryExtensionShader.bufferView];
|
|
416
|
-
var shaderBytes =
|
|
81
|
+
var shaderBytes = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.GetBufferFromBufferView(gltfRuntime, bufferView, 0, bufferView.byteLength, _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType.UNSIGNED_BYTE);
|
|
417
82
|
setTimeout(function () {
|
|
418
|
-
var shaderString =
|
|
83
|
+
var shaderString = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.DecodeBufferToText(shaderBytes);
|
|
419
84
|
onSuccess(shaderString);
|
|
420
85
|
});
|
|
421
86
|
return true;
|
|
422
87
|
};
|
|
423
88
|
return GLTFBinaryExtension;
|
|
424
|
-
}(
|
|
89
|
+
}(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderExtension));
|
|
425
90
|
|
|
426
|
-
|
|
91
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoader.RegisterExtension(new GLTFBinaryExtension());
|
|
427
92
|
|
|
428
93
|
|
|
429
94
|
/***/ }),
|
|
@@ -436,12 +101,12 @@ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader.RegisterExtension(new GLTFBi
|
|
|
436
101
|
|
|
437
102
|
__webpack_require__.r(__webpack_exports__);
|
|
438
103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
439
|
-
/* harmony export */
|
|
440
|
-
/* harmony export */
|
|
441
|
-
/* harmony export */
|
|
104
|
+
/* harmony export */ GLTFLoader: () => (/* binding */ GLTFLoader),
|
|
105
|
+
/* harmony export */ GLTFLoaderBase: () => (/* binding */ GLTFLoaderBase),
|
|
106
|
+
/* harmony export */ GLTFLoaderExtension: () => (/* binding */ GLTFLoaderExtension)
|
|
442
107
|
/* harmony export */ });
|
|
443
108
|
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
444
|
-
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Engines/constants */ "core/
|
|
109
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Engines/constants */ "core/Misc/tools");
|
|
445
110
|
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__);
|
|
446
111
|
/* harmony import */ var _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./glTFLoaderUtils */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderUtils.js");
|
|
447
112
|
/* harmony import */ var _glTFFileLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../glTFFileLoader */ "../../../lts/loaders/dist/glTF/glTFFileLoader.js");
|
|
@@ -2272,14 +1937,14 @@ _glTFFileLoader__WEBPACK_IMPORTED_MODULE_3__.GLTFFileLoader._CreateGLTF1Loader =
|
|
|
2272
1937
|
|
|
2273
1938
|
__webpack_require__.r(__webpack_exports__);
|
|
2274
1939
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2275
|
-
/* harmony export */
|
|
2276
|
-
/* harmony export */
|
|
2277
|
-
/* harmony export */
|
|
2278
|
-
/* harmony export */
|
|
2279
|
-
/* harmony export */
|
|
2280
|
-
/* harmony export */
|
|
2281
|
-
/* harmony export */
|
|
2282
|
-
/* harmony export */
|
|
1940
|
+
/* harmony export */ EBlendingFunction: () => (/* binding */ EBlendingFunction),
|
|
1941
|
+
/* harmony export */ EComponentType: () => (/* binding */ EComponentType),
|
|
1942
|
+
/* harmony export */ ECullingType: () => (/* binding */ ECullingType),
|
|
1943
|
+
/* harmony export */ EParameterType: () => (/* binding */ EParameterType),
|
|
1944
|
+
/* harmony export */ EShaderType: () => (/* binding */ EShaderType),
|
|
1945
|
+
/* harmony export */ ETextureFilterType: () => (/* binding */ ETextureFilterType),
|
|
1946
|
+
/* harmony export */ ETextureFormat: () => (/* binding */ ETextureFormat),
|
|
1947
|
+
/* harmony export */ ETextureWrapMode: () => (/* binding */ ETextureWrapMode)
|
|
2283
1948
|
/* harmony export */ });
|
|
2284
1949
|
/**
|
|
2285
1950
|
* Enums
|
|
@@ -2388,10 +2053,10 @@ var EBlendingFunction;
|
|
|
2388
2053
|
|
|
2389
2054
|
__webpack_require__.r(__webpack_exports__);
|
|
2390
2055
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2391
|
-
/* harmony export */
|
|
2056
|
+
/* harmony export */ GLTFUtils: () => (/* binding */ GLTFUtils)
|
|
2392
2057
|
/* harmony export */ });
|
|
2393
2058
|
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
2394
|
-
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Materials/Textures/texture */ "core/
|
|
2059
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Materials/Textures/texture */ "core/Misc/tools");
|
|
2395
2060
|
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__);
|
|
2396
2061
|
|
|
2397
2062
|
|
|
@@ -2601,7 +2266,7 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2601
2266
|
*/
|
|
2602
2267
|
GLTFUtils.GetDefaultMaterial = function (scene) {
|
|
2603
2268
|
if (!GLTFUtils._DefaultMaterial) {
|
|
2604
|
-
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore
|
|
2269
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore["GLTFDefaultMaterialVertexShader"] = [
|
|
2605
2270
|
"precision highp float;",
|
|
2606
2271
|
"",
|
|
2607
2272
|
"uniform mat4 worldView;",
|
|
@@ -2614,7 +2279,7 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2614
2279
|
" gl_Position = projection * worldView * vec4(position, 1.0);",
|
|
2615
2280
|
"}",
|
|
2616
2281
|
].join("\n");
|
|
2617
|
-
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore
|
|
2282
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore["GLTFDefaultMaterialPixelShader"] = [
|
|
2618
2283
|
"precision highp float;",
|
|
2619
2284
|
"",
|
|
2620
2285
|
"uniform vec4 u_emission;",
|
|
@@ -2656,12 +2321,12 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2656
2321
|
|
|
2657
2322
|
__webpack_require__.r(__webpack_exports__);
|
|
2658
2323
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2659
|
-
/* harmony export */
|
|
2324
|
+
/* harmony export */ GLTFMaterialsCommonExtension: () => (/* binding */ GLTFMaterialsCommonExtension)
|
|
2660
2325
|
/* harmony export */ });
|
|
2661
|
-
/* harmony import */ var
|
|
2662
|
-
/* harmony import */ var
|
|
2663
|
-
/* harmony import */ var
|
|
2664
|
-
/* harmony import */ var
|
|
2326
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
2327
|
+
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
2328
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Lights/spotLight */ "core/Misc/tools");
|
|
2329
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__);
|
|
2665
2330
|
|
|
2666
2331
|
|
|
2667
2332
|
|
|
@@ -2678,7 +2343,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2678
2343
|
* @deprecated
|
|
2679
2344
|
*/
|
|
2680
2345
|
var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
2681
|
-
(0,
|
|
2346
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__extends)(GLTFMaterialsCommonExtension, _super);
|
|
2682
2347
|
function GLTFMaterialsCommonExtension() {
|
|
2683
2348
|
return _super.call(this, "KHR_materials_common") || this;
|
|
2684
2349
|
}
|
|
@@ -2697,39 +2362,39 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2697
2362
|
var light = lights[thing];
|
|
2698
2363
|
switch (light.type) {
|
|
2699
2364
|
case "ambient": {
|
|
2700
|
-
var ambientLight = new
|
|
2365
|
+
var ambientLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.HemisphericLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, 1, 0), gltfRuntime.scene);
|
|
2701
2366
|
var ambient = light.ambient;
|
|
2702
2367
|
if (ambient) {
|
|
2703
|
-
ambientLight.diffuse =
|
|
2368
|
+
ambientLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(ambient.color || [1, 1, 1]);
|
|
2704
2369
|
}
|
|
2705
2370
|
break;
|
|
2706
2371
|
}
|
|
2707
2372
|
case "point": {
|
|
2708
|
-
var pointLight = new
|
|
2373
|
+
var pointLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.PointLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(10, 10, 10), gltfRuntime.scene);
|
|
2709
2374
|
var point = light.point;
|
|
2710
2375
|
if (point) {
|
|
2711
|
-
pointLight.diffuse =
|
|
2376
|
+
pointLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(point.color || [1, 1, 1]);
|
|
2712
2377
|
}
|
|
2713
2378
|
break;
|
|
2714
2379
|
}
|
|
2715
2380
|
case "directional": {
|
|
2716
|
-
var dirLight = new
|
|
2381
|
+
var dirLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.DirectionalLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, -1, 0), gltfRuntime.scene);
|
|
2717
2382
|
var directional = light.directional;
|
|
2718
2383
|
if (directional) {
|
|
2719
|
-
dirLight.diffuse =
|
|
2384
|
+
dirLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(directional.color || [1, 1, 1]);
|
|
2720
2385
|
}
|
|
2721
2386
|
break;
|
|
2722
2387
|
}
|
|
2723
2388
|
case "spot": {
|
|
2724
2389
|
var spot = light.spot;
|
|
2725
2390
|
if (spot) {
|
|
2726
|
-
var spotLight = new
|
|
2727
|
-
spotLight.diffuse =
|
|
2391
|
+
var spotLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.SpotLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, 10, 0), new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, -1, 0), spot.fallOffAngle || Math.PI, spot.fallOffExponent || 0.0, gltfRuntime.scene);
|
|
2392
|
+
spotLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(spot.color || [1, 1, 1]);
|
|
2728
2393
|
}
|
|
2729
2394
|
break;
|
|
2730
2395
|
}
|
|
2731
2396
|
default:
|
|
2732
|
-
|
|
2397
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Tools.Warn('GLTF Material Common extension: light type "' + light.type + "” not supported");
|
|
2733
2398
|
break;
|
|
2734
2399
|
}
|
|
2735
2400
|
}
|
|
@@ -2745,8 +2410,8 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2745
2410
|
if (!extension) {
|
|
2746
2411
|
return false;
|
|
2747
2412
|
}
|
|
2748
|
-
var standardMaterial = new
|
|
2749
|
-
standardMaterial.sideOrientation =
|
|
2413
|
+
var standardMaterial = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.StandardMaterial(id, gltfRuntime.scene);
|
|
2414
|
+
standardMaterial.sideOrientation = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Material.CounterClockWiseSideOrientation;
|
|
2750
2415
|
if (extension.technique === "CONSTANT") {
|
|
2751
2416
|
standardMaterial.disableLighting = true;
|
|
2752
2417
|
}
|
|
@@ -2758,42 +2423,42 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2758
2423
|
this._loadTexture(gltfRuntime, extension.values.ambient, standardMaterial, "ambientTexture", onError);
|
|
2759
2424
|
}
|
|
2760
2425
|
else {
|
|
2761
|
-
standardMaterial.ambientColor =
|
|
2426
|
+
standardMaterial.ambientColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.ambient || [0, 0, 0]);
|
|
2762
2427
|
}
|
|
2763
2428
|
// Diffuse
|
|
2764
2429
|
if (typeof extension.values.diffuse === "string") {
|
|
2765
2430
|
this._loadTexture(gltfRuntime, extension.values.diffuse, standardMaterial, "diffuseTexture", onError);
|
|
2766
2431
|
}
|
|
2767
2432
|
else {
|
|
2768
|
-
standardMaterial.diffuseColor =
|
|
2433
|
+
standardMaterial.diffuseColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.diffuse || [0, 0, 0]);
|
|
2769
2434
|
}
|
|
2770
2435
|
// Emission
|
|
2771
2436
|
if (typeof extension.values.emission === "string") {
|
|
2772
2437
|
this._loadTexture(gltfRuntime, extension.values.emission, standardMaterial, "emissiveTexture", onError);
|
|
2773
2438
|
}
|
|
2774
2439
|
else {
|
|
2775
|
-
standardMaterial.emissiveColor =
|
|
2440
|
+
standardMaterial.emissiveColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.emission || [0, 0, 0]);
|
|
2776
2441
|
}
|
|
2777
2442
|
// Specular
|
|
2778
2443
|
if (typeof extension.values.specular === "string") {
|
|
2779
2444
|
this._loadTexture(gltfRuntime, extension.values.specular, standardMaterial, "specularTexture", onError);
|
|
2780
2445
|
}
|
|
2781
2446
|
else {
|
|
2782
|
-
standardMaterial.specularColor =
|
|
2447
|
+
standardMaterial.specularColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.specular || [0, 0, 0]);
|
|
2783
2448
|
}
|
|
2784
2449
|
return true;
|
|
2785
2450
|
};
|
|
2786
2451
|
GLTFMaterialsCommonExtension.prototype._loadTexture = function (gltfRuntime, id, material, propertyPath, onError) {
|
|
2787
2452
|
// Create buffer from texture url
|
|
2788
|
-
|
|
2453
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.LoadTextureBufferAsync(gltfRuntime, id, function (buffer) {
|
|
2789
2454
|
// Create texture from buffer
|
|
2790
|
-
|
|
2455
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.CreateTextureAsync(gltfRuntime, id, buffer, function (texture) { return (material[propertyPath] = texture); });
|
|
2791
2456
|
}, onError);
|
|
2792
2457
|
};
|
|
2793
2458
|
return GLTFMaterialsCommonExtension;
|
|
2794
|
-
}(
|
|
2459
|
+
}(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderExtension));
|
|
2795
2460
|
|
|
2796
|
-
|
|
2461
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoader.RegisterExtension(new GLTFMaterialsCommonExtension());
|
|
2797
2462
|
|
|
2798
2463
|
|
|
2799
2464
|
/***/ }),
|
|
@@ -2806,20 +2471,20 @@ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader.RegisterExtension(new GLTFMa
|
|
|
2806
2471
|
|
|
2807
2472
|
__webpack_require__.r(__webpack_exports__);
|
|
2808
2473
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2809
|
-
/* harmony export */
|
|
2810
|
-
/* harmony export */
|
|
2811
|
-
/* harmony export */
|
|
2812
|
-
/* harmony export */
|
|
2813
|
-
/* harmony export */
|
|
2814
|
-
/* harmony export */
|
|
2815
|
-
/* harmony export */
|
|
2816
|
-
/* harmony export */
|
|
2817
|
-
/* harmony export */
|
|
2818
|
-
/* harmony export */
|
|
2819
|
-
/* harmony export */
|
|
2820
|
-
/* harmony export */
|
|
2821
|
-
/* harmony export */
|
|
2822
|
-
/* harmony export */
|
|
2474
|
+
/* harmony export */ EBlendingFunction: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EBlendingFunction),
|
|
2475
|
+
/* harmony export */ EComponentType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType),
|
|
2476
|
+
/* harmony export */ ECullingType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ECullingType),
|
|
2477
|
+
/* harmony export */ EParameterType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EParameterType),
|
|
2478
|
+
/* harmony export */ EShaderType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EShaderType),
|
|
2479
|
+
/* harmony export */ ETextureFilterType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureFilterType),
|
|
2480
|
+
/* harmony export */ ETextureFormat: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureFormat),
|
|
2481
|
+
/* harmony export */ ETextureWrapMode: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureWrapMode),
|
|
2482
|
+
/* harmony export */ GLTFBinaryExtension: () => (/* reexport safe */ _glTFBinaryExtension__WEBPACK_IMPORTED_MODULE_0__.GLTFBinaryExtension),
|
|
2483
|
+
/* harmony export */ GLTFLoader: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader),
|
|
2484
|
+
/* harmony export */ GLTFLoaderBase: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoaderBase),
|
|
2485
|
+
/* harmony export */ GLTFLoaderExtension: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoaderExtension),
|
|
2486
|
+
/* harmony export */ GLTFMaterialsCommonExtension: () => (/* reexport safe */ _glTFMaterialsCommonExtension__WEBPACK_IMPORTED_MODULE_4__.GLTFMaterialsCommonExtension),
|
|
2487
|
+
/* harmony export */ GLTFUtils: () => (/* reexport safe */ _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_3__.GLTFUtils)
|
|
2823
2488
|
/* harmony export */ });
|
|
2824
2489
|
/* harmony import */ var _glTFBinaryExtension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFBinaryExtension */ "../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js");
|
|
2825
2490
|
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
@@ -2843,12 +2508,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2843
2508
|
|
|
2844
2509
|
__webpack_require__.r(__webpack_exports__);
|
|
2845
2510
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2846
|
-
/* harmony export */
|
|
2847
|
-
/* harmony export */
|
|
2848
|
-
/* harmony export */
|
|
2849
|
-
/* harmony export */
|
|
2511
|
+
/* harmony export */ GLTFFileLoader: () => (/* binding */ GLTFFileLoader),
|
|
2512
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* binding */ GLTFLoaderAnimationStartMode),
|
|
2513
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* binding */ GLTFLoaderCoordinateSystemMode),
|
|
2514
|
+
/* harmony export */ GLTFLoaderState: () => (/* binding */ GLTFLoaderState)
|
|
2850
2515
|
/* harmony export */ });
|
|
2851
|
-
/* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/error */ "core/
|
|
2516
|
+
/* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/error */ "core/Misc/tools");
|
|
2852
2517
|
/* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
|
|
2853
2518
|
/* harmony import */ var _glTFValidation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glTFValidation */ "../../../lts/loaders/dist/glTF/glTFValidation.js");
|
|
2854
2519
|
|
|
@@ -2868,6 +2533,17 @@ function readAsync(arrayBuffer, byteOffset, byteLength) {
|
|
|
2868
2533
|
return Promise.reject(e);
|
|
2869
2534
|
}
|
|
2870
2535
|
}
|
|
2536
|
+
function readViewAsync(arrayBufferView, byteOffset, byteLength) {
|
|
2537
|
+
try {
|
|
2538
|
+
if (arrayBufferView.byteOffset + byteLength > arrayBufferView.byteLength) {
|
|
2539
|
+
throw new Error("Array length out of bounds.");
|
|
2540
|
+
}
|
|
2541
|
+
return Promise.resolve(new Uint8Array(arrayBufferView.buffer, arrayBufferView.byteOffset + byteOffset, byteLength));
|
|
2542
|
+
}
|
|
2543
|
+
catch (e) {
|
|
2544
|
+
return Promise.reject(e);
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2871
2547
|
/**
|
|
2872
2548
|
* Mode that determines the coordinate system to use.
|
|
2873
2549
|
*/
|
|
@@ -3287,10 +2963,13 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3287
2963
|
/**
|
|
3288
2964
|
* @internal
|
|
3289
2965
|
*/
|
|
3290
|
-
GLTFFileLoader.prototype.loadFile = function (scene, fileOrUrl, onSuccess, onProgress, useArrayBuffer, onError) {
|
|
2966
|
+
GLTFFileLoader.prototype.loadFile = function (scene, fileOrUrl, rootUrl, onSuccess, onProgress, useArrayBuffer, onError, name) {
|
|
3291
2967
|
var _this = this;
|
|
2968
|
+
if (ArrayBuffer.isView(fileOrUrl)) {
|
|
2969
|
+
this._loadBinary(scene, fileOrUrl, rootUrl, onSuccess, onError, name);
|
|
2970
|
+
return null;
|
|
2971
|
+
}
|
|
3292
2972
|
this._progressCallback = onProgress;
|
|
3293
|
-
var rootUrl = fileOrUrl.name ? "file:" : core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Tools.GetFolderPath(fileOrUrl);
|
|
3294
2973
|
var fileName = fileOrUrl.name || core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Tools.GetFilename(fileOrUrl);
|
|
3295
2974
|
if (useArrayBuffer) {
|
|
3296
2975
|
if (this.useRangeRequests) {
|
|
@@ -3322,7 +3001,7 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3322
3001
|
return fileRequest_1;
|
|
3323
3002
|
}
|
|
3324
3003
|
return this._loadFile(scene, fileOrUrl, function (data) {
|
|
3325
|
-
_this._validate(scene, data, rootUrl, fileName);
|
|
3004
|
+
_this._validate(scene, new Uint8Array(data), rootUrl, fileName);
|
|
3326
3005
|
_this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3327
3006
|
readAsync: function (byteOffset, byteLength) { return readAsync(data, byteOffset, byteLength); },
|
|
3328
3007
|
byteLength: data.byteLength,
|
|
@@ -3332,10 +3011,22 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3332
3011
|
}, true, onError);
|
|
3333
3012
|
}
|
|
3334
3013
|
return this._loadFile(scene, fileOrUrl, function (data) {
|
|
3335
|
-
_this._validate(scene, data, rootUrl, fileName);
|
|
3014
|
+
_this._validate(scene, new Uint8Array(data), rootUrl, fileName);
|
|
3336
3015
|
onSuccess({ json: _this._parseJson(data) });
|
|
3337
3016
|
}, useArrayBuffer, onError);
|
|
3338
3017
|
};
|
|
3018
|
+
/**
|
|
3019
|
+
* @internal
|
|
3020
|
+
*/
|
|
3021
|
+
GLTFFileLoader.prototype._loadBinary = function (scene, data, rootUrl, onSuccess, onError, fileName) {
|
|
3022
|
+
this._validate(scene, data, rootUrl, fileName);
|
|
3023
|
+
this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3024
|
+
readAsync: function (byteOffset, byteLength) { return readViewAsync(data, byteOffset, byteLength); },
|
|
3025
|
+
byteLength: data.byteLength,
|
|
3026
|
+
})).then(function (loaderData) {
|
|
3027
|
+
onSuccess(loaderData);
|
|
3028
|
+
}, onError ? function (error) { return onError(undefined, error); } : undefined);
|
|
3029
|
+
};
|
|
3339
3030
|
/**
|
|
3340
3031
|
* @internal
|
|
3341
3032
|
*/
|
|
@@ -3428,7 +3119,7 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3428
3119
|
data.startsWith("application/octet-stream;base64," + GLTFFileLoader._MagicBase64Encoded) ||
|
|
3429
3120
|
data.startsWith("model/gltf-binary;base64," + GLTFFileLoader._MagicBase64Encoded)) {
|
|
3430
3121
|
var arrayBuffer_1 = (0,core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DecodeBase64UrlToBinary)(data);
|
|
3431
|
-
this._validate(scene, arrayBuffer_1);
|
|
3122
|
+
this._validate(scene, new Uint8Array(arrayBuffer_1));
|
|
3432
3123
|
return this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3433
3124
|
readAsync: function (byteOffset, byteLength) { return readAsync(arrayBuffer_1, byteOffset, byteLength); },
|
|
3434
3125
|
byteLength: arrayBuffer_1.byteLength,
|
|
@@ -3771,9 +3462,9 @@ if (core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.SceneLoader) {
|
|
|
3771
3462
|
|
|
3772
3463
|
__webpack_require__.r(__webpack_exports__);
|
|
3773
3464
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3774
|
-
/* harmony export */
|
|
3465
|
+
/* harmony export */ GLTFValidation: () => (/* binding */ GLTFValidation)
|
|
3775
3466
|
/* harmony export */ });
|
|
3776
|
-
/* harmony import */ var core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/tools */ "core/
|
|
3467
|
+
/* harmony import */ var core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/tools */ "core/Misc/tools");
|
|
3777
3468
|
/* harmony import */ var core_Misc_tools__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__);
|
|
3778
3469
|
|
|
3779
3470
|
function validateAsync(data, rootUrl, fileName, getExternalResource) {
|
|
@@ -3838,6 +3529,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3838
3529
|
*/
|
|
3839
3530
|
GLTFValidation.ValidateAsync = function (data, rootUrl, fileName, getExternalResource) {
|
|
3840
3531
|
var _this = this;
|
|
3532
|
+
var dataCopy = ArrayBuffer.isView(data) ? data.slice().buffer : data;
|
|
3841
3533
|
if (typeof Worker === "function") {
|
|
3842
3534
|
return new Promise(function (resolve, reject) {
|
|
3843
3535
|
var workerContent = "".concat(validateAsync, "(").concat(workerFunc, ")()");
|
|
@@ -3877,7 +3569,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3877
3569
|
worker.addEventListener("error", onError);
|
|
3878
3570
|
worker.addEventListener("message", onMessage);
|
|
3879
3571
|
worker.postMessage({ id: "init", url: _this.Configuration.url });
|
|
3880
|
-
worker.postMessage({ id: "validate", data:
|
|
3572
|
+
worker.postMessage({ id: "validate", data: dataCopy, rootUrl: rootUrl, fileName: fileName });
|
|
3881
3573
|
});
|
|
3882
3574
|
}
|
|
3883
3575
|
else {
|
|
@@ -3885,7 +3577,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3885
3577
|
this._LoadScriptPromise = core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__.Tools.LoadScriptAsync(this.Configuration.url);
|
|
3886
3578
|
}
|
|
3887
3579
|
return this._LoadScriptPromise.then(function () {
|
|
3888
|
-
return validateAsync(
|
|
3580
|
+
return validateAsync(dataCopy, rootUrl, fileName, getExternalResource);
|
|
3889
3581
|
});
|
|
3890
3582
|
}
|
|
3891
3583
|
};
|
|
@@ -3910,11 +3602,11 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3910
3602
|
|
|
3911
3603
|
__webpack_require__.r(__webpack_exports__);
|
|
3912
3604
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3913
|
-
/* harmony export */
|
|
3914
|
-
/* harmony export */
|
|
3915
|
-
/* harmony export */
|
|
3916
|
-
/* harmony export */
|
|
3917
|
-
/* harmony export */
|
|
3605
|
+
/* harmony export */ GLTFFileLoader: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFFileLoader),
|
|
3606
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderAnimationStartMode),
|
|
3607
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderCoordinateSystemMode),
|
|
3608
|
+
/* harmony export */ GLTFLoaderState: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderState),
|
|
3609
|
+
/* harmony export */ GLTFValidation: () => (/* reexport safe */ _glTF_glTFValidation__WEBPACK_IMPORTED_MODULE_1__.GLTFValidation)
|
|
3918
3610
|
/* harmony export */ });
|
|
3919
3611
|
/* harmony import */ var _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../glTF/glTFFileLoader */ "../../../lts/loaders/dist/glTF/glTFFileLoader.js");
|
|
3920
3612
|
/* harmony import */ var _glTF_glTFValidation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../glTF/glTFValidation */ "../../../lts/loaders/dist/glTF/glTFValidation.js");
|
|
@@ -3948,7 +3640,7 @@ if (typeof globalObject !== "undefined") {
|
|
|
3948
3640
|
|
|
3949
3641
|
__webpack_require__.r(__webpack_exports__);
|
|
3950
3642
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3951
|
-
/* harmony export */
|
|
3643
|
+
/* harmony export */ GLTF1: () => (/* reexport module object */ _glTF_1_0_index__WEBPACK_IMPORTED_MODULE_0__)
|
|
3952
3644
|
/* harmony export */ });
|
|
3953
3645
|
/* harmony import */ var _glTF_1_0_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../glTF/1.0/index */ "../../../lts/loaders/dist/glTF/1.0/index.js");
|
|
3954
3646
|
/* eslint-disable import/no-internal-modules */
|
|
@@ -3978,12 +3670,12 @@ if (typeof globalObject !== "undefined") {
|
|
|
3978
3670
|
|
|
3979
3671
|
__webpack_require__.r(__webpack_exports__);
|
|
3980
3672
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3981
|
-
/* harmony export */
|
|
3982
|
-
/* harmony export */
|
|
3983
|
-
/* harmony export */
|
|
3984
|
-
/* harmony export */
|
|
3985
|
-
/* harmony export */
|
|
3986
|
-
/* harmony export */
|
|
3673
|
+
/* harmony export */ GLTF1: () => (/* reexport safe */ _legacy_glTF1__WEBPACK_IMPORTED_MODULE_1__.GLTF1),
|
|
3674
|
+
/* harmony export */ GLTFFileLoader: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFFileLoader),
|
|
3675
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderAnimationStartMode),
|
|
3676
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderCoordinateSystemMode),
|
|
3677
|
+
/* harmony export */ GLTFLoaderState: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderState),
|
|
3678
|
+
/* harmony export */ GLTFValidation: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFValidation)
|
|
3987
3679
|
/* harmony export */ });
|
|
3988
3680
|
/* harmony import */ var _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./legacy-glTF */ "../../../lts/loaders/dist/legacy/legacy-glTF.js");
|
|
3989
3681
|
/* harmony import */ var _legacy_glTF1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./legacy-glTF1 */ "../../../lts/loaders/dist/legacy/legacy-glTF1.js");
|
|
@@ -3994,13 +3686,377 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3994
3686
|
|
|
3995
3687
|
/***/ }),
|
|
3996
3688
|
|
|
3997
|
-
/***/ "core/
|
|
3689
|
+
/***/ "core/Misc/tools":
|
|
3998
3690
|
/*!****************************************************************************************************!*\
|
|
3999
3691
|
!*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
|
|
4000
3692
|
\****************************************************************************************************/
|
|
4001
3693
|
/***/ ((module) => {
|
|
4002
3694
|
|
|
4003
|
-
module.exports =
|
|
3695
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_tools__;
|
|
3696
|
+
|
|
3697
|
+
/***/ }),
|
|
3698
|
+
|
|
3699
|
+
/***/ "../../../../node_modules/tslib/tslib.es6.mjs":
|
|
3700
|
+
/*!****************************************************!*\
|
|
3701
|
+
!*** ../../../../node_modules/tslib/tslib.es6.mjs ***!
|
|
3702
|
+
\****************************************************/
|
|
3703
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3704
|
+
|
|
3705
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3706
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3707
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
3708
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
3709
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
3710
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
3711
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
3712
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
3713
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
3714
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
3715
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
3716
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
3717
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
3718
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
3719
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
3720
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
3721
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
3722
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
3723
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
3724
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
3725
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
3726
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
3727
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
3728
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
3729
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
3730
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
3731
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
3732
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
3733
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
3734
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
3735
|
+
/* harmony export */ __values: () => (/* binding */ __values),
|
|
3736
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3737
|
+
/* harmony export */ });
|
|
3738
|
+
/******************************************************************************
|
|
3739
|
+
Copyright (c) Microsoft Corporation.
|
|
3740
|
+
|
|
3741
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3742
|
+
purpose with or without fee is hereby granted.
|
|
3743
|
+
|
|
3744
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3745
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3746
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3747
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3748
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3749
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3750
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3751
|
+
***************************************************************************** */
|
|
3752
|
+
/* global Reflect, Promise */
|
|
3753
|
+
|
|
3754
|
+
var extendStatics = function(d, b) {
|
|
3755
|
+
extendStatics = Object.setPrototypeOf ||
|
|
3756
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3757
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
3758
|
+
return extendStatics(d, b);
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3761
|
+
function __extends(d, b) {
|
|
3762
|
+
if (typeof b !== "function" && b !== null)
|
|
3763
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
3764
|
+
extendStatics(d, b);
|
|
3765
|
+
function __() { this.constructor = d; }
|
|
3766
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
var __assign = function() {
|
|
3770
|
+
__assign = Object.assign || function __assign(t) {
|
|
3771
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3772
|
+
s = arguments[i];
|
|
3773
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3774
|
+
}
|
|
3775
|
+
return t;
|
|
3776
|
+
}
|
|
3777
|
+
return __assign.apply(this, arguments);
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
function __rest(s, e) {
|
|
3781
|
+
var t = {};
|
|
3782
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3783
|
+
t[p] = s[p];
|
|
3784
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3785
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3786
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3787
|
+
t[p[i]] = s[p[i]];
|
|
3788
|
+
}
|
|
3789
|
+
return t;
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
function __decorate(decorators, target, key, desc) {
|
|
3793
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3794
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3795
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3796
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
function __param(paramIndex, decorator) {
|
|
3800
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3804
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3805
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
3806
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
3807
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
3808
|
+
var _, done = false;
|
|
3809
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
3810
|
+
var context = {};
|
|
3811
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
3812
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
3813
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
3814
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
3815
|
+
if (kind === "accessor") {
|
|
3816
|
+
if (result === void 0) continue;
|
|
3817
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
3818
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
3819
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
3820
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
3821
|
+
}
|
|
3822
|
+
else if (_ = accept(result)) {
|
|
3823
|
+
if (kind === "field") initializers.unshift(_);
|
|
3824
|
+
else descriptor[key] = _;
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3828
|
+
done = true;
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
3832
|
+
var useValue = arguments.length > 2;
|
|
3833
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
3834
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3835
|
+
}
|
|
3836
|
+
return useValue ? value : void 0;
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3839
|
+
function __propKey(x) {
|
|
3840
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
function __setFunctionName(f, name, prefix) {
|
|
3844
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
3845
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
function __metadata(metadataKey, metadataValue) {
|
|
3849
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3853
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3854
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3855
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3856
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3857
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3858
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3859
|
+
});
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
function __generator(thisArg, body) {
|
|
3863
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3864
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3865
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3866
|
+
function step(op) {
|
|
3867
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
3868
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
3869
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
3870
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3871
|
+
switch (op[0]) {
|
|
3872
|
+
case 0: case 1: t = op; break;
|
|
3873
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
3874
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
3875
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
3876
|
+
default:
|
|
3877
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
3878
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
3879
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
3880
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
3881
|
+
if (t[2]) _.ops.pop();
|
|
3882
|
+
_.trys.pop(); continue;
|
|
3883
|
+
}
|
|
3884
|
+
op = body.call(thisArg, _);
|
|
3885
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
3886
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
3887
|
+
}
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
3891
|
+
if (k2 === undefined) k2 = k;
|
|
3892
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3893
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3894
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3895
|
+
}
|
|
3896
|
+
Object.defineProperty(o, k2, desc);
|
|
3897
|
+
}) : (function(o, m, k, k2) {
|
|
3898
|
+
if (k2 === undefined) k2 = k;
|
|
3899
|
+
o[k2] = m[k];
|
|
3900
|
+
});
|
|
3901
|
+
|
|
3902
|
+
function __exportStar(m, o) {
|
|
3903
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
function __values(o) {
|
|
3907
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3908
|
+
if (m) return m.call(o);
|
|
3909
|
+
if (o && typeof o.length === "number") return {
|
|
3910
|
+
next: function () {
|
|
3911
|
+
if (o && i >= o.length) o = void 0;
|
|
3912
|
+
return { value: o && o[i++], done: !o };
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3916
|
+
}
|
|
3917
|
+
|
|
3918
|
+
function __read(o, n) {
|
|
3919
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3920
|
+
if (!m) return o;
|
|
3921
|
+
var i = m.call(o), r, ar = [], e;
|
|
3922
|
+
try {
|
|
3923
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3924
|
+
}
|
|
3925
|
+
catch (error) { e = { error: error }; }
|
|
3926
|
+
finally {
|
|
3927
|
+
try {
|
|
3928
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3929
|
+
}
|
|
3930
|
+
finally { if (e) throw e.error; }
|
|
3931
|
+
}
|
|
3932
|
+
return ar;
|
|
3933
|
+
}
|
|
3934
|
+
|
|
3935
|
+
/** @deprecated */
|
|
3936
|
+
function __spread() {
|
|
3937
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
3938
|
+
ar = ar.concat(__read(arguments[i]));
|
|
3939
|
+
return ar;
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
/** @deprecated */
|
|
3943
|
+
function __spreadArrays() {
|
|
3944
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
3945
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3946
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3947
|
+
r[k] = a[j];
|
|
3948
|
+
return r;
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
function __spreadArray(to, from, pack) {
|
|
3952
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3953
|
+
if (ar || !(i in from)) {
|
|
3954
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
3955
|
+
ar[i] = from[i];
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
function __await(v) {
|
|
3962
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
3966
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3967
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
3968
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
3969
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
3970
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
3971
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
3972
|
+
function fulfill(value) { resume("next", value); }
|
|
3973
|
+
function reject(value) { resume("throw", value); }
|
|
3974
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
function __asyncDelegator(o) {
|
|
3978
|
+
var i, p;
|
|
3979
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
3980
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
function __asyncValues(o) {
|
|
3984
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3985
|
+
var m = o[Symbol.asyncIterator], i;
|
|
3986
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
3987
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
3988
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
function __makeTemplateObject(cooked, raw) {
|
|
3992
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3993
|
+
return cooked;
|
|
3994
|
+
};
|
|
3995
|
+
|
|
3996
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
3997
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3998
|
+
}) : function(o, v) {
|
|
3999
|
+
o["default"] = v;
|
|
4000
|
+
};
|
|
4001
|
+
|
|
4002
|
+
function __importStar(mod) {
|
|
4003
|
+
if (mod && mod.__esModule) return mod;
|
|
4004
|
+
var result = {};
|
|
4005
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
4006
|
+
__setModuleDefault(result, mod);
|
|
4007
|
+
return result;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
function __importDefault(mod) {
|
|
4011
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
4015
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4016
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4017
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
4021
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4022
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4023
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4024
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
4028
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
4029
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
4033
|
+
__extends,
|
|
4034
|
+
__assign,
|
|
4035
|
+
__rest,
|
|
4036
|
+
__decorate,
|
|
4037
|
+
__param,
|
|
4038
|
+
__metadata,
|
|
4039
|
+
__awaiter,
|
|
4040
|
+
__generator,
|
|
4041
|
+
__createBinding,
|
|
4042
|
+
__exportStar,
|
|
4043
|
+
__values,
|
|
4044
|
+
__read,
|
|
4045
|
+
__spread,
|
|
4046
|
+
__spreadArrays,
|
|
4047
|
+
__spreadArray,
|
|
4048
|
+
__await,
|
|
4049
|
+
__asyncGenerator,
|
|
4050
|
+
__asyncDelegator,
|
|
4051
|
+
__asyncValues,
|
|
4052
|
+
__makeTemplateObject,
|
|
4053
|
+
__importStar,
|
|
4054
|
+
__importDefault,
|
|
4055
|
+
__classPrivateFieldGet,
|
|
4056
|
+
__classPrivateFieldSet,
|
|
4057
|
+
__classPrivateFieldIn,
|
|
4058
|
+
});
|
|
4059
|
+
|
|
4004
4060
|
|
|
4005
4061
|
/***/ })
|
|
4006
4062
|
|
|
@@ -4093,7 +4149,7 @@ var __webpack_exports__ = {};
|
|
|
4093
4149
|
__webpack_require__.r(__webpack_exports__);
|
|
4094
4150
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4095
4151
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
4096
|
-
/* harmony export */
|
|
4152
|
+
/* harmony export */ loaders: () => (/* reexport module object */ loaders_legacy_legacy_glTF1FileLoader__WEBPACK_IMPORTED_MODULE_0__)
|
|
4097
4153
|
/* harmony export */ });
|
|
4098
4154
|
/* harmony import */ var loaders_legacy_legacy_glTF1FileLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! loaders/legacy/legacy-glTF1FileLoader */ "../../../lts/loaders/dist/legacy/legacy-glTF1FileLoader.js");
|
|
4099
4155
|
// eslint-disable-next-line import/export
|