@antv/g-webgpu 1.1.7 → 1.1.8-alpha.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/dist/index.umd.js CHANGED
@@ -4,6 +4,387 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.G = global.G || {}, global.G.WebGPU = {}), global.window.G, global.window.G.ManaSyringe));
5
5
  }(this, (function (exports, g, manaSyringe) { 'use strict';
6
6
 
7
+ function _regeneratorRuntime() {
8
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
9
+
10
+ _regeneratorRuntime = function () {
11
+ return exports;
12
+ };
13
+
14
+ var exports = {},
15
+ Op = Object.prototype,
16
+ hasOwn = Op.hasOwnProperty,
17
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
18
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
19
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
20
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
21
+
22
+ function define(obj, key, value) {
23
+ return Object.defineProperty(obj, key, {
24
+ value: value,
25
+ enumerable: !0,
26
+ configurable: !0,
27
+ writable: !0
28
+ }), obj[key];
29
+ }
30
+
31
+ try {
32
+ define({}, "");
33
+ } catch (err) {
34
+ define = function (obj, key, value) {
35
+ return obj[key] = value;
36
+ };
37
+ }
38
+
39
+ function wrap(innerFn, outerFn, self, tryLocsList) {
40
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
41
+ generator = Object.create(protoGenerator.prototype),
42
+ context = new Context(tryLocsList || []);
43
+ return generator._invoke = function (innerFn, self, context) {
44
+ var state = "suspendedStart";
45
+ return function (method, arg) {
46
+ if ("executing" === state) throw new Error("Generator is already running");
47
+
48
+ if ("completed" === state) {
49
+ if ("throw" === method) throw arg;
50
+ return doneResult();
51
+ }
52
+
53
+ for (context.method = method, context.arg = arg;;) {
54
+ var delegate = context.delegate;
55
+
56
+ if (delegate) {
57
+ var delegateResult = maybeInvokeDelegate(delegate, context);
58
+
59
+ if (delegateResult) {
60
+ if (delegateResult === ContinueSentinel) continue;
61
+ return delegateResult;
62
+ }
63
+ }
64
+
65
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
66
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
67
+ context.dispatchException(context.arg);
68
+ } else "return" === context.method && context.abrupt("return", context.arg);
69
+ state = "executing";
70
+ var record = tryCatch(innerFn, self, context);
71
+
72
+ if ("normal" === record.type) {
73
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
74
+ return {
75
+ value: record.arg,
76
+ done: context.done
77
+ };
78
+ }
79
+
80
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
81
+ }
82
+ };
83
+ }(innerFn, self, context), generator;
84
+ }
85
+
86
+ function tryCatch(fn, obj, arg) {
87
+ try {
88
+ return {
89
+ type: "normal",
90
+ arg: fn.call(obj, arg)
91
+ };
92
+ } catch (err) {
93
+ return {
94
+ type: "throw",
95
+ arg: err
96
+ };
97
+ }
98
+ }
99
+
100
+ exports.wrap = wrap;
101
+ var ContinueSentinel = {};
102
+
103
+ function Generator() {}
104
+
105
+ function GeneratorFunction() {}
106
+
107
+ function GeneratorFunctionPrototype() {}
108
+
109
+ var IteratorPrototype = {};
110
+ define(IteratorPrototype, iteratorSymbol, function () {
111
+ return this;
112
+ });
113
+ var getProto = Object.getPrototypeOf,
114
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
115
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
116
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
117
+
118
+ function defineIteratorMethods(prototype) {
119
+ ["next", "throw", "return"].forEach(function (method) {
120
+ define(prototype, method, function (arg) {
121
+ return this._invoke(method, arg);
122
+ });
123
+ });
124
+ }
125
+
126
+ function AsyncIterator(generator, PromiseImpl) {
127
+ function invoke(method, arg, resolve, reject) {
128
+ var record = tryCatch(generator[method], generator, arg);
129
+
130
+ if ("throw" !== record.type) {
131
+ var result = record.arg,
132
+ value = result.value;
133
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
134
+ invoke("next", value, resolve, reject);
135
+ }, function (err) {
136
+ invoke("throw", err, resolve, reject);
137
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
138
+ result.value = unwrapped, resolve(result);
139
+ }, function (error) {
140
+ return invoke("throw", error, resolve, reject);
141
+ });
142
+ }
143
+
144
+ reject(record.arg);
145
+ }
146
+
147
+ var previousPromise;
148
+
149
+ this._invoke = function (method, arg) {
150
+ function callInvokeWithMethodAndArg() {
151
+ return new PromiseImpl(function (resolve, reject) {
152
+ invoke(method, arg, resolve, reject);
153
+ });
154
+ }
155
+
156
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
157
+ };
158
+ }
159
+
160
+ function maybeInvokeDelegate(delegate, context) {
161
+ var method = delegate.iterator[context.method];
162
+
163
+ if (undefined === method) {
164
+ if (context.delegate = null, "throw" === context.method) {
165
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
166
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
167
+ }
168
+
169
+ return ContinueSentinel;
170
+ }
171
+
172
+ var record = tryCatch(method, delegate.iterator, context.arg);
173
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
174
+ var info = record.arg;
175
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
176
+ }
177
+
178
+ function pushTryEntry(locs) {
179
+ var entry = {
180
+ tryLoc: locs[0]
181
+ };
182
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
183
+ }
184
+
185
+ function resetTryEntry(entry) {
186
+ var record = entry.completion || {};
187
+ record.type = "normal", delete record.arg, entry.completion = record;
188
+ }
189
+
190
+ function Context(tryLocsList) {
191
+ this.tryEntries = [{
192
+ tryLoc: "root"
193
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
194
+ }
195
+
196
+ function values(iterable) {
197
+ if (iterable) {
198
+ var iteratorMethod = iterable[iteratorSymbol];
199
+ if (iteratorMethod) return iteratorMethod.call(iterable);
200
+ if ("function" == typeof iterable.next) return iterable;
201
+
202
+ if (!isNaN(iterable.length)) {
203
+ var i = -1,
204
+ next = function next() {
205
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
206
+
207
+ return next.value = undefined, next.done = !0, next;
208
+ };
209
+
210
+ return next.next = next;
211
+ }
212
+ }
213
+
214
+ return {
215
+ next: doneResult
216
+ };
217
+ }
218
+
219
+ function doneResult() {
220
+ return {
221
+ value: undefined,
222
+ done: !0
223
+ };
224
+ }
225
+
226
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
227
+ var ctor = "function" == typeof genFun && genFun.constructor;
228
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
229
+ }, exports.mark = function (genFun) {
230
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
231
+ }, exports.awrap = function (arg) {
232
+ return {
233
+ __await: arg
234
+ };
235
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
236
+ return this;
237
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
238
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
239
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
240
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
241
+ return result.done ? result.value : iter.next();
242
+ });
243
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
244
+ return this;
245
+ }), define(Gp, "toString", function () {
246
+ return "[object Generator]";
247
+ }), exports.keys = function (object) {
248
+ var keys = [];
249
+
250
+ for (var key in object) keys.push(key);
251
+
252
+ return keys.reverse(), function next() {
253
+ for (; keys.length;) {
254
+ var key = keys.pop();
255
+ if (key in object) return next.value = key, next.done = !1, next;
256
+ }
257
+
258
+ return next.done = !0, next;
259
+ };
260
+ }, exports.values = values, Context.prototype = {
261
+ constructor: Context,
262
+ reset: function (skipTempReset) {
263
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
264
+ },
265
+ stop: function () {
266
+ this.done = !0;
267
+ var rootRecord = this.tryEntries[0].completion;
268
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
269
+ return this.rval;
270
+ },
271
+ dispatchException: function (exception) {
272
+ if (this.done) throw exception;
273
+ var context = this;
274
+
275
+ function handle(loc, caught) {
276
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
277
+ }
278
+
279
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
280
+ var entry = this.tryEntries[i],
281
+ record = entry.completion;
282
+ if ("root" === entry.tryLoc) return handle("end");
283
+
284
+ if (entry.tryLoc <= this.prev) {
285
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
286
+ hasFinally = hasOwn.call(entry, "finallyLoc");
287
+
288
+ if (hasCatch && hasFinally) {
289
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
290
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
291
+ } else if (hasCatch) {
292
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
293
+ } else {
294
+ if (!hasFinally) throw new Error("try statement without catch or finally");
295
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
296
+ }
297
+ }
298
+ }
299
+ },
300
+ abrupt: function (type, arg) {
301
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
302
+ var entry = this.tryEntries[i];
303
+
304
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
305
+ var finallyEntry = entry;
306
+ break;
307
+ }
308
+ }
309
+
310
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
311
+ var record = finallyEntry ? finallyEntry.completion : {};
312
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
313
+ },
314
+ complete: function (record, afterLoc) {
315
+ if ("throw" === record.type) throw record.arg;
316
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
317
+ },
318
+ finish: function (finallyLoc) {
319
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
320
+ var entry = this.tryEntries[i];
321
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
322
+ }
323
+ },
324
+ catch: function (tryLoc) {
325
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
326
+ var entry = this.tryEntries[i];
327
+
328
+ if (entry.tryLoc === tryLoc) {
329
+ var record = entry.completion;
330
+
331
+ if ("throw" === record.type) {
332
+ var thrown = record.arg;
333
+ resetTryEntry(entry);
334
+ }
335
+
336
+ return thrown;
337
+ }
338
+ }
339
+
340
+ throw new Error("illegal catch attempt");
341
+ },
342
+ delegateYield: function (iterable, resultName, nextLoc) {
343
+ return this.delegate = {
344
+ iterator: values(iterable),
345
+ resultName: resultName,
346
+ nextLoc: nextLoc
347
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
348
+ }
349
+ }, exports;
350
+ }
351
+
352
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
353
+ try {
354
+ var info = gen[key](arg);
355
+ var value = info.value;
356
+ } catch (error) {
357
+ reject(error);
358
+ return;
359
+ }
360
+
361
+ if (info.done) {
362
+ resolve(value);
363
+ } else {
364
+ Promise.resolve(value).then(_next, _throw);
365
+ }
366
+ }
367
+
368
+ function _asyncToGenerator(fn) {
369
+ return function () {
370
+ var self = this,
371
+ args = arguments;
372
+ return new Promise(function (resolve, reject) {
373
+ var gen = fn.apply(self, args);
374
+
375
+ function _next(value) {
376
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
377
+ }
378
+
379
+ function _throw(err) {
380
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
381
+ }
382
+
383
+ _next(undefined);
384
+ });
385
+ };
386
+ }
387
+
7
388
  function _inheritsLoose(subClass, superClass) {
8
389
  subClass.prototype = Object.create(superClass.prototype);
9
390
  subClass.prototype.constructor = subClass;
@@ -46,9 +427,9 @@
46
427
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
47
428
  }
