Skip to content

Commit aa37c23

Browse files
committed
refactor: merge @antv/g-plugin-canvas-path-generator to @antv/g-canvas
1 parent 658ec16 commit aa37c23

28 files changed

Lines changed: 15 additions & 841 deletions

File tree

packages/g-canvas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
},
4545
"dependencies": {
4646
"@antv/g-lite": "workspace:*",
47-
"@antv/g-plugin-canvas-path-generator": "workspace:*",
4847
"@antv/g-plugin-canvas-picker": "workspace:*",
4948
"@antv/g-plugin-canvas-renderer": "workspace:*",
5049
"@antv/g-plugin-dom-interaction": "workspace:*",
5150
"@antv/g-plugin-html-renderer": "workspace:*",
5251
"@antv/g-plugin-image-loader": "workspace:*",
52+
"@antv/g-math": "workspace:*",
5353
"@antv/util": "^3.3.5",
5454
"@babel/runtime": "^7.25.6",
5555
"tslib": "^2.5.3"

packages/g-canvas/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { RendererConfig } from '@antv/g-lite';
22
import { AbstractRenderer } from '@antv/g-lite';
3-
import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator';
43
import * as CanvasPicker from '@antv/g-plugin-canvas-picker';
54
import * as CanvasRenderer from '@antv/g-plugin-canvas-renderer';
65
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
76
import * as HTMLRenderer from '@antv/g-plugin-html-renderer';
87
import * as ImageLoader from '@antv/g-plugin-image-loader';
8+
import * as CanvasPathGenerator from './plugins/path-generator';
99
import { ContextRegisterPlugin } from './ContextRegisterPlugin';
1010

1111
export {
@@ -35,3 +35,6 @@ export class Renderer extends AbstractRenderer {
3535
this.registerPlugin(new HTMLRenderer.Plugin());
3636
}
3737
}
38+
39+
// plugins
40+
export * from './plugins/path-generator';
File renamed without changes.

packages/g-plugin-canvas-path-generator/src/interfaces.ts renamed to packages/g-canvas/src/plugins/path-generator/interfaces.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Circle.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Circle.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Ellipse.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Ellipse.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Line.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Line.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Path.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Path.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Polygon.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Polygon.ts

File renamed without changes.

packages/g-plugin-canvas-path-generator/src/paths/Polyline.ts renamed to packages/g-canvas/src/plugins/path-generator/paths/Polyline.ts

File renamed without changes.

0 commit comments

Comments
 (0)