@antv/g-webgpu 1.1.8-alpha.0 → 1.2.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/ContextRegisterPlugin.d.ts +1 -2
- package/dist/ContextRegisterPlugin.d.ts.map +1 -1
- package/dist/WebGLContextService.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +12 -8
- package/dist/index.js +12 -8
- package/dist/index.umd.js +14164 -13431
- package/dist/index.umd.min.js +8 -6
- package/package.json +9 -8
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Syringe } from '
|
|
2
|
-
import type { RendererPlugin } from '@antv/g';
|
|
1
|
+
import type { RendererPlugin, Syringe } from '@antv/g';
|
|
3
2
|
export declare class ContextRegisterPlugin implements RendererPlugin {
|
|
4
3
|
name: string;
|
|
5
4
|
init(container: Syringe.Container): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAWvD,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,IAAI,SAA6B;IACjC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;IAGxC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;CAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebGLContextService.d.ts","sourceRoot":"","sources":["../src/WebGLContextService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"WebGLContextService.d.ts","sourceRoot":"","sources":["../src/WebGLContextService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAEL,cAAc,EAMf,MAAM,SAAS,CAAC;AAEjB,qBACa,mBAAoB,YAAW,cAAc,CAAC,qBAAqB,CAAC;IAC/E,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAA+B;IAG9C,OAAO,CAAC,YAAY,CAAe;IAE7B,IAAI;IAgCV,aAAa;IAIb,UAAU;IAIV,qBAAqB;IAMrB,OAAO;IAQP,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAapC,MAAM;IAIN,gBAAgB,CAAC,MAAM,EAAE,MAAM;CAKhC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RendererConfig } from '@antv/g';
|
|
2
2
|
import { AbstractRenderer } from '@antv/g';
|
|
3
|
-
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
3
|
import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
|
|
4
|
+
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
5
|
+
import * as HTMLRenderer from '@antv/g-plugin-html-renderer';
|
|
5
6
|
import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
|
|
6
|
-
export { DomInteraction, DeviceRenderer, WebGPUDevice };
|
|
7
|
+
export { DomInteraction, DeviceRenderer, WebGPUDevice, HTMLRenderer };
|
|
7
8
|
declare type WebGPURendererConfig = RendererConfig;
|
|
8
9
|
export declare class Renderer extends AbstractRenderer {
|
|
9
10
|
constructor(config?: Partial<WebGPURendererConfig>);
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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,15 +1,17 @@
|
|
|
1
|
-
import { CanvasConfig, ContextService, setDOMSize, isString, isBrowser, AbstractRenderer } from '@antv/g';
|
|
2
|
-
import { Plugin as Plugin$2 } from '@antv/g-plugin-
|
|
3
|
-
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
|
-
export { DomInteraction };
|
|
5
|
-
import { Plugin as Plugin$1 } from '@antv/g-plugin-device-renderer';
|
|
1
|
+
import { inject, CanvasConfig, singleton, ContextService, setDOMSize, isString, isBrowser, Module, AbstractRenderer } from '@antv/g';
|
|
2
|
+
import { Plugin as Plugin$2 } from '@antv/g-plugin-device-renderer';
|
|
6
3
|
import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
|
|
7
4
|
export { DeviceRenderer };
|
|
8
|
-
import { Plugin } from '@antv/g-plugin-
|
|
5
|
+
import { Plugin as Plugin$3 } from '@antv/g-plugin-dom-interaction';
|
|
6
|
+
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
7
|
+
export { DomInteraction };
|
|
8
|
+
import { Plugin as Plugin$4 } from '@antv/g-plugin-html-renderer';
|
|
9
|
+
import * as HTMLRenderer from '@antv/g-plugin-html-renderer';
|
|
10
|
+
export { HTMLRenderer };
|
|
11
|
+
import { Plugin } from '@antv/g-plugin-image-loader';
|
|
12
|
+
import { Plugin as Plugin$1 } from '@antv/g-plugin-webgpu-device';
|
|
9
13
|
import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
|
|
10
14
|
export { WebGPUDevice };
|
|
11
|
-
import { Plugin as Plugin$3 } from '@antv/g-plugin-html-renderer';
|
|
12
|
-
import { inject, singleton, Module } from 'mana-syringe';
|
|
13
15
|
|
|
14
16
|
function _regeneratorRuntime() {
|
|
15
17
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -595,6 +597,8 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
|
595
597
|
|
|
596
598
|
_this.registerPlugin(new Plugin$3());
|
|
597
599
|
|
|
600
|
+
_this.registerPlugin(new Plugin$4());
|
|
601
|
+
|
|
598
602
|
return _this;
|
|
599
603
|
}
|
|
600
604
|
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var g = require('@antv/g');
|
|
6
|
-
var DomInteraction = require('@antv/g-plugin-dom-interaction');
|
|
7
6
|
var DeviceRenderer = require('@antv/g-plugin-device-renderer');
|
|
8
|
-
var
|
|
7
|
+
var DomInteraction = require('@antv/g-plugin-dom-interaction');
|
|
9
8
|
var HTMLRenderer = require('@antv/g-plugin-html-renderer');
|
|
10
|
-
var
|
|
9
|
+
var ImageLoader = require('@antv/g-plugin-image-loader');
|
|
10
|
+
var WebGPUDevice = require('@antv/g-plugin-webgpu-device');
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
13
|
if (e && e.__esModule) return e;
|
|
@@ -29,8 +29,9 @@ function _interopNamespace(e) {
|
|
|
29
29
|
return Object.freeze(n);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var DomInteraction__namespace = /*#__PURE__*/_interopNamespace(DomInteraction);
|
|
33
32
|
var DeviceRenderer__namespace = /*#__PURE__*/_interopNamespace(DeviceRenderer);
|
|
33
|
+
var DomInteraction__namespace = /*#__PURE__*/_interopNamespace(DomInteraction);
|
|
34
|
+
var HTMLRenderer__namespace = /*#__PURE__*/_interopNamespace(HTMLRenderer);
|
|
34
35
|
var WebGPUDevice__namespace = /*#__PURE__*/_interopNamespace(WebGPUDevice);
|
|
35
36
|
|
|
36
37
|
function _regeneratorRuntime() {
|
|
@@ -569,13 +570,13 @@ var WebGLContextService = /*#__PURE__*/function () {
|
|
|
569
570
|
return WebGLContextService;
|
|
570
571
|
}();
|
|
571
572
|
|
|
572
|
-
__decorate([
|
|
573
|
+
__decorate([g.inject(g.CanvasConfig), __metadata("design:type", Object)], WebGLContextService.prototype, "canvasConfig", void 0);
|
|
573
574
|
|
|
574
|
-
WebGLContextService = __decorate([
|
|
575
|
+
WebGLContextService = __decorate([g.singleton({
|
|
575
576
|
token: g.ContextService
|
|
576
577
|
})], WebGLContextService);
|
|
577
578
|
|
|
578
|
-
var containerModule =
|
|
579
|
+
var containerModule = g.Module(function (register) {
|
|
579
580
|
/**
|
|
580
581
|
* implements ContextService
|
|
581
582
|
*/
|
|
@@ -609,6 +610,8 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
|
609
610
|
|
|
610
611
|
_this.registerPlugin(new ContextRegisterPlugin());
|
|
611
612
|
|
|
613
|
+
_this.registerPlugin(new ImageLoader.Plugin());
|
|
614
|
+
|
|
612
615
|
_this.registerPlugin(new WebGPUDevice.Plugin());
|
|
613
616
|
|
|
614
617
|
_this.registerPlugin(new DeviceRenderer.Plugin());
|
|
@@ -623,7 +626,8 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
|
623
626
|
return Renderer;
|
|
624
627
|
}(g.AbstractRenderer);
|
|
625
628
|
|
|
626
|
-
exports.DomInteraction = DomInteraction__namespace;
|
|
627
629
|
exports.DeviceRenderer = DeviceRenderer__namespace;
|
|
630
|
+
exports.DomInteraction = DomInteraction__namespace;
|
|
631
|
+
exports.HTMLRenderer = HTMLRenderer__namespace;
|
|
628
632
|
exports.WebGPUDevice = WebGPUDevice__namespace;
|
|
629
633
|
exports.Renderer = Renderer;
|