From 76b373f372dc0e855cfdb8ec16a16a1f1d49827d Mon Sep 17 00:00:00 2001 From: xiaoiver Date: Wed, 10 Jan 2024 15:11:43 +0800 Subject: [PATCH] Release (#1622) * fix: disable memoize during interpolation #1618 (#1620) * fix: disable memoize during interpolation #1618 * chore: commit changeset * chore(release): bump version (#1621) Co-authored-by: github-actions[bot] --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] --- __tests__/demos/2d/circles.ts | 28 ++++++++ __tests__/demos/lottie/index.ts | 1 + __tests__/demos/lottie/spring.ts | 14 ++++ __tests__/main.ts | 2 + packages/g-camera-api/CHANGELOG.md | 7 ++ packages/g-camera-api/package.json | 2 +- packages/g-canvas/CHANGELOG.md | 13 ++++ packages/g-canvas/package.json | 2 +- packages/g-canvaskit/CHANGELOG.md | 13 ++++ packages/g-canvaskit/package.json | 2 +- packages/g-components/CHANGELOG.md | 7 ++ packages/g-components/package.json | 2 +- .../g-dom-mutation-observer-api/CHANGELOG.md | 7 ++ .../g-dom-mutation-observer-api/package.json | 2 +- packages/g-gesture/CHANGELOG.md | 7 ++ packages/g-gesture/package.json | 2 +- packages/g-image-exporter/CHANGELOG.md | 7 ++ packages/g-image-exporter/package.json | 2 +- packages/g-lite/CHANGELOG.md | 6 ++ packages/g-lite/package.json | 2 +- packages/g-lite/src/css/CSSProperty.ts | 9 +++ packages/g-lite/src/css/StyleValueRegistry.ts | 17 ++++- packages/g-lite/src/css/interfaces.ts | 3 + packages/g-lite/src/css/parser/dimension.ts | 42 +++++++---- packages/g-lite/src/css/parser/numeric.ts | 14 +++- .../g-lite/src/css/parser/transform-origin.ts | 45 +++++++++++- packages/g-lite/src/css/parser/transform.ts | 69 ++++++++++++++++++- .../src/css/properties/CSSPropertyAngle.ts | 7 +- .../CSSPropertyLengthOrPercentage.ts | 6 +- .../src/css/properties/CSSPropertyNumber.ts | 7 +- .../properties/CSSPropertyOffsetDistance.ts | 7 +- .../src/css/properties/CSSPropertyOpacity.ts | 7 +- .../css/properties/CSSPropertyTransform.ts | 9 ++- .../properties/CSSPropertyTransformOrigin.ts | 12 +++- .../src/css/properties/CSSPropertyZIndex.ts | 4 +- .../src/display-objects/DisplayObject.ts | 3 +- packages/g-lottie-player/CHANGELOG.md | 7 ++ packages/g-lottie-player/package.json | 2 +- packages/g-mobile-canvas-element/CHANGELOG.md | 7 ++ packages/g-mobile-canvas-element/package.json | 2 +- packages/g-mobile-canvas/CHANGELOG.md | 14 ++++ packages/g-mobile-canvas/package.json | 2 +- packages/g-mobile-svg/CHANGELOG.md | 12 ++++ packages/g-mobile-svg/package.json | 2 +- packages/g-mobile-webgl/CHANGELOG.md | 13 ++++ packages/g-mobile-webgl/package.json | 2 +- packages/g-pattern/CHANGELOG.md | 7 ++ packages/g-pattern/package.json | 2 +- packages/g-plugin-3d/CHANGELOG.md | 8 +++ packages/g-plugin-3d/package.json | 2 +- packages/g-plugin-a11y/CHANGELOG.md | 7 ++ packages/g-plugin-a11y/package.json | 2 +- packages/g-plugin-annotation/CHANGELOG.md | 7 ++ packages/g-plugin-annotation/package.json | 2 +- packages/g-plugin-box2d/CHANGELOG.md | 7 ++ packages/g-plugin-box2d/package.json | 2 +- .../CHANGELOG.md | 7 ++ .../package.json | 2 +- packages/g-plugin-canvas-picker/CHANGELOG.md | 9 +++ packages/g-plugin-canvas-picker/package.json | 2 +- .../g-plugin-canvas-renderer/CHANGELOG.md | 9 +++ .../g-plugin-canvas-renderer/package.json | 2 +- .../g-plugin-canvaskit-renderer/CHANGELOG.md | 8 +++ .../g-plugin-canvaskit-renderer/package.json | 2 +- packages/g-plugin-control/CHANGELOG.md | 7 ++ packages/g-plugin-control/package.json | 2 +- packages/g-plugin-css-select/CHANGELOG.md | 7 ++ packages/g-plugin-css-select/package.json | 2 +- .../g-plugin-device-renderer/CHANGELOG.md | 8 +++ .../g-plugin-device-renderer/package.json | 2 +- .../g-plugin-dom-interaction/CHANGELOG.md | 7 ++ .../g-plugin-dom-interaction/package.json | 2 +- packages/g-plugin-dragndrop/CHANGELOG.md | 7 ++ packages/g-plugin-dragndrop/package.json | 2 +- packages/g-plugin-gesture/CHANGELOG.md | 7 ++ packages/g-plugin-gesture/package.json | 2 +- packages/g-plugin-html-renderer/CHANGELOG.md | 7 ++ packages/g-plugin-html-renderer/package.json | 2 +- packages/g-plugin-image-loader/CHANGELOG.md | 7 ++ packages/g-plugin-image-loader/package.json | 2 +- packages/g-plugin-matterjs/CHANGELOG.md | 7 ++ packages/g-plugin-matterjs/package.json | 2 +- .../g-plugin-mobile-interaction/CHANGELOG.md | 7 ++ .../g-plugin-mobile-interaction/package.json | 2 +- packages/g-plugin-physx/CHANGELOG.md | 7 ++ packages/g-plugin-physx/package.json | 2 +- .../CHANGELOG.md | 8 +++ .../package.json | 2 +- .../g-plugin-rough-svg-renderer/CHANGELOG.md | 8 +++ .../g-plugin-rough-svg-renderer/package.json | 2 +- packages/g-plugin-svg-picker/CHANGELOG.md | 8 +++ packages/g-plugin-svg-picker/package.json | 2 +- packages/g-plugin-svg-renderer/CHANGELOG.md | 7 ++ packages/g-plugin-svg-renderer/package.json | 2 +- packages/g-plugin-yoga/CHANGELOG.md | 7 ++ packages/g-plugin-yoga/package.json | 2 +- .../CHANGELOG.md | 8 +++ .../package.json | 2 +- .../g-plugin-zdog-svg-renderer/CHANGELOG.md | 9 +++ .../g-plugin-zdog-svg-renderer/package.json | 2 +- packages/g-svg/CHANGELOG.md | 10 +++ packages/g-svg/package.json | 2 +- packages/g-web-animations-api/CHANGELOG.md | 8 +++ packages/g-web-animations-api/package.json | 2 +- .../src/utils/interpolation.ts | 6 ++ packages/g-web-components/CHANGELOG.md | 9 +++ packages/g-web-components/package.json | 2 +- packages/g-webgl/CHANGELOG.md | 11 +++ packages/g-webgl/package.json | 2 +- packages/g-webgpu/CHANGELOG.md | 11 +++ packages/g-webgpu/package.json | 2 +- packages/g/CHANGELOG.md | 10 +++ packages/g/package.json | 2 +- packages/react-g/CHANGELOG.md | 6 ++ packages/react-g/package.json | 2 +- 115 files changed, 712 insertions(+), 81 deletions(-) create mode 100644 __tests__/demos/2d/circles.ts create mode 100644 __tests__/demos/lottie/index.ts create mode 100644 __tests__/demos/lottie/spring.ts diff --git a/__tests__/demos/2d/circles.ts b/__tests__/demos/2d/circles.ts new file mode 100644 index 000000000..b9b3c36a6 --- /dev/null +++ b/__tests__/demos/2d/circles.ts @@ -0,0 +1,28 @@ +import { Circle, runtime } from '../../../packages/g'; + +export async function circles(context) { + runtime.enableCSSParsing = false; + + const { canvas } = context; + await canvas.ready; + + for (let i = 0; i < 50000; i++) { + const circle = new Circle({ + style: { + cx: Math.random() * 500, + cy: Math.random() * 500, + r: 5, + fill: 'red', + stroke: 'blue', + }, + }); + canvas.appendChild(circle); + + circle.addEventListener('mouseenter', () => { + circle.style.fill = 'green'; + }); + circle.addEventListener('mouseleave', () => { + circle.style.fill = 'red'; + }); + } +} diff --git a/__tests__/demos/lottie/index.ts b/__tests__/demos/lottie/index.ts new file mode 100644 index 000000000..dd9210d58 --- /dev/null +++ b/__tests__/demos/lottie/index.ts @@ -0,0 +1 @@ +export { spring } from './spring'; diff --git a/__tests__/demos/lottie/spring.ts b/__tests__/demos/lottie/spring.ts new file mode 100644 index 000000000..08547eadd --- /dev/null +++ b/__tests__/demos/lottie/spring.ts @@ -0,0 +1,14 @@ +import { runtime } from '../../../packages/g'; +import { loadAnimation } from '../../../packages/g-lottie-player'; +import * as d3 from 'd3'; + +export async function spring(context) { + runtime.enableCSSParsing = true; + + const { canvas } = context; + await canvas.ready; + + const data = await d3.json('/lottie/spring.json'); + const animation = loadAnimation(data, { loop: true, autoplay: true }); + const wrapper = animation.render(canvas); +} diff --git a/__tests__/main.ts b/__tests__/main.ts index fdb5f6354..33501602d 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 lottie from './demos/lottie'; import * as bugfix from './demos/bugfix'; const tests = { @@ -21,6 +22,7 @@ const tests = { ...createSpecRender(namespace(d3, 'd3')), ...createSpecRender(namespace(plugin, 'plugin')), ...createSpecRender(namespace(hammerjs, 'hammerjs')), + ...createSpecRender(namespace(lottie, 'lottie')), ...createSpecRender(namespace(bugfix, 'bugfix')), }; diff --git a/packages/g-camera-api/CHANGELOG.md b/packages/g-camera-api/CHANGELOG.md index 74af66a58..ccad1c5f1 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.22 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.2.21 ### Patch Changes diff --git a/packages/g-camera-api/package.json b/packages/g-camera-api/package.json index c91cb086c..2efbc3394 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.21", + "version": "1.2.22", "description": "A simple implementation of Camera API.", "keywords": [ "antv", diff --git a/packages/g-canvas/CHANGELOG.md b/packages/g-canvas/CHANGELOG.md index 37df1c86f..2b6f26128 100644 --- a/packages/g-canvas/CHANGELOG.md +++ b/packages/g-canvas/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvas +## 1.11.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-canvas-path-generator@1.3.21 + - @antv/g-plugin-canvas-picker@1.10.23 + - @antv/g-plugin-canvas-renderer@1.9.23 + - @antv/g-plugin-dom-interaction@1.9.21 + - @antv/g-plugin-html-renderer@1.9.24 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.11.25 ### Patch Changes diff --git a/packages/g-canvas/package.json b/packages/g-canvas/package.json index ad479b270..1af30bbd9 100644 --- a/packages/g-canvas/package.json +++ b/packages/g-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvas", - "version": "1.11.25", + "version": "1.11.26", "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 3b6d25d8d..915448bba 100644 --- a/packages/g-canvaskit/CHANGELOG.md +++ b/packages/g-canvaskit/CHANGELOG.md @@ -1,5 +1,18 @@ # @antv/g-canvaskit +## 0.10.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-canvas-path-generator@1.3.21 + - @antv/g-plugin-canvas-picker@1.10.23 + - @antv/g-plugin-canvaskit-renderer@1.3.22 + - @antv/g-plugin-dom-interaction@1.9.21 + - @antv/g-plugin-html-renderer@1.9.24 + - @antv/g-plugin-image-loader@1.3.21 + ## 0.10.25 ### Patch Changes diff --git a/packages/g-canvaskit/package.json b/packages/g-canvaskit/package.json index af8f781a4..da78cc73d 100644 --- a/packages/g-canvaskit/package.json +++ b/packages/g-canvaskit/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-canvaskit", - "version": "0.10.25", + "version": "0.10.26", "description": "A renderer implemented by CanvasKit", "keywords": [ "antv", diff --git a/packages/g-components/CHANGELOG.md b/packages/g-components/CHANGELOG.md index 67ac16cc3..4bce3dcce 100644 --- a/packages/g-components/CHANGELOG.md +++ b/packages/g-components/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-components +## 1.9.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-components/package.json b/packages/g-components/package.json index 8f43b8d02..be7d82261 100644 --- a/packages/g-components/package.json +++ b/packages/g-components/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-components", - "version": "1.9.20", + "version": "1.9.21", "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 142fcd90d..c28755a69 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.2.20 ### Patch Changes diff --git a/packages/g-dom-mutation-observer-api/package.json b/packages/g-dom-mutation-observer-api/package.json index d158b81b8..f17364adc 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.20", + "version": "1.2.21", "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 3c7c3b6f6..2d57d4cf9 100644 --- a/packages/g-gesture/CHANGELOG.md +++ b/packages/g-gesture/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-gesture +## 2.2.24 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 2.2.23 ### Patch Changes diff --git a/packages/g-gesture/package.json b/packages/g-gesture/package.json index 9dd7bcebc..37f71d578 100644 --- a/packages/g-gesture/package.json +++ b/packages/g-gesture/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-gesture", - "version": "2.2.23", + "version": "2.2.24", "description": "G Gesture", "keywords": [ "antv", diff --git a/packages/g-image-exporter/CHANGELOG.md b/packages/g-image-exporter/CHANGELOG.md index 6bda07ba4..1b6f2d3fb 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.7.20 ### Patch Changes diff --git a/packages/g-image-exporter/package.json b/packages/g-image-exporter/package.json index 692974ad8..c5764855d 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.20", + "version": "0.7.21", "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 33562a5be..a8f7148c9 100644 --- a/packages/g-lite/CHANGELOG.md +++ b/packages/g-lite/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/g-lite +## 1.2.21 + +### Patch Changes + +- 5f5cf270: Disable memoize during interpolation to avoid OOM. + ## 1.2.20 ### Patch Changes diff --git a/packages/g-lite/package.json b/packages/g-lite/package.json index 13146907b..96b3ec495 100644 --- a/packages/g-lite/package.json +++ b/packages/g-lite/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-lite", - "version": "1.2.20", + "version": "1.2.21", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", diff --git a/packages/g-lite/src/css/CSSProperty.ts b/packages/g-lite/src/css/CSSProperty.ts index 12fe5f30a..93de9ca33 100644 --- a/packages/g-lite/src/css/CSSProperty.ts +++ b/packages/g-lite/src/css/CSSProperty.ts @@ -42,6 +42,15 @@ export interface CSSProperty { * '180deg' -> CSS.deg(180) */ parser: CSSPropertyParser; + + /** + * Don't use memoize, eg. during animation. + */ + parserUnmemoize: CSSPropertyParser; + + /** + * Ignore CSS syntax. + */ parserWithCSSDisabled: CSSPropertyParser; /** diff --git a/packages/g-lite/src/css/StyleValueRegistry.ts b/packages/g-lite/src/css/StyleValueRegistry.ts index 335f48281..de79cee18 100644 --- a/packages/g-lite/src/css/StyleValueRegistry.ts +++ b/packages/g-lite/src/css/StyleValueRegistry.ts @@ -689,6 +689,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { skipParse: false, forceUpdateGeometry: false, usedAttributes: [], + memoize: true, }, ) { if (!this.runtime.enableCSSParsing) { @@ -932,6 +933,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { skipParse, forceUpdateGeometry, usedAttributes, + memoize, } = options; let needUpdateGeometry = forceUpdateGeometry; @@ -953,6 +955,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { name as string, object.attributes[name], object, + memoize, ); }); } @@ -997,6 +1000,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { name as string, object.computedStyle[name], object, + memoize, ); } }); @@ -1041,6 +1045,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { name: string, value: any, object: DisplayObject, + memoized: boolean, ): CSSStyleValue { const metadata = propertyMetadataCache[name]; @@ -1061,9 +1066,13 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { if (keywords && keywords.indexOf(value) > -1) { // computed = new CSSKeywordValue(value); computed = getOrCreateKeyword(value); - } else if (handler && handler.parser) { - // try to parse it to CSSStyleValue, eg. '10px' -> CSS.px(10) - computed = handler.parser(value, object); + } else if (handler) { + if (!memoized && handler.parserUnmemoize) { + computed = handler.parserUnmemoize(value, object); + } else if (handler.parser) { + // try to parse it to CSSStyleValue, eg. '10px' -> CSS.px(10) + computed = handler.parser(value, object); + } } } } @@ -1078,6 +1087,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { name: string, computed: CSSStyleValue, object: DisplayObject, + memoized: boolean, ) { const metadata = propertyMetadataCache[name]; const isDocumentElement = object.id === 'g-root'; @@ -1110,6 +1120,7 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry { ? defaultValue(object.nodeName) : defaultValue, object, + memoized, ); } } else if (value === 'inherit') { diff --git a/packages/g-lite/src/css/interfaces.ts b/packages/g-lite/src/css/interfaces.ts index db48a2319..53a085d65 100644 --- a/packages/g-lite/src/css/interfaces.ts +++ b/packages/g-lite/src/css/interfaces.ts @@ -131,6 +131,7 @@ export interface PropertyParseOptions { skipParse: boolean; forceUpdateGeometry: boolean; usedAttributes: string[]; + memoize: boolean; } export interface StyleValueRegistry { @@ -150,11 +151,13 @@ export interface StyleValueRegistry { name: string, value: any, object: DisplayObject, + memoized: boolean, ) => CSSStyleValue; computeProperty: ( name: string, computed: CSSStyleValue, object: DisplayObject, + memoized: boolean, ) => any; } diff --git a/packages/g-lite/src/css/parser/dimension.ts b/packages/g-lite/src/css/parser/dimension.ts index 721639c26..b50a90ce6 100644 --- a/packages/g-lite/src/css/parser/dimension.ts +++ b/packages/g-lite/src/css/parser/dimension.ts @@ -59,17 +59,19 @@ export function parseDimension( * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/length * length with only absolute unit, eg. 1px */ -export const parseLength = memoize((css: string) => { +export const parseLengthUnmemoize = (css: string) => { return parseDimension(new RegExp('px', 'g'), css); -}); +}; +export const parseLength = memoize(parseLengthUnmemoize); /** * * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/percentage */ -export const parserPercentage = memoize((css: string) => { +export const parserPercentageUnmemoize = (css: string) => { return parseDimension(new RegExp('%', 'g'), css); -}); +}; +export const parserPercentage = memoize(parserPercentageUnmemoize); /** * length with absolute or relative unit, @@ -77,14 +79,7 @@ export const parserPercentage = memoize((css: string) => { * * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/length-percentage */ -// export const parseLengthOrPercentage = memoize((css: string): CSSUnitValue => { -// if (isNumber(css) || isFinite(Number(css))) { -// return getOrCreateUnitValue(Number(css), 'px'); -// } -// return parseDimension(new RegExp('px|%|em|rem', 'g'), css) as CSSUnitValue; -// }); - -export const parseLengthOrPercentage = (css: string): CSSUnitValue => { +export const parseLengthOrPercentageUnmemoize = (css: string): CSSUnitValue => { if (isNumber(css) || isFinite(Number(css))) { // Number(css) is NaN return getOrCreateUnitValue(Number(css) || 0, 'px'); @@ -92,13 +87,17 @@ export const parseLengthOrPercentage = (css: string): CSSUnitValue => { } return parseDimension(new RegExp('px|%|em|rem', 'g'), css) as CSSUnitValue; }; +export const parseLengthOrPercentage = memoize( + parseLengthOrPercentageUnmemoize, +); -export const parseAngle = memoize((css: string): CSSUnitValue => { +export const parseAngleUnmemoize = (css: string): CSSUnitValue => { return parseDimension( new RegExp('deg|rad|grad|turn', 'g'), css, ) as CSSUnitValue; -}); +}; +export const parseAngle = memoize(parseAngleUnmemoize); /** * merge CSSUnitValue @@ -211,6 +210,21 @@ export function parseDimensionArray( return string.map((segment) => parseLengthOrPercentage(segment.toString())); } } +export function parseDimensionArrayUnmemoize( + string: string | (string | number)[], +): CSSUnitValue[] { + if (isString(string)) { + // "1px 2px 3px" + return string + .split(' ') + .map((segment) => parseLengthOrPercentageUnmemoize(segment)); + } else { + // [1, '2px', 3] + return string.map((segment) => + parseLengthOrPercentageUnmemoize(segment.toString()), + ); + } +} // export function mergeDimensionList( // left: CSSUnitValue[], diff --git a/packages/g-lite/src/css/parser/numeric.ts b/packages/g-lite/src/css/parser/numeric.ts index 41425d891..036320489 100644 --- a/packages/g-lite/src/css/parser/numeric.ts +++ b/packages/g-lite/src/css/parser/numeric.ts @@ -16,7 +16,7 @@ export function numberToString(x: number) { * * 0 -> CSSUnitValue(0) * * '2' -> CSSUnitValue(2) */ -export const parseNumber = memoize((string: string | number): CSSUnitValue => { +export const parseNumberUnmemoize = (string: string | number): CSSUnitValue => { if (typeof string === 'number') { return getOrCreateUnitValue(string); } @@ -25,13 +25,23 @@ export const parseNumber = memoize((string: string | number): CSSUnitValue => { } else { return getOrCreateUnitValue(0); } -}); +}; +export const parseNumber = memoize(parseNumberUnmemoize); /** * separate string to array * eg. * * [0.5, 0.5] -> [CSSUnitValue, CSSUnitValue] */ +export const parseNumberListUnmemoize = ( + string: string | number[], +): CSSUnitValue[] => { + if (isString(string)) { + return string.split(' ').map(parseNumberUnmemoize); + } else { + return string.map(parseNumberUnmemoize); + } +}; export const parseNumberList = memoize( (string: string | number[]): CSSUnitValue[] => { if (isString(string)) { diff --git a/packages/g-lite/src/css/parser/transform-origin.ts b/packages/g-lite/src/css/parser/transform-origin.ts index 05eca601d..1696f4634 100644 --- a/packages/g-lite/src/css/parser/transform-origin.ts +++ b/packages/g-lite/src/css/parser/transform-origin.ts @@ -1,7 +1,10 @@ import { isString } from '@antv/util'; import type { CSSUnitValue } from '../cssom'; import { getOrCreateUnitValue } from '../CSSStyleValuePool'; -import { parseLengthOrPercentage } from './dimension'; +import { + parseLengthOrPercentage, + parseLengthOrPercentageUnmemoize, +} from './dimension'; import { memoize } from '../../utils/memoize'; /** @@ -48,6 +51,46 @@ export const parseTransformOrigin = memoize( } }, ); +export const parseTransformOriginUnmemoize = ( + value: string | number[], +): [CSSUnitValue, CSSUnitValue] => { + if (isString(value)) { + if (value === 'text-anchor') { + return [getOrCreateUnitValue(0, 'px'), getOrCreateUnitValue(0, 'px')]; + } + + const values = value.split(' '); + if (values.length === 1) { + if (values[0] === 'top' || values[0] === 'bottom') { + // 'top' -> 'center top' + values[1] = values[0]; + values[0] = 'center'; + } else { + // '50px' -> '50px center' + values[1] = 'center'; + } + } + + if (values.length !== 2) { + return null; + } + + // eg. center bottom + return [ + parseLengthOrPercentageUnmemoize( + convertKeyword2Percent(values[0]), + ) as CSSUnitValue, + parseLengthOrPercentageUnmemoize( + convertKeyword2Percent(values[1]), + ) as CSSUnitValue, + ]; + } else { + return [ + getOrCreateUnitValue(value[0] || 0, 'px'), + getOrCreateUnitValue(value[1] || 0, 'px'), + ]; + } +}; function convertKeyword2Percent(keyword: string) { if (keyword === 'center') { diff --git a/packages/g-lite/src/css/parser/transform.ts b/packages/g-lite/src/css/parser/transform.ts index e63822915..9f4cf6f4d 100644 --- a/packages/g-lite/src/css/parser/transform.ts +++ b/packages/g-lite/src/css/parser/transform.ts @@ -8,10 +8,13 @@ import { convertPercentUnit, mergeDimensions, parseAngle, + parseAngleUnmemoize, parseLength, + parseLengthUnmemoize, parseLengthOrPercentage, + parseLengthOrPercentageUnmemoize, } from './dimension'; -import { parseNumber } from './numeric'; +import { parseNumber, parseNumberUnmemoize } from './numeric'; // eg. { t: 'scale', d: [CSSUnitValue(1), CSSUnitValue(2)] } export interface ParsedTransform { @@ -163,6 +166,70 @@ export function parseTransform(string: string): ParsedTransform[] { return []; } +export function parseTransformUnmemoize(string: string): ParsedTransform[] { + string = (string || 'none').toLowerCase().trim(); + if (string === 'none') { + return []; + } + const transformRegExp = /\s*(\w+)\(([^)]*)\)/g; + const result: ParsedTransform[] = []; + let match; + let prevLastIndex = 0; + while ((match = transformRegExp.exec(string))) { + if (match.index !== prevLastIndex) { + return []; + } + prevLastIndex = match.index + match[0].length; + const functionName = match[1] as TransformType; // scale + const functionData = transformFunctions[functionName]; // scale(1, 2) + if (!functionData) { + // invalid, eg. scale() + return []; + } + const args = match[2].split(','); // 1,2 + const argTypes = functionData[0]; // Nn + if (argTypes.length < args.length) { + // scale(N, n) + return []; + } + + const parsedArgs: CSSUnitValue[] = []; + for (let i = 0; i < argTypes.length; i++) { + const arg = args[i]; + const type = argTypes[i]; + let parsedArg; + if (!arg) { + // @ts-ignore + parsedArg = { + a: Odeg, + n: parsedArgs[0], + t: Opx, + }[type]; + } else { + // @ts-ignore + parsedArg = { + A: (s: string) => { + return s.trim() === '0' ? Odeg : parseAngleUnmemoize(s); + }, + N: parseNumberUnmemoize, + T: parseLengthOrPercentageUnmemoize, + L: parseLengthUnmemoize, + }[type.toUpperCase()](arg); + } + if (parsedArg === undefined) { + return []; + } + parsedArgs.push(parsedArg); + } + result.push({ t: functionName, d: parsedArgs }); // { t: scale, d: [1, 2] } + + if (transformRegExp.lastIndex === string.length) { + return result; + } + } + + return []; +} export function convertItemToMatrix(item: ParsedTransform): number[] { let x: number; diff --git a/packages/g-lite/src/css/properties/CSSPropertyAngle.ts b/packages/g-lite/src/css/properties/CSSPropertyAngle.ts index 635f4e80d..4ad7198f2 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyAngle.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyAngle.ts @@ -2,11 +2,16 @@ import type { DisplayObject } from '../../display-objects'; import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; import { mergeNumbers } from '../parser'; -import { convertAngleUnit, parseAngle } from '../parser/dimension'; +import { + convertAngleUnit, + parseAngle, + parseAngleUnmemoize, +} from '../parser/dimension'; export class CSSPropertyAngle implements Partial> { parser = parseAngle; + parserUnmemoize = parseAngleUnmemoize; parserWithCSSDisabled = null; mixer = mergeNumbers; diff --git a/packages/g-lite/src/css/properties/CSSPropertyLengthOrPercentage.ts b/packages/g-lite/src/css/properties/CSSPropertyLengthOrPercentage.ts index 0d14bd9c5..49d8f89b8 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyLengthOrPercentage.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyLengthOrPercentage.ts @@ -7,7 +7,10 @@ import type { GlobalRuntime } from '../../global-runtime'; import type { CSSProperty } from '../CSSProperty'; import { CSSUnitValue, UnitType } from '../cssom'; import { mergeNumbers } from '../parser'; -import { parseLengthOrPercentage } from '../parser/dimension'; +import { + parseLengthOrPercentage, + parseLengthOrPercentageUnmemoize, +} from '../parser/dimension'; function getFontSize(object: DisplayObject): number { const { fontSize } = object.parsedStyle as ParsedTextStyleProps; @@ -21,6 +24,7 @@ export class CSSPropertyLengthOrPercentage implements Partial> { parser = parseLengthOrPercentage; + parserUnmemoize = parseLengthOrPercentageUnmemoize; parserWithCSSDisabled = null; mixer = mergeNumbers; diff --git a/packages/g-lite/src/css/properties/CSSPropertyNumber.ts b/packages/g-lite/src/css/properties/CSSPropertyNumber.ts index 0580fe4b0..8d3b6217f 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyNumber.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyNumber.ts @@ -1,12 +1,17 @@ import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; -import { mergeNumbers, parseNumber } from '../parser/numeric'; +import { + mergeNumbers, + parseNumber, + parseNumberUnmemoize, +} from '../parser/numeric'; export class CSSPropertyNumber implements Partial> { mixer = mergeNumbers; parser = parseNumber; + parserUnmemoize = parseNumberUnmemoize; parserWithCSSDisabled = null; calculator( name: string, diff --git a/packages/g-lite/src/css/properties/CSSPropertyOffsetDistance.ts b/packages/g-lite/src/css/properties/CSSPropertyOffsetDistance.ts index f4f876256..a70c347c4 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyOffsetDistance.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyOffsetDistance.ts @@ -2,11 +2,16 @@ import type { DisplayObject } from '../../display-objects'; import { Shape } from '../../types'; import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; -import { clampedMergeNumbers, parseNumber } from '../parser/numeric'; +import { + clampedMergeNumbers, + parseNumber, + parseNumberUnmemoize, +} from '../parser/numeric'; export class CSSPropertyOffsetDistance implements Partial> { parser = parseNumber; + parserUnmemoize = parseNumberUnmemoize; parserWithCSSDisabled = null; calculator( diff --git a/packages/g-lite/src/css/properties/CSSPropertyOpacity.ts b/packages/g-lite/src/css/properties/CSSPropertyOpacity.ts index 4bdac55a7..2950e6f75 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyOpacity.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyOpacity.ts @@ -1,6 +1,10 @@ import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; -import { clampedMergeNumbers, parseNumber } from '../parser/numeric'; +import { + clampedMergeNumbers, + parseNumber, + parseNumberUnmemoize, +} from '../parser/numeric'; /** * opacity @@ -9,6 +13,7 @@ export class CSSPropertyOpacity implements Partial> { parser = parseNumber; + parserUnmemoize = parseNumberUnmemoize; parserWithCSSDisabled = null; calculator( diff --git a/packages/g-lite/src/css/properties/CSSPropertyTransform.ts b/packages/g-lite/src/css/properties/CSSPropertyTransform.ts index 32f4896e0..a5780deba 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyTransform.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyTransform.ts @@ -4,7 +4,11 @@ import { parsedTransformToMat4 } from '../../utils'; import { CSSKeywordValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; import type { ParsedTransform } from '../parser/transform'; -import { mergeTransforms, parseTransform } from '../parser/transform'; +import { + mergeTransforms, + parseTransform, + parseTransformUnmemoize, +} from '../parser/transform'; /** * @see /zh/docs/api/animation#支持变换的属性 @@ -43,7 +47,8 @@ export class CSSPropertyTransform > { parser = parseTransform; - parserWithCSSDisabled = parseTransform; + parserUnmemoize = parseTransformUnmemoize; + parserWithCSSDisabled = parseTransformUnmemoize; calculator( name: string, diff --git a/packages/g-lite/src/css/properties/CSSPropertyTransformOrigin.ts b/packages/g-lite/src/css/properties/CSSPropertyTransformOrigin.ts index 87719c384..0dd491194 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyTransformOrigin.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyTransformOrigin.ts @@ -1,6 +1,9 @@ import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; -import { parseTransformOrigin } from '../parser/transform-origin'; +import { + parseTransformOrigin, + parseTransformOriginUnmemoize, +} from '../parser/transform-origin'; /** * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin @@ -8,10 +11,13 @@ import { parseTransformOrigin } from '../parser/transform-origin'; * [10px, 10px] [10%, 10%] */ export class CSSPropertyTransformOrigin - implements Partial> + implements + Partial< + CSSProperty<[CSSUnitValue, CSSUnitValue], [CSSUnitValue, CSSUnitValue]> + > { parser = parseTransformOrigin; - + parserUnmemoize = parseTransformOriginUnmemoize; // calculator( // name: string, // oldParsed: [CSSUnitValue, CSSUnitValue], diff --git a/packages/g-lite/src/css/properties/CSSPropertyZIndex.ts b/packages/g-lite/src/css/properties/CSSPropertyZIndex.ts index b13389e8b..9bed04431 100644 --- a/packages/g-lite/src/css/properties/CSSPropertyZIndex.ts +++ b/packages/g-lite/src/css/properties/CSSPropertyZIndex.ts @@ -2,13 +2,13 @@ import { SortReason } from '../../components'; import type { DisplayObject } from '../../display-objects'; import type { CSSUnitValue } from '../cssom'; import type { CSSProperty } from '../CSSProperty'; -import { parseNumber } from '../parser/numeric'; +import { parseNumber, parseNumberUnmemoize } from '../parser/numeric'; export class CSSPropertyZIndex implements Partial> { parser = parseNumber; - + parserUnmemoize = parseNumberUnmemoize; calculator( name: string, oldParsed: CSSUnitValue, diff --git a/packages/g-lite/src/display-objects/DisplayObject.ts b/packages/g-lite/src/display-objects/DisplayObject.ts index e7dc525e8..0d0d13c00 100644 --- a/packages/g-lite/src/display-objects/DisplayObject.ts +++ b/packages/g-lite/src/display-objects/DisplayObject.ts @@ -393,6 +393,7 @@ export class DisplayObject< name: Key, value: StyleProps[Key], force = false, + memoize = true, ) { const attributeName = formatAttributeName(name as string) as Key; // ignore undefined value @@ -401,7 +402,7 @@ export class DisplayObject< } if (force || value !== this.attributes[attributeName]) { - this.internalSetAttribute(attributeName, value); + this.internalSetAttribute(attributeName, value, { memoize }); super.setAttribute(attributeName, value); } } diff --git a/packages/g-lottie-player/CHANGELOG.md b/packages/g-lottie-player/CHANGELOG.md index 467f0d2da..00ee78948 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.2.20 ### Patch Changes diff --git a/packages/g-lottie-player/package.json b/packages/g-lottie-player/package.json index 55c7ed5e3..eb1a2fef4 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.20", + "version": "0.2.21", "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 2942f30b5..2af906024 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.8.20 ### Patch Changes diff --git a/packages/g-mobile-canvas-element/package.json b/packages/g-mobile-canvas-element/package.json index 0107852e3..d7ef0692d 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.20", + "version": "0.8.21", "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 e0e5621f9..4dd592899 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.14 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-canvas-path-generator@1.3.21 + - @antv/g-plugin-canvas-picker@1.10.23 + - @antv/g-plugin-canvas-renderer@1.9.23 + - @antv/g-plugin-dragndrop@1.8.21 + - @antv/g-plugin-gesture@1.2.9 + - @antv/g-plugin-image-loader@1.3.21 + - @antv/g-plugin-mobile-interaction@0.9.21 + ## 0.11.13 ### Patch Changes diff --git a/packages/g-mobile-canvas/package.json b/packages/g-mobile-canvas/package.json index a32960fdd..e85abd714 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.13", + "version": "0.11.14", "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 7378b8ebb..a14929e88 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.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-dragndrop@1.8.21 + - @antv/g-plugin-gesture@1.2.9 + - @antv/g-plugin-mobile-interaction@0.9.21 + - @antv/g-plugin-svg-picker@1.9.25 + - @antv/g-plugin-svg-renderer@1.10.25 + ## 0.10.25 ### Patch Changes diff --git a/packages/g-mobile-svg/package.json b/packages/g-mobile-svg/package.json index 85eeb0f0e..b1ac314ce 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.25", + "version": "0.10.26", "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 aaab1654a..586f9a745 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.37 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-device-renderer@1.9.33 + - @antv/g-plugin-dragndrop@1.8.21 + - @antv/g-plugin-gesture@1.2.9 + - @antv/g-plugin-html-renderer@1.9.24 + - @antv/g-plugin-image-loader@1.3.21 + - @antv/g-plugin-mobile-interaction@0.9.21 + ## 0.9.36 ### Patch Changes diff --git a/packages/g-mobile-webgl/package.json b/packages/g-mobile-webgl/package.json index 1d6dce716..f2dbd639d 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.36", + "version": "0.9.37", "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 ac1d2e9ea..66d41e93a 100644 --- a/packages/g-pattern/CHANGELOG.md +++ b/packages/g-pattern/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-pattern +## 1.2.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.2.20 ### Patch Changes diff --git a/packages/g-pattern/package.json b/packages/g-pattern/package.json index f11f24966..f141a40bb 100644 --- a/packages/g-pattern/package.json +++ b/packages/g-pattern/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-pattern", - "version": "1.2.20", + "version": "1.2.21", "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 58e19d0d5..b71236ebb 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.33 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-device-renderer@1.9.33 + ## 1.9.32 ### Patch Changes diff --git a/packages/g-plugin-3d/package.json b/packages/g-plugin-3d/package.json index a0ff47f81..1e2b471ff 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.32", + "version": "1.9.33", "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 7fbf77856..90cdd16e2 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.6.20 ### Patch Changes diff --git a/packages/g-plugin-a11y/package.json b/packages/g-plugin-a11y/package.json index 69a825425..594dd75df 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.20", + "version": "0.6.21", "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 39d864389..a1e71e617 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.4.20 ### Patch Changes diff --git a/packages/g-plugin-annotation/package.json b/packages/g-plugin-annotation/package.json index 44d20d556..45bfff8d1 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.20", + "version": "0.4.21", "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 57780f2d0..586af9fd1 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-box2d/package.json b/packages/g-plugin-box2d/package.json index 4acef78c5..8b4abaa10 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.20", + "version": "1.9.21", "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 9fdd2c01f..9d4f00832 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.3.20 ### Patch Changes diff --git a/packages/g-plugin-canvas-path-generator/package.json b/packages/g-plugin-canvas-path-generator/package.json index 27a034a46..67e422a74 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.20", + "version": "1.3.21", "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 297cb4d0f..8e26269f7 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.23 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-canvas-path-generator@1.3.21 + - @antv/g-plugin-canvas-renderer@1.9.23 + ## 1.10.22 ### Patch Changes diff --git a/packages/g-plugin-canvas-picker/package.json b/packages/g-plugin-canvas-picker/package.json index 2bd499103..83b41ee0c 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.22", + "version": "1.10.23", "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 38806e78e..37a43a4f4 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.23 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-canvas-path-generator@1.3.21 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.9.22 ### Patch Changes diff --git a/packages/g-plugin-canvas-renderer/package.json b/packages/g-plugin-canvas-renderer/package.json index 42ef71f75..b1283743d 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.22", + "version": "1.9.23", "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 1b55add76..5fd6473e0 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.22 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.3.21 ### Patch Changes diff --git a/packages/g-plugin-canvaskit-renderer/package.json b/packages/g-plugin-canvaskit-renderer/package.json index 7b740da1f..380a2eb1a 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.21", + "version": "1.3.22", "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 7722bcc9d..3e54cdd66 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-control/package.json b/packages/g-plugin-control/package.json index b36e42dcc..133077df6 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.20", + "version": "1.9.21", "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 eece80895..e7914c8cc 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-css-select/package.json b/packages/g-plugin-css-select/package.json index 8354dd8f1..b867fd344 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.20", + "version": "1.9.21", "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 02c9c6c07..d98e20834 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.33 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.9.32 ### Patch Changes diff --git a/packages/g-plugin-device-renderer/package.json b/packages/g-plugin-device-renderer/package.json index 43e2369f9..8f0e9d5a2 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.32", + "version": "1.9.33", "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 ae10db4b9..990649282 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-dom-interaction/package.json b/packages/g-plugin-dom-interaction/package.json index c9580ad2f..986cc5dfc 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.20", + "version": "1.9.21", "description": "A G plugin", "keywords": [ "antv", diff --git a/packages/g-plugin-dragndrop/CHANGELOG.md b/packages/g-plugin-dragndrop/CHANGELOG.md index 3e691dd0f..5e138501c 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.8.20 ### Patch Changes diff --git a/packages/g-plugin-dragndrop/package.json b/packages/g-plugin-dragndrop/package.json index 05ec6d038..eb96cd3ad 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.20", + "version": "1.8.21", "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 7e804db46..4525714e2 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.9 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.2.8 ### Patch Changes diff --git a/packages/g-plugin-gesture/package.json b/packages/g-plugin-gesture/package.json index 084ec192c..0ed4b9a23 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.8", + "version": "1.2.9", "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 87baf9e6e..0b17235b1 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 +## 1.9.24 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.23 ### Patch Changes diff --git a/packages/g-plugin-html-renderer/package.json b/packages/g-plugin-html-renderer/package.json index aa5c4157b..16f499e41 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.23", + "version": "1.9.24", "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 f83e2f367..22c593cb1 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.3.20 ### Patch Changes diff --git a/packages/g-plugin-image-loader/package.json b/packages/g-plugin-image-loader/package.json index fd55865a3..93ec9f1ff 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.20", + "version": "1.3.21", "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 12e4b312a..893246728 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-matterjs/package.json b/packages/g-plugin-matterjs/package.json index 81f14cacf..1a996c769 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.20", + "version": "1.9.21", "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 ead7ffe4b..f77bbe814 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 0.9.20 ### Patch Changes diff --git a/packages/g-plugin-mobile-interaction/package.json b/packages/g-plugin-mobile-interaction/package.json index ff0ab8a19..0f785954a 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.20", + "version": "0.9.21", "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 55e682ceb..35ce4e726 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-physx/package.json b/packages/g-plugin-physx/package.json index a20f22e3b..7c084b632 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.20", + "version": "1.9.21", "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 27a3a210c..9dc856bd0 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.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-canvas@1.11.26 + ## 1.9.25 ### Patch Changes diff --git a/packages/g-plugin-rough-canvas-renderer/package.json b/packages/g-plugin-rough-canvas-renderer/package.json index fca81a125..ada6e60ae 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.25", + "version": "1.9.26", "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 3b252dfab..1e9f8e4f5 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.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-svg@1.10.25 + ## 1.9.25 ### Patch Changes diff --git a/packages/g-plugin-rough-svg-renderer/package.json b/packages/g-plugin-rough-svg-renderer/package.json index 3285e909f..c23ff8cd9 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.25", + "version": "1.9.26", "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 bb8e14795..cd6a55da3 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.25 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-svg-renderer@1.10.25 + ## 1.9.24 ### Patch Changes diff --git a/packages/g-plugin-svg-picker/package.json b/packages/g-plugin-svg-picker/package.json index 1cb48db85..985dec30f 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.24", + "version": "1.9.25", "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 f0595fb94..79d405417 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.25 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.10.24 ### Patch Changes diff --git a/packages/g-plugin-svg-renderer/package.json b/packages/g-plugin-svg-renderer/package.json index 07d6b940d..f6dd153dd 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.24", + "version": "1.10.25", "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 617e5463f..ce1afc367 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.21 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.9.20 ### Patch Changes diff --git a/packages/g-plugin-yoga/package.json b/packages/g-plugin-yoga/package.json index d589f59b0..fc80c705f 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.20", + "version": "1.9.21", "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 f5f9a560e..5394a3238 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.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-canvas@1.11.26 + ## 1.2.25 ### Patch Changes diff --git a/packages/g-plugin-zdog-canvas-renderer/package.json b/packages/g-plugin-zdog-canvas-renderer/package.json index a7c2dd8ba..53d66eee4 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.25", + "version": "1.2.26", "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 dc68da758..bc7e2b059 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.26 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-svg-renderer@1.10.25 + - @antv/g-svg@1.10.25 + ## 1.2.25 ### Patch Changes diff --git a/packages/g-plugin-zdog-svg-renderer/package.json b/packages/g-plugin-zdog-svg-renderer/package.json index 5fff5f28f..9ffc95542 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.25", + "version": "1.2.26", "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 2e8148c10..044b02b28 100644 --- a/packages/g-svg/CHANGELOG.md +++ b/packages/g-svg/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g-svg +## 1.10.25 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-dom-interaction@1.9.21 + - @antv/g-plugin-svg-picker@1.9.25 + - @antv/g-plugin-svg-renderer@1.10.25 + ## 1.10.24 ### Patch Changes diff --git a/packages/g-svg/package.json b/packages/g-svg/package.json index 2b62ac46c..c0dc400d4 100644 --- a/packages/g-svg/package.json +++ b/packages/g-svg/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-svg", - "version": "1.10.24", + "version": "1.10.25", "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 8be0f7657..f133886b1 100644 --- a/packages/g-web-animations-api/CHANGELOG.md +++ b/packages/g-web-animations-api/CHANGELOG.md @@ -1,5 +1,13 @@ # @antv/g-web-animations-api +## 1.2.22 + +### Patch Changes + +- 5f5cf270: Disable memoize during interpolation to avoid OOM. +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + ## 1.2.21 ### Patch Changes diff --git a/packages/g-web-animations-api/package.json b/packages/g-web-animations-api/package.json index 785c10d7a..e76895a9f 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.21", + "version": "1.2.22", "description": "A simple implementation of Web Animations API.", "keywords": [ "antv", diff --git a/packages/g-web-animations-api/src/utils/interpolation.ts b/packages/g-web-animations-api/src/utils/interpolation.ts index dfcbf4933..a48e8bd80 100644 --- a/packages/g-web-animations-api/src/utils/interpolation.ts +++ b/packages/g-web-animations-api/src/utils/interpolation.ts @@ -44,6 +44,8 @@ export function convertEffectInput( target.setAttribute( interpolation.property, interpolation.interpolation(scaledLocalTime), + false, + false, // disable memoize ); // if (interpolation.property === 'visibility') { @@ -206,22 +208,26 @@ function propertyInterpolation( property, left, target as DisplayObject, + false, // disable memoize ); const computedRight = runtime.styleValueRegistry.parseProperty( property, right, target as DisplayObject, + false, ); usedLeft = runtime.styleValueRegistry.computeProperty( property, computedLeft, target as DisplayObject, + false, ); usedRight = runtime.styleValueRegistry.computeProperty( property, computedRight, target as DisplayObject, + false, ); } else { const parser = propertyHandler.parserWithCSSDisabled; diff --git a/packages/g-web-components/CHANGELOG.md b/packages/g-web-components/CHANGELOG.md index 47765e87f..1d81c7f6c 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.37 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-canvas@1.11.26 + - @antv/g-webgl@1.9.36 + ## 1.9.36 ### Patch Changes diff --git a/packages/g-web-components/package.json b/packages/g-web-components/package.json index cc0cf90e2..4d9e66863 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.36", + "version": "1.9.37", "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 32eef1284..ea6e1e7e1 100644 --- a/packages/g-webgl/CHANGELOG.md +++ b/packages/g-webgl/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgl +## 1.9.36 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-device-renderer@1.9.33 + - @antv/g-plugin-dom-interaction@1.9.21 + - @antv/g-plugin-html-renderer@1.9.24 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.9.35 ### Patch Changes diff --git a/packages/g-webgl/package.json b/packages/g-webgl/package.json index 4af62453b..a0ad4203e 100644 --- a/packages/g-webgl/package.json +++ b/packages/g-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgl", - "version": "1.9.35", + "version": "1.9.36", "description": "A renderer implemented by WebGL1/2", "keywords": [ "antv", diff --git a/packages/g-webgpu/CHANGELOG.md b/packages/g-webgpu/CHANGELOG.md index 1c20efe76..d7c878e3e 100644 --- a/packages/g-webgpu/CHANGELOG.md +++ b/packages/g-webgpu/CHANGELOG.md @@ -1,5 +1,16 @@ # @antv/g-webgpu +## 1.9.36 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-lite@1.2.21 + - @antv/g-plugin-device-renderer@1.9.33 + - @antv/g-plugin-dom-interaction@1.9.21 + - @antv/g-plugin-html-renderer@1.9.24 + - @antv/g-plugin-image-loader@1.3.21 + ## 1.9.35 ### Patch Changes diff --git a/packages/g-webgpu/package.json b/packages/g-webgpu/package.json index 0a27ea0f3..1220c9c1c 100644 --- a/packages/g-webgpu/package.json +++ b/packages/g-webgpu/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgpu", - "version": "1.9.35", + "version": "1.9.36", "description": "A renderer implemented by WebGPU", "keywords": [ "antv", diff --git a/packages/g/CHANGELOG.md b/packages/g/CHANGELOG.md index 7bb973e81..fce7ab56b 100644 --- a/packages/g/CHANGELOG.md +++ b/packages/g/CHANGELOG.md @@ -1,5 +1,15 @@ # @antv/g +## 5.18.24 + +### Patch Changes + +- Updated dependencies [5f5cf270] + - @antv/g-web-animations-api@1.2.22 + - @antv/g-lite@1.2.21 + - @antv/g-camera-api@1.2.22 + - @antv/g-dom-mutation-observer-api@1.2.21 + ## 5.18.23 ### Patch Changes diff --git a/packages/g/package.json b/packages/g/package.json index 842d61ebc..51369b160 100644 --- a/packages/g/package.json +++ b/packages/g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g", - "version": "5.18.23", + "version": "5.18.24", "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 54ddc7d71..c84498285 100644 --- a/packages/react-g/CHANGELOG.md +++ b/packages/react-g/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/react-g +## 1.10.25 + +### Patch Changes + +- @antv/g@5.18.24 + ## 1.10.24 ### Patch Changes diff --git a/packages/react-g/package.json b/packages/react-g/package.json index 4e36be326..bad765a0c 100644 --- a/packages/react-g/package.json +++ b/packages/react-g/package.json @@ -1,6 +1,6 @@ { "name": "@antv/react-g", - "version": "1.10.24", + "version": "1.10.25", "description": "react render for @antv/g", "keywords": [ "react",