@antv/g-webgpu
Advanced tools
Comparing version 1.6.0-alpha.0 to 1.6.0
@@ -1,10 +0,10 @@ | ||
import type { RendererPlugin, Syringe } from '@antv/g'; | ||
import { AbstractRendererPlugin } from '@antv/g'; | ||
import type * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
export declare class ContextRegisterPlugin implements RendererPlugin { | ||
export declare class ContextRegisterPlugin extends AbstractRendererPlugin { | ||
private rendererPlugin; | ||
name: string; | ||
constructor(rendererPlugin: DeviceRenderer.Plugin); | ||
init(container: Syringe.Container): void; | ||
destroy(container: Syringe.Container): void; | ||
init(): void; | ||
destroy(): void; | ||
} | ||
//# sourceMappingURL=ContextRegisterPlugin.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Syringe, setDOMSize, inject, CanvasConfig, singleton, ContextService, isString, isBrowser, Module, AbstractRenderer } from '@antv/g'; | ||
import { Syringe, setDOMSize, inject, CanvasConfig, singleton, ContextService, isString, isBrowser, Module, AbstractRendererPlugin, AbstractRenderer } from '@antv/g'; | ||
import { Plugin } from '@antv/g-plugin-device-renderer'; | ||
@@ -591,7 +591,13 @@ import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
}); | ||
var ContextRegisterPlugin = /*#__PURE__*/function () { | ||
var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) { | ||
_inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug); | ||
function ContextRegisterPlugin(rendererPlugin) { | ||
this.rendererPlugin = void 0; | ||
this.name = 'webgpu-context-register'; | ||
this.rendererPlugin = rendererPlugin; | ||
var _this; | ||
_this = _AbstractRendererPlug.call(this) || this; | ||
_this.rendererPlugin = void 0; | ||
_this.name = 'webgpu-context-register'; | ||
_this.rendererPlugin = rendererPlugin; | ||
return _this; | ||
} | ||
@@ -601,16 +607,16 @@ | ||
_proto.init = function init(container) { | ||
container.register(DeviceRendererPlugin, { | ||
_proto.init = function init() { | ||
this.container.register(DeviceRendererPlugin, { | ||
useValue: this.rendererPlugin | ||
}); | ||
container.load(containerModule, true); | ||
this.container.load(containerModule, true); | ||
}; | ||
_proto.destroy = function destroy(container) { | ||
container.unload(containerModule); | ||
container.remove(DeviceRendererPlugin); | ||
_proto.destroy = function destroy() { | ||
this.container.unload(containerModule); | ||
this.container.remove(DeviceRendererPlugin); | ||
}; | ||
return ContextRegisterPlugin; | ||
}(); | ||
}(AbstractRendererPlugin); | ||
@@ -617,0 +623,0 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) { |
@@ -612,7 +612,13 @@ 'use strict'; | ||
}); | ||
var ContextRegisterPlugin = /*#__PURE__*/function () { | ||
var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) { | ||
_inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug); | ||
function ContextRegisterPlugin(rendererPlugin) { | ||
this.rendererPlugin = void 0; | ||
this.name = 'webgpu-context-register'; | ||
this.rendererPlugin = rendererPlugin; | ||
var _this; | ||
_this = _AbstractRendererPlug.call(this) || this; | ||
_this.rendererPlugin = void 0; | ||
_this.name = 'webgpu-context-register'; | ||
_this.rendererPlugin = rendererPlugin; | ||
return _this; | ||
} | ||
@@ -622,16 +628,16 @@ | ||
_proto.init = function init(container) { | ||
container.register(DeviceRendererPlugin, { | ||
_proto.init = function init() { | ||
this.container.register(DeviceRendererPlugin, { | ||
useValue: this.rendererPlugin | ||
}); | ||
container.load(containerModule, true); | ||
this.container.load(containerModule, true); | ||
}; | ||
_proto.destroy = function destroy(container) { | ||
container.unload(containerModule); | ||
container.remove(DeviceRendererPlugin); | ||
_proto.destroy = function destroy() { | ||
this.container.unload(containerModule); | ||
this.container.remove(DeviceRendererPlugin); | ||
}; | ||
return ContextRegisterPlugin; | ||
}(); | ||
}(g.AbstractRendererPlugin); | ||
@@ -638,0 +644,0 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) { |
{ | ||
"name": "@antv/g-webgpu", | ||
"version": "1.6.0-alpha.0", | ||
"version": "1.6.0", | ||
"description": "A renderer implemented by WebGPU", | ||
@@ -31,7 +31,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@antv/g-plugin-device-renderer": "^1.6.0-alpha.0", | ||
"@antv/g-plugin-dom-interaction": "^1.6.0-alpha.0", | ||
"@antv/g-plugin-html-renderer": "^1.6.0-alpha.0", | ||
"@antv/g-plugin-image-loader": "^0.5.0-alpha.0", | ||
"@antv/g-plugin-webgpu-device": "^1.6.0-alpha.0" | ||
"@antv/g-plugin-device-renderer": "^1.6.0", | ||
"@antv/g-plugin-dom-interaction": "^1.6.0", | ||
"@antv/g-plugin-html-renderer": "^1.6.0", | ||
"@antv/g-plugin-image-loader": "^0.5.0", | ||
"@antv/g-plugin-webgpu-device": "^1.6.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "94fbafea28d1f2910720172b7e45a859c8e3a454" | ||
"gitHead": "5e346e68fda61488806180f03564e4d340ae91c3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1139370
18973
1