diff --git a/__tests__/demos/bugfix/1610.ts b/__tests__/demos/bugfix/1610.ts new file mode 100644 index 000000000..c04244b52 --- /dev/null +++ b/__tests__/demos/bugfix/1610.ts @@ -0,0 +1,53 @@ +import { Canvas, Circle, HTML } from '../../../packages/g'; +import { Renderer as CanvasRenderer } from '../../../packages/g-canvas'; + +export async function html(context) { + const { canvas, container } = context; + await canvas.ready; + canvas.resize(320, 320); + + const $div2 = document.createElement('div'); + $div2.id = 'div2'; + container.appendChild($div2); + const canvasRenderer2 = new CanvasRenderer(); + const canvas2 = new Canvas({ + container: $div2, + width: 320, + height: 320, + renderer: canvasRenderer2, + }); + + const circle1 = new Circle({ + style: { + cx: 100, + cy: 100, + r: 50, + fill: 'red', + cursor: 'pointer', + }, + }); + canvas.appendChild(circle1); + const circle2 = new Circle({ + style: { + cx: 100, + cy: 100, + r: 50, + fill: 'green', + cursor: 'pointer', + }, + }); + canvas2.appendChild(circle2); + + const html = new HTML({ + id: 'html1', + style: { + x: 200, + y: 100, + width: 100, + height: 100, + innerHTML: 'canvas1', + // pointerEvents: 'none', + }, + }); + canvas.appendChild(html); +} diff --git a/__tests__/demos/bugfix/index.ts b/__tests__/demos/bugfix/index.ts new file mode 100644 index 000000000..188addbee --- /dev/null +++ b/__tests__/demos/bugfix/index.ts @@ -0,0 +1 @@ +export { html } from './1610'; diff --git a/__tests__/main.ts b/__tests__/main.ts index ff91153b3..fdb5f6354 100644 --- a/__tests__/main.ts +++ b/__tests__/main.ts @@ -12,6 +12,7 @@ import * as animation from './demos/animation'; import * as d3 from './demos/d3'; import * as plugin from './demos/plugin'; import * as hammerjs from './demos/hammerjs'; +import * as bugfix from './demos/bugfix'; const tests = { ...createSpecRender(namespace(basic2d, '2d')), @@ -20,6 +21,7 @@ const tests = { ...createSpecRender(namespace(d3, 'd3')), ...createSpecRender(namespace(plugin, 'plugin')), ...createSpecRender(namespace(hammerjs, 'hammerjs')), + ...createSpecRender(namespace(bugfix, 'bugfix')), }; const renderers = { @@ -130,7 +132,7 @@ function createOption(key) { const option = document.createElement('option'); option.value = key; option.textContent = key; - if (key === (window['DEFAULT_RENDERER'] || 'svg')) { + if (key === (window['DEFAULT_RENDERER'] || 'canvas')) { option.selected = true; } return option; @@ -180,7 +182,7 @@ function createSpecRender(object) { // @ts-ignore window.__g_instances__ = [canvas]; - await generate({ canvas, renderer }); + await generate({ canvas, renderer, container: $div }); container.append($div); }; diff --git a/packages/g-camera-api/CHANGELOG.md b/packages/g-camera-api/CHANGELOG.md index c63037001..74af66a58 100644 --- a/packages/g-camera-api/CHANGELOG.md +++ b/packages/g-camera-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-camera-api +## 1.2.21 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.2.20 ### Patch Changes diff --git a/packages/g-camera-api/package.json b/packages/g-camera-api/package.json index 11b04000b..c91cb086c 100644 --- a/packages/g-camera-api/package.json +++ b/packages/g-camera-api/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-camera-api", - "version": "1.2.20", + "version": "1.2.21", "description": "A simple implementation of Camera API.", "keywords": [ "antv", diff --git a/packages/g-canvas/CHANGELOG.md b/packages/g-canvas/CHANGELOG.md index 7b6deb89c..37df1c86f 100644 --- a/packages/g-canvas/CHANGELOG.md +++ b/packages/g-canvas/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvas +## 1.11.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-plugin-html-renderer@1.9.23 + - @antv/g-lite@1.2.20 + - @antv/g-plugin-canvas-path-generator@1.3.20 + - @antv/g-plugin-canvas-picker@1.10.22 + - @antv/g-plugin-canvas-renderer@1.9.22 + - @antv/g-plugin-dom-interaction@1.9.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.11.24 ### Patch Changes diff --git a/packages/g-canvas/package.json b/packages/g-canvas/package.json index f10c71303..ad479b270 100644 --- a/packages/g-canvas/package.json +++ b/packages/g-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvas", - "version": "1.11.24", + "version": "1.11.25", "description": "A renderer implemented by Canvas 2D API", "keywords": [ "antv", diff --git a/packages/g-canvaskit/CHANGELOG.md b/packages/g-canvaskit/CHANGELOG.md index 819e4d6b7..3b6d25d8d 100644 --- a/packages/g-canvaskit/CHANGELOG.md +++ b/packages/g-canvaskit/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvaskit +## 0.10.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-plugin-html-renderer@1.9.23 + - @antv/g-lite@1.2.20 + - @antv/g-plugin-canvas-path-generator@1.3.20 + - @antv/g-plugin-canvas-picker@1.10.22 + - @antv/g-plugin-canvaskit-renderer@1.3.21 + - @antv/g-plugin-dom-interaction@1.9.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 0.10.24 ### Patch Changes diff --git a/packages/g-canvaskit/package.json b/packages/g-canvaskit/package.json index 1d8868200..af8f781a4 100644 --- a/packages/g-canvaskit/package.json +++ b/packages/g-canvaskit/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvaskit", - "version": "0.10.24", + "version": "0.10.25", "description": "A renderer implemented by CanvasKit", "keywords": [ "antv", diff --git a/packages/g-components/CHANGELOG.md b/packages/g-components/CHANGELOG.md index ed843255b..67ac16cc3 100644 --- a/packages/g-components/CHANGELOG.md +++ b/packages/g-components/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-components +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-components/package.json b/packages/g-components/package.json index 5398fe465..8f43b8d02 100644 --- a/packages/g-components/package.json +++ b/packages/g-components/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-components", - "version": "1.9.19", + "version": "1.9.20", "description": "Components for g", "keywords": [ "antv", diff --git a/packages/g-dom-mutation-observer-api/CHANGELOG.md b/packages/g-dom-mutation-observer-api/CHANGELOG.md index 3da36bdd9..142fcd90d 100644 --- a/packages/g-dom-mutation-observer-api/CHANGELOG.md +++ b/packages/g-dom-mutation-observer-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-dom-mutation-observer-api +## 1.2.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.2.19 ### Patch Changes diff --git a/packages/g-dom-mutation-observer-api/package.json b/packages/g-dom-mutation-observer-api/package.json index 07becaac3..d158b81b8 100644 --- a/packages/g-dom-mutation-observer-api/package.json +++ b/packages/g-dom-mutation-observer-api/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-dom-mutation-observer-api", - "version": "1.2.19", + "version": "1.2.20", "description": "A simple implementation of DOM MutationObserver API.", "keywords": [ "antv", diff --git a/packages/g-gesture/CHANGELOG.md b/packages/g-gesture/CHANGELOG.md index dafa5f2c7..3c7c3b6f6 100644 --- a/packages/g-gesture/CHANGELOG.md +++ b/packages/g-gesture/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-gesture +## 2.2.23 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 2.2.22 ### Patch Changes diff --git a/packages/g-gesture/package.json b/packages/g-gesture/package.json index 71d85f05c..9dd7bcebc 100644 --- a/packages/g-gesture/package.json +++ b/packages/g-gesture/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-gesture", - "version": "2.2.22", + "version": "2.2.23", "description": "G Gesture", "keywords": [ "antv", diff --git a/packages/g-image-exporter/CHANGELOG.md b/packages/g-image-exporter/CHANGELOG.md index a4fa4b5a8..6bda07ba4 100644 --- a/packages/g-image-exporter/CHANGELOG.md +++ b/packages/g-image-exporter/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-image-exporter +## 0.7.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.7.19 ### Patch Changes diff --git a/packages/g-image-exporter/package.json b/packages/g-image-exporter/package.json index 42cdc751c..692974ad8 100644 --- a/packages/g-image-exporter/package.json +++ b/packages/g-image-exporter/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-image-exporter", - "version": "0.7.19", + "version": "0.7.20", "description": "A image exporter for G using DOM API", "keywords": [ "antv", diff --git a/packages/g-lite/CHANGELOG.md b/packages/g-lite/CHANGELOG.md index d7adc8603..33562a5be 100644 --- a/packages/g-lite/CHANGELOG.md +++ b/packages/g-lite/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/g-lite +## 1.2.20 + +### Patch Changes + +- ce11b242: Setup native html map per canvas instead of global singleton. + ## 1.2.19 ### Patch Changes diff --git a/packages/g-lite/package.json b/packages/g-lite/package.json index 8e8ca9c5a..13146907b 100644 --- a/packages/g-lite/package.json +++ b/packages/g-lite/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-lite", - "version": "1.2.19", + "version": "1.2.20", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", diff --git a/packages/g-lite/src/global-runtime.ts b/packages/g-lite/src/global-runtime.ts index ae2a8ac84..8a8b77deb 100644 --- a/packages/g-lite/src/global-runtime.ts +++ b/packages/g-lite/src/global-runtime.ts @@ -25,7 +25,6 @@ import { CSSPropertyTransformOrigin, CSSPropertyZIndex, } from './css/properties'; -import type { HTML } from './display-objects'; import type { GeometryAABBUpdater, SceneGraphSelector, @@ -67,7 +66,6 @@ export interface GlobalRuntime { >; globalThis: any; enableCSSParsing: boolean; - nativeHTMLMap: WeakMap; /** * Enable using dataset property. @@ -165,8 +163,6 @@ runtime.EasingFunction = null; runtime.offscreenCanvasCreator = new OffscreenCanvasCreator(); -runtime.nativeHTMLMap = new WeakMap(); - runtime.sceneGraphSelector = new DefaultSceneGraphSelector(); runtime.sceneGraphService = new DefaultSceneGraphService(runtime); diff --git a/packages/g-lite/src/services/EventService.ts b/packages/g-lite/src/services/EventService.ts index 48fa3f6d2..79e9e6721 100644 --- a/packages/g-lite/src/services/EventService.ts +++ b/packages/g-lite/src/services/EventService.ts @@ -49,6 +49,11 @@ export class EventService { private emitter = new EventEmitter(); + /** + * Store HTML elements in current canvas. + */ + nativeHTMLMap = new WeakMap(); + cursor: Cursor | null = 'default'; private mappingTable: Record< @@ -735,7 +740,7 @@ export class EventService { private getExistedHTML(event: FederatedEvent): HTML { if (event.nativeEvent.composedPath) { for (const eventTarget of event.nativeEvent.composedPath() as HTMLElement[]) { - const existed = this.globalRuntime.nativeHTMLMap.get(eventTarget); + const existed = this.nativeHTMLMap.get(eventTarget); if (existed) { return existed; } diff --git a/packages/g-lottie-player/CHANGELOG.md b/packages/g-lottie-player/CHANGELOG.md index 8590bdec2..467f0d2da 100644 --- a/packages/g-lottie-player/CHANGELOG.md +++ b/packages/g-lottie-player/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-lottie-player +## 0.2.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.2.19 ### Patch Changes diff --git a/packages/g-lottie-player/package.json b/packages/g-lottie-player/package.json index 625cba273..55c7ed5e3 100644 --- a/packages/g-lottie-player/package.json +++ b/packages/g-lottie-player/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-lottie-player", - "version": "0.2.19", + "version": "0.2.20", "description": "A lottie player for G", "keywords": [ "antv", diff --git a/packages/g-mobile-canvas-element/CHANGELOG.md b/packages/g-mobile-canvas-element/CHANGELOG.md index 36cf70afb..2942f30b5 100644 --- a/packages/g-mobile-canvas-element/CHANGELOG.md +++ b/packages/g-mobile-canvas-element/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-mobile-canvas-element +## 0.8.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.8.19 ### Patch Changes diff --git a/packages/g-mobile-canvas-element/package.json b/packages/g-mobile-canvas-element/package.json index 1506bad1c..0107852e3 100644 --- a/packages/g-mobile-canvas-element/package.json +++ b/packages/g-mobile-canvas-element/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-mobile-canvas-element", - "version": "0.8.19", + "version": "0.8.20", "description": "Create a CanvasLike element from existed context in mobile environment", "keywords": [ "antv", diff --git a/packages/g-mobile-canvas/CHANGELOG.md b/packages/g-mobile-canvas/CHANGELOG.md index a5bb2117c..e0e5621f9 100644 --- a/packages/g-mobile-canvas/CHANGELOG.md +++ b/packages/g-mobile-canvas/CHANGELOG.md @@ -1,5 +1,19 @@ # @antv/g-mobile-canvas +## 0.11.13 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-canvas-path-generator@1.3.20 + - @antv/g-plugin-canvas-picker@1.10.22 + - @antv/g-plugin-canvas-renderer@1.9.22 + - @antv/g-plugin-dragndrop@1.8.20 + - @antv/g-plugin-gesture@1.2.8 + - @antv/g-plugin-image-loader@1.3.20 + - @antv/g-plugin-mobile-interaction@0.9.20 + ## 0.11.12 ### Patch Changes diff --git a/packages/g-mobile-canvas/package.json b/packages/g-mobile-canvas/package.json index b6a407214..a32960fdd 100644 --- a/packages/g-mobile-canvas/package.json +++ b/packages/g-mobile-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-mobile-canvas", - "version": "0.11.12", + "version": "0.11.13", "description": "A renderer implemented with Canvas2D API in mobile environment", "keywords": [ "antv", diff --git a/packages/g-mobile-svg/CHANGELOG.md b/packages/g-mobile-svg/CHANGELOG.md index bbeee3fbd..7378b8ebb 100644 --- a/packages/g-mobile-svg/CHANGELOG.md +++ b/packages/g-mobile-svg/CHANGELOG.md @@ -1,5 +1,17 @@ # @antv/g-mobile-svg +## 0.10.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-dragndrop@1.8.20 + - @antv/g-plugin-gesture@1.2.8 + - @antv/g-plugin-mobile-interaction@0.9.20 + - @antv/g-plugin-svg-picker@1.9.24 + - @antv/g-plugin-svg-renderer@1.10.24 + ## 0.10.24 ### Patch Changes diff --git a/packages/g-mobile-svg/package.json b/packages/g-mobile-svg/package.json index 1e9ce184d..85eeb0f0e 100644 --- a/packages/g-mobile-svg/package.json +++ b/packages/g-mobile-svg/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-mobile-svg", - "version": "0.10.24", + "version": "0.10.25", "description": "A renderer implemented by SVG in mobile environment", "keywords": [ "antv", diff --git a/packages/g-mobile-webgl/CHANGELOG.md b/packages/g-mobile-webgl/CHANGELOG.md index 9d8a17c47..aaab1654a 100644 --- a/packages/g-mobile-webgl/CHANGELOG.md +++ b/packages/g-mobile-webgl/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-mobile-webgl +## 0.9.36 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-plugin-html-renderer@1.9.23 + - @antv/g-lite@1.2.20 + - @antv/g-plugin-device-renderer@1.9.32 + - @antv/g-plugin-dragndrop@1.8.20 + - @antv/g-plugin-gesture@1.2.8 + - @antv/g-plugin-image-loader@1.3.20 + - @antv/g-plugin-mobile-interaction@0.9.20 + ## 0.9.35 ### Patch Changes diff --git a/packages/g-mobile-webgl/package.json b/packages/g-mobile-webgl/package.json index 833ec9b29..1d6dce716 100644 --- a/packages/g-mobile-webgl/package.json +++ b/packages/g-mobile-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-mobile-webgl", - "version": "0.9.35", + "version": "0.9.36", "description": "A renderer implemented by WebGL1/2 in mobile environment", "keywords": [ "antv", diff --git a/packages/g-pattern/CHANGELOG.md b/packages/g-pattern/CHANGELOG.md index 65a42cca3..ac1d2e9ea 100644 --- a/packages/g-pattern/CHANGELOG.md +++ b/packages/g-pattern/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-pattern +## 1.2.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.2.19 ### Patch Changes diff --git a/packages/g-pattern/package.json b/packages/g-pattern/package.json index 1c432dcb0..f11f24966 100644 --- a/packages/g-pattern/package.json +++ b/packages/g-pattern/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-pattern", - "version": "1.2.19", + "version": "1.2.20", "description": "A pattern libs for G", "keywords": [ "antv", diff --git a/packages/g-plugin-3d/CHANGELOG.md b/packages/g-plugin-3d/CHANGELOG.md index 555aaedb3..58e19d0d5 100644 --- a/packages/g-plugin-3d/CHANGELOG.md +++ b/packages/g-plugin-3d/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-3d +## 1.9.32 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-device-renderer@1.9.32 + ## 1.9.31 ### Patch Changes diff --git a/packages/g-plugin-3d/package.json b/packages/g-plugin-3d/package.json index c1aa407ab..a0ff47f81 100644 --- a/packages/g-plugin-3d/package.json +++ b/packages/g-plugin-3d/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-3d", - "version": "1.9.31", + "version": "1.9.32", "description": "Provide 3D extension for G", "keywords": [ "antv", diff --git a/packages/g-plugin-a11y/CHANGELOG.md b/packages/g-plugin-a11y/CHANGELOG.md index bb2cde139..7fbf77856 100644 --- a/packages/g-plugin-a11y/CHANGELOG.md +++ b/packages/g-plugin-a11y/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-a11y +## 0.6.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.6.19 ### Patch Changes diff --git a/packages/g-plugin-a11y/package.json b/packages/g-plugin-a11y/package.json index 9f8f5180e..69a825425 100644 --- a/packages/g-plugin-a11y/package.json +++ b/packages/g-plugin-a11y/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-a11y", - "version": "0.6.19", + "version": "0.6.20", "description": "A G plugin for accessibility", "keywords": [ "antv", diff --git a/packages/g-plugin-annotation/CHANGELOG.md b/packages/g-plugin-annotation/CHANGELOG.md index e019472ec..39d864389 100644 --- a/packages/g-plugin-annotation/CHANGELOG.md +++ b/packages/g-plugin-annotation/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-annotation +## 0.4.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.4.19 ### Patch Changes diff --git a/packages/g-plugin-annotation/package.json b/packages/g-plugin-annotation/package.json index 66c117904..44d20d556 100644 --- a/packages/g-plugin-annotation/package.json +++ b/packages/g-plugin-annotation/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-annotation", - "version": "0.4.19", + "version": "0.4.20", "description": "A G plugin for annotation", "keywords": [ "antv", diff --git a/packages/g-plugin-box2d/CHANGELOG.md b/packages/g-plugin-box2d/CHANGELOG.md index e0c25b2c7..57780f2d0 100644 --- a/packages/g-plugin-box2d/CHANGELOG.md +++ b/packages/g-plugin-box2d/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-box2d +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-box2d/package.json b/packages/g-plugin-box2d/package.json index 37e23ad95..4acef78c5 100644 --- a/packages/g-plugin-box2d/package.json +++ b/packages/g-plugin-box2d/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-box2d", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for Box2D", "keywords": [ "antv", diff --git a/packages/g-plugin-canvas-path-generator/CHANGELOG.md b/packages/g-plugin-canvas-path-generator/CHANGELOG.md index 4ece8965c..9fdd2c01f 100644 --- a/packages/g-plugin-canvas-path-generator/CHANGELOG.md +++ b/packages/g-plugin-canvas-path-generator/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-canvas-path-generator +## 1.3.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.3.19 ### Patch Changes diff --git a/packages/g-plugin-canvas-path-generator/package.json b/packages/g-plugin-canvas-path-generator/package.json index 6e0c71b96..27a034a46 100644 --- a/packages/g-plugin-canvas-path-generator/package.json +++ b/packages/g-plugin-canvas-path-generator/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-canvas-path-generator", - "version": "1.3.19", + "version": "1.3.20", "description": "A G plugin of path generator with Canvas2D API", "keywords": [ "antv", diff --git a/packages/g-plugin-canvas-picker/CHANGELOG.md b/packages/g-plugin-canvas-picker/CHANGELOG.md index c797e3b96..297cb4d0f 100644 --- a/packages/g-plugin-canvas-picker/CHANGELOG.md +++ b/packages/g-plugin-canvas-picker/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-plugin-canvas-picker +## 1.10.22 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-canvas-path-generator@1.3.20 + - @antv/g-plugin-canvas-renderer@1.9.22 + ## 1.10.21 ### Patch Changes diff --git a/packages/g-plugin-canvas-picker/package.json b/packages/g-plugin-canvas-picker/package.json index cd014cd64..2bd499103 100644 --- a/packages/g-plugin-canvas-picker/package.json +++ b/packages/g-plugin-canvas-picker/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-canvas-picker", - "version": "1.10.21", + "version": "1.10.22", "description": "A G plugin for picking in canvas", "keywords": [ "antv", diff --git a/packages/g-plugin-canvas-renderer/CHANGELOG.md b/packages/g-plugin-canvas-renderer/CHANGELOG.md index 9bb0293e4..38806e78e 100644 --- a/packages/g-plugin-canvas-renderer/CHANGELOG.md +++ b/packages/g-plugin-canvas-renderer/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-plugin-canvas-renderer +## 1.9.22 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-canvas-path-generator@1.3.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.9.21 ### Patch Changes diff --git a/packages/g-plugin-canvas-renderer/package.json b/packages/g-plugin-canvas-renderer/package.json index a064ea8b8..42ef71f75 100644 --- a/packages/g-plugin-canvas-renderer/package.json +++ b/packages/g-plugin-canvas-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-canvas-renderer", - "version": "1.9.21", + "version": "1.9.22", "description": "A G plugin of renderer implementation with Canvas2D API", "keywords": [ "antv", diff --git a/packages/g-plugin-canvaskit-renderer/CHANGELOG.md b/packages/g-plugin-canvaskit-renderer/CHANGELOG.md index 2e1084fc8..1b55add76 100644 --- a/packages/g-plugin-canvaskit-renderer/CHANGELOG.md +++ b/packages/g-plugin-canvaskit-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-canvaskit-renderer +## 1.3.21 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.3.20 ### Patch Changes diff --git a/packages/g-plugin-canvaskit-renderer/package.json b/packages/g-plugin-canvaskit-renderer/package.json index fe0d6d91a..7b740da1f 100644 --- a/packages/g-plugin-canvaskit-renderer/package.json +++ b/packages/g-plugin-canvaskit-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-canvaskit-renderer", - "version": "1.3.20", + "version": "1.3.21", "description": "A G plugin of renderer implementation with CanvasKit", "keywords": [ "antv", diff --git a/packages/g-plugin-control/CHANGELOG.md b/packages/g-plugin-control/CHANGELOG.md index ee039c804..7722bcc9d 100644 --- a/packages/g-plugin-control/CHANGELOG.md +++ b/packages/g-plugin-control/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-control +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-control/package.json b/packages/g-plugin-control/package.json index 8f2b4f997..b36e42dcc 100644 --- a/packages/g-plugin-control/package.json +++ b/packages/g-plugin-control/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-control", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for orbit control", "keywords": [ "antv", diff --git a/packages/g-plugin-css-select/CHANGELOG.md b/packages/g-plugin-css-select/CHANGELOG.md index d45c74409..eece80895 100644 --- a/packages/g-plugin-css-select/CHANGELOG.md +++ b/packages/g-plugin-css-select/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-css-select +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-css-select/package.json b/packages/g-plugin-css-select/package.json index fba0d541e..8354dd8f1 100644 --- a/packages/g-plugin-css-select/package.json +++ b/packages/g-plugin-css-select/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-css-select", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for using CSS select syntax in query selector", "keywords": [ "antv", diff --git a/packages/g-plugin-device-renderer/CHANGELOG.md b/packages/g-plugin-device-renderer/CHANGELOG.md index 32cde090e..02c9c6c07 100644 --- a/packages/g-plugin-device-renderer/CHANGELOG.md +++ b/packages/g-plugin-device-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-device-renderer +## 1.9.32 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.9.31 ### Patch Changes diff --git a/packages/g-plugin-device-renderer/package.json b/packages/g-plugin-device-renderer/package.json index 080abcd48..43e2369f9 100644 --- a/packages/g-plugin-device-renderer/package.json +++ b/packages/g-plugin-device-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-device-renderer", - "version": "1.9.31", + "version": "1.9.32", "description": "A G plugin of renderer implementation with GPUDevice", "keywords": [ "antv", diff --git a/packages/g-plugin-dom-interaction/CHANGELOG.md b/packages/g-plugin-dom-interaction/CHANGELOG.md index b70c849bb..ae10db4b9 100644 --- a/packages/g-plugin-dom-interaction/CHANGELOG.md +++ b/packages/g-plugin-dom-interaction/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-dom-interaction +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-dom-interaction/package.json b/packages/g-plugin-dom-interaction/package.json index 0289693e3..c9580ad2f 100644 --- a/packages/g-plugin-dom-interaction/package.json +++ b/packages/g-plugin-dom-interaction/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-dom-interaction", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin", "keywords": [ "antv", diff --git a/packages/g-plugin-dragndrop/CHANGELOG.md b/packages/g-plugin-dragndrop/CHANGELOG.md index 6ec64d7e6..3e691dd0f 100644 --- a/packages/g-plugin-dragndrop/CHANGELOG.md +++ b/packages/g-plugin-dragndrop/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-dragndrop +## 1.8.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.8.19 ### Patch Changes diff --git a/packages/g-plugin-dragndrop/package.json b/packages/g-plugin-dragndrop/package.json index 06df7630c..05ec6d038 100644 --- a/packages/g-plugin-dragndrop/package.json +++ b/packages/g-plugin-dragndrop/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-dragndrop", - "version": "1.8.19", + "version": "1.8.20", "description": "A G plugin for Drag n Drop implemented with PointerEvents", "keywords": [ "antv", diff --git a/packages/g-plugin-gesture/CHANGELOG.md b/packages/g-plugin-gesture/CHANGELOG.md index dc211b340..7e804db46 100644 --- a/packages/g-plugin-gesture/CHANGELOG.md +++ b/packages/g-plugin-gesture/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-gesture +## 1.2.8 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.2.7 ### Patch Changes diff --git a/packages/g-plugin-gesture/package.json b/packages/g-plugin-gesture/package.json index 779e141ce..084ec192c 100644 --- a/packages/g-plugin-gesture/package.json +++ b/packages/g-plugin-gesture/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-gesture", - "version": "1.2.7", + "version": "1.2.8", "description": "A G plugin for Gesture implemented with PointerEvents", "keywords": [ "antv", diff --git a/packages/g-plugin-html-renderer/CHANGELOG.md b/packages/g-plugin-html-renderer/CHANGELOG.md index 47cbaefaf..87baf9e6e 100644 --- a/packages/g-plugin-html-renderer/CHANGELOG.md +++ b/packages/g-plugin-html-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-html-renderer +## 1.9.23 + +### Patch Changes + +- ce11b242: Setup native html map per canvas instead of global singleton. +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.22 ### Patch Changes diff --git a/packages/g-plugin-html-renderer/package.json b/packages/g-plugin-html-renderer/package.json index f1ee2fa67..aa5c4157b 100644 --- a/packages/g-plugin-html-renderer/package.json +++ b/packages/g-plugin-html-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-html-renderer", - "version": "1.9.22", + "version": "1.9.23", "description": "A G plugin for rendering HTML", "keywords": [ "antv", diff --git a/packages/g-plugin-html-renderer/src/HTMLRenderingPlugin.ts b/packages/g-plugin-html-renderer/src/HTMLRenderingPlugin.ts index 4412ade11..40f38f7d5 100644 --- a/packages/g-plugin-html-renderer/src/HTMLRenderingPlugin.ts +++ b/packages/g-plugin-html-renderer/src/HTMLRenderingPlugin.ts @@ -51,6 +51,7 @@ export class HTMLRenderingPlugin implements RenderingPlugin { const { camera, renderingContext, renderingService } = context; this.context = context; const canvas = renderingContext.root.ownerDocument.defaultView; + const { nativeHTMLMap } = canvas.context.eventService; const setTransform = (object: HTML, $el: HTMLElement) => { $el.style.transform = this.joinTransformMatrix( @@ -83,7 +84,7 @@ export class HTMLRenderingPlugin implements RenderingPlugin { setTransform(object, $el); - this.context.nativeHTMLMap.set($el, object); + nativeHTMLMap.set($el, object); } }; @@ -93,7 +94,7 @@ export class HTMLRenderingPlugin implements RenderingPlugin { const $el = this.getOrCreateEl(object); if ($el) { $el.remove(); - this.context.nativeHTMLMap.delete($el); + nativeHTMLMap.delete($el); } } }; diff --git a/packages/g-plugin-image-loader/CHANGELOG.md b/packages/g-plugin-image-loader/CHANGELOG.md index 96b1c98d7..f83e2f367 100644 --- a/packages/g-plugin-image-loader/CHANGELOG.md +++ b/packages/g-plugin-image-loader/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-image-loader +## 1.3.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.3.19 ### Patch Changes diff --git a/packages/g-plugin-image-loader/package.json b/packages/g-plugin-image-loader/package.json index 9609903e2..fd55865a3 100644 --- a/packages/g-plugin-image-loader/package.json +++ b/packages/g-plugin-image-loader/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-image-loader", - "version": "1.3.19", + "version": "1.3.20", "description": "A G plugin for loading image", "keywords": [ "antv", diff --git a/packages/g-plugin-matterjs/CHANGELOG.md b/packages/g-plugin-matterjs/CHANGELOG.md index 02c002003..12e4b312a 100644 --- a/packages/g-plugin-matterjs/CHANGELOG.md +++ b/packages/g-plugin-matterjs/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-matterjs +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-matterjs/package.json b/packages/g-plugin-matterjs/package.json index f0f98c87b..81f14cacf 100644 --- a/packages/g-plugin-matterjs/package.json +++ b/packages/g-plugin-matterjs/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-matterjs", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for matter.js physics engine", "keywords": [ "antv", diff --git a/packages/g-plugin-mobile-interaction/CHANGELOG.md b/packages/g-plugin-mobile-interaction/CHANGELOG.md index dbf051a36..ead7ffe4b 100644 --- a/packages/g-plugin-mobile-interaction/CHANGELOG.md +++ b/packages/g-plugin-mobile-interaction/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-mobile-interaction +## 0.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 0.9.19 ### Patch Changes diff --git a/packages/g-plugin-mobile-interaction/package.json b/packages/g-plugin-mobile-interaction/package.json index d1a663e39..ff0ab8a19 100644 --- a/packages/g-plugin-mobile-interaction/package.json +++ b/packages/g-plugin-mobile-interaction/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-mobile-interaction", - "version": "0.9.19", + "version": "0.9.20", "description": "A G plugin listening events in mobile environment", "keywords": [ "antv", diff --git a/packages/g-plugin-physx/CHANGELOG.md b/packages/g-plugin-physx/CHANGELOG.md index 6094c6670..55e682ceb 100644 --- a/packages/g-plugin-physx/CHANGELOG.md +++ b/packages/g-plugin-physx/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-physx +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-physx/package.json b/packages/g-plugin-physx/package.json index e18c9225c..a20f22e3b 100644 --- a/packages/g-plugin-physx/package.json +++ b/packages/g-plugin-physx/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-physx", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for PhysX", "keywords": [ "antv", diff --git a/packages/g-plugin-rough-canvas-renderer/CHANGELOG.md b/packages/g-plugin-rough-canvas-renderer/CHANGELOG.md index 9467ef403..27a3a210c 100644 --- a/packages/g-plugin-rough-canvas-renderer/CHANGELOG.md +++ b/packages/g-plugin-rough-canvas-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-rough-canvas-renderer +## 1.9.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-canvas@1.11.25 + ## 1.9.24 ### Patch Changes diff --git a/packages/g-plugin-rough-canvas-renderer/package.json b/packages/g-plugin-rough-canvas-renderer/package.json index 59218041b..fca81a125 100644 --- a/packages/g-plugin-rough-canvas-renderer/package.json +++ b/packages/g-plugin-rough-canvas-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-rough-canvas-renderer", - "version": "1.9.24", + "version": "1.9.25", "description": "A G plugin of renderer implementation with rough.js", "keywords": [ "antv", diff --git a/packages/g-plugin-rough-svg-renderer/CHANGELOG.md b/packages/g-plugin-rough-svg-renderer/CHANGELOG.md index 6fe7a5ab4..3b252dfab 100644 --- a/packages/g-plugin-rough-svg-renderer/CHANGELOG.md +++ b/packages/g-plugin-rough-svg-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-rough-svg-renderer +## 1.9.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-svg@1.10.24 + ## 1.9.24 ### Patch Changes diff --git a/packages/g-plugin-rough-svg-renderer/package.json b/packages/g-plugin-rough-svg-renderer/package.json index 3e0755ca8..3285e909f 100644 --- a/packages/g-plugin-rough-svg-renderer/package.json +++ b/packages/g-plugin-rough-svg-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-rough-svg-renderer", - "version": "1.9.24", + "version": "1.9.25", "description": "A G plugin of renderer implementation with rough.js", "keywords": [ "antv", diff --git a/packages/g-plugin-svg-picker/CHANGELOG.md b/packages/g-plugin-svg-picker/CHANGELOG.md index 2ef6ca7ea..bb8e14795 100644 --- a/packages/g-plugin-svg-picker/CHANGELOG.md +++ b/packages/g-plugin-svg-picker/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-svg-picker +## 1.9.24 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-svg-renderer@1.10.24 + ## 1.9.23 ### Patch Changes diff --git a/packages/g-plugin-svg-picker/package.json b/packages/g-plugin-svg-picker/package.json index 0868847c1..1cb48db85 100644 --- a/packages/g-plugin-svg-picker/package.json +++ b/packages/g-plugin-svg-picker/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-svg-picker", - "version": "1.9.23", + "version": "1.9.24", "description": "A G plugin for picking in SVG", "keywords": [ "antv", diff --git a/packages/g-plugin-svg-renderer/CHANGELOG.md b/packages/g-plugin-svg-renderer/CHANGELOG.md index dbd177c2b..f0595fb94 100644 --- a/packages/g-plugin-svg-renderer/CHANGELOG.md +++ b/packages/g-plugin-svg-renderer/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-svg-renderer +## 1.10.24 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.10.23 ### Patch Changes diff --git a/packages/g-plugin-svg-renderer/package.json b/packages/g-plugin-svg-renderer/package.json index 67c5eb078..07d6b940d 100644 --- a/packages/g-plugin-svg-renderer/package.json +++ b/packages/g-plugin-svg-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-svg-renderer", - "version": "1.10.23", + "version": "1.10.24", "description": "A G plugin of renderer implementation with SVG", "keywords": [ "antv", diff --git a/packages/g-plugin-yoga/CHANGELOG.md b/packages/g-plugin-yoga/CHANGELOG.md index c5359c395..617e5463f 100644 --- a/packages/g-plugin-yoga/CHANGELOG.md +++ b/packages/g-plugin-yoga/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-yoga +## 1.9.20 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.9.19 ### Patch Changes diff --git a/packages/g-plugin-yoga/package.json b/packages/g-plugin-yoga/package.json index 896b3fa9e..d589f59b0 100644 --- a/packages/g-plugin-yoga/package.json +++ b/packages/g-plugin-yoga/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-yoga", - "version": "1.9.19", + "version": "1.9.20", "description": "A G plugin for Yoga layout engine", "keywords": [ "antv", diff --git a/packages/g-plugin-zdog-canvas-renderer/CHANGELOG.md b/packages/g-plugin-zdog-canvas-renderer/CHANGELOG.md index c8b69d1e8..f5f9a560e 100644 --- a/packages/g-plugin-zdog-canvas-renderer/CHANGELOG.md +++ b/packages/g-plugin-zdog-canvas-renderer/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-zdog-canvas-renderer +## 1.2.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-canvas@1.11.25 + ## 1.2.24 ### Patch Changes diff --git a/packages/g-plugin-zdog-canvas-renderer/package.json b/packages/g-plugin-zdog-canvas-renderer/package.json index 15ed1f455..a7c2dd8ba 100644 --- a/packages/g-plugin-zdog-canvas-renderer/package.json +++ b/packages/g-plugin-zdog-canvas-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-zdog-canvas-renderer", - "version": "1.2.24", + "version": "1.2.25", "description": "A G plugin of renderer implementation with Zdog", "keywords": [ "antv", diff --git a/packages/g-plugin-zdog-svg-renderer/CHANGELOG.md b/packages/g-plugin-zdog-svg-renderer/CHANGELOG.md index 270b06f8f..dc68da758 100644 --- a/packages/g-plugin-zdog-svg-renderer/CHANGELOG.md +++ b/packages/g-plugin-zdog-svg-renderer/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-plugin-zdog-svg-renderer +## 1.2.25 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-svg-renderer@1.10.24 + - @antv/g-svg@1.10.24 + ## 1.2.24 ### Patch Changes diff --git a/packages/g-plugin-zdog-svg-renderer/package.json b/packages/g-plugin-zdog-svg-renderer/package.json index f143cea29..5fff5f28f 100644 --- a/packages/g-plugin-zdog-svg-renderer/package.json +++ b/packages/g-plugin-zdog-svg-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-zdog-svg-renderer", - "version": "1.2.24", + "version": "1.2.25", "description": "A G plugin of renderer implementation with Zdog", "keywords": [ "antv", diff --git a/packages/g-svg/CHANGELOG.md b/packages/g-svg/CHANGELOG.md index 9610a871f..2e8148c10 100644 --- a/packages/g-svg/CHANGELOG.md +++ b/packages/g-svg/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g-svg +## 1.10.24 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-plugin-dom-interaction@1.9.20 + - @antv/g-plugin-svg-picker@1.9.24 + - @antv/g-plugin-svg-renderer@1.10.24 + ## 1.10.23 ### Patch Changes diff --git a/packages/g-svg/package.json b/packages/g-svg/package.json index 44f8a9ebc..2b62ac46c 100644 --- a/packages/g-svg/package.json +++ b/packages/g-svg/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-svg", - "version": "1.10.23", + "version": "1.10.24", "description": "A renderer implemented by SVG", "keywords": [ "antv", diff --git a/packages/g-web-animations-api/CHANGELOG.md b/packages/g-web-animations-api/CHANGELOG.md index 7e1a5ad7b..8be0f7657 100644 --- a/packages/g-web-animations-api/CHANGELOG.md +++ b/packages/g-web-animations-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-web-animations-api +## 1.2.21 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + ## 1.2.20 ### Patch Changes diff --git a/packages/g-web-animations-api/package.json b/packages/g-web-animations-api/package.json index d860382bd..785c10d7a 100644 --- a/packages/g-web-animations-api/package.json +++ b/packages/g-web-animations-api/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-web-animations-api", - "version": "1.2.20", + "version": "1.2.21", "description": "A simple implementation of Web Animations API.", "keywords": [ "antv", diff --git a/packages/g-web-components/CHANGELOG.md b/packages/g-web-components/CHANGELOG.md index ba56365fb..47765e87f 100644 --- a/packages/g-web-components/CHANGELOG.md +++ b/packages/g-web-components/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-web-components +## 1.9.36 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-canvas@1.11.25 + - @antv/g-webgl@1.9.35 + ## 1.9.35 ### Patch Changes diff --git a/packages/g-web-components/package.json b/packages/g-web-components/package.json index 0c0ed9bb0..cc0cf90e2 100644 --- a/packages/g-web-components/package.json +++ b/packages/g-web-components/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-web-components", - "version": "1.9.35", + "version": "1.9.36", "description": "A declarative usage for G implemented with WebComponents", "keywords": [ "antv", diff --git a/packages/g-webgl/CHANGELOG.md b/packages/g-webgl/CHANGELOG.md index 938b3a5db..32eef1284 100644 --- a/packages/g-webgl/CHANGELOG.md +++ b/packages/g-webgl/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgl +## 1.9.35 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-plugin-html-renderer@1.9.23 + - @antv/g-lite@1.2.20 + - @antv/g-plugin-device-renderer@1.9.32 + - @antv/g-plugin-dom-interaction@1.9.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.9.34 ### Patch Changes diff --git a/packages/g-webgl/package.json b/packages/g-webgl/package.json index 0f18c99be..4af62453b 100644 --- a/packages/g-webgl/package.json +++ b/packages/g-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgl", - "version": "1.9.34", + "version": "1.9.35", "description": "A renderer implemented by WebGL1/2", "keywords": [ "antv", diff --git a/packages/g-webgpu/CHANGELOG.md b/packages/g-webgpu/CHANGELOG.md index 62b3c837b..1c20efe76 100644 --- a/packages/g-webgpu/CHANGELOG.md +++ b/packages/g-webgpu/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgpu +## 1.9.35 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-plugin-html-renderer@1.9.23 + - @antv/g-lite@1.2.20 + - @antv/g-plugin-device-renderer@1.9.32 + - @antv/g-plugin-dom-interaction@1.9.20 + - @antv/g-plugin-image-loader@1.3.20 + ## 1.9.34 ### Patch Changes diff --git a/packages/g-webgpu/package.json b/packages/g-webgpu/package.json index a7bae2b39..0a27ea0f3 100644 --- a/packages/g-webgpu/package.json +++ b/packages/g-webgpu/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgpu", - "version": "1.9.34", + "version": "1.9.35", "description": "A renderer implemented by WebGPU", "keywords": [ "antv", diff --git a/packages/g/CHANGELOG.md b/packages/g/CHANGELOG.md index bcb4c39a8..7bb973e81 100644 --- a/packages/g/CHANGELOG.md +++ b/packages/g/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g +## 5.18.23 + +### Patch Changes + +- Updated dependencies [ce11b242] + - @antv/g-lite@1.2.20 + - @antv/g-camera-api@1.2.21 + - @antv/g-dom-mutation-observer-api@1.2.20 + - @antv/g-web-animations-api@1.2.21 + ## 5.18.22 ### Patch Changes diff --git a/packages/g/package.json b/packages/g/package.json index 9763b05c5..842d61ebc 100644 --- a/packages/g/package.json +++ b/packages/g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g", - "version": "5.18.22", + "version": "5.18.23", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", diff --git a/packages/react-g/CHANGELOG.md b/packages/react-g/CHANGELOG.md index d6ca6aca4..54ddc7d71 100644 --- a/packages/react-g/CHANGELOG.md +++ b/packages/react-g/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/react-g +## 1.10.24 + +### Patch Changes + +- @antv/g@5.18.23 + ## 1.10.23 ### Patch Changes diff --git a/packages/react-g/package.json b/packages/react-g/package.json index 0fee659c7..4e36be326 100644 --- a/packages/react-g/package.json +++ b/packages/react-g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/react-g", - "version": "1.10.23", + "version": "1.10.24", "description": "react render for @antv/g", "keywords": [ "react", diff --git a/site/examples/canvas/container/demo/dom-canvas.js b/site/examples/canvas/container/demo/dom-canvas.js index 018d28e86..1dbacf584 100644 --- a/site/examples/canvas/container/demo/dom-canvas.js +++ b/site/examples/canvas/container/demo/dom-canvas.js @@ -1,4 +1,4 @@ -import { Canvas, CanvasEvent, Circle } from '@antv/g'; +import { Canvas, CanvasEvent, Circle, HTML } from '@antv/g'; import { Renderer as CanvasRenderer } from '@antv/g-canvas'; import { Renderer as SVGRenderer } from '@antv/g-svg'; import { Renderer as WebGLRenderer } from '@antv/g-webgl'; @@ -52,6 +52,20 @@ canvas1.addEventListener(CanvasEvent.READY, () => { circle1.addEventListener('mouseleave', () => { circle1.attr('fill', '#1890FF'); }); + + canvas1.appendChild( + new HTML({ + id: 'html1', + style: { + x: 100, + y: 100, + width: 100, + height: 100, + innerHTML: 'canvas1', + // pointerEvents: 'none', + }, + }), + ); }); canvas2.addEventListener(CanvasEvent.READY, () => { @@ -74,6 +88,20 @@ canvas2.addEventListener(CanvasEvent.READY, () => { circle2.addEventListener('mouseleave', () => { circle2.attr('fill', '#1890FF'); }); + + // canvas2.appendChild( + // new HTML({ + // id: 'html2', + // style: { + // x: 100, + // y: 100, + // width: 100, + // height: 100, + // innerHTML: 'canvas2', + // pointerEvents: 'none', + // }, + // }), + // ); }); // stats