@antv/g-webgpu 1.7.33 → 1.7.34

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.esm.js CHANGED
@@ -149,14 +149,9 @@ function _regeneratorRuntime() {
149
149
  };
150
150
  }
151
151
  function maybeInvokeDelegate(delegate, context) {
152
- var method = delegate.iterator[context.method];
153
- if (undefined === method) {
154
- if (context.delegate = null, "throw" === context.method) {
155
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
156
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
157
- }
158
- return ContinueSentinel;
159
- }
152
+ var methodName = context.method,
153
+ method = delegate.iterator[methodName];
154
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
160
155
  var record = tryCatch(method, delegate.iterator, context.arg);
161
156
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
162
157
  var info = record.arg;
package/dist/index.js CHANGED
@@ -170,14 +170,9 @@ function _regeneratorRuntime() {
170
170
  };
171
171
  }
172
172
  function maybeInvokeDelegate(delegate, context) {
173
- var method = delegate.iterator[context.method];
174
- if (undefined === method) {
175
- if (context.delegate = null, "throw" === context.method) {
176
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
177
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
178
- }
179
- return ContinueSentinel;
180
- }
173
+ var methodName = context.method,
174
+ method = delegate.iterator[methodName];
175
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
181
176
  var record = tryCatch(method, delegate.iterator, context.arg);
182
177
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
183
178
  var info = record.arg;
package/dist/index.umd.js CHANGED
@@ -139,14 +139,9 @@
139
139
  };
140
140
  }
141
141
  function maybeInvokeDelegate(delegate, context) {
142
- var method = delegate.iterator[context.method];
143
- if (undefined === method) {
144
- if (context.delegate = null, "throw" === context.method) {
145
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
146
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
147
- }
148
- return ContinueSentinel;
149
- }
142
+ var methodName = context.method,
143
+ method = delegate.iterator[methodName];
144
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
150
145
  var record = tryCatch(method, delegate.iterator, context.arg);
151
146
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
152
147
  var info = record.arg;
@@ -3189,14 +3184,9 @@
3189
3184
  };
3190
3185
  }
3191
3186
  function maybeInvokeDelegate(delegate, context) {
3192
- var method = delegate.iterator[context.method];
3193
- if (undefined === method) {
3194
- if (context.delegate = null, "throw" === context.method) {
3195
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
3196
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
3197
- }
3198
- return ContinueSentinel;
3199
- }
3187
+ var methodName = context.method,
3188
+ method = delegate.iterator[methodName];
3189
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
3200
3190
  var record = tryCatch(method, delegate.iterator, context.arg);
3201
3191
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
3202
3192
  var info = record.arg;
@@ -3402,7 +3392,7 @@
3402
3392
  descriptor.enumerable = descriptor.enumerable || false;
3403
3393
  descriptor.configurable = true;
3404
3394
  if ("value" in descriptor) descriptor.writable = true;
3405
- Object.defineProperty(target, descriptor.key, descriptor);
3395
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
3406
3396
  }
3407
3397
  }
3408
3398
  function _createClass(Constructor, protoProps, staticProps) {
@@ -3490,6 +3480,20 @@
3490
3480
  }
3491
3481
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3492
3482
  }
3483
+ function _toPrimitive(input, hint) {
3484
+ if (typeof input !== "object" || input === null) return input;
3485
+ var prim = input[Symbol.toPrimitive];
3486
+ if (prim !== undefined) {
3487
+ var res = prim.call(input, hint || "default");
3488
+ if (typeof res !== "object") return res;
3489
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3490
+ }
3491
+ return (hint === "string" ? String : Number)(input);
3492
+ }
3493
+ function _toPropertyKey(arg) {
3494
+ var key = _toPrimitive(arg, "string");
3495
+ return typeof key === "symbol" ? key : String(key);
3496
+ }
3493
3497
  var Renderable3D = function Renderable3D() {
3494
3498
  this.pickingId = void 0;
3495
3499
  this.encodedPickingColor = void 0;
@@ -13489,14 +13493,9 @@
13489
13493
  };
13490
13494
  }
13491
13495
  function maybeInvokeDelegate(delegate, context) {
13492
- var method = delegate.iterator[context.method];
13493
- if (undefined === method) {
13494
- if (context.delegate = null, "throw" === context.method) {
13495
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
13496
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
13497
- }
13498
- return ContinueSentinel;
13499
- }
13496
+ var methodName = context.method,
13497
+ method = delegate.iterator[methodName];
13498
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
13500
13499
  var record = tryCatch(method, delegate.iterator, context.arg);
13501
13500
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
13502
13501
  var info = record.arg;
@@ -14008,14 +14007,9 @@
14008
14007
  };
14009
14008
  }
14010
14009
  function maybeInvokeDelegate(delegate, context) {
14011
- var method = delegate.iterator[context.method];
14012
- if (undefined === method) {
14013
- if (context.delegate = null, "throw" === context.method) {
14014
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
14015
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
14016
- }
14017
- return ContinueSentinel;
14018
- }
14010
+ var methodName = context.method,
14011
+ method = delegate.iterator[methodName];
14012
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
14019
14013
  var record = tryCatch(method, delegate.iterator, context.arg);
14020
14014
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
14021
14015
  var info = record.arg;
@@ -14650,14 +14644,9 @@
14650
14644
  };
14651
14645
  }
14652
14646
  function maybeInvokeDelegate(delegate, context) {
14653
- var method = delegate.iterator[context.method];
14654
- if (undefined === method) {
14655
- if (context.delegate = null, "throw" === context.method) {
14656
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
14657
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
14658
- }
14659
- return ContinueSentinel;
14660
- }
14647
+ var methodName = context.method,
14648
+ method = delegate.iterator[methodName];
14649
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
14661
14650
  var record = tryCatch(method, delegate.iterator, context.arg);
14662
14651
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
14663
14652
  var info = record.arg;
@@ -15360,14 +15349,9 @@
15360
15349
  };
15361
15350
  }
15362
15351
  function maybeInvokeDelegate(delegate, context) {
15363
- var method = delegate.iterator[context.method];
15364
- if (undefined === method) {
15365
- if (context.delegate = null, "throw" === context.method) {
15366
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
15367
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
15368
- }
15369
- return ContinueSentinel;
15370
- }
15352
+ var methodName = context.method,
15353
+ method = delegate.iterator[methodName];
15354
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
15371
15355
  var record = tryCatch(method, delegate.iterator, context.arg);
15372
15356
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
15373
15357
  var info = record.arg;