diff --git a/__tests__/demos/perf/index.ts b/__tests__/demos/perf/index.ts index efcf468e5..4dd1f67f2 100644 --- a/__tests__/demos/perf/index.ts +++ b/__tests__/demos/perf/index.ts @@ -2,3 +2,4 @@ export { circles } from './circles'; export { rects } from './rect'; export { image } from './image'; export { attrUpdate } from './attr-update'; +export { massiveAttrs } from './massive-attrs'; diff --git a/__tests__/demos/perf/massive-attrs.ts b/__tests__/demos/perf/massive-attrs.ts new file mode 100644 index 000000000..39226c6f9 --- /dev/null +++ b/__tests__/demos/perf/massive-attrs.ts @@ -0,0 +1,59 @@ +import { Rect, runtime } from '@antv/g'; + +export async function massiveAttrs(context) { + const { canvas, gui } = context; + + runtime.enableMassiveParsedStyleAssignOptimization = true; + + await canvas.ready; + + console.time('massiveAttrs'); + + for (let i = 0; i < 10000; i++) { + const rect = new Rect({ + style: { + x: Math.random() * 640, + y: Math.random() * 640, + width: 10 + Math.random() * 40, + height: 10 + Math.random() * 40, + fill: '#1890FF', + stroke: '#F04864', + lineWidth: 4, + + // extra attrs + 'attr-a': 1, + 'attr-b': 2, + 'attr-c': 3, + 'attr-d': 4, + 'attr-e': 5, + 'attr-f': 6, + 'attr-g': 7, + 'attr-h': 8, + 'attr-i': 9, + 'attr-j': 10, + 'attr-k': 11, + 'attr-l': 12, + 'attr-m': 13, + 'attr-n': 14, + 'attr-o': 15, + 'attr-p': 16, + 'attr-q': 17, + 'attr-r': 18, + 'attr-s': 19, + 'attr-t': 20, + 'attr-u': 21, + 'attr-v': 22, + 'attr-w': 23, + 'attr-x': 24, + 'attr-y': 25, + 'attr-z': 26, + }, + }); + + canvas.appendChild(rect); + } + + canvas.addEventListener('rerender', () => { + console.timeEnd('massiveAttrs'); + }); +} diff --git a/packages/g-camera-api/CHANGELOG.md b/packages/g-camera-api/CHANGELOG.md index 8b0b35733..7ff2549b5 100644 --- a/packages/g-camera-api/CHANGELOG.md +++ b/packages/g-camera-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-camera-api +## 2.0.21 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.20 ### Patch Changes diff --git a/packages/g-camera-api/package.json b/packages/g-camera-api/package.json index 2d46b48f9..bee4c8f0f 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": "2.0.20", + "version": "2.0.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 b368eaffb..3ef388134 100644 --- a/packages/g-canvas/CHANGELOG.md +++ b/packages/g-canvas/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvas +## 2.0.23 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-canvas-path-generator@2.1.2 + - @antv/g-plugin-canvas-picker@2.1.2 + - @antv/g-plugin-canvas-renderer@2.2.2 + - @antv/g-plugin-dom-interaction@2.1.7 + - @antv/g-plugin-html-renderer@2.1.7 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.0.22 ### Patch Changes diff --git a/packages/g-canvas/package.json b/packages/g-canvas/package.json index e4e87cdee..212f3164e 100644 --- a/packages/g-canvas/package.json +++ b/packages/g-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvas", - "version": "2.0.22", + "version": "2.0.23", "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 10726bc6f..d52c136f1 100644 --- a/packages/g-canvaskit/CHANGELOG.md +++ b/packages/g-canvaskit/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvaskit +## 1.0.22 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-canvas-path-generator@2.1.2 + - @antv/g-plugin-canvas-picker@2.1.2 + - @antv/g-plugin-canvaskit-renderer@2.1.2 + - @antv/g-plugin-dom-interaction@2.1.7 + - @antv/g-plugin-html-renderer@2.1.7 + - @antv/g-plugin-image-loader@2.1.2 + ## 1.0.21 ### Patch Changes diff --git a/packages/g-canvaskit/package.json b/packages/g-canvaskit/package.json index 89ab4ff8a..e9c342a85 100644 --- a/packages/g-canvaskit/package.json +++ b/packages/g-canvaskit/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvaskit", - "version": "1.0.21", + "version": "1.0.22", "description": "A renderer implemented by CanvasKit", "keywords": [ "antv", diff --git a/packages/g-components/CHANGELOG.md b/packages/g-components/CHANGELOG.md index f5ac1ad24..3629c93f1 100644 --- a/packages/g-components/CHANGELOG.md +++ b/packages/g-components/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-components +## 2.0.18 + +### Patch Changes + +- 0b639b81: optimize massive attrs clone +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-components/package.json b/packages/g-components/package.json index 4d4457439..43459e9fb 100644 --- a/packages/g-components/package.json +++ b/packages/g-components/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-components", - "version": "2.0.17", + "version": "2.0.18", "description": "Components for g", "keywords": [ "antv", diff --git a/packages/g-components/src/Arrow.ts b/packages/g-components/src/Arrow.ts index 3ba4a93d2..a4806101b 100644 --- a/packages/g-components/src/Arrow.ts +++ b/packages/g-components/src/Arrow.ts @@ -44,6 +44,19 @@ export interface ArrowStyleProps extends BaseStyleProps { export class Arrow extends CustomElement { static tag = 'arrow'; + static PARSED_STYLE_LIST = new Set([ + ...CustomElement.PARSED_STYLE_LIST, + 'body', + 'startHead', + 'endHead', + 'startHeadOffset', + 'endHeadOffset', + 'stroke', + 'lineWidth', + 'opacity', + 'strokeOpacity', + ]); + private body: Line | Path | Polyline; private startHead?: DisplayObject; private endHead?: DisplayObject; diff --git a/packages/g-components/src/Sector.ts b/packages/g-components/src/Sector.ts index ef31e9ea4..8d037d4c6 100644 --- a/packages/g-components/src/Sector.ts +++ b/packages/g-components/src/Sector.ts @@ -154,6 +154,17 @@ export interface SectorStyleProps extends BaseStyleProps { } export class Sector extends CustomElement { + static PARSED_STYLE_LIST = new Set([ + ...CustomElement.PARSED_STYLE_LIST, + 'startAngle', + 'endAngle', + 'sr', + 'sr0', + 'sradius', + 'sx', + 'sy', + ]); + static tag = 'sector'; private path: Path; diff --git a/packages/g-components/src/Sector2.ts b/packages/g-components/src/Sector2.ts index 92f6aa98d..46fb4f61b 100644 --- a/packages/g-components/src/Sector2.ts +++ b/packages/g-components/src/Sector2.ts @@ -137,6 +137,17 @@ function computeArcSweep(startAngle: number, endAngle: number) { } export class Sector extends Path { + static PARSED_STYLE_LIST = new Set([ + ...Path.PARSED_STYLE_LIST, + 'x', + 'y', + 'sr', + 'sr0', + 'radius', + 'startAngle', + 'endAngle', + ]); + // parsedStyle: any; constructor(config) { super(config); diff --git a/packages/g-dom-mutation-observer-api/CHANGELOG.md b/packages/g-dom-mutation-observer-api/CHANGELOG.md index 7b8c0f5a9..13516fc21 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 +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-dom-mutation-observer-api/package.json b/packages/g-dom-mutation-observer-api/package.json index a6a9f2a9e..11e3bd3ee 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": "2.0.17", + "version": "2.0.18", "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 13b5c78e7..97e608b08 100644 --- a/packages/g-gesture/CHANGELOG.md +++ b/packages/g-gesture/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-gesture +## 3.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 3.0.17 ### Patch Changes diff --git a/packages/g-gesture/package.json b/packages/g-gesture/package.json index fd2352a5c..d71b570e1 100644 --- a/packages/g-gesture/package.json +++ b/packages/g-gesture/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-gesture", - "version": "3.0.17", + "version": "3.0.18", "description": "G Gesture", "keywords": [ "antv", diff --git a/packages/g-image-exporter/CHANGELOG.md b/packages/g-image-exporter/CHANGELOG.md index c3c520228..4cc2b35e3 100644 --- a/packages/g-image-exporter/CHANGELOG.md +++ b/packages/g-image-exporter/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-image-exporter +## 1.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.0.17 ### Patch Changes diff --git a/packages/g-image-exporter/package.json b/packages/g-image-exporter/package.json index d9815fd14..bd50e2178 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": "1.0.17", + "version": "1.0.18", "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 400d5b071..6d20516ca 100644 --- a/packages/g-lite/CHANGELOG.md +++ b/packages/g-lite/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/g-lite +## 2.2.2 + +### Patch Changes + +- 0b639b81: optimize massive attrs clone + ## 2.2.1 ### Patch Changes diff --git a/packages/g-lite/package.json b/packages/g-lite/package.json index 46e033538..1db1ddd01 100644 --- a/packages/g-lite/package.json +++ b/packages/g-lite/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-lite", - "version": "2.2.1", + "version": "2.2.2", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", diff --git a/packages/g-lite/src/css/StyleValueRegistry.ts b/packages/g-lite/src/css/StyleValueRegistry.ts index 3c7112cb8..6c3a30ddf 100644 --- a/packages/g-lite/src/css/StyleValueRegistry.ts +++ b/packages/g-lite/src/css/StyleValueRegistry.ts @@ -2,7 +2,7 @@ import { isNil, isUndefined } from '@antv/util'; import { vec3 } from 'gl-matrix'; import type { DisplayObject } from '../display-objects'; import { EMPTY_PARSED_PATH } from '../display-objects/constants'; -import type { GlobalRuntime } from '../global-runtime'; +import { runtime, type GlobalRuntime } from '../global-runtime'; import { GeometryAABBUpdater } from '../services'; import { AABB } from '../shapes'; import type { BaseStyleProps, Tuple3Number } from '../types'; @@ -660,7 +660,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { const oldClipPath = object.parsedStyle.clipPath; const oldOffsetPath = object.parsedStyle.offsetPath; - Object.assign(object.parsedStyle, attributes); + assignParsedStyle(object, attributes); let needUpdateGeometry = !!options.forceUpdateGeometry; if (!needUpdateGeometry) { @@ -1000,3 +1000,20 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { } } } + +function assignParsedStyle( + object: DisplayObject, + attributes: Record, +) { + if (!runtime.enableMassiveParsedStyleAssignOptimization) { + Object.assign(object.parsedStyle, attributes); + return; + } + + const list = (object.constructor as typeof DisplayObject).PARSED_STYLE_LIST; + for (const key in attributes) { + if (list.has(key)) { + object.parsedStyle[key] = attributes[key]; + } + } +} diff --git a/packages/g-lite/src/display-objects/Circle.ts b/packages/g-lite/src/display-objects/Circle.ts index 884971fbb..d1c8ffcb6 100644 --- a/packages/g-lite/src/display-objects/Circle.ts +++ b/packages/g-lite/src/display-objects/Circle.ts @@ -41,6 +41,16 @@ export class Circle extends DisplayObject< CircleStyleProps, ParsedCircleStyleProps > { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'cx', + 'cy', + 'cz', + 'r', + 'isBillboard', + 'isSizeAttenuation', + ]); + constructor(options: DisplayObjectConfig = {}) { super({ type: Shape.CIRCLE, diff --git a/packages/g-lite/src/display-objects/CustomElement.ts b/packages/g-lite/src/display-objects/CustomElement.ts index 87cfe11e8..7c71a6091 100644 --- a/packages/g-lite/src/display-objects/CustomElement.ts +++ b/packages/g-lite/src/display-objects/CustomElement.ts @@ -11,10 +11,6 @@ export interface BaseCustomElementStyleProps extends BaseStyleProps {} export abstract class CustomElement< CustomElementStyleProps, > extends DisplayObject { - // static get observedAttributes(): string[] { - // return []; - // } - isCustomElement = true; // private shadowNodes: DisplayObject[] = []; @@ -46,54 +42,4 @@ export abstract class CustomElement< oldParsedValue?: any, newParsedValue?: any, ): void; - - // private handleMounted = (e: FederatedEvent) => { - // if (e.target === this) { - // // this.shadowNodes.forEach((node) => { - // // // every child and its children should turn into a shadow node - // // // a shadow node doesn't mean to be unrenderable, it's just unsearchable in scenegraph - // // node.shadow = true; - // // }); - - // if (this.connectedCallback) { - // this.connectedCallback(); - // } - // } - // }; - - // private handleUnmounted = (e: FederatedEvent) => { - // if (e.target === this) { - - // } - // }; - - // private handleChildInserted = (e: FederatedEvent) => { - // (e.target as DisplayObject).forEach((node) => { - // // append children like other shapes after mounted - // if (!this.isConnected) { - // this.shadowNodes.push(node as DisplayObject); - // } - // }); - // }; - - // private handleChildRemoved = (e: FederatedEvent) => { - // (e.target as DisplayObject).forEach((node) => { - // node.shadow = false; - // }); - // }; - - // private handleAttributeChanged = ( - // e: MutationEvent, - // ) => { - // // only listen itself - // // RangeError: Maximum call stack size exceeded - // if (e.target !== this) { - // return; - // } - - // const { attrName, prevValue, newValue } = e; - // if (this.attributeChangedCallback) { - // this.attributeChangedCallback(attrName as Key, prevValue, newValue); - // } - // }; } diff --git a/packages/g-lite/src/display-objects/DisplayObject.ts b/packages/g-lite/src/display-objects/DisplayObject.ts index 8d98739a9..2766e3d93 100644 --- a/packages/g-lite/src/display-objects/DisplayObject.ts +++ b/packages/g-lite/src/display-objects/DisplayObject.ts @@ -71,6 +71,51 @@ export class DisplayObject< StyleProps extends BaseStyleProps = any, ParsedStyleProps extends ParsedBaseStyleProps = any, > extends Element { + static PARSED_STYLE_LIST = new Set([ + 'class', + 'className', + 'clipPath', + 'cursor', + 'display', + 'draggable', + 'droppable', + 'fill', + 'fillOpacity', + 'fillRule', + 'filter', + 'increasedLineWidthForHitTesting', + 'lineCap', + 'lineDash', + 'lineDashOffset', + 'lineJoin', + 'lineWidth', + 'miterLimit', + 'hitArea', + 'offsetDistance', + 'offsetPath', + 'offsetX', + 'offsetY', + 'opacity', + 'pointerEvents', + 'shadowColor', + 'shadowType', + 'shadowBlur', + 'shadowOffsetX', + 'shadowOffsetY', + 'stroke', + 'strokeOpacity', + 'strokeWidth', + 'strokeLinecap', + 'strokeLineJoin', + 'strokeDasharray', + 'strokeDashoffset', + 'transform', + 'transformOrigin', + 'textTransform', + 'visibility', + 'zIndex', + ]); + /** * contains style props in constructor's params, eg. fill, stroke... */ diff --git a/packages/g-lite/src/display-objects/Ellipse.ts b/packages/g-lite/src/display-objects/Ellipse.ts index ce92aebbd..9bfff28b8 100644 --- a/packages/g-lite/src/display-objects/Ellipse.ts +++ b/packages/g-lite/src/display-objects/Ellipse.ts @@ -25,6 +25,17 @@ export class Ellipse extends DisplayObject< EllipseStyleProps, ParsedEllipseStyleProps > { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'cx', + 'cy', + 'cz', + 'rx', + 'ry', + 'isBillboard', + 'isSizeAttenuation', + ]); + constructor(options: DisplayObjectConfig = {}) { super({ type: Shape.ELLIPSE, diff --git a/packages/g-lite/src/display-objects/Group.ts b/packages/g-lite/src/display-objects/Group.ts index 2ec8c8344..8d675abc8 100644 --- a/packages/g-lite/src/display-objects/Group.ts +++ b/packages/g-lite/src/display-objects/Group.ts @@ -25,6 +25,12 @@ export interface ParsedGroupStyleProps extends ParsedBaseStyleProps { */ export class Group extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'width', + 'height', + ]); + constructor(options: DisplayObjectConfig = {}) { super({ type: Shape.GROUP, diff --git a/packages/g-lite/src/display-objects/HTML.ts b/packages/g-lite/src/display-objects/HTML.ts index 3edaf0b26..06beb2e11 100644 --- a/packages/g-lite/src/display-objects/HTML.ts +++ b/packages/g-lite/src/display-objects/HTML.ts @@ -27,6 +27,16 @@ export interface ParsedHTMLStyleProps extends ParsedBaseStyleProps { * @see https://github.com/pmndrs/drei#html */ export class HTML extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x', + 'y', + '$el', + 'innerHTML', + 'width', + 'height', + ]); + constructor({ style, ...rest }: DisplayObjectConfig = {}) { super({ type: Shape.HTML, diff --git a/packages/g-lite/src/display-objects/Image.ts b/packages/g-lite/src/display-objects/Image.ts index 8c7c494eb..c9471336c 100644 --- a/packages/g-lite/src/display-objects/Image.ts +++ b/packages/g-lite/src/display-objects/Image.ts @@ -43,6 +43,20 @@ export class Image extends DisplayObject< ImageStyleProps, ParsedImageStyleProps > { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x', + 'y', + 'z', + 'src', + 'width', + 'height', + 'isBillboard', + 'billboardRotation', + 'isSizeAttenuation', + 'keepAspectRatio', + ]); + constructor(options: DisplayObjectConfig = {}) { super({ type: Shape.IMAGE, diff --git a/packages/g-lite/src/display-objects/Line.ts b/packages/g-lite/src/display-objects/Line.ts index c08d8f7ee..13d59f8a7 100644 --- a/packages/g-lite/src/display-objects/Line.ts +++ b/packages/g-lite/src/display-objects/Line.ts @@ -81,6 +81,22 @@ export interface ParsedLineStyleProps extends ParsedBaseStyleProps { * Also support for using marker. */ export class Line extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x1', + 'y1', + 'x2', + 'y2', + 'z1', + 'z2', + 'isBillboard', + 'isSizeAttenuation', + 'markerStart', + 'markerEnd', + 'markerStartOffset', + 'markerEndOffset', + ]); + private markerStartAngle = 0; private markerEndAngle = 0; diff --git a/packages/g-lite/src/display-objects/Path.ts b/packages/g-lite/src/display-objects/Path.ts index 46141eb02..30ad9ff6a 100644 --- a/packages/g-lite/src/display-objects/Path.ts +++ b/packages/g-lite/src/display-objects/Path.ts @@ -106,6 +106,18 @@ export interface ParsedPathStyleProps extends ParsedBaseStyleProps { isSizeAttenuation?: boolean; } export class Path extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'd', + 'markerStart', + 'markerMid', + 'markerEnd', + 'markerStartOffset', + 'markerEndOffset', + 'isBillboard', + 'isSizeAttenuation', + ]); + private markerStartAngle = 0; private markerEndAngle = 0; diff --git a/packages/g-lite/src/display-objects/Polygon.ts b/packages/g-lite/src/display-objects/Polygon.ts index dda42b4c0..c8e19cfb8 100644 --- a/packages/g-lite/src/display-objects/Polygon.ts +++ b/packages/g-lite/src/display-objects/Polygon.ts @@ -50,6 +50,19 @@ export class Polygon extends DisplayObject< PolygonStyleProps, ParsedPolygonStyleProps > { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'points', + 'markerStart', + 'markerMid', + 'markerEnd', + 'markerStartOffset', + 'markerEndOffset', + 'isClosed', + 'isBillboard', + 'isSizeAttenuation', + ]); + private markerStartAngle = 0; private markerEndAngle = 0; diff --git a/packages/g-lite/src/display-objects/Polyline.ts b/packages/g-lite/src/display-objects/Polyline.ts index 7f439fbce..c937c8ec2 100644 --- a/packages/g-lite/src/display-objects/Polyline.ts +++ b/packages/g-lite/src/display-objects/Polyline.ts @@ -58,6 +58,17 @@ export interface ParsedPolylineStyleProps extends ParsedBaseStyleProps { * Polyline inherits the marker-related capabilities of Polygon. */ export class Polyline extends Polygon { + static PARSED_STYLE_LIST = new Set([ + ...Polygon.PARSED_STYLE_LIST, + 'points', + 'markerStart', + 'markerMid', + 'markerEnd', + 'markerStartOffset', + 'markerEndOffset', + 'isBillboard', + ]); + constructor({ style, ...rest diff --git a/packages/g-lite/src/display-objects/Rect.ts b/packages/g-lite/src/display-objects/Rect.ts index 1bec77bec..62f4c857f 100644 --- a/packages/g-lite/src/display-objects/Rect.ts +++ b/packages/g-lite/src/display-objects/Rect.ts @@ -29,6 +29,18 @@ export interface ParsedRectStyleProps extends ParsedBaseStyleProps { } export class Rect extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x', + 'y', + 'z', + 'width', + 'height', + 'isBillboard', + 'isSizeAttenuation', + 'radius', + ]); + constructor(options: DisplayObjectConfig = {}) { super({ type: Shape.RECT, diff --git a/packages/g-lite/src/display-objects/Text.ts b/packages/g-lite/src/display-objects/Text.ts index 2255d6b89..b59445aed 100644 --- a/packages/g-lite/src/display-objects/Text.ts +++ b/packages/g-lite/src/display-objects/Text.ts @@ -216,7 +216,6 @@ export interface ParsedTextStyleProps extends ParsedBaseStyleProps { fontVariant?: 'normal' | 'small-caps' | string; lineHeight?: number; letterSpacing?: number; - // whiteSpace?: 'pre'; leading?: number; wordWrap?: boolean; wordWrapWidth?: number; @@ -229,8 +228,6 @@ export interface ParsedTextStyleProps extends ParsedBaseStyleProps { textDecorationStyle?: TextDecorationStyle | string; textPathSide?: 'left' | 'right'; textPathStartOffset?: number; - // dropShadow?: boolean; - // dropShadowDistance?: number; metrics?: TextMetrics; dx?: number; dy?: number; @@ -240,6 +237,41 @@ export interface ParsedTextStyleProps extends ParsedBaseStyleProps { * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextElement */ export class Text extends DisplayObject { + static PARSED_STYLE_LIST: Set = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x', + 'y', + 'z', + 'isBillboard', + 'billboardRotation', + 'isSizeAttenuation', + 'text', + 'textAlign', + 'textBaseline', + 'fontStyle', + 'fontSize', + 'fontFamily', + 'fontWeight', + 'fontVariant', + 'lineHeight', + 'letterSpacing', + 'leading', + 'wordWrap', + 'wordWrapWidth', + 'maxLines', + 'textOverflow', + 'isOverflowing', + 'textPath', + 'textDecorationLine', + 'textDecorationColor', + 'textDecorationStyle', + 'textPathSide', + 'textPathStartOffset', + 'metrics', + 'dx', + 'dy', + ]); + /** * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement#constants */ diff --git a/packages/g-lite/src/global-runtime.ts b/packages/g-lite/src/global-runtime.ts index dfc8cd13c..498249bb4 100644 --- a/packages/g-lite/src/global-runtime.ts +++ b/packages/g-lite/src/global-runtime.ts @@ -73,6 +73,12 @@ export interface GlobalRuntime { enableStyleSyntax: boolean; enableSizeAttenuation: boolean; + + /** + * Only clone properties that are listed in the `PARSED_STYLE_LIST` of the display object. + * default false + */ + enableMassiveParsedStyleAssignOptimization?: boolean; } /** @@ -82,6 +88,7 @@ const geometryUpdaterFactory: Record> = (() => { const rectUpdater = new RectUpdater(); const polylineUpdater = new PolylineUpdater(); return { + [Shape.FRAGMENT]: null, [Shape.CIRCLE]: new CircleUpdater(), [Shape.ELLIPSE]: new EllipseUpdater(), [Shape.RECT]: rectUpdater, diff --git a/packages/g-lottie-player/CHANGELOG.md b/packages/g-lottie-player/CHANGELOG.md index 4e5aa22eb..338722fad 100644 --- a/packages/g-lottie-player/CHANGELOG.md +++ b/packages/g-lottie-player/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-lottie-player +## 1.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.0.17 ### Patch Changes diff --git a/packages/g-lottie-player/package.json b/packages/g-lottie-player/package.json index 95551ecec..9b5fc47d0 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": "1.0.17", + "version": "1.0.18", "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 c1ebe12d5..1339eb6d5 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 +## 1.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.0.17 ### Patch Changes diff --git a/packages/g-mobile-canvas-element/package.json b/packages/g-mobile-canvas-element/package.json index 71988ad9c..c50e3dceb 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": "1.0.17", + "version": "1.0.18", "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 8c362389f..caa613b3c 100644 --- a/packages/g-mobile-canvas/CHANGELOG.md +++ b/packages/g-mobile-canvas/CHANGELOG.md @@ -1,5 +1,19 @@ # @antv/g-mobile-canvas +## 1.0.20 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-canvas-path-generator@2.1.2 + - @antv/g-plugin-canvas-picker@2.1.2 + - @antv/g-plugin-canvas-renderer@2.2.2 + - @antv/g-plugin-dragndrop@2.0.18 + - @antv/g-plugin-gesture@2.0.18 + - @antv/g-plugin-image-loader@2.1.2 + - @antv/g-plugin-mobile-interaction@1.0.18 + ## 1.0.19 ### Patch Changes diff --git a/packages/g-mobile-canvas/package.json b/packages/g-mobile-canvas/package.json index 86378570e..c765b3f2e 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": "1.0.19", + "version": "1.0.20", "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 8f5e5aa40..01211f3d0 100644 --- a/packages/g-mobile-svg/CHANGELOG.md +++ b/packages/g-mobile-svg/CHANGELOG.md @@ -1,5 +1,17 @@ # @antv/g-mobile-svg +## 1.0.20 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-dragndrop@2.0.18 + - @antv/g-plugin-gesture@2.0.18 + - @antv/g-plugin-mobile-interaction@1.0.18 + - @antv/g-plugin-svg-picker@2.0.20 + - @antv/g-plugin-svg-renderer@2.2.2 + ## 1.0.19 ### Patch Changes diff --git a/packages/g-mobile-svg/package.json b/packages/g-mobile-svg/package.json index 1d1c49d3e..3295135fb 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": "1.0.19", + "version": "1.0.20", "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 adb449c00..0e71dc28e 100644 --- a/packages/g-mobile-webgl/CHANGELOG.md +++ b/packages/g-mobile-webgl/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-mobile-webgl +## 1.0.27 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-plugin-device-renderer@2.2.2 + - @antv/g-lite@2.2.2 + - @antv/g-plugin-dragndrop@2.0.18 + - @antv/g-plugin-gesture@2.0.18 + - @antv/g-plugin-html-renderer@2.1.7 + - @antv/g-plugin-image-loader@2.1.2 + - @antv/g-plugin-mobile-interaction@1.0.18 + ## 1.0.26 ### Patch Changes diff --git a/packages/g-mobile-webgl/package.json b/packages/g-mobile-webgl/package.json index 56aa14dc2..8ead7b905 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": "1.0.26", + "version": "1.0.27", "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 7713bedf6..065a1ca81 100644 --- a/packages/g-pattern/CHANGELOG.md +++ b/packages/g-pattern/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-pattern +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-pattern/package.json b/packages/g-pattern/package.json index 5654dca6f..52cbb66e4 100644 --- a/packages/g-pattern/package.json +++ b/packages/g-pattern/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-pattern", - "version": "2.0.17", + "version": "2.0.18", "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 f6be6cb8b..0f07614a5 100644 --- a/packages/g-plugin-3d/CHANGELOG.md +++ b/packages/g-plugin-3d/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-plugin-3d +## 2.0.25 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-plugin-device-renderer@2.2.2 + - @antv/g-lite@2.2.2 + ## 2.0.24 ### Patch Changes diff --git a/packages/g-plugin-3d/package.json b/packages/g-plugin-3d/package.json index c5768a646..34ac72681 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": "2.0.24", + "version": "2.0.25", "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 74b983e6d..e4107dd9f 100644 --- a/packages/g-plugin-a11y/CHANGELOG.md +++ b/packages/g-plugin-a11y/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-a11y +## 1.1.7 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.1.6 ### Patch Changes diff --git a/packages/g-plugin-a11y/package.json b/packages/g-plugin-a11y/package.json index 320adb6e9..940ff23b6 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": "1.1.6", + "version": "1.1.7", "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 443ac955d..9ac18cf09 100644 --- a/packages/g-plugin-annotation/CHANGELOG.md +++ b/packages/g-plugin-annotation/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-annotation +## 1.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.0.17 ### Patch Changes diff --git a/packages/g-plugin-annotation/package.json b/packages/g-plugin-annotation/package.json index 533f9e04b..c8423f529 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": "1.0.17", + "version": "1.0.18", "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 fb017ed22..a1de6c77e 100644 --- a/packages/g-plugin-box2d/CHANGELOG.md +++ b/packages/g-plugin-box2d/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-box2d +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-box2d/package.json b/packages/g-plugin-box2d/package.json index f69de3006..15deeda3e 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": "2.0.17", + "version": "2.0.18", "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 258c035f9..82cb86a4c 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 +## 2.1.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.1.1 ### Patch Changes diff --git a/packages/g-plugin-canvas-path-generator/package.json b/packages/g-plugin-canvas-path-generator/package.json index dfa1ea469..25720acc8 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": "2.1.1", + "version": "2.1.2", "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 92e8437df..b64f6da8f 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 +## 2.1.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-canvas-path-generator@2.1.2 + - @antv/g-plugin-canvas-renderer@2.2.2 + ## 2.1.1 ### Patch Changes diff --git a/packages/g-plugin-canvas-picker/package.json b/packages/g-plugin-canvas-picker/package.json index 50eda7025..d97e2dee2 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": "2.1.1", + "version": "2.1.2", "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 ebc539993..3df74fa62 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 +## 2.2.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-canvas-path-generator@2.1.2 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.2.1 ### Patch Changes diff --git a/packages/g-plugin-canvas-renderer/package.json b/packages/g-plugin-canvas-renderer/package.json index 36a2eb997..95706dd38 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": "2.2.1", + "version": "2.2.2", "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 61afbb972..00c42e767 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 +## 2.1.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.1.1 ### Patch Changes diff --git a/packages/g-plugin-canvaskit-renderer/package.json b/packages/g-plugin-canvaskit-renderer/package.json index adcf489af..fbd8aa176 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": "2.1.1", + "version": "2.1.2", "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 f663df85e..0a1277dac 100644 --- a/packages/g-plugin-control/CHANGELOG.md +++ b/packages/g-plugin-control/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-control +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-control/package.json b/packages/g-plugin-control/package.json index 3ffc16568..ed97a1e4c 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": "2.0.17", + "version": "2.0.18", "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 79a21604b..96ecee2cc 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 +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-css-select/package.json b/packages/g-plugin-css-select/package.json index e9ffb22e9..af73a2db5 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": "2.0.17", + "version": "2.0.18", "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 c8a8941a6..e5d12692d 100644 --- a/packages/g-plugin-device-renderer/CHANGELOG.md +++ b/packages/g-plugin-device-renderer/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-plugin-device-renderer +## 2.2.2 + +### Patch Changes + +- 0b639b81: optimize massive attrs clone +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.2.1 ### Patch Changes diff --git a/packages/g-plugin-device-renderer/package.json b/packages/g-plugin-device-renderer/package.json index a6007a1be..1e43a4626 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": "2.2.1", + "version": "2.2.2", "description": "A G plugin of renderer implementation with GPUDevice", "keywords": [ "antv", diff --git a/packages/g-plugin-device-renderer/src/Mesh.ts b/packages/g-plugin-device-renderer/src/Mesh.ts index 427335171..ef87fdbe6 100644 --- a/packages/g-plugin-device-renderer/src/Mesh.ts +++ b/packages/g-plugin-device-renderer/src/Mesh.ts @@ -26,6 +26,15 @@ export interface ParsedMeshStyleProps extends ParsedBaseStyleProps { export class Mesh extends DisplayObject< GeometryProps & MeshStyleProps > { + static PARSED_STYLE_LIST = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'x', + 'y', + 'z', + 'geometry', + 'material', + ]); + constructor({ style, ...rest diff --git a/packages/g-plugin-device-renderer/src/lights/Fog.ts b/packages/g-plugin-device-renderer/src/lights/Fog.ts index 08da3edc7..9be8fa950 100644 --- a/packages/g-plugin-device-renderer/src/lights/Fog.ts +++ b/packages/g-plugin-device-renderer/src/lights/Fog.ts @@ -17,6 +17,14 @@ export interface FogProps extends BaseStyleProps { end: number; } export class Fog extends DisplayObject { + static PARSED_STYLE_LIST = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'type', + 'density', + 'start', + 'end', + ]); + static tag = 'fog'; constructor({ style, ...rest }: DisplayObjectConfig = {}) { diff --git a/packages/g-plugin-device-renderer/src/lights/Light.ts b/packages/g-plugin-device-renderer/src/lights/Light.ts index 4a4a2763b..1218d26e8 100644 --- a/packages/g-plugin-device-renderer/src/lights/Light.ts +++ b/packages/g-plugin-device-renderer/src/lights/Light.ts @@ -6,6 +6,11 @@ export interface LightProps extends BaseStyleProps { intensity?: number; } export abstract class Light extends DisplayObject { + static PARSED_STYLE_LIST = new Set([ + ...DisplayObject.PARSED_STYLE_LIST, + 'intensity', + ]); + static tag = 'light'; abstract define: string; diff --git a/packages/g-plugin-dom-interaction/CHANGELOG.md b/packages/g-plugin-dom-interaction/CHANGELOG.md index cf61d4077..6d29cad70 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 +## 2.1.7 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.1.6 ### Patch Changes diff --git a/packages/g-plugin-dom-interaction/package.json b/packages/g-plugin-dom-interaction/package.json index 65018d7f2..85c60a875 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": "2.1.6", + "version": "2.1.7", "description": "A G plugin", "keywords": [ "antv", diff --git a/packages/g-plugin-dragndrop/CHANGELOG.md b/packages/g-plugin-dragndrop/CHANGELOG.md index f040d2e77..1f12636d3 100644 --- a/packages/g-plugin-dragndrop/CHANGELOG.md +++ b/packages/g-plugin-dragndrop/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-dragndrop +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-dragndrop/package.json b/packages/g-plugin-dragndrop/package.json index 460de7825..7f2a6022f 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": "2.0.17", + "version": "2.0.18", "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 09c670673..6a71f38d4 100644 --- a/packages/g-plugin-gesture/CHANGELOG.md +++ b/packages/g-plugin-gesture/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-gesture +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-gesture/package.json b/packages/g-plugin-gesture/package.json index f0d8591d3..357138bdd 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": "2.0.17", + "version": "2.0.18", "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 403986c1c..c8a3a2dfc 100644 --- a/packages/g-plugin-html-renderer/CHANGELOG.md +++ b/packages/g-plugin-html-renderer/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-html-renderer +## 2.1.7 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.1.6 ### Patch Changes diff --git a/packages/g-plugin-html-renderer/package.json b/packages/g-plugin-html-renderer/package.json index 9d41f497d..c6721ae3f 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": "2.1.6", + "version": "2.1.7", "description": "A G plugin for rendering HTML", "keywords": [ "antv", diff --git a/packages/g-plugin-image-loader/CHANGELOG.md b/packages/g-plugin-image-loader/CHANGELOG.md index 8c5c8c27f..5f48defb2 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 +## 2.1.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.1.1 ### Patch Changes diff --git a/packages/g-plugin-image-loader/package.json b/packages/g-plugin-image-loader/package.json index abe7ccb47..826ceef6f 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": "2.1.1", + "version": "2.1.2", "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 1fe4b1ca4..ce5ee901f 100644 --- a/packages/g-plugin-matterjs/CHANGELOG.md +++ b/packages/g-plugin-matterjs/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-matterjs +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-matterjs/package.json b/packages/g-plugin-matterjs/package.json index 450daa728..cec7f92d2 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": "2.0.17", + "version": "2.0.18", "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 f2a8a5ddc..81d79cc27 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 +## 1.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 1.0.17 ### Patch Changes diff --git a/packages/g-plugin-mobile-interaction/package.json b/packages/g-plugin-mobile-interaction/package.json index e86272344..a9b6eae4c 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": "1.0.17", + "version": "1.0.18", "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 ffd2aa475..b18e5cbe3 100644 --- a/packages/g-plugin-physx/CHANGELOG.md +++ b/packages/g-plugin-physx/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-physx +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-physx/package.json b/packages/g-plugin-physx/package.json index 6f26224ff..01b69ef6d 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": "2.0.17", + "version": "2.0.18", "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 26c473183..3603ee5dd 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 +## 2.0.23 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-canvas@2.0.23 + ## 2.0.22 ### Patch Changes diff --git a/packages/g-plugin-rough-canvas-renderer/package.json b/packages/g-plugin-rough-canvas-renderer/package.json index 33547e0d3..99d694e69 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": "2.0.22", + "version": "2.0.23", "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 256146569..cd7c28b75 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 +## 2.0.21 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-svg@2.0.20 + ## 2.0.20 ### Patch Changes diff --git a/packages/g-plugin-rough-svg-renderer/package.json b/packages/g-plugin-rough-svg-renderer/package.json index a5d791334..510b5b8f1 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": "2.0.20", + "version": "2.0.21", "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 43f7443c2..a96dfd60a 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 +## 2.0.20 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-svg-renderer@2.2.2 + ## 2.0.19 ### Patch Changes diff --git a/packages/g-plugin-svg-picker/package.json b/packages/g-plugin-svg-picker/package.json index c7fe0ec55..ce4c05a4c 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": "2.0.19", + "version": "2.0.20", "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 c42bc9eb1..aeffda6d8 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 +## 2.2.2 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.2.1 ### Patch Changes diff --git a/packages/g-plugin-svg-renderer/package.json b/packages/g-plugin-svg-renderer/package.json index 5c66b62ff..b78e4b705 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": "2.2.1", + "version": "2.2.2", "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 f8b2747f0..f649b1f5c 100644 --- a/packages/g-plugin-yoga/CHANGELOG.md +++ b/packages/g-plugin-yoga/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-yoga +## 2.0.18 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.0.17 ### Patch Changes diff --git a/packages/g-plugin-yoga/package.json b/packages/g-plugin-yoga/package.json index 68387a188..c7ad545a2 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": "2.0.17", + "version": "2.0.18", "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 9cb81400c..2887d8c9f 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 +## 2.0.22 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-canvas@2.0.23 + ## 2.0.21 ### Patch Changes diff --git a/packages/g-plugin-zdog-canvas-renderer/package.json b/packages/g-plugin-zdog-canvas-renderer/package.json index 9d5f1643d..25826e936 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": "2.0.21", + "version": "2.0.22", "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 c68549863..b0f643c94 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 +## 2.0.20 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-svg-renderer@2.2.2 + - @antv/g-svg@2.0.20 + ## 2.0.19 ### Patch Changes diff --git a/packages/g-plugin-zdog-svg-renderer/package.json b/packages/g-plugin-zdog-svg-renderer/package.json index ae0ef72da..f3cb4eac8 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": "2.0.19", + "version": "2.0.20", "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 5a326d48c..9c8009ceb 100644 --- a/packages/g-svg/CHANGELOG.md +++ b/packages/g-svg/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g-svg +## 2.0.20 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-plugin-dom-interaction@2.1.7 + - @antv/g-plugin-svg-picker@2.0.20 + - @antv/g-plugin-svg-renderer@2.2.2 + ## 2.0.19 ### Patch Changes diff --git a/packages/g-svg/package.json b/packages/g-svg/package.json index 9fae40376..a5f79edc3 100644 --- a/packages/g-svg/package.json +++ b/packages/g-svg/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-svg", - "version": "2.0.19", + "version": "2.0.20", "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 b601030bd..5d4e23cea 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 +## 2.1.7 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + ## 2.1.6 ### Patch Changes diff --git a/packages/g-web-animations-api/package.json b/packages/g-web-animations-api/package.json index 8ded87543..01370a712 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": "2.1.6", + "version": "2.1.7", "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 2319f24f2..d77618965 100644 --- a/packages/g-web-components/CHANGELOG.md +++ b/packages/g-web-components/CHANGELOG.md @@ -1,5 +1,14 @@ # @antv/g-web-components +## 2.0.28 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-webgl@2.0.27 + - @antv/g-canvas@2.0.23 + ## 2.0.27 ### Patch Changes diff --git a/packages/g-web-components/package.json b/packages/g-web-components/package.json index 6ed1d07d4..437382bc2 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": "2.0.27", + "version": "2.0.28", "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 3301dc5c7..3554cf2d9 100644 --- a/packages/g-webgl/CHANGELOG.md +++ b/packages/g-webgl/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgl +## 2.0.27 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-plugin-device-renderer@2.2.2 + - @antv/g-lite@2.2.2 + - @antv/g-plugin-dom-interaction@2.1.7 + - @antv/g-plugin-html-renderer@2.1.7 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.0.26 ### Patch Changes diff --git a/packages/g-webgl/package.json b/packages/g-webgl/package.json index b417a62a7..7b8e20576 100644 --- a/packages/g-webgl/package.json +++ b/packages/g-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgl", - "version": "2.0.26", + "version": "2.0.27", "description": "A renderer implemented by WebGL1/2", "keywords": [ "antv", diff --git a/packages/g-webgpu/CHANGELOG.md b/packages/g-webgpu/CHANGELOG.md index 39ca604c6..87338cb11 100644 --- a/packages/g-webgpu/CHANGELOG.md +++ b/packages/g-webgpu/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgpu +## 2.0.27 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-plugin-device-renderer@2.2.2 + - @antv/g-lite@2.2.2 + - @antv/g-plugin-dom-interaction@2.1.7 + - @antv/g-plugin-html-renderer@2.1.7 + - @antv/g-plugin-image-loader@2.1.2 + ## 2.0.26 ### Patch Changes diff --git a/packages/g-webgpu/package.json b/packages/g-webgpu/package.json index e9fe7d2c2..a0cf50e3a 100644 --- a/packages/g-webgpu/package.json +++ b/packages/g-webgpu/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgpu", - "version": "2.0.26", + "version": "2.0.27", "description": "A renderer implemented by WebGPU", "keywords": [ "antv", diff --git a/packages/g/CHANGELOG.md b/packages/g/CHANGELOG.md index 993369b05..7ffd6cdd6 100644 --- a/packages/g/CHANGELOG.md +++ b/packages/g/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g +## 6.1.7 + +### Patch Changes + +- Updated dependencies [0b639b81] + - @antv/g-lite@2.2.2 + - @antv/g-camera-api@2.0.21 + - @antv/g-dom-mutation-observer-api@2.0.18 + - @antv/g-web-animations-api@2.1.7 + ## 6.1.6 ### Patch Changes diff --git a/packages/g/package.json b/packages/g/package.json index 5b3046bfa..51fef15c0 100644 --- a/packages/g/package.json +++ b/packages/g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g", - "version": "6.1.6", + "version": "6.1.7", "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 ad05ea6eb..bbd367a2f 100644 --- a/packages/react-g/CHANGELOG.md +++ b/packages/react-g/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/react-g +## 2.0.23 + +### Patch Changes + +- @antv/g@6.1.7 + ## 2.0.22 ### Patch Changes diff --git a/packages/react-g/package.json b/packages/react-g/package.json index 9b93dff71..9cc5551e9 100644 --- a/packages/react-g/package.json +++ b/packages/react-g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/react-g", - "version": "2.0.22", + "version": "2.0.23", "description": "react render for @antv/g", "keywords": [ "react",