@antv/g-webgpu 0.6.0 → 1.0.1

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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -35
  3. package/dist/index.umd.min.js +16 -0
  4. package/es/ContextRegisterPlugin.d.ts +7 -0
  5. package/es/ContextRegisterPlugin.js +28 -0
  6. package/es/WebGLContextService.d.ts +18 -0
  7. package/es/WebGLContextService.js +99 -0
  8. package/es/index.d.ts +10 -0
  9. package/es/index.js +31 -6
  10. package/lib/ContextRegisterPlugin.d.ts +7 -0
  11. package/lib/ContextRegisterPlugin.js +37 -0
  12. package/lib/WebGLContextService.d.ts +18 -0
  13. package/lib/WebGLContextService.js +107 -0
  14. package/lib/index.d.ts +10 -0
  15. package/lib/index.js +45 -29
  16. package/package.json +36 -33
  17. package/CHANGELOG.md +0 -75
  18. package/es/Kernel.js +0 -331
  19. package/es/Kernel.js.map +0 -1
  20. package/es/Renderer.js +0 -310
  21. package/es/Renderer.js.map +0 -1
  22. package/es/Scene.js +0 -39
  23. package/es/Scene.js.map +0 -1
  24. package/es/View.js +0 -86
  25. package/es/View.js.map +0 -1
  26. package/es/World.js +0 -239
  27. package/es/World.js.map +0 -1
  28. package/es/camera/Camera.js +0 -801
  29. package/es/camera/Camera.js.map +0 -1
  30. package/es/camera/Landmark.js +0 -86
  31. package/es/camera/Landmark.js.map +0 -1
  32. package/es/index.js.map +0 -1
  33. package/es/renderable/Renderable.js +0 -132
  34. package/es/renderable/Renderable.js.map +0 -1
  35. package/es/renderable/line/Line.js +0 -164
  36. package/es/renderable/line/Line.js.map +0 -1
  37. package/es/renderable/point/Point.js +0 -203
  38. package/es/renderable/point/Point.js.map +0 -1
  39. package/es/utils/canvas.js +0 -8
  40. package/es/utils/canvas.js.map +0 -1
  41. package/es/utils/math.js +0 -23
  42. package/es/utils/math.js.map +0 -1
  43. package/es/utils/picking.js +0 -4
  44. package/es/utils/picking.js.map +0 -1
  45. package/es/utils/polyline-normals.js +0 -127
  46. package/es/utils/polyline-normals.js.map +0 -1
  47. package/lib/Kernel.js +0 -352
  48. package/lib/Kernel.js.map +0 -1
  49. package/lib/Renderer.js +0 -325
  50. package/lib/Renderer.js.map +0 -1
  51. package/lib/Scene.js +0 -49
  52. package/lib/Scene.js.map +0 -1
  53. package/lib/View.js +0 -99
  54. package/lib/View.js.map +0 -1
  55. package/lib/World.js +0 -265
  56. package/lib/World.js.map +0 -1
  57. package/lib/camera/Camera.js +0 -870
  58. package/lib/camera/Camera.js.map +0 -1
  59. package/lib/camera/Landmark.js +0 -95
  60. package/lib/camera/Landmark.js.map +0 -1
  61. package/lib/index.js.map +0 -1
  62. package/lib/renderable/Renderable.js +0 -141
  63. package/lib/renderable/Renderable.js.map +0 -1
  64. package/lib/renderable/line/Line.js +0 -182
  65. package/lib/renderable/line/Line.js.map +0 -1
  66. package/lib/renderable/point/Point.js +0 -221
  67. package/lib/renderable/point/Point.js.map +0 -1
  68. package/lib/utils/canvas.js +0 -15
  69. package/lib/utils/canvas.js.map +0 -1
  70. package/lib/utils/math.js +0 -36
  71. package/lib/utils/math.js.map +0 -1
  72. package/lib/utils/picking.js +0 -11
  73. package/lib/utils/picking.js.map +0 -1
  74. package/lib/utils/polyline-normals.js +0 -135
  75. package/lib/utils/polyline-normals.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import type { Syringe } from 'mana-syringe';
