Skip to content

Commit 097ecf0

Browse files
committed
refactor: merge @antv/g-plugin-dom-interaction into @antv/g-lite
1 parent d9dd9d9 commit 097ecf0

25 files changed

Lines changed: 25 additions & 848 deletions

File tree

benchmark/tsconfig.app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@
9393
"../packages/g-plugin-device-renderer/src"
9494
],
9595
"@antv/g-lottie-player-local": ["../packages/g-lottie-player/src"],
96-
"@antv/g-plugin-dom-interaction-local": [
97-
"../packages/g-plugin-dom-interaction/src"
98-
],
9996
"@antv/g-web-components-local": ["../packages/g-web-components/src"],
10097
"@antv/g-math-local": ["../packages/g-math/src"],
10198
"@antv/g-plugin-dragndrop-local": ["../packages/g-plugin-dragndrop/src"],

benchmark/vite.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ export default defineConfig({
141141
__dirname,
142142
'../packages/g-lottie-player/src',
143143
),
144-
'@antv/g-plugin-dom-interaction-local': path.resolve(
145-
__dirname,
146-
'../packages/g-plugin-dom-interaction/src',
147-
),
148144
'@antv/g-web-components-local': path.resolve(
149145
__dirname,
150146
'../packages/g-web-components/src',

packages/g-canvas/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"dependencies": {
4646
"@antv/g-lite": "workspace:*",
4747
"@antv/g-plugin-canvas-renderer": "workspace:*",
48-
"@antv/g-plugin-dom-interaction": "workspace:*",
4948
"@antv/g-math": "workspace:*",
5049
"@antv/util": "^3.3.5",
5150
"@babel/runtime": "^7.25.6",

packages/g-canvas/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { RendererConfig } from '@antv/g-lite';
2-
import { AbstractRenderer, ImageLoader, HTMLRenderer } from '@antv/g-lite';
2+
import {
3+
AbstractRenderer,
4+
ImageLoader,
5+
HTMLRenderer,
6+
DomInteraction,
7+
} from '@antv/g-lite';
38
import * as CanvasRenderer from '@antv/g-plugin-canvas-renderer';
4-
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
59
import * as CanvasPicker from './plugins/picker';
610
import * as CanvasPathGenerator from './plugins/path-generator';
711
import { ContextRegisterPlugin } from './ContextRegisterPlugin';

packages/g-canvaskit/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@antv/g-canvas": "workspace:*",
4747
"@antv/g-lite": "workspace:*",
4848
"@antv/g-plugin-canvaskit-renderer": "workspace:*",
49-
"@antv/g-plugin-dom-interaction": "workspace:*",
5049
"@antv/util": "^3.3.5",
5150
"@babel/runtime": "^7.25.6",
5251
"canvaskit-wasm": "^0.34.0",

packages/g-canvaskit/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import type { RendererConfig } from '@antv/g-lite';
2-
import { AbstractRenderer, ImageLoader, HTMLRenderer } from '@antv/g-lite';
2+
import {
3+
AbstractRenderer,
4+
ImageLoader,
5+
HTMLRenderer,
6+
DomInteraction,
7+
} from '@antv/g-lite';
38
import { CanvasPathGenerator, CanvasPicker } from '@antv/g-canvas';
49
import * as CanvaskitRenderer from '@antv/g-plugin-canvaskit-renderer';
5-
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
610
import { ContextRegisterPlugin } from './ContextRegisterPlugin';
711

812
export * from './CanvasKitContextService';

packages/g-lite/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ export * from './plugins/MutationObserver';
6868
export * as ImageLoader from './plugins/image-loader';
6969
export { ImagePool, type ImageCache } from './plugins/image-loader';
7070
export * as HTMLRenderer from './plugins/html-renderer';
71+
export * as DomInteraction from './plugins/dom-interaction';

packages/g-plugin-dom-interaction/src/DOMInteractionPlugin.ts renamed to packages/g-lite/src/plugins/dom-interaction/DOMInteractionPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
InteractivePointerEvent,
44
RenderingPlugin,
55
RenderingPluginContext,
6-
} from '@antv/g-lite';
6+
} from '../..';
77

88
// const MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;
99

File renamed without changes.

packages/g-plugin-dom-interaction/src/index.ts renamed to packages/g-lite/src/plugins/dom-interaction/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbstractRendererPlugin } from '@antv/g-lite';
1+
import { AbstractRendererPlugin } from '../..';
22
import { DOMInteractionPlugin } from './DOMInteractionPlugin';
33

44
export class Plugin extends AbstractRendererPlugin {

0 commit comments

Comments
 (0)