@antv/g-webgpu 1.1.8 → 1.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEtE,aAAK,oBAAoB,GAAG,cAAc,CAAC;AAE3C,qBAAa,QAAS,SAAQ,gBAAgB;gBAChC,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC;CASnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEtE,aAAK,oBAAoB,GAAG,cAAc,CAAC;AAE3C,qBAAa,QAAS,SAAQ,gBAAgB;gBAChC,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC;CAUnD"}
package/dist/index.esm.js CHANGED
@@ -1,14 +1,15 @@
1
1
  import { inject, CanvasConfig, singleton, ContextService, setDOMSize, isString, isBrowser, Module, AbstractRenderer } from '@antv/g';
2
- import { Plugin as Plugin$1 } from '@antv/g-plugin-device-renderer';
2
+ import { Plugin as Plugin$2 } from '@antv/g-plugin-device-renderer';
3
3
  import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
4
4
  export { DeviceRenderer };
5
- import { Plugin as Plugin$2 } from '@antv/g-plugin-dom-interaction';
5
+ import { Plugin as Plugin$3 } from '@antv/g-plugin-dom-interaction';
6
6
  import * as DomInteraction from '@antv/g-plugin-dom-interaction';
7
7
  export { DomInteraction };
8
- import { Plugin as Plugin$3 } from '@antv/g-plugin-html-renderer';
8
+ import { Plugin as Plugin$4 } from '@antv/g-plugin-html-renderer';
9
9
  import * as HTMLRenderer from '@antv/g-plugin-html-renderer';
10
10
  export { HTMLRenderer };
11
- import { Plugin } from '@antv/g-plugin-webgpu-device';
11
+ import { Plugin } from '@antv/g-plugin-image-loader';
12
+ import { Plugin as Plugin$1 } from '@antv/g-plugin-webgpu-device';
12
13
  import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
13
14
  export { WebGPUDevice };
14
15
 
@@ -401,11 +402,10 @@ function _inheritsLoose(subClass, superClass) {
401
402
  }
402
403
 
403
404
  function _setPrototypeOf(o, p) {
404
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
405
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
405
406
  o.__proto__ = p;
406
407
  return o;
407
408
  };
408
-
409
409
  return _setPrototypeOf(o, p);
410
410
  }
411
411
 
@@ -596,6 +596,8 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
596
596
 
597
597
  _this.registerPlugin(new Plugin$3());
598
598
 
599
+ _this.registerPlugin(new Plugin$4());
600
+
599
601
  return _this;
600
602
  }
601
603
 
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ var g = require('@antv/g');
6
6
  var DeviceRenderer = require('@antv/g-plugin-device-renderer');
7
7
  var DomInteraction = require('@antv/g-plugin-dom-interaction');
8
8
  var HTMLRenderer = require('@antv/g-plugin-html-renderer');
9
+ var ImageLoader = require('@antv/g-plugin-image-loader');
9
10
  var WebGPUDevice = require('@antv/g-plugin-webgpu-device');
10
11
 
11
12
  function _interopNamespace(e) {
@@ -422,11 +423,10 @@ function _inheritsLoose(subClass, superClass) {
422
423
  }
423
424
 
424
425
  function _setPrototypeOf(o, p) {
425
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
426
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
426
427
  o.__proto__ = p;
427
428
  return o;
428
429
  };
429
-
430
430
  return _setPrototypeOf(o, p);
431
431
  }
432
432
 
@@ -609,6 +609,8 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
609
609
 
610
610
  _this.registerPlugin(new ContextRegisterPlugin());
611
611
 
612
+ _this.registerPlugin(new ImageLoader.Plugin());
613
+
612
614
  _this.registerPlugin(new WebGPUDevice.Plugin());
613
615
 
614
616
  _this.registerPlugin(new DeviceRenderer.Plugin());