2
+ import type { RendererPlugin } from '@antv/g';
3
+ export declare class ContextRegisterPlugin implements RendererPlugin {
4
+ name: string;
5
+ init(container: Syringe.Container): void;
6
+ destroy(container: Syringe.Container): void;
7
+ }
@@ -0,0 +1,28 @@
1
+ import { Module } from 'mana-syringe';
2
+ import { WebGLContextService } from './WebGLContextService';
3
+ var containerModule = Module(function (register) {
4
+ /**
5
+ * implements ContextService
6
+ */
7
+ register(WebGLContextService);
8
+ });
9
+
10
+ var ContextRegisterPlugin =
11
+ /** @class */
12
+ function () {
13
+ function ContextRegisterPlugin() {
14
+ this.name = 'webgpu-context-register';
15
+ }
16
+
17
+ ContextRegisterPlugin.prototype.init = function (container) {
18
+ container.load(containerModule, true);
19
+ };
20
+
21
+ ContextRegisterPlugin.prototype.destroy = function (container) {
22
+ container.unload(containerModule);
23
+ };
24
+
25
+ return ContextRegisterPlugin;
26
+ }();
27
+
28
+ export { ContextRegisterPlugin };
@@ -0,0 +1,18 @@
1
+ /// <reference types="offscreencanvas" />
2
+ /// <reference types="@webgpu/types" />
3
+ import { ContextService } from '@antv/g';
4
+ export declare class WebGLContextService implements ContextService<WebGLRenderingContext> {
5
+ private $container;
6
+ private $canvas;
7
+ private dpr;
8
+ private context;
9
+ private canvasConfig;
10
+ init(): void;
11
+ getDomElement(): OffscreenCanvas | HTMLCanvasElement;
12
+ getContext(): WebGLRenderingContext;
13
+ getBoundingClientRect(): DOMRect;
14
+ destroy(): void;
15
+ resize(width: number, height: number): void;
16
+ getDPR(): number;
17
+ applyCursorStyle(cursor: string): void;
18
+ }
@@ -0,0 +1,99 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { CanvasConfig, ContextService, isBrowser, isString, setDOMSize } from '@antv/g';
3
+ import { inject, singleton } from 'mana-syringe';
4
+
5
+ var WebGLContextService =
6
+ /** @class */
7
+ function () {
8
+ function WebGLContextService() {}
9
+
10
+ WebGLContextService.prototype.init = function () {
11
+ var _a = this.canvasConfig,
12
+ container = _a.container,
13
+ canvas = _a.canvas,
14
+ devicePixelRatio = _a.devicePixelRatio;
15
+
16
+ if (canvas) {
17
+ this.$canvas = canvas;
18
+
19
+ if (container && canvas.parentElement !== container) {
20
+ container.appendChild(canvas);
21
+ }
22
+
23
+ this.$container = canvas.parentElement;
24
+ this.canvasConfig.container = this.$container;
25
+ } else if (container) {
26
+ // create container
27
+ this.$container = isString(container) ? document.getElementById(container) : container;
28
+
29
+ if (this.$container) {
30
+ // create canvas
31
+ var $canvas = document.createElement('canvas');
32
+ this.$container.appendChild($canvas);
33
+
34
+ if (!this.$container.style.position) {
35
+ this.$container.style.position = 'relative';
36
+ }
37
+
38
+ this.$canvas = $canvas;
39
+ }
40
+ } // use user-defined dpr first
41
+
42
+
43
+ var dpr = devicePixelRatio || isBrowser && window.devicePixelRatio || 1;
44
+ dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
45
+ this.dpr = dpr;
46
+ };
47
+
48
+ WebGLContextService.prototype.getDomElement = function () {
49
+ return this.$canvas;
50
+ };
51
+
52
+ WebGLContextService.prototype.getContext = function () {
53
+ return this.context;
54
+ };
55
+
56
+ WebGLContextService.prototype.getBoundingClientRect = function () {
57
+ if (this.$canvas.getBoundingClientRect) {
58
+ return this.$canvas.getBoundingClientRect();
59
+ }
60
+ };
61
+
62
+ WebGLContextService.prototype.destroy = function () {
63
+ // @ts-ignore
64
+ if (this.$container && this.$canvas && this.$canvas.parentNode) {
65
+ // @ts-ignore
66
+ this.$container.removeChild(this.$canvas);
67
+ }
68
+ };
69
+
70
+ WebGLContextService.prototype.resize = function (width, height) {
71
+ if (this.$canvas) {
72
+ var dpr = this.getDPR(); // set canvas width & height
73
+
74
+ this.$canvas.width = dpr * width;
75
+ this.$canvas.height = dpr * height; // set CSS style width & height
76
+
77
+ setDOMSize(this.$canvas, width, height);
78
+ }
79
+ };
80
+
81
+ WebGLContextService.prototype.getDPR = function () {
82
+ return this.dpr;
83
+ };
84
+
85
+ WebGLContextService.prototype.applyCursorStyle = function (cursor) {
86
+ if (this.$container && this.$container.style) {
87
+ this.$container.style.cursor = cursor;
88
+ }
89
+ };
90
+
91
+ __decorate([inject(CanvasConfig), __metadata("design:type", Object)], WebGLContextService.prototype, "canvasConfig", void 0);
92
+
93
+ WebGLContextService = __decorate([singleton({
94
+ token: ContextService
95
+ })], WebGLContextService);
96
+ return WebGLContextService;
97
+ }();
98
+
99
+ export { WebGLContextService };
package/es/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { RendererConfig } from '@antv/g';
2
+ import { AbstractRenderer } from '@antv/g';
3
+ import * as DomInteraction from '@antv/g-plugin-dom-interaction';
4
+ import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
5
+ import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
6
+ export { DomInteraction, DeviceRenderer, WebGPUDevice };
7
+ declare type WebGPURendererConfig = RendererConfig;
8
+ export declare class Renderer extends AbstractRenderer {
9
+ constructor(config?: Partial<WebGPURendererConfig>);
10
+ }
package/es/index.js CHANGED
@@ -1,6 +1,31 @@
1
- import { Camera } from './camera/Camera';
2
- import { Kernel } from './Kernel';
3
- import { Renderable } from './renderable/Renderable';
4
- import { World } from './World';
5
- export { World, Kernel, Camera, Renderable };
6
- //# sourceMappingURL=index.js.map
1
+ import { __extends } from "tslib";
2
+ import { AbstractRenderer } from '@antv/g';
3
+ import * as DomInteraction from '@antv/g-plugin-dom-interaction';
4
+ import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
5
+ import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
6
+ import { ContextRegisterPlugin } from './ContextRegisterPlugin';
7
+ export { DomInteraction, DeviceRenderer, WebGPUDevice };
8
+
9
+ var Renderer =
10
+ /** @class */
11
+ function (_super) {
12
+ __extends(Renderer, _super);
13
+
14
+ function Renderer(config) {
15
+ var _this = _super.call(this, config) || this;
16
+
17
+ _this.registerPlugin(new ContextRegisterPlugin());
18
+
19
+ _this.registerPlugin(new WebGPUDevice.Plugin());
20
+
21
+ _this.registerPlugin(new DeviceRenderer.Plugin());
22
+
23
+ _this.registerPlugin(new DomInteraction.Plugin());
24
+
25
+ return _this;
26
+ }
27
+
28
+ return Renderer;
29
+ }(AbstractRenderer);
30
+
31
+ export { Renderer };
@@ -0,0 +1,7 @@
1
+ import type { Syringe } from 'mana-syringe';
2
+ import type { RendererPlugin } from '@antv/g';
3
+ export declare class ContextRegisterPlugin implements RendererPlugin {
4
+ name: string;
5
+ init(container: Syringe.Container): void;
6
+ destroy(container: Syringe.Container): void;
7
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ContextRegisterPlugin = void 0;
7
+
8
+ var _manaSyringe = require("mana-syringe");
9
+
10
+ var _WebGLContextService = require("./WebGLContextService");
11
+
12
+ var containerModule = (0, _manaSyringe.Module)(function (register) {
13
+ /**
14
+ * implements ContextService
15
+ */
16
+ register(_WebGLContextService.WebGLContextService);
17
+ });
18
+
19
+ var ContextRegisterPlugin =
20
+ /** @class */
21
+ function () {
22
+ function ContextRegisterPlugin() {
23
+ this.name = 'webgpu-context-register';
24
+ }
25
+
26
+ ContextRegisterPlugin.prototype.init = function (container) {
27
+ container.load(containerModule, true);
28
+ };
29
+
30
+ ContextRegisterPlugin.prototype.destroy = function (container) {
31
+ container.unload(containerModule);
32
+ };
33
+
34
+ return ContextRegisterPlugin;
35
+ }();
36
+
37
+ exports.ContextRegisterPlugin = ContextRegisterPlugin;
@@ -0,0 +1,18 @@
1
+ /// <reference types="offscreencanvas" />
2
+ /// <reference types="@webgpu/types" />
3
+ import { ContextService } from '@antv/g';
4
+ export declare class WebGLContextService implements ContextService<WebGLRenderingContext> {
5
+ private $container;
6
+ private $canvas;
7
+ private dpr;
8
+ private context;
9
+ private canvasConfig;
10
+ init(): void;
11
+ getDomElement(): OffscreenCanvas | HTMLCanvasElement;
12
+ getContext(): WebGLRenderingContext;
13
+ getBoundingClientRect(): DOMRect;
14
+ destroy(): void;
15
+ resize(width: number, height: number): void;
16
+ getDPR(): number;
17
+ applyCursorStyle(cursor: string): void;
18
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WebGLContextService = void 0;
7
+
8
+ var _tslib = require("tslib");
9
+
10
+ var _g = require("@antv/g");
11
+
12
+ var _manaSyringe = require("mana-syringe");
13
+
14
+ var WebGLContextService =
15
+ /** @class */
16
+ function () {
17
+ function WebGLContextService() {}
18
+
19
+ WebGLContextService.prototype.init = function () {
20
+ var _a = this.canvasConfig,
21
+ container = _a.container,
22
+ canvas = _a.canvas,
23
+ devicePixelRatio = _a.devicePixelRatio;
24
+
25
+ if (canvas) {
26
+ this.$canvas = canvas;
27
+
28
+ if (container && canvas.parentElement !== container) {
29
+ container.appendChild(canvas);
30
+ }
31
+
32
+ this.$container = canvas.parentElement;
33
+ this.canvasConfig.container = this.$container;
34
+ } else if (container) {
35
+ // create container
36
+ this.$container = (0, _g.isString)(container) ? document.getElementById(container) : container;
37
+
38
+ if (this.$container) {
39
+ // create canvas
40
+ var $canvas = document.createElement('canvas');
41
+ this.$container.appendChild($canvas);
42
+
43
+ if (!this.$container.style.position) {
44
+ this.$container.style.position = 'relative';
45
+ }
46
+
47
+ this.$canvas = $canvas;
48
+ }
49
+ } // use user-defined dpr first
50
+
51
+
52
+ var dpr = devicePixelRatio || _g.isBrowser && window.devicePixelRatio || 1;
53
+ dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
54
+ this.dpr = dpr;
55
+ };
56
+
57
+ WebGLContextService.prototype.getDomElement = function () {
58
+ return this.$canvas;
59
+ };
60
+
61
+ WebGLContextService.prototype.getContext = function () {
62
+ return this.context;
63
+ };
64
+
65
+ WebGLContextService.prototype.getBoundingClientRect = function () {
66
+ if (this.$canvas.getBoundingClientRect) {
67
+ return this.$canvas.getBoundingClientRect();
68
+ }
69
+ };
70
+
71
+ WebGLContextService.prototype.destroy = function () {
72
+ // @ts-ignore
73
+ if (this.$container && this.$canvas && this.$canvas.parentNode) {
74
+ // @ts-ignore
75
+ this.$container.removeChild(this.$canvas);
76
+ }
77
+ };
78
+
79
+ WebGLContextService.prototype.resize = function (width, height) {
80
+ if (this.$canvas) {
81
+ var dpr = this.getDPR(); // set canvas width & height
82
+
83
+ this.$canvas.width = dpr * width;
84
+ this.$canvas.height = dpr * height; // set CSS style width & height
85
+
86
+ (0, _g.setDOMSize)(this.$canvas, width, height);
87
+ }
88
+ };
89
+
90
+ WebGLContextService.prototype.getDPR = function () {
91
+ return this.dpr;
92
+ };
93
+
94
+ WebGLContextService.prototype.applyCursorStyle = function (cursor) {
95
+ if (this.$container && this.$container.style) {
96
+ this.$container.style.cursor = cursor;
97
+ }
98
+ };
99
+
100
+ (0, _tslib.__decorate)([(0, _manaSyringe.inject)(_g.CanvasConfig), (0, _tslib.__metadata)("design:type", Object)], WebGLContextService.prototype, "canvasConfig", void 0);
101
+ WebGLContextService = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)({
102
+ token: _g.ContextService
103
+ })], WebGLContextService);
104
+ return WebGLContextService;
105
+ }();
106
+
107
+ exports.WebGLContextService = WebGLContextService;
package/lib/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { RendererConfig } from '@antv/g';
2
+ import { AbstractRenderer } from '@antv/g';
3
+ import * as DomInteraction from '@antv/g-plugin-dom-interaction';
4
+ import * as DeviceRenderer from '@antv/g-plugin-device-renderer';
5
+ import * as WebGPUDevice from '@antv/g-plugin-webgpu-device';
6
+ export { DomInteraction, DeviceRenderer, WebGPUDevice };
7
+ declare type WebGPURendererConfig = RendererConfig;
8
+ export declare class Renderer extends AbstractRenderer {
9
+ constructor(config?: Partial<WebGPURendererConfig>);
10
+ }
package/lib/index.js CHANGED
@@ -1,38 +1,54 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
- Object.defineProperty(exports, "Camera", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Camera.Camera;
10
- }
11
- });
12
- Object.defineProperty(exports, "Kernel", {
13
- enumerable: true,
14
- get: function get() {
15
- return _Kernel.Kernel;
16
- }
17
- });
18
- Object.defineProperty(exports, "Renderable", {
19
- enumerable: true,
20
- get: function get() {
21
- return _Renderable.Renderable;
22
- }
23
- });
24
- Object.defineProperty(exports, "World", {
25
- enumerable: true,
26
- get: function get() {
27
- return _World.World;
28
- }
29
- });
8
+ exports.WebGPUDevice = exports.Renderer = exports.DomInteraction = exports.DeviceRenderer = void 0;
9
+
10
+ var _tslib = require("tslib");
11
+
12
+ var _g = require("@antv/g");
13
+
14
+ var DomInteraction = _interopRequireWildcard(require("@antv/g-plugin-dom-interaction"));
15
+
16
+ exports.DomInteraction = DomInteraction;
30
17
 