48
429
 
49
- function _regeneratorRuntime() {
430
+ function _regeneratorRuntime$1() {
50
431
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
51
- _regeneratorRuntime = function _regeneratorRuntime() {
432
+ _regeneratorRuntime$1 = function _regeneratorRuntime() {
52
433
  return exports;
53
434
  };
54
435
 
@@ -396,7 +777,7 @@
396
777
  }, exports;
397
778
  }
398
779
 
399
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
780
+ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
400
781
  try {
401
782
  var info = gen[key](arg);
402
783
  var value = info.value;
@@ -412,7 +793,7 @@
412
793
  }
413
794
  }
414
795
 
415
- function _asyncToGenerator(fn) {
796
+ function _asyncToGenerator$1(fn) {
416
797
  return function () {
417
798
  var self = this,
418
799
  args = arguments;
@@ -420,11 +801,11 @@
420
801
  var gen = fn.apply(self, args);
421
802
 
422
803
  function _next(value) {
423
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
804
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
424
805
  }
425
806
 
426
807
  function _throw(err) {
427
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
808
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
428
809
  }
429
810
 
430
811
  _next(undefined);
@@ -525,9 +906,9 @@
525
906
  globalThis.removeEventListener('mouseup', onPointerUp, true);
526
907
  };
527
908
 
528
- renderingService.hooks.init.tapPromise(DOMInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
909
+ renderingService.hooks.init.tapPromise(DOMInteractionPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee() {
529
910
  var $el;
530
- return _regeneratorRuntime().wrap(function _callee$(_context) {
911
+ return _regeneratorRuntime$1().wrap(function _callee$(_context) {
531
912
  while (1) {
532
913
  switch (_context.prev = _context.next) {
533
914
  case 0:
@@ -2603,9 +2984,9 @@
2603
2984
 
2604
2985
  PickingIdGenerator = __decorate([manaSyringe.singleton()], PickingIdGenerator);
2605
2986
 
2606
- function _regeneratorRuntime$1() {
2987
+ function _regeneratorRuntime$2() {
2607
2988
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2608
- _regeneratorRuntime$1 = function _regeneratorRuntime() {
2989
+ _regeneratorRuntime$2 = function _regeneratorRuntime() {
2609
2990
  return exports;
2610
2991
  };
2611
2992
 
@@ -2953,7 +3334,7 @@
2953
3334
  }, exports;
2954
3335
  }
2955
3336
 
2956
- function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
3337
+ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
2957
3338
  try {
2958
3339
  var info = gen[key](arg);
2959
3340
  var value = info.value;
@@ -2969,7 +3350,7 @@
2969
3350
  }
2970
3351
  }
2971
3352
 
2972
- function _asyncToGenerator$1(fn) {
3353
+ function _asyncToGenerator$2(fn) {
2973
3354
  return function () {
2974
3355
  var self = this,
2975
3356
  args = arguments;
@@ -2977,11 +3358,11 @@
2977
3358
  var gen = fn.apply(self, args);
2978
3359
 
2979
3360
  function _next(value) {
2980
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
3361
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
2981
3362
  }
2982
3363
 
2983
3364
  function _throw(err) {
2984
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
3365
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
2985
3366
  }
2986
3367
 
2987
3368
  _next(undefined);
@@ -5596,10 +5977,10 @@
5596
5977
  return acc;
5597
5978
  };
5598
5979
 
5599
- _proto.values = /*#__PURE__*/_regeneratorRuntime$1().mark(function values() {
5980
+ _proto.values = /*#__PURE__*/_regeneratorRuntime$2().mark(function values() {
5600
5981
  var _iterator2, _step2, bucket, j;
5601
5982
 
5602
- return _regeneratorRuntime$1().wrap(function values$(_context) {
5983
+ return _regeneratorRuntime$2().wrap(function values$(_context) {
5603
5984
  while (1) {
5604
5985
  switch (_context.prev = _context.next) {
5605
5986
  case 0:
@@ -13378,10 +13759,10 @@
13378
13759
  _this.batchManager.changeRenderOrder(object, renderOrder);
13379
13760
  };
13380
13761
 
13381
- renderingService.hooks.init.tapPromise(RenderGraphPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee() {
13762
+ renderingService.hooks.init.tapPromise(RenderGraphPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee() {
13382
13763
  var $canvas, _this$canvasConfig, width, height;
13383
13764
 
13384
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
13765
+ return _regeneratorRuntime$2().wrap(function _callee$(_context) {
13385
13766
  while (1) {
13386
13767
  switch (_context.prev = _context.next) {
13387
13768
  case 0:
@@ -13627,8 +14008,8 @@
13627
14008
  }
13628
14009
  };
13629
14010
 
13630
- renderingService.hooks.init.tapPromise(PickingPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee() {
13631
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
14011
+ renderingService.hooks.init.tapPromise(PickingPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee() {
14012
+ return _regeneratorRuntime$2().wrap(function _callee$(_context) {
13632
14013
  while (1) {
13633
14014
  switch (_context.prev = _context.next) {
13634
14015
  case 0:
@@ -13645,9 +14026,9 @@
13645
14026
  _this.renderingContext.root.removeEventListener(g.ElementEvent.MOUNTED, handleMounted);
13646
14027
  });
13647
14028
  renderingService.hooks.pick.tapPromise(PickingPlugin_1.tag, /*#__PURE__*/function () {
13648
- var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee2(result) {
14029
+ var _ref2 = _asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee2(result) {
13649
14030
  var topmost, position, x, y, dpr, width, height, xInDevicePixel, yInDevicePixel, pickedDisplayObjects;
13650
- return _regeneratorRuntime$1().wrap(function _callee2$(_context2) {
14031
+ return _regeneratorRuntime$2().wrap(function _callee2$(_context2) {
13651
14032
  while (1) {
13652
14033
  switch (_context2.prev = _context2.next) {
13653
14034
  case 0:
@@ -13692,9 +14073,9 @@
13692
14073
  };
13693
14074
 
13694
14075
  _proto.pickByRectangleInDepth = /*#__PURE__*/function () {
13695
- var _pickByRectangleInDepth = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee3(rect, depth) {
14076
+ var _pickByRectangleInDepth = _asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee3(rect, depth) {
13696
14077
  var picked, counter, targets;
13697
- return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
14078
+ return _regeneratorRuntime$2().wrap(function _callee3$(_context3) {
13698
14079
  while (1) {
13699
14080
  switch (_context3.prev = _context3.next) {
13700
14081
  case 0:
@@ -14478,9 +14859,9 @@
14478
14859
  vertexAttributeDescriptorEquals: vertexAttributeDescriptorEquals
14479
14860
  });
14480
14861
 
14481
- function _regeneratorRuntime$2() {
14862
+ function _regeneratorRuntime$3() {
14482
14863
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14483
- _regeneratorRuntime$2 = function _regeneratorRuntime() {
14864
+ _regeneratorRuntime$3 = function _regeneratorRuntime() {
14484
14865
  return exports;
14485
14866
  };
14486
14867
 
@@ -14828,7 +15209,7 @@
14828
15209
  }, exports;
14829
15210
  }
14830
15211
 
14831
- function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
15212
+ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
14832
15213
  try {
14833
15214
  var info = gen[key](arg);
14834
15215
  var value = info.value;
@@ -14844,7 +15225,7 @@
14844
15225
  }
14845
15226
  }
14846
15227
 
14847
- function _asyncToGenerator$2(fn) {
15228
+ function _asyncToGenerator$3(fn) {
14848
15229
  return function () {
14849
15230
  var self = this,
14850
15231
  args = arguments;
@@ -14852,11 +15233,11 @@
14852
15233
  var gen = fn.apply(self, args);
14853
15234
 
14854
15235
  function _next(value) {
14855
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
15236
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
14856
15237
  }
14857
15238
 
14858
15239
  function _throw(err) {
14859
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
15240
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
14860
15241
  }
14861
15242
 
14862
15243
  _next(undefined);
@@ -17238,9 +17619,9 @@
17238
17619
  }
17239
17620
 
17240
17621
  function _load() {
17241
- _load = _asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee(module, imports) {
17622
+ _load = _asyncToGenerator$3( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee(module, imports) {
17242
17623
  var bytes, instance;
17243
- return _regeneratorRuntime$2().wrap(function _callee$(_context) {
17624
+ return _regeneratorRuntime$3().wrap(function _callee$(_context) {
17244
17625
  while (1) {
17245
17626
  switch (_context.prev = _context.next) {
17246
17627
  case 0:
@@ -17324,10 +17705,10 @@
17324
17705
  }
17325
17706
 
17326
17707
  function _init() {
17327
- _init = _asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee2(input) {
17708
+ _init = _asyncToGenerator$3( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee2(input) {
17328
17709
  var imports, _yield$load, instance, module;
17329
17710
 
17330
- return _regeneratorRuntime$2().wrap(function _callee2$(_context2) {
17711
+ return _regeneratorRuntime$3().wrap(function _callee2$(_context2) {
17331
17712
  while (1) {
17332
17713
  switch (_context2.prev = _context2.next) {
17333
17714
  case 0:
@@ -17395,9 +17776,9 @@
17395
17776
  var _proto = WebGPUDeviceContribution.prototype;
17396
17777
 
17397
17778
  _proto.createSwapChain = /*#__PURE__*/function () {
17398
- var _createSwapChain = _asyncToGenerator$2( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee($canvas) {
17779
+ var _createSwapChain = _asyncToGenerator$3( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee($canvas) {
17399
17780
  var adapter, optionalFeatures, requiredFeatures, device, context;
17400
- return _regeneratorRuntime$2().wrap(function _callee$(_context) {
17781
+ return _regeneratorRuntime$3().wrap(function _callee$(_context) {
17401
17782
  while (1) {
17402
17783
  switch (_context.prev = _context.next) {
17403
17784
  case 0:
@@ -17539,9 +17920,9 @@
17539
17920
  Plugin: Plugin$2
17540
17921
  });
17541
17922
 
17542
- function _regeneratorRuntime$3() {
17923
+ function _regeneratorRuntime$4() {
17543
17924
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
17544
- _regeneratorRuntime$3 = function _regeneratorRuntime() {
17925
+ _regeneratorRuntime$4 = function _regeneratorRuntime() {
17545
17926
  return exports;
17546
17927
  };
17547
17928
 
@@ -17889,7 +18270,7 @@
17889
18270
  }, exports;
17890
18271
  }
17891
18272
 
17892
- function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
18273
+ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
17893
18274
  try {
17894
18275
  var info = gen[key](arg);
17895
18276
  var value = info.value;
@@ -17905,7 +18286,7 @@
17905
18286
  }
17906
18287
  }
17907
18288
 
17908
- function _asyncToGenerator$3(fn) {
18289
+ function _asyncToGenerator$4(fn) {
17909
18290
  return function () {
17910
18291
  var self = this,
17911
18292
  args = arguments;
@@ -17913,11 +18294,11 @@
17913
18294
  var gen = fn.apply(self, args);
17914
18295
 
17915
18296
  function _next(value) {
17916
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
18297
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
17917
18298
  }
17918
18299
 
17919
18300
  function _throw(err) {
17920
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
18301
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
17921
18302
  }
17922
18303
 
17923
18304
  _next(undefined);
@@ -17987,8 +18368,8 @@
17987
18368
  }
17988
18369
  };
17989
18370
 
17990
- renderingService.hooks.init.tapPromise(HTMLRenderingPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$3( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee() {
17991
- return _regeneratorRuntime$3().wrap(function _callee$(_context) {
18371
+ renderingService.hooks.init.tapPromise(HTMLRenderingPlugin_1.tag, /*#__PURE__*/_asyncToGenerator$4( /*#__PURE__*/_regeneratorRuntime$4().mark(function _callee() {
18372
+ return _regeneratorRuntime$4().wrap(function _callee$(_context) {
17992
18373
  while (1) {
17993
18374
  switch (_context.prev = _context.next) {
17994
18375
  case 0:
@@ -18196,43 +18577,61 @@
18196
18577
 
18197
18578
  var _proto = WebGLContextService.prototype;
18198
18579
 
18199
- _proto.init = function init() {
18200
- var _this$canvasConfig = this.canvasConfig,
18201
- container = _this$canvasConfig.container,
18202
- canvas = _this$canvasConfig.canvas,
18203
- devicePixelRatio = _this$canvasConfig.devicePixelRatio;
18580
+ _proto.init = /*#__PURE__*/function () {
18581
+ var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
18582
+ var _this$canvasConfig, container, canvas, devicePixelRatio, $canvas, dpr;
18204
18583
 
18205
- if (canvas) {
18206
- this.$canvas = canvas;
18584
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
18585
+ while (1) {
18586
+ switch (_context.prev = _context.next) {
18587
+ case 0:
18588
+ _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, canvas = _this$canvasConfig.canvas, devicePixelRatio = _this$canvasConfig.devicePixelRatio;
18207
18589
 
18208
- if (container && canvas.parentElement !== container) {
18209
- container.appendChild(canvas);
18210
- }
18590
+ if (canvas) {
18591
+ this.$canvas = canvas;
18211
18592
 
18212
- this.$container = canvas.parentElement;
18213
- this.canvasConfig.container = this.$container;
18214
- } else if (container) {
18215
- // create container
18216
- this.$container = g.isString(container) ? document.getElementById(container) : container;
18593
+ if (container && canvas.parentElement !== container) {
18594
+ container.appendChild(canvas);
18595
+ }
18217
18596
 
18218
- if (this.$container) {
18219
- // create canvas
18220
- var $canvas = document.createElement('canvas');
18221
- this.$container.appendChild($canvas);
18597
+ this.$container = canvas.parentElement;
18598
+ this.canvasConfig.container = this.$container;
18599
+ } else if (container) {
18600
+ // create container
18601
+ this.$container = g.isString(container) ? document.getElementById(container) : container;
18222
18602
 
18223
- if (!this.$container.style.position) {
18224
- this.$container.style.position = 'relative';
18225
- }
18603
+ if (this.$container) {
18604
+ // create canvas
18605
+ $canvas = document.createElement('canvas');
18606
+ this.$container.appendChild($canvas);
18226
18607
 
18227
- this.$canvas = $canvas;
18228
- }
18229
- } // use user-defined dpr first
18608
+ if (!this.$container.style.position) {
18609
+ this.$container.style.position = 'relative';
18610
+ }
18230
18611
 
18612
+ this.$canvas = $canvas;
18613
+ }
18614
+ } // use user-defined dpr first
18231
18615
 
18232
- var dpr = devicePixelRatio || g.isBrowser && window.devicePixelRatio || 1;
18233
- dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
18234
- this.dpr = dpr;
18235
- };
18616
+
18617
+ dpr = devicePixelRatio || g.isBrowser && window.devicePixelRatio || 1;
18618
+ dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
18619
+ this.dpr = dpr;
18620
+
18621
+ case 5:
18622
+ case "end":
18623
+ return _context.stop();
18624
+ }
18625
+ }
18626
+ }, _callee, this);
18627
+ }));
18628
+
18629
+ function init() {
18630
+ return _init.apply(this, arguments);
18631
+ }
18632
+
18633
+ return init;
18634
+ }();
18236
18635
 
18237
18636
  _proto.getDomElement = function getDomElement() {
18238
18637
  return this.$canvas;