31
- var _Camera = require("./camera/Camera");
18
+ var DeviceRenderer = _interopRequireWildcard(require("@antv/g-plugin-device-renderer"));
32
19
 
33
- var _Kernel = require("./Kernel");
20
+ exports.DeviceRenderer = DeviceRenderer;
21
+
22
+ var WebGPUDevice = _interopRequireWildcard(require("@antv/g-plugin-webgpu-device"));
23
+
24
+ exports.WebGPUDevice = WebGPUDevice;
25
+
26
+ var _ContextRegisterPlugin = require("./ContextRegisterPlugin");
27
+
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
32
+ var Renderer =
33
+ /** @class */
34
+ function (_super) {
35
+ (0, _tslib.__extends)(Renderer, _super);
36
+
37
+ function Renderer(config) {
38
+ var _this = _super.call(this, config) || this;
39
+
40
+ _this.registerPlugin(new _ContextRegisterPlugin.ContextRegisterPlugin());
41
+
42
+ _this.registerPlugin(new WebGPUDevice.Plugin());
43
+
44
+ _this.registerPlugin(new DeviceRenderer.Plugin());
45
+
46
+ _this.registerPlugin(new DomInteraction.Plugin());
47
+
48
+ return _this;
49
+ }
34
50
 
35
- var _Renderable = require("./renderable/Renderable");
51
+ return Renderer;
52
+ }(_g.AbstractRenderer);
36
53
 
37
- var _World = require("./World");
38
- //# sourceMappingURL=index.js.map
54
+ exports.Renderer = Renderer;
package/package.json CHANGED
@@ -1,50 +1,53 @@
1
1
  {
2
2
  "name": "@antv/g-webgpu",
3
- "version": "0.6.0",
4
- "description": "",
3
+ "version": "1.0.1",
4
+ "description": "A renderer implemented by WebGPU",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "types": "es/index.d.ts",
8
- "sideEffects": true,
8
+ "unpkg": "dist/index.umd.min.js",
9
9
  "files": [
10
+ "package.json",
10
11
  "dist",
11
- "lib",
12
12
  "es",
13
+ "lib",
14
+ "LICENSE",
13
15
  "README.md"
14
16
  ],
15
- "unpkg": "dist/gwebgpu.js",
16
- "scripts": {
17
- "tsc": "tsc --project tsconfig.build.json",
18
- "clean": "rimraf dist; rimraf es; rimraf lib;",
19
- "build": "run-p build:*",
20
- "build:cjs": "BABEL_ENV=cjs babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --delete-dir-on-start",
21
- "build:esm": "BABEL_ENV=esm babel src --root-mode upward --out-dir es --source-maps --extensions .ts,.tsx --delete-dir-on-start",
22
- "watch": "BABEL_ENV=esm babel src --watch --root-mode upward --out-dir es --source-maps --extensions .ts,.tsx --delete-dir-on-start"
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/antvis/g.git"
23
20
  },
24
- "author": "xiaoiver",
25
- "license": "ISC",
26
- "dependencies": {
27
- "@antv/g-webgpu-core": "^0.6.0",
28
- "@antv/g-webgpu-engine": "^0.6.0",
29
- "@webgpu/types": "^0.0.31",
30
- "gl-matrix": "^3.1.0",
31
- "gl-vec2": "^1.3.0",
32
- "hammerjs": "^2.0.8",
33
- "inversify": "^5.0.1",
34
- "inversify-inject-decorators": "^3.1.0",
35
- "lodash": "^4.17.15",
36
- "polyline-miter-util": "^1.0.1",
37
- "polyline-normals": "^2.0.2",
38
- "probe.gl": "^3.1.1",
39
- "reflect-metadata": "^0.1.13"
21
+ "keywords": [
22
+ "antv",
23
+ "g"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "author": "https://github.com/orgs/antvis/people",
29
+ "license": "MIT",
30
+ "bugs": {
31
+ "url": "https://github.com/antvis/g/issues"
40
32
  },
41
33
  "devDependencies": {
42
34
  "@types/gl-matrix": "^2.4.5",
43
- "@types/hammerjs": "^2.0.36",
44
- "@types/lodash": "^4.14.138"
35
+ "@types/jest": "^25.0.0",
36
+ "@types/offscreencanvas": "^2019.6.4"
45
37
  },
46
- "publishConfig": {
47
- "access": "public"
38
+ "homepage": "https://github.com/antvis/g#readme",
39
+ "dependencies": {
40
+ "@antv/g-plugin-device-renderer": "^1.0.1",
41
+ "@antv/g-plugin-dom-interaction": "^1.0.21",
42
+ "@antv/g-plugin-html-renderer": "^1.0.22",
43
+ "@antv/g-plugin-webgpu-device": "^1.0.1"
44
+ },
45
+ "peerDependencies": {
46
+ "@antv/g": "^5.0.1",
47
+ "mana-syringe": "^0.3.0"
48
+ },
49
+ "scripts": {
50
+ "umd": "webpack"
48
51
  },
49
- "gitHead": "25cfea6a4e7fb2d471392949531f99413186cfd6"
52
+ "gitHead": "98a28060c701e8c9c6c23fca672534677c4401b3"
50
53
  }
package/CHANGELOG.md DELETED
@@ -1,75 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [0.6.0](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.4.1...v0.6.0) (2020-11-23)
7
-
8
-
9
- ### Features
10
-
11
- * modify Kernel & Compiler API ([a6003b5](https://github.com/xiaoiver/GWebGPUEngine/commit/a6003b54fa7581815a7d4c0ef503fb334546eacb))
12
- * ray tracer ([3fa95b9](https://github.com/xiaoiver/GWebGPUEngine/commit/3fa95b939b2dbf519ebf266b5e57bc7493258b9b))
13
- * support render multi views in the same canvas [#29](https://github.com/xiaoiver/GWebGPUEngine/issues/29) ([18bc4b5](https://github.com/xiaoiver/GWebGPUEngine/commit/18bc4b518baf2dfc3980e9a5a2cc6d8789e3f141))
14
- * support unit chart ([11511a1](https://github.com/xiaoiver/GWebGPUEngine/commit/11511a17b71f82de0de48f6cd2e51cd1c09f18d7))
15
-
16
-
17
-
18
-
19
-
20
- # [0.5.0](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.4.1...v0.5.0) (2020-11-06)
21
-
22
-
23
- ### Features
24
-
25
- * ray tracer ([3fa95b9](https://github.com/xiaoiver/GWebGPUEngine/commit/3fa95b939b2dbf519ebf266b5e57bc7493258b9b))
26
- * support unit chart ([11511a1](https://github.com/xiaoiver/GWebGPUEngine/commit/11511a17b71f82de0de48f6cd2e51cd1c09f18d7))
27
-
28
-
29
-
30
-
31
-
32
- ## [0.4.1](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.4.0...v0.4.1) (2020-06-24)
33
-
34
- **Note:** Version bump only for package @antv/g-webgpu
35
-
36
-
37
-
38
-
39
-
40
- # [0.4.0](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.3.0...v0.4.0) (2020-06-24)
41
-
42
-
43
- ### Features
44
-
45
- * 支持在 WebWorker 中运行 [#23](https://github.com/xiaoiver/GWebGPUEngine/issues/23) ([1e87b0f](https://github.com/xiaoiver/GWebGPUEngine/commit/1e87b0f0702a9082c8cdfba834532f23dd72700c))
46
-
47
-
48
-
49
-
50
-
51
- # [0.2.0](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.1.2...v0.2.0) (2020-06-12)
52
-
53
-
54
- ### Features
55
-
56
- * 支持 WebGL debug ([6fe69f0](https://github.com/xiaoiver/GWebGPUEngine/commit/6fe69f032d92b3871e8f2aa2478d8c9384502c6d))
57
-
58
-
59
-
60
-
61
-
62
- ## [0.1.1-alpha.1](https://github.com/xiaoiver/GWebGPUEngine/compare/v0.1.0-alpha.0...v0.1.1-alpha.1) (2020-06-04)
63
-
64
- **Note:** Version bump only for package @antv/g-webgpu
65
-
66
-
67
-
68
-
69
-
70
- # 0.1.0-alpha.0 (2020-06-04)
71
-
72
-
73
- ### Features
74
-
75
- * 接入 gatsby ([deb1fcf](https://github.com/xiaoiver/GWebGPUEngine/commit/deb1fcfe87eeacc02d38c34a68e3096c32d29cc8))