From 50db31dca443711e2d06ce81a181864019c0ca09 Mon Sep 17 00:00:00 2001 From: kkxxkk2019 Date: Tue, 9 Jan 2024 20:15:05 +0800 Subject: [PATCH 01/12] fix: add `getTheme` define for `IStage` --- packages/vrender-core/src/interface/stage.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/vrender-core/src/interface/stage.ts b/packages/vrender-core/src/interface/stage.ts index b8223aff8..717c76974 100644 --- a/packages/vrender-core/src/interface/stage.ts +++ b/packages/vrender-core/src/interface/stage.ts @@ -1,9 +1,7 @@ import type { INode } from './node-tree'; import type { ILayer, LayerMode } from './layer'; -import type { IGraphic } from './graphic'; -import type { IGroup } from './graphic/group'; import type { IColor } from './color'; -import type { IAABBBounds, IBounds, IBoundsLike, IMatrix, IPointLike } from '@visactor/vutils'; +import type { IAABBBounds, IBounds, IBoundsLike, IMatrix } from '@visactor/vutils'; import type { ICamera } from './camera'; import type { vec3 } from './matrix'; import type { IDirectionLight } from './light'; @@ -14,6 +12,7 @@ import type { IPickerService, PickResult } from './picker'; import type { IPluginService } from './plugin'; import type { IWindow } from './window'; import type { ILayerService } from './core'; +import type { IFullThemeSpec } from './graphic/theme'; export type IExportType = 'canvas' | 'imageData'; @@ -209,6 +208,8 @@ export interface IStage extends INode { setStage: (stage?: IStage) => void; setCursor: (mode?: string) => void; + + getTheme: () => IFullThemeSpec; } export declare function combineStage(srages: IStage[], params: { canvas: string | HTMLCanvasElement }): IStage; From 50622f340c3e1bfe0fe0c32e00ed1586f73a7bf4 Mon Sep 17 00:00:00 2001 From: kkxxkk2019 Date: Tue, 9 Jan 2024 20:15:47 +0800 Subject: [PATCH 02/12] fix: measureTextSize method should consider the fontFamily set by stage.setTheme --- packages/vrender-components/src/axis/line.ts | 2 +- .../vrender-components/src/indicator/indicator.ts | 3 ++- packages/vrender-components/src/pager/pager.ts | 14 +++++++++----- packages/vrender-components/src/tag/tag.ts | 2 +- packages/vrender-components/src/util/text.ts | 8 ++++++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/packages/vrender-components/src/axis/line.ts b/packages/vrender-components/src/axis/line.ts index 25260139a..75bac0841 100644 --- a/packages/vrender-components/src/axis/line.ts +++ b/packages/vrender-components/src/axis/line.ts @@ -532,7 +532,7 @@ export class LineAxis extends AxisBase { const axisLineWidth = line && line.visible ? line.style.lineWidth ?? 1 : 0; const tickLength = tick && tick.visible ? tick.length ?? 4 : 0; if (title && title.visible && typeof title.text === 'string') { - titleHeight = measureTextSize(title.text, title.textStyle).height; + titleHeight = measureTextSize(title.text, title.textStyle, this.stage?.getTheme().text.fontFamily).height; const padding = normalizePadding(title.padding); titleSpacing = title.space + padding[0] + padding[2]; } diff --git a/packages/vrender-components/src/indicator/indicator.ts b/packages/vrender-components/src/indicator/indicator.ts index 43915dbed..0a199e0da 100644 --- a/packages/vrender-components/src/indicator/indicator.ts +++ b/packages/vrender-components/src/indicator/indicator.ts @@ -193,7 +193,8 @@ export class Indicator extends AbstractComponent> } const originWidth = measureTextSize( (indicatorItemSpec.style?.text ?? '') as string | number | number[] | string[], - (indicatorItemSpec.style ?? {}) as Partial + (indicatorItemSpec.style ?? {}) as Partial, + this.stage?.getTheme().text.fontFamily ).width; if (originWidth > 0) { const ratio = (limit * (indicatorItemSpec.fitPercent ?? 0.5)) / originWidth; diff --git a/packages/vrender-components/src/pager/pager.ts b/packages/vrender-components/src/pager/pager.ts index 3da29e46f..53d74ac2c 100644 --- a/packages/vrender-components/src/pager/pager.ts +++ b/packages/vrender-components/src/pager/pager.ts @@ -102,11 +102,15 @@ export class Pager extends AbstractComponent> { container.add(preHandler); // 获取文本的最大长度,如果不固定的话随着文本的变化整体会发生抖动 - const { width: maxTextWidth, height: maxTextHeight } = measureTextSize(`${total}/${total}`, { - textAlign: 'center', - textBaseline: 'middle', - ...textStyle - }); + const { width: maxTextWidth, height: maxTextHeight } = measureTextSize( + `${total}/${total}`, + { + textAlign: 'center', + textBaseline: 'middle', + ...textStyle + }, + this.stage?.getTheme().text.fontFamily + ); const handlerSizeX = isNumber(handlerSize) ? handlerSize : handlerSize[0]; const handlerSizeY = isNumber(handlerSize) ? handlerSize : handlerSize[1]; diff --git a/packages/vrender-components/src/tag/tag.ts b/packages/vrender-components/src/tag/tag.ts index 3696812bf..b250e09a7 100644 --- a/packages/vrender-components/src/tag/tag.ts +++ b/packages/vrender-components/src/tag/tag.ts @@ -182,7 +182,7 @@ export class Tag extends AbstractComponent> { } // 因为文本可能发生旋转,所以需要使用 measureTextSize 方法 - const textBounds = measureTextSize(textAttrs.text as string, textStyle); + const textBounds = measureTextSize(textAttrs.text as string, textStyle, this.stage?.getTheme().text.fontFamily); const textWidth = textBounds.width; const textHeight = textBounds.height; tagWidth += textWidth; diff --git a/packages/vrender-components/src/util/text.ts b/packages/vrender-components/src/util/text.ts index 3d083a0df..120839da3 100644 --- a/packages/vrender-components/src/util/text.ts +++ b/packages/vrender-components/src/util/text.ts @@ -26,13 +26,17 @@ export const initTextMeasure = ( }; // FIXME: 和上一个方法统一,使用 TextMeasure 类 -export function measureTextSize(text: string | number | string[] | number[], textSpec: Partial) { +export function measureTextSize( + text: string | number | string[] | number[], + textSpec: Partial, + fontFamily: string = DEFAULT_TEXT_FONT_FAMILY +) { if (!text) { return { width: 0, height: 0 }; } const bounds = getTextBounds({ text, - fontFamily: textSpec.fontFamily, + fontFamily: textSpec.fontFamily ?? fontFamily, fontSize: textSpec.fontSize || 12, fontWeight: textSpec.fontWeight as any, textAlign: textSpec.textAlign ?? 'center', From cd20d6231be095eabca5cf29352f44c991d3dd8d Mon Sep 17 00:00:00 2001 From: kkxxkk2019 Date: Tue, 9 Jan 2024 20:18:13 +0800 Subject: [PATCH 03/12] chore: update rush change log --- .../fix-tag-padding_2024-01-09-12-17.json | 10 ++++++++++ .../vrender-core/fix-tag-padding_2024-01-09-12-17.json | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json create mode 100644 common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json diff --git a/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json b/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json new file mode 100644 index 000000000..3cf61e606 --- /dev/null +++ b/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-components", + "comment": "fix: `measureTextSize` needs to take into account the fonts configured on the stage theme", + "type": "none" + } + ], + "packageName": "@visactor/vrender-components" +} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json b/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json new file mode 100644 index 000000000..5150743c3 --- /dev/null +++ b/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-core", + "comment": "fix: supply the `getTheme()` api for `IStage`", + "type": "none" + } + ], + "packageName": "@visactor/vrender-core" +} \ No newline at end of file From 89ba26100a1a4c2842b8449d666aabbda86d9993 Mon Sep 17 00:00:00 2001 From: neuqzxy Date: Wed, 10 Jan 2024 04:26:38 +0000 Subject: [PATCH 04/12] docs: generate changelog of release v0.17.12 --- docs/assets/changelog/en/changelog.md | 430 ++++++++++++++++++++++++++ docs/assets/changelog/zh/changelog.md | 430 ++++++++++++++++++++++++++ 2 files changed, 860 insertions(+) create mode 100644 docs/assets/changelog/en/changelog.md create mode 100644 docs/assets/changelog/zh/changelog.md diff --git a/docs/assets/changelog/en/changelog.md b/docs/assets/changelog/en/changelog.md new file mode 100644 index 000000000..1a2ea462a --- /dev/null +++ b/docs/assets/changelog/en/changelog.md @@ -0,0 +1,430 @@ +# v0.17.12 + +2024-01-10 + +**🆕 New feature** +- **@visactor/vrender-components**: support fit strategy for indicator +- **marker**: mark point support confine. fix @Visactor/VChart[#1573](https://github.com/VisActor/VRender/issues/1573) +**🐛 Bug fix** +- **marker**: fix problem of no render when set visible attr and add valid judgment logic. fix@Visactor/Vchart[#1901](https://github.com/VisActor/VRender/issues/1901) +- **datazoom**: adaptive handler text layout. fix@Visactor/VChart[#1809](https://github.com/VisActor/VRender/issues/1809) +- **datazoom**: set pickable false when zoomLock. fix @Visactor/VChart[#1565](https://github.com/VisActor/VRender/issues/1565) +- **datazoom**: handler not follow mouse after resize. fix@Visactor/Vchart[#1490](https://github.com/VisActor/VRender/issues/1490) +- **@visactor/vrender-components**: arc outside label invisible with visible label line + + + +[more detail about v0.17.12](https://github.com/VisActor/VRender/releases/tag/v0.17.12) + +# v0.17.11 + +2024-01-05 + +**🆕 New feature** +- **@visactor/vrender-core**: add backgroundFit attribute +**🐛 Bug fix** +- **@visactor/vrender-core**: fix issue with position in html attribute +- fix: label invisible when baseMark visible is false + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.17.10...v0.17.11 + +[more detail about v0.17.11](https://github.com/VisActor/VRender/releases/tag/v0.17.11) + +# v0.17.10 + +2024-01-03 + +**🆕 New feature** +- **@visactor/vrender-components**: support `lastVisible` of LineAxis label +- **@visactor/vrender-kits**: support fillPickable and strokePickable for area, closed [#792](https://github.com/VisActor/VRender/issues/792) +- **@visactor/vrender-core**: support fillPickable and strokePickable for area, closed [#792](https://github.com/VisActor/VRender/issues/792) +- **@visactor/vrender-core**: support `lastVisible` of LineAxis label +- **@visactor/vrender**: support `lastVisible` of LineAxis label +**🐛 Bug fix** +- **@visactor/vrender-components**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +- **@visactor/vrender-components**: fix issue with legend symbol size +- **@visactor/vrender-components**: fixed height calculation issue after multi-layer axis text rotation +- **@visactor/vrender-core**: fix issue with area-line highperformance draw +- **@visactor/vrender-core**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +- **@visactor/vrender-core**: disable layer picker in interactive layer +- **@visactor/vrender**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +**🔖 other** +- **@visactor/vrender-components**: 'feat: support label line in label component' + + + +[more detail about v0.17.10](https://github.com/VisActor/VRender/releases/tag/v0.17.10) + +# v0.17.9 + +2024-01-03 + +**🐛 Bug fix** +- **@visactor/vrender-components**: fix label position when offset is 0 +- **@visactor/vrender-core**: fix issue with conical cache not work as expect + + + +[more detail about v0.17.9](https://github.com/VisActor/VRender/releases/tag/v0.17.9) + +# v0.17.8 + +2023-12-29 + +**🆕 New feature** +- **@visactor/vrender-components**: optimize outer label layout in tangential direction +- **@visactor/vrender-core**: support drawGraphicToCanvas +- **@visactor/vrender**: support drawGraphicToCanvas +**🐛 Bug fix** +- **@visactor/vrender-components**: when axis label space is 0, and axis tick' inside is true, the axis label's position is not correct +- **@visactor/vrender-components**: fix morphing of rect +- **@visactor/vrender-kits**: fix issue with mapToCanvasPoint in miniapp, closed [#828](https://github.com/VisActor/VRender/issues/828) +- **@visactor/vrender-core**: fix issue with rect.toCustomPath +- **@visactor/vrender-core**: fix issue with area segment with single point, closed [#801](https://github.com/VisActor/VRender/issues/801) +- **@visactor/vrender-core**: fix issue with new Function in miniapp +- **@visactor/vrender-core**: fix morphing of rect +- **@visactor/vrender-core**: fix issue with side-effect in some env +- **@visactor/vrender-core**: fix issue with check tt env +- **@visactor/vrender-core**: fix issue with cliped attribute in vertical text, closed [#827](https://github.com/VisActor/VRender/issues/827) +- **@visactor/vrender**: fix issue with area segment with single point, closed [#801](https://github.com/VisActor/VRender/issues/801) +- **@visactor/vrender**: fix morphing of rect +- **@visactor/vrender**: fix issue with side-effect in some env + + + +[more detail about v0.17.8](https://github.com/VisActor/VRender/releases/tag/v0.17.8) + +# v0.17.7 + +2023-12-21 + +**🐛 Bug fix** +- **@visactor/vrender-kits**: fix issue with create layer in miniapp env +- **@visactor/vrender-core**: fix issue with create layer in miniapp env + + + +[more detail about v0.17.7](https://github.com/VisActor/VRender/releases/tag/v0.17.7) + +# v0.17.6 + +2023-12-20 + +**What's Changed** +* Main by @neuqzxy in https://github.com/VisActor/VRender/pull/813 +* fix: fix issue with rect stroke contribution by @neuqzxy in https://github.com/VisActor/VRender/pull/814 +* [Auto release] release 0.17.6 by @github-actions in https://github.com/VisActor/VRender/pull/815 + + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.17.5...v0.17.6 + +[more detail about v0.17.6](https://github.com/VisActor/VRender/releases/tag/v0.17.6) + +# v0.17.5 + +2023-12-19 + +**🆕 New feature** +- **scrollbar**: dispatch scrollDown event +- **@visactor/vrender-components**: labelLine support animate +- **@visactor/vrender-components**: label don't create enter animate animationEnter while duration less than 0 +- **@visactor/vrender**: add disableAutoClipedPoptip attribute in text graphic +**🐛 Bug fix** +- **@visactor/vrender-components**: fix issue with arc animate with delayafter +- **@visactor/vrender-components**: fix issue with poptip circular dependencies +- **@visactor/vrender-core**: fix issue with plugin unregister +- **@visactor/vrender-core**: fix issue with text while whitespace is normal +- **@visactor/vrender**: fix cursor update error in multi-stage + + + +[more detail about v0.17.5](https://github.com/VisActor/VRender/releases/tag/v0.17.5) + +# v0.17.4 + +2023-12-15 + +**🐛 Bug fix** +- **datazoom**: symbol size problem +- **@visactor/vrender-core**: fix issue with arc imprecise bounds, closed [#728](https://github.com/VisActor/VRender/issues/728) + + + +[more detail about v0.17.4](https://github.com/VisActor/VRender/releases/tag/v0.17.4) + +# v0.17.3 + +2023-12-14 + +**🐛 Bug fix** +- **datazoom**: handler zindex to interaction error + + + +[more detail about v0.17.3](https://github.com/VisActor/VRender/releases/tag/v0.17.3) + +# v0.17.2 + +2023-12-14 + +**🆕 New feature** +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **@visactor/vrender-core**: rect3d support x1y1, fix -radius issue with rect +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +**🐛 Bug fix** +- **@visactor/vrender-components**: scrollbar slider width/height should not be negative +- **@visactor/vrender-components**: datazoom event block window event. fix @visactor/vchart[#1686](https://github.com/VisActor/VRender/issues/1686) +- **@visactor/vrender-components**: fix the issue of brushEnd trigger multiple times, related https://github.com/VisActor/VChart/issues/1694 +- **@visactor/vrender-core**: fix shadow pick issue +**⚡ Performance optimization** +- **@visactor/vrender-components**: optimize the `_handleStyle()` in legend + + + +[more detail about v0.17.2](https://github.com/VisActor/VRender/releases/tag/v0.17.2) + +# v0.17.1 + +2023-12-06 + +**🆕 New feature** +- **@visactor/vrender-kits**: support pickStrokeBuffer, closed [#758](https://github.com/VisActor/VRender/issues/758) +- **@visactor/vrender-core**: support pickStrokeBuffer, closed [#758](https://github.com/VisActor/VRender/issues/758) +**🐛 Bug fix** +- **@visactor/vrender-kits**: fix issue with rebind pick-contribution +- **@visactor/vrender-core**: fix issue in area chart with special points +- **@visactor/vrender-core**: fix issue with rebind pick-contribution +- **@visactor/vrender-core**: fix error with wrap text and normal whiteSpace text + + + +[more detail about v0.17.1](https://github.com/VisActor/VRender/releases/tag/v0.17.1) + +# v0.17.0 + +2023-11-30 + +**🆕 New feature** +- **@visactor/vrender-components**: optmize bounds performance +- **@visactor/vrender-kits**: rect support x1 and y1 +- **@visactor/vrender-kits**: optmize bounds performance +- **@visactor/vrender-core**: support disableCheckGraphicWidthOutRange to skip check if graphic out of range +- **@visactor/vrender-core**: rect support x1 and y1 +- **@visactor/vrender-core**: don't rewrite global reflect +- **@visactor/vrender-core**: text support background, closed [#711](https://github.com/VisActor/VRender/issues/711) +- **@visactor/vrender-core**: optmize bounds performance +- **@visactor/vrender**: don't rewrite global reflect +- **@visactor/vrender**: skip update bounds while render small node-tree, closed [#660](https://github.com/VisActor/VRender/issues/660) +- **@visactor/vrender**: optmize bounds performance +**🔨 Refactor** +- **@visactor/vrender-kits**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +- **@visactor/vrender-core**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +- **@visactor/vrender**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +**⚡ Performance optimization** +- **@visactor/vrender-components**: add option `skipDefault` to vrender-components +- **@visactor/vrender-core**: area support drawLinearAreaHighPerformance, closed [#672](https://github.com/VisActor/VRender/issues/672) + + + +[more detail about v0.17.0](https://github.com/VisActor/VRender/releases/tag/v0.17.0) + +# v0.16.18 + +2023-11-30 + +**🆕 New feature** +- **@visactor/vrender-components**: discrete legend's pager support position property +- **@visactor/vrender-core**: support suffixPosition, closed [#625](https://github.com/VisActor/VRender/issues/625) +- **@visactor/vrender**: support suffixPosition, closed [#625](https://github.com/VisActor/VRender/issues/625) +**🐛 Bug fix** +- **@visactor/vrender-kits**: doubletap should not be triggered when the target is different twice before and after +- **@visactor/vrender-core**: fix issue with attribute interpolate, closed [#741](https://github.com/VisActor/VRender/issues/741) +- **@visactor/vrender-core**: fix issue about calcuate bounds with shadow, closed [#474](https://github.com/VisActor/VRender/issues/474) +- **@visactor/vrender-core**: fix issue with white line in some dpr device, closed [#666](https://github.com/VisActor/VRender/issues/666) +**🔨 Refactor** +- **@visactor/vrender-components**: move getSizeHandlerPath out of sizlegend +- **@visactor/vrender-core**: event-related coordinate points do not require complex Point classes + + + +[more detail about v0.16.18](https://github.com/VisActor/VRender/releases/tag/v0.16.18) + +# v0.16.17 + +2023-11-23 + +**🆕 New feature** +- **@visactor/vrender-components**: support rich text for label, axis, marker,tooltip, indicator and title +- **@visactor/vrender-components**: add mode type of smartInvert +- **@visactor/vrender-components**: place more label for overlapPadding case +- **@visactor/vrender-kits**: support 'tap' gesture for Gesture plugin +- **@visactor/vrender-core**: add `event` config for Stage params, which can configure `clickInterval` and some other options in eventSystem +- **@visactor/vrender-core**: support fill and stroke while svg don't support, closed [#710](https://github.com/VisActor/VRender/issues/710) +**🐛 Bug fix** +- **@visactor/vrender-kits**: \`pickMode: 'imprecise'\` not work in polygon +- **@visactor/vrender-core**: richtext may throw error when textConfig is null +- **@visactor/vrender-core**: fix issue with image repeat, closed [#712](https://github.com/VisActor/VRender/issues/712) +- **@visactor/vrender-core**: fix issue with restore and save count not equal +**⚡ Performance optimization** +- **@visactor/vrender-core**: not setAttribute while background is not url, closed [#696](https://github.com/VisActor/VRender/issues/696) + + + +[more detail about v0.16.17](https://github.com/VisActor/VRender/releases/tag/v0.16.17) + +# v0.16.16 + +2023-11-17 + +**🐛 Bug fix** +- **@visactor/vrender-components**: fix the issue of legend item.shape can not set visible, related https://github.com/VisActor/VChart/issues/1508 +- **@visactor/vrender-core**: assign symbol rect function to old + + + +[more detail about v0.16.16](https://github.com/VisActor/VRender/releases/tag/v0.16.16) + +# v0.16.15 + +2023-11-16 + +**🐛 Bug fix** +- **@visactor/vrender-compoments**: legendItemHover and legendItemUnHover should trigger once + + + +[more detail about v0.16.15](https://github.com/VisActor/VRender/releases/tag/v0.16.15) + +# v0.16.14 + +2023-11-15 + +**🆕 New feature** +- **@visactor/vrender-components**: datazoom update callback supports new trigger tag param +- **@visactor/vrender-components**: support line/area label +- **@visactor/vrender-components**: lineHeight support string, which means percent +- **@visactor/vrender-core**: add round line symbol, closed [#1458](https://github.com/VisActor/VRender/issues/1458) +- **@visactor/vrender-core**: lineHeight support string, which means percent +**🐛 Bug fix** +- **@visactor/vrender-core**: fix issue with render while in scale transform + + + +[more detail about v0.16.14](https://github.com/VisActor/VRender/releases/tag/v0.16.14) + +# v0.16.13 + +2023-11-15 + +**🆕 New feature** +- **@visactor/vrender-core**: add preventRender function +- **@visactor/vrender-core**: merge wrap text function to text +**🐛 Bug fix** +- **@visactor/vrender-kits**: temp fix issue with lynx measuretext + + + +[more detail about v0.16.13](https://github.com/VisActor/VRender/releases/tag/v0.16.13) + +# v0.16.12 + +2023-11-07 + +**🆕 New feature** +- **@visactor/vrender-core**: optimize text increase animation +**🐛 Bug fix** +- **@visactor/vrender-components**: padding of title component +- **@visactor/vrender-components**: padding offset of AABBbounds +- **@visactor/vrender-kits**: fix node-canvas max count issue +- **@visactor/vrender-core**: fix node-canvas max count issue + + + +[more detail about v0.16.12](https://github.com/VisActor/VRender/releases/tag/v0.16.12) + +# v0.16.11 + +2023-11-07 + +**🐛 Bug fix** +- **@visactor/vrender-components**: optimize the auto-overlap of axis label, which use rotateBounds when text rotated, relate https://github.com/VisActor/VChart/issues/133 +- **@visactor/vrender-components**: flush should not sue width height +- **@visactor/vrender-components**: fix the lastvisible logic of axis's auto-hide +- **@visactor/vrender-kits**: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) +- **@visactor/vrender-core**: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) + + + +[more detail about v0.16.11](https://github.com/VisActor/VRender/releases/tag/v0.16.11) + +# v0.16.10 + +2023-11-02 + +**What's Changed** +* Sync main by @neuqzxy in https://github.com/VisActor/VRender/pull/640 +* fix: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) by @neuqzxy in https://github.com/VisActor/VRender/pull/635 +* Echance/axis auto rotate by @kkxxkk2019 in https://github.com/VisActor/VRender/pull/633 +* [Auto release] release 0.16.9 by @github-actions in https://github.com/VisActor/VRender/pull/641 + + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.16.9...v0.16.10 + +[more detail about v0.16.10](https://github.com/VisActor/VRender/releases/tag/v0.16.10) + +# v0.16.9 + +2023-10-27 + +**🆕 New feature** +- **@visactor/vrender-components**: add checkbox indeterminate state +- **label**: rect label support position `top-right`|`top-left`|`bottom-righ`|`bottom-left` +- **@visactor/vrender-core**: stage background support image +**🐛 Bug fix** +- **@visactor/vrender-components**: all the group container of marker do not trigger event +- **datazoom**: text bounds when visible is false. fix VisActor/VChart[#1281](https://github.com/VisActor/VRender/issues/1281) + + + +[more detail about v0.16.9](https://github.com/VisActor/VRender/releases/tag/v0.16.9) + +# v0.16.8 + +2023-10-23 + +**🐛 Bug fix** +- **@visactor/vrender-components**: fix the issue of error position of focus when legend item just has label + + + +[more detail about v0.16.8](https://github.com/VisActor/VRender/releases/tag/v0.16.8) + +# v0.16.7 + +2023-10-23 + +**🐛 Bug fix** +- **label**: fix the issue that `clampForce` does not work when`overlapPadding` is configured +- **@visactor/vrender-core**: fix issue with creating multi chart in miniapp + + + +[more detail about v0.16.7](https://github.com/VisActor/VRender/releases/tag/v0.16.7) + +# v0.16.6 + +2023-10-23 + +**🆕 New feature** +- **@visactor/vrender-components**: optimize the layout method of circle axis label +**🐛 Bug fix** +- **@visactor/vrender-components**: fix the layout issue of legend item because of the error logic of `focusStartX` + + + +[more detail about v0.16.6](https://github.com/VisActor/VRender/releases/tag/v0.16.6) + diff --git a/docs/assets/changelog/zh/changelog.md b/docs/assets/changelog/zh/changelog.md new file mode 100644 index 000000000..455ef5201 --- /dev/null +++ b/docs/assets/changelog/zh/changelog.md @@ -0,0 +1,430 @@ +# v0.17.12 + +2024-01-10 + +**🆕 新增功能** +- **@visactor/vrender-components**: support fit strategy for indicator +- **marker**: mark point support confine. fix @Visactor/VChart[#1573](https://github.com/VisActor/VRender/issues/1573) +**🐛 功能修复** +- **marker**: fix problem of no render when set visible attr and add valid judgment logic. fix@Visactor/Vchart[#1901](https://github.com/VisActor/VRender/issues/1901) +- **datazoom**: adaptive handler text layout. fix@Visactor/VChart[#1809](https://github.com/VisActor/VRender/issues/1809) +- **datazoom**: set pickable false when zoomLock. fix @Visactor/VChart[#1565](https://github.com/VisActor/VRender/issues/1565) +- **datazoom**: handler not follow mouse after resize. fix@Visactor/Vchart[#1490](https://github.com/VisActor/VRender/issues/1490) +- **@visactor/vrender-components**: arc outside label invisible with visible label line + + + +[更多详情请查看 v0.17.12](https://github.com/VisActor/VRender/releases/tag/v0.17.12) + +# v0.17.11 + +2024-01-05 + +**🆕 新增功能** +- **@visactor/vrender-core**: add backgroundFit attribute +**🐛 功能修复** +- **@visactor/vrender-core**: fix issue with position in html attribute +- fix: label invisible when baseMark visible is false + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.17.10...v0.17.11 + +[更多详情请查看 v0.17.11](https://github.com/VisActor/VRender/releases/tag/v0.17.11) + +# v0.17.10 + +2024-01-03 + +**🆕 新增功能** +- **@visactor/vrender-components**: support `lastVisible` of LineAxis label +- **@visactor/vrender-kits**: support fillPickable and strokePickable for area, closed [#792](https://github.com/VisActor/VRender/issues/792) +- **@visactor/vrender-core**: support fillPickable and strokePickable for area, closed [#792](https://github.com/VisActor/VRender/issues/792) +- **@visactor/vrender-core**: support `lastVisible` of LineAxis label +- **@visactor/vrender**: support `lastVisible` of LineAxis label +**🐛 功能修复** +- **@visactor/vrender-components**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +- **@visactor/vrender-components**: fix issue with legend symbol size +- **@visactor/vrender-components**: fixed height calculation issue after multi-layer axis text rotation +- **@visactor/vrender-core**: fix issue with area-line highperformance draw +- **@visactor/vrender-core**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +- **@visactor/vrender-core**: disable layer picker in interactive layer +- **@visactor/vrender**: fix the auto limit width of label when the label has vertical `direction` in orient top or bottom +**🔖 其他** +- **@visactor/vrender-components**: 'feat: support label line in label component' + + + +[更多详情请查看 v0.17.10](https://github.com/VisActor/VRender/releases/tag/v0.17.10) + +# v0.17.9 + +2024-01-03 + +**🐛 功能修复** +- **@visactor/vrender-components**: fix label position when offset is 0 +- **@visactor/vrender-core**: fix issue with conical cache not work as expect + + + +[更多详情请查看 v0.17.9](https://github.com/VisActor/VRender/releases/tag/v0.17.9) + +# v0.17.8 + +2023-12-29 + +**🆕 新增功能** +- **@visactor/vrender-components**: optimize outer label layout in tangential direction +- **@visactor/vrender-core**: support drawGraphicToCanvas +- **@visactor/vrender**: support drawGraphicToCanvas +**🐛 功能修复** +- **@visactor/vrender-components**: when axis label space is 0, and axis tick' inside is true, the axis label's position is not correct +- **@visactor/vrender-components**: fix morphing of rect +- **@visactor/vrender-kits**: fix issue with mapToCanvasPoint in miniapp, closed [#828](https://github.com/VisActor/VRender/issues/828) +- **@visactor/vrender-core**: fix issue with rect.toCustomPath +- **@visactor/vrender-core**: fix issue with area segment with single point, closed [#801](https://github.com/VisActor/VRender/issues/801) +- **@visactor/vrender-core**: fix issue with new Function in miniapp +- **@visactor/vrender-core**: fix morphing of rect +- **@visactor/vrender-core**: fix issue with side-effect in some env +- **@visactor/vrender-core**: fix issue with check tt env +- **@visactor/vrender-core**: fix issue with cliped attribute in vertical text, closed [#827](https://github.com/VisActor/VRender/issues/827) +- **@visactor/vrender**: fix issue with area segment with single point, closed [#801](https://github.com/VisActor/VRender/issues/801) +- **@visactor/vrender**: fix morphing of rect +- **@visactor/vrender**: fix issue with side-effect in some env + + + +[更多详情请查看 v0.17.8](https://github.com/VisActor/VRender/releases/tag/v0.17.8) + +# v0.17.7 + +2023-12-21 + +**🐛 功能修复** +- **@visactor/vrender-kits**: fix issue with create layer in miniapp env +- **@visactor/vrender-core**: fix issue with create layer in miniapp env + + + +[更多详情请查看 v0.17.7](https://github.com/VisActor/VRender/releases/tag/v0.17.7) + +# v0.17.6 + +2023-12-20 + +**What's Changed** +* Main by @neuqzxy in https://github.com/VisActor/VRender/pull/813 +* fix: fix issue with rect stroke contribution by @neuqzxy in https://github.com/VisActor/VRender/pull/814 +* [Auto release] release 0.17.6 by @github-actions in https://github.com/VisActor/VRender/pull/815 + + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.17.5...v0.17.6 + +[更多详情请查看 v0.17.6](https://github.com/VisActor/VRender/releases/tag/v0.17.6) + +# v0.17.5 + +2023-12-19 + +**🆕 新增功能** +- **scrollbar**: dispatch scrollDown event +- **@visactor/vrender-components**: labelLine support animate +- **@visactor/vrender-components**: label don't create enter animate animationEnter while duration less than 0 +- **@visactor/vrender**: add disableAutoClipedPoptip attribute in text graphic +**🐛 功能修复** +- **@visactor/vrender-components**: fix issue with arc animate with delayafter +- **@visactor/vrender-components**: fix issue with poptip circular dependencies +- **@visactor/vrender-core**: fix issue with plugin unregister +- **@visactor/vrender-core**: fix issue with text while whitespace is normal +- **@visactor/vrender**: fix cursor update error in multi-stage + + + +[更多详情请查看 v0.17.5](https://github.com/VisActor/VRender/releases/tag/v0.17.5) + +# v0.17.4 + +2023-12-15 + +**🐛 功能修复** +- **datazoom**: symbol size problem +- **@visactor/vrender-core**: fix issue with arc imprecise bounds, closed [#728](https://github.com/VisActor/VRender/issues/728) + + + +[更多详情请查看 v0.17.4](https://github.com/VisActor/VRender/releases/tag/v0.17.4) + +# v0.17.3 + +2023-12-14 + +**🐛 功能修复** +- **datazoom**: handler zindex to interaction error + + + +[更多详情请查看 v0.17.3](https://github.com/VisActor/VRender/releases/tag/v0.17.3) + +# v0.17.2 + +2023-12-14 + +**🆕 新增功能** +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +- **@visactor/vrender-core**: rect3d support x1y1, fix -radius issue with rect +- **dataZoom**: add mask to modify hot zone. feat @visactor/vchart[#1415](https://github.com/VisActor/VRender/issues/1415)' +**🐛 功能修复** +- **@visactor/vrender-components**: scrollbar slider width/height should not be negative +- **@visactor/vrender-components**: datazoom event block window event. fix @visactor/vchart[#1686](https://github.com/VisActor/VRender/issues/1686) +- **@visactor/vrender-components**: fix the issue of brushEnd trigger multiple times, related https://github.com/VisActor/VChart/issues/1694 +- **@visactor/vrender-core**: fix shadow pick issue +**⚡ 性能优化** +- **@visactor/vrender-components**: optimize the `_handleStyle()` in legend + + + +[更多详情请查看 v0.17.2](https://github.com/VisActor/VRender/releases/tag/v0.17.2) + +# v0.17.1 + +2023-12-06 + +**🆕 新增功能** +- **@visactor/vrender-kits**: support pickStrokeBuffer, closed [#758](https://github.com/VisActor/VRender/issues/758) +- **@visactor/vrender-core**: support pickStrokeBuffer, closed [#758](https://github.com/VisActor/VRender/issues/758) +**🐛 功能修复** +- **@visactor/vrender-kits**: fix issue with rebind pick-contribution +- **@visactor/vrender-core**: fix issue in area chart with special points +- **@visactor/vrender-core**: fix issue with rebind pick-contribution +- **@visactor/vrender-core**: fix error with wrap text and normal whiteSpace text + + + +[更多详情请查看 v0.17.1](https://github.com/VisActor/VRender/releases/tag/v0.17.1) + +# v0.17.0 + +2023-11-30 + +**🆕 新增功能** +- **@visactor/vrender-components**: optmize bounds performance +- **@visactor/vrender-kits**: rect support x1 and y1 +- **@visactor/vrender-kits**: optmize bounds performance +- **@visactor/vrender-core**: support disableCheckGraphicWidthOutRange to skip check if graphic out of range +- **@visactor/vrender-core**: rect support x1 and y1 +- **@visactor/vrender-core**: don't rewrite global reflect +- **@visactor/vrender-core**: text support background, closed [#711](https://github.com/VisActor/VRender/issues/711) +- **@visactor/vrender-core**: optmize bounds performance +- **@visactor/vrender**: don't rewrite global reflect +- **@visactor/vrender**: skip update bounds while render small node-tree, closed [#660](https://github.com/VisActor/VRender/issues/660) +- **@visactor/vrender**: optmize bounds performance +**🔨 功能重构** +- **@visactor/vrender-kits**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +- **@visactor/vrender-core**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +- **@visactor/vrender**: refact inversify completely, closed [#657](https://github.com/VisActor/VRender/issues/657) +**⚡ 性能优化** +- **@visactor/vrender-components**: add option `skipDefault` to vrender-components +- **@visactor/vrender-core**: area support drawLinearAreaHighPerformance, closed [#672](https://github.com/VisActor/VRender/issues/672) + + + +[更多详情请查看 v0.17.0](https://github.com/VisActor/VRender/releases/tag/v0.17.0) + +# v0.16.18 + +2023-11-30 + +**🆕 新增功能** +- **@visactor/vrender-components**: discrete legend's pager support position property +- **@visactor/vrender-core**: support suffixPosition, closed [#625](https://github.com/VisActor/VRender/issues/625) +- **@visactor/vrender**: support suffixPosition, closed [#625](https://github.com/VisActor/VRender/issues/625) +**🐛 功能修复** +- **@visactor/vrender-kits**: doubletap should not be triggered when the target is different twice before and after +- **@visactor/vrender-core**: fix issue with attribute interpolate, closed [#741](https://github.com/VisActor/VRender/issues/741) +- **@visactor/vrender-core**: fix issue about calcuate bounds with shadow, closed [#474](https://github.com/VisActor/VRender/issues/474) +- **@visactor/vrender-core**: fix issue with white line in some dpr device, closed [#666](https://github.com/VisActor/VRender/issues/666) +**🔨 功能重构** +- **@visactor/vrender-components**: move getSizeHandlerPath out of sizlegend +- **@visactor/vrender-core**: event-related coordinate points do not require complex Point classes + + + +[更多详情请查看 v0.16.18](https://github.com/VisActor/VRender/releases/tag/v0.16.18) + +# v0.16.17 + +2023-11-23 + +**🆕 新增功能** +- **@visactor/vrender-components**: support rich text for label, axis, marker,tooltip, indicator and title +- **@visactor/vrender-components**: add mode type of smartInvert +- **@visactor/vrender-components**: place more label for overlapPadding case +- **@visactor/vrender-kits**: support 'tap' gesture for Gesture plugin +- **@visactor/vrender-core**: add `event` config for Stage params, which can configure `clickInterval` and some other options in eventSystem +- **@visactor/vrender-core**: support fill and stroke while svg don't support, closed [#710](https://github.com/VisActor/VRender/issues/710) +**🐛 功能修复** +- **@visactor/vrender-kits**: \`pickMode: 'imprecise'\` not work in polygon +- **@visactor/vrender-core**: richtext may throw error when textConfig is null +- **@visactor/vrender-core**: fix issue with image repeat, closed [#712](https://github.com/VisActor/VRender/issues/712) +- **@visactor/vrender-core**: fix issue with restore and save count not equal +**⚡ 性能优化** +- **@visactor/vrender-core**: not setAttribute while background is not url, closed [#696](https://github.com/VisActor/VRender/issues/696) + + + +[更多详情请查看 v0.16.17](https://github.com/VisActor/VRender/releases/tag/v0.16.17) + +# v0.16.16 + +2023-11-17 + +**🐛 功能修复** +- **@visactor/vrender-components**: fix the issue of legend item.shape can not set visible, related https://github.com/VisActor/VChart/issues/1508 +- **@visactor/vrender-core**: assign symbol rect function to old + + + +[更多详情请查看 v0.16.16](https://github.com/VisActor/VRender/releases/tag/v0.16.16) + +# v0.16.15 + +2023-11-16 + +**🐛 功能修复** +- **@visactor/vrender-compoments**: legendItemHover and legendItemUnHover should trigger once + + + +[更多详情请查看 v0.16.15](https://github.com/VisActor/VRender/releases/tag/v0.16.15) + +# v0.16.14 + +2023-11-15 + +**🆕 新增功能** +- **@visactor/vrender-components**: datazoom update callback supports new trigger tag param +- **@visactor/vrender-components**: support line/area label +- **@visactor/vrender-components**: lineHeight support string, which means percent +- **@visactor/vrender-core**: add round line symbol, closed [#1458](https://github.com/VisActor/VRender/issues/1458) +- **@visactor/vrender-core**: lineHeight support string, which means percent +**🐛 功能修复** +- **@visactor/vrender-core**: fix issue with render while in scale transform + + + +[更多详情请查看 v0.16.14](https://github.com/VisActor/VRender/releases/tag/v0.16.14) + +# v0.16.13 + +2023-11-15 + +**🆕 新增功能** +- **@visactor/vrender-core**: add preventRender function +- **@visactor/vrender-core**: merge wrap text function to text +**🐛 功能修复** +- **@visactor/vrender-kits**: temp fix issue with lynx measuretext + + + +[更多详情请查看 v0.16.13](https://github.com/VisActor/VRender/releases/tag/v0.16.13) + +# v0.16.12 + +2023-11-07 + +**🆕 新增功能** +- **@visactor/vrender-core**: optimize text increase animation +**🐛 功能修复** +- **@visactor/vrender-components**: padding of title component +- **@visactor/vrender-components**: padding offset of AABBbounds +- **@visactor/vrender-kits**: fix node-canvas max count issue +- **@visactor/vrender-core**: fix node-canvas max count issue + + + +[更多详情请查看 v0.16.12](https://github.com/VisActor/VRender/releases/tag/v0.16.12) + +# v0.16.11 + +2023-11-07 + +**🐛 功能修复** +- **@visactor/vrender-components**: optimize the auto-overlap of axis label, which use rotateBounds when text rotated, relate https://github.com/VisActor/VChart/issues/133 +- **@visactor/vrender-components**: flush should not sue width height +- **@visactor/vrender-components**: fix the lastvisible logic of axis's auto-hide +- **@visactor/vrender-kits**: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) +- **@visactor/vrender-core**: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) + + + +[更多详情请查看 v0.16.11](https://github.com/VisActor/VRender/releases/tag/v0.16.11) + +# v0.16.10 + +2023-11-02 + +**What's Changed** +* Sync main by @neuqzxy in https://github.com/VisActor/VRender/pull/640 +* fix: fix issue with xul and html attribute, closed [#634](https://github.com/VisActor/VRender/issues/634) by @neuqzxy in https://github.com/VisActor/VRender/pull/635 +* Echance/axis auto rotate by @kkxxkk2019 in https://github.com/VisActor/VRender/pull/633 +* [Auto release] release 0.16.9 by @github-actions in https://github.com/VisActor/VRender/pull/641 + + +**Full Changelog**: https://github.com/VisActor/VRender/compare/v0.16.9...v0.16.10 + +[更多详情请查看 v0.16.10](https://github.com/VisActor/VRender/releases/tag/v0.16.10) + +# v0.16.9 + +2023-10-27 + +**🆕 新增功能** +- **@visactor/vrender-components**: add checkbox indeterminate state +- **label**: rect label support position `top-right`|`top-left`|`bottom-righ`|`bottom-left` +- **@visactor/vrender-core**: stage background support image +**🐛 功能修复** +- **@visactor/vrender-components**: all the group container of marker do not trigger event +- **datazoom**: text bounds when visible is false. fix VisActor/VChart[#1281](https://github.com/VisActor/VRender/issues/1281) + + + +[更多详情请查看 v0.16.9](https://github.com/VisActor/VRender/releases/tag/v0.16.9) + +# v0.16.8 + +2023-10-23 + +**🐛 功能修复** +- **@visactor/vrender-components**: fix the issue of error position of focus when legend item just has label + + + +[更多详情请查看 v0.16.8](https://github.com/VisActor/VRender/releases/tag/v0.16.8) + +# v0.16.7 + +2023-10-23 + +**🐛 功能修复** +- **label**: fix the issue that `clampForce` does not work when`overlapPadding` is configured +- **@visactor/vrender-core**: fix issue with creating multi chart in miniapp + + + +[更多详情请查看 v0.16.7](https://github.com/VisActor/VRender/releases/tag/v0.16.7) + +# v0.16.6 + +2023-10-23 + +**🆕 新增功能** +- **@visactor/vrender-components**: optimize the layout method of circle axis label +**🐛 功能修复** +- **@visactor/vrender-components**: fix the layout issue of legend item because of the error logic of `focusStartX` + + + +[更多详情请查看 v0.16.6](https://github.com/VisActor/VRender/releases/tag/v0.16.6) + From 002f0e0519d87be025a6e9691fcbdf3ac461ac58 Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Wed, 10 Jan 2024 14:13:36 +0800 Subject: [PATCH 05/12] fix: fix issue with incremental draw --- .../contributions/render/incremental-draw-contribution.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/vrender-core/src/render/contributions/render/incremental-draw-contribution.ts b/packages/vrender-core/src/render/contributions/render/incremental-draw-contribution.ts index 761a7c75e..3469916fe 100644 --- a/packages/vrender-core/src/render/contributions/render/incremental-draw-contribution.ts +++ b/packages/vrender-core/src/render/contributions/render/incremental-draw-contribution.ts @@ -60,10 +60,6 @@ export class DefaultIncrementalDrawContribution extends DefaultDrawContribution protected readonly drawItemInterceptorContributions: IContributionProvider ) { super(contributions, drawItemInterceptorContributions); - } - - init(): void { - super.init(); this.defaultRenderMap.set(this.lineRender.numberType, this.lineRender); this.defaultRenderMap.set(this.areaRender.numberType, this.areaRender); } From 6131b79b13a2ff6940e0651e80d057e1e9a3bab6 Mon Sep 17 00:00:00 2001 From: purpose Date: Wed, 10 Jan 2024 14:27:53 +0800 Subject: [PATCH 06/12] fix: filter out invisible indicator spec --- .../src/indicator/indicator.ts | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/packages/vrender-components/src/indicator/indicator.ts b/packages/vrender-components/src/indicator/indicator.ts index 43915dbed..ae876585b 100644 --- a/packages/vrender-components/src/indicator/indicator.ts +++ b/packages/vrender-components/src/indicator/indicator.ts @@ -231,17 +231,19 @@ export class Indicator extends AbstractComponent> const titleSpace = titleSpec.space ?? 0; otherHeight += titleSpace; // non auto fit content height - array(this.attribute.content).forEach((contentSpec, index) => { - const contentText = this._content[index]; - if (contentSpec.autoFit && contentSpec.fitStrategy === 'inscribed') { - contentText.setAttribute('fontSize', singleHeight); - autoFitTexts.push({ text: contentText, spec: contentSpec }); - } else { - otherHeight += contentText?.AABBBounds?.height?.() ?? 0; - } - const contentSpace = contentSpec.space ?? 0; - otherHeight += contentSpace; - }); + array(this.attribute.content) + .filter(contentSpec => contentSpec.visible !== false) + .forEach((contentSpec, index) => { + const contentText = this._content[index]; + if (contentSpec.autoFit && contentSpec.fitStrategy === 'inscribed') { + contentText.setAttribute('fontSize', singleHeight); + autoFitTexts.push({ text: contentText, spec: contentSpec }); + } else { + otherHeight += contentText?.AABBBounds?.height?.() ?? 0; + } + const contentSpace = contentSpec.space ?? 0; + otherHeight += contentSpace; + }); if (autoFitTexts.length <= 0) { return; } @@ -276,11 +278,13 @@ export class Indicator extends AbstractComponent> const titleHeight = this._title?.AABBBounds?.height?.() ?? 0; const titleSpace = this.attribute.title?.space ?? 0; - array(this.attribute.content).forEach((contentSpec, index) => { - const contentText = this._content[index]; - contentText.setAttribute('y', titleHeight + titleSpace + lastContentHeight); - const contentSpace = contentSpec.space ?? 0; - lastContentHeight += contentText.AABBBounds.height() + contentSpace; - }); + array(this.attribute.content) + .filter(contentSpec => contentSpec.visible !== false) + .forEach((contentSpec, index) => { + const contentText = this._content[index]; + contentText.setAttribute('y', titleHeight + titleSpace + lastContentHeight); + const contentSpace = contentSpec.space ?? 0; + lastContentHeight += contentText.AABBBounds.height() + contentSpace; + }); } } From a88ad84d99c25eb8c15775129bd667205ad38553 Mon Sep 17 00:00:00 2001 From: purpose Date: Wed, 10 Jan 2024 14:29:35 +0800 Subject: [PATCH 07/12] chore: update change log --- .../fix-indicator-visible_2024-01-10-06-29.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json diff --git a/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json b/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json new file mode 100644 index 000000000..91c09a7a0 --- /dev/null +++ b/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-components", + "comment": "fix: filter out invisible indicator spec", + "type": "none" + } + ], + "packageName": "@visactor/vrender-components" +} \ No newline at end of file From 5162b98a40b326dee68f6b09eba4e43ac70da57c Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Wed, 10 Jan 2024 14:44:00 +0800 Subject: [PATCH 08/12] chore: add change file --- .../vrender-core/develop_2024-01-10-06-13.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json diff --git a/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json b/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json new file mode 100644 index 000000000..53f0b7211 --- /dev/null +++ b/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-core", + "comment": "fix: fix issue with incremental draw", + "type": "none" + } + ], + "packageName": "@visactor/vrender-core" +} \ No newline at end of file From c44103f762ff7f1c4f300dcb55519878b5453ff5 Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Wed, 10 Jan 2024 14:50:06 +0800 Subject: [PATCH 09/12] feat: background support opacity --- .../vrender-core/feat-bg-opacity_2024-01-10-06-49.json | 10 ++++++++++ .../render/contributions/render/draw-contribution.ts | 1 + 2 files changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json diff --git a/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json b/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json new file mode 100644 index 000000000..4f688ccd9 --- /dev/null +++ b/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-core", + "comment": "feat: background support opacity", + "type": "none" + } + ], + "packageName": "@visactor/vrender-core" +} \ No newline at end of file diff --git a/packages/vrender-core/src/render/contributions/render/draw-contribution.ts b/packages/vrender-core/src/render/contributions/render/draw-contribution.ts index aa5163c3a..8a9aaec67 100644 --- a/packages/vrender-core/src/render/contributions/render/draw-contribution.ts +++ b/packages/vrender-core/src/render/contributions/render/draw-contribution.ts @@ -414,6 +414,7 @@ export class DefaultDrawContribution implements IDrawContribution { const y = 0; context.clearRect(x, y, width, height); const stage = renderService.drawParams?.stage; + stage && (context.globalAlpha = (stage as any).attribute.opacity ?? 1); if (stage && (stage as any).backgroundImg && (stage as any).resources) { const res = (stage as any).resources.get(clear); if (res && res.state === 'success' && res.data) { From b6bb46b83814ff5189eaa207e0a93467243ef473 Mon Sep 17 00:00:00 2001 From: skie1997 Date: Wed, 10 Jan 2024 17:24:09 +0800 Subject: [PATCH 10/12] fix(brush): no brush end when mouse outside range --- packages/vrender-components/src/brush/brush.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vrender-components/src/brush/brush.ts b/packages/vrender-components/src/brush/brush.ts index fc1cc4bf3..903118c4b 100644 --- a/packages/vrender-components/src/brush/brush.ts +++ b/packages/vrender-components/src/brush/brush.ts @@ -139,7 +139,7 @@ export class Brush extends AbstractComponent> { operatedMaskAABBBounds: this._brushMaskAABBBoundsDict, event: e }); - } else if (!this._outOfInteractiveRange(e)) { + } else { if (this._activeDrawState) { this._dispatchEvent(IOperateType.drawEnd, { operateMask: this._operatingMask as any, From 9160c82abcd2eb0a3aad2b01b7a4e8ba0ec74a29 Mon Sep 17 00:00:00 2001 From: skie1997 Date: Wed, 10 Jan 2024 17:24:41 +0800 Subject: [PATCH 11/12] chore: export smart invert fot vchart --- packages/vrender-components/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vrender-components/src/index.ts b/packages/vrender-components/src/index.ts index 050711b8b..436dbd187 100644 --- a/packages/vrender-components/src/index.ts +++ b/packages/vrender-components/src/index.ts @@ -24,3 +24,4 @@ export * from './tooltip'; export * from './interface'; export * from './jsx'; export * from './checkbox'; +export * from './util'; From 8fea3df876805ec4fbc15a70efec2674f5fc27f1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 10 Jan 2024 14:27:35 +0000 Subject: [PATCH 12/12] build: prelease version 0.17.13 --- ...ix-indicator-visible_2024-01-10-06-29.json | 10 ------- .../fix-tag-padding_2024-01-09-12-17.json | 10 ------- .../develop_2024-01-10-06-13.json | 10 ------- .../feat-bg-opacity_2024-01-10-06-49.json | 10 ------- .../fix-tag-padding_2024-01-09-12-17.json | 10 ------- common/config/rush/pnpm-lock.yaml | 26 +++++++++---------- common/config/rush/version-policies.json | 2 +- docs/package.json | 2 +- packages/react-vrender-utils/CHANGELOG.json | 6 +++++ packages/react-vrender-utils/CHANGELOG.md | 7 ++++- packages/react-vrender-utils/package.json | 6 ++--- packages/react-vrender/CHANGELOG.json | 6 +++++ packages/react-vrender/CHANGELOG.md | 7 ++++- packages/react-vrender/package.json | 4 +-- packages/vrender-components/CHANGELOG.json | 15 +++++++++++ packages/vrender-components/CHANGELOG.md | 10 ++++++- packages/vrender-components/package.json | 6 ++--- packages/vrender-core/CHANGELOG.json | 18 +++++++++++++ packages/vrender-core/CHANGELOG.md | 11 +++++++- packages/vrender-core/package.json | 2 +- packages/vrender-kits/CHANGELOG.json | 6 +++++ packages/vrender-kits/CHANGELOG.md | 7 ++++- packages/vrender-kits/package.json | 4 +-- packages/vrender/CHANGELOG.json | 6 +++++ packages/vrender/CHANGELOG.md | 7 ++++- packages/vrender/package.json | 6 ++--- tools/bugserver-trigger/package.json | 8 +++--- 27 files changed, 133 insertions(+), 89 deletions(-) delete mode 100644 common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json delete mode 100644 common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json delete mode 100644 common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json delete mode 100644 common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json delete mode 100644 common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json diff --git a/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json b/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json deleted file mode 100644 index 91c09a7a0..000000000 --- a/common/changes/@visactor/vrender-components/fix-indicator-visible_2024-01-10-06-29.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@visactor/vrender-components", - "comment": "fix: filter out invisible indicator spec", - "type": "none" - } - ], - "packageName": "@visactor/vrender-components" -} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json b/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json deleted file mode 100644 index 3cf61e606..000000000 --- a/common/changes/@visactor/vrender-components/fix-tag-padding_2024-01-09-12-17.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@visactor/vrender-components", - "comment": "fix: `measureTextSize` needs to take into account the fonts configured on the stage theme", - "type": "none" - } - ], - "packageName": "@visactor/vrender-components" -} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json b/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json deleted file mode 100644 index 53f0b7211..000000000 --- a/common/changes/@visactor/vrender-core/develop_2024-01-10-06-13.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@visactor/vrender-core", - "comment": "fix: fix issue with incremental draw", - "type": "none" - } - ], - "packageName": "@visactor/vrender-core" -} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json b/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json deleted file mode 100644 index 4f688ccd9..000000000 --- a/common/changes/@visactor/vrender-core/feat-bg-opacity_2024-01-10-06-49.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@visactor/vrender-core", - "comment": "feat: background support opacity", - "type": "none" - } - ], - "packageName": "@visactor/vrender-core" -} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json b/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json deleted file mode 100644 index 5150743c3..000000000 --- a/common/changes/@visactor/vrender-core/fix-tag-padding_2024-01-09-12-17.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@visactor/vrender-core", - "comment": "fix: supply the `getTheme()` api for `IStage`", - "type": "none" - } - ], - "packageName": "@visactor/vrender-core" -} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 36b1dcd0c..02b3fc642 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -14,7 +14,7 @@ importers: '@types/react-dom': ^18.0.0 '@visactor/vchart': 1.3.0 '@visactor/vgrammar': ~0.5.7 - '@visactor/vrender': workspace:0.17.12 + '@visactor/vrender': workspace:0.17.13 '@visactor/vutils': ~0.17.3 '@vitejs/plugin-react': 3.1.0 axios: ^1.4.0 @@ -71,7 +71,7 @@ importers: '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 '@types/react-reconciler': ^0.28.2 - '@visactor/vrender': workspace:0.17.12 + '@visactor/vrender': workspace:0.17.13 '@visactor/vutils': ~0.17.3 '@vitejs/plugin-react': 3.1.0 eslint: ~8.18.0 @@ -109,8 +109,8 @@ importers: '@rushstack/eslint-patch': ~1.1.4 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@visactor/react-vrender': workspace:0.17.12 - '@visactor/vrender': workspace:0.17.12 + '@visactor/react-vrender': workspace:0.17.13 + '@visactor/vrender': workspace:0.17.13 '@visactor/vutils': ~0.17.3 '@vitejs/plugin-react': 3.1.0 eslint: ~8.18.0 @@ -149,8 +149,8 @@ importers: '@types/jest': ^26.0.0 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@visactor/vrender-core': workspace:0.17.12 - '@visactor/vrender-kits': workspace:0.17.12 + '@visactor/vrender-core': workspace:0.17.13 + '@visactor/vrender-kits': workspace:0.17.13 '@visactor/vutils': ~0.17.3 '@vitejs/plugin-react': 3.1.0 canvas: 2.11.2 @@ -194,8 +194,8 @@ importers: '@internal/ts-config': workspace:* '@rushstack/eslint-patch': ~1.1.4 '@types/jest': ^26.0.0 - '@visactor/vrender-core': workspace:0.17.12 - '@visactor/vrender-kits': workspace:0.17.12 + '@visactor/vrender-core': workspace:0.17.13 + '@visactor/vrender-kits': workspace:0.17.13 '@visactor/vscale': ~0.17.3 '@visactor/vutils': ~0.17.3 eslint: ~8.18.0 @@ -277,7 +277,7 @@ importers: '@types/node-fetch': 2.6.4 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@visactor/vrender-core': workspace:0.17.12 + '@visactor/vrender-core': workspace:0.17.13 '@visactor/vutils': ~0.17.3 '@vitejs/plugin-react': 3.1.0 canvas: 2.11.2 @@ -357,10 +357,10 @@ importers: '@rushstack/eslint-patch': ~1.1.4 '@types/node': '*' '@types/node-fetch': 2.6.4 - '@visactor/vrender': workspace:0.17.12 - '@visactor/vrender-components': workspace:0.17.12 - '@visactor/vrender-core': workspace:0.17.12 - '@visactor/vrender-kits': workspace:0.17.12 + '@visactor/vrender': workspace:0.17.13 + '@visactor/vrender-components': workspace:0.17.13 + '@visactor/vrender-core': workspace:0.17.13 + '@visactor/vrender-kits': workspace:0.17.13 eslint: ~8.18.0 form-data: ~4.0.0 node-fetch: 2.6.6 diff --git a/common/config/rush/version-policies.json b/common/config/rush/version-policies.json index b05b334dd..1d85a8a13 100644 --- a/common/config/rush/version-policies.json +++ b/common/config/rush/version-policies.json @@ -1 +1 @@ -[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.17.12","nextBump":"patch"}] +[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.17.13","nextBump":"patch"}] diff --git a/docs/package.json b/docs/package.json index f12237425..05e4f47f2 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,7 +14,7 @@ "@visactor/vchart": "1.3.0", "@visactor/vutils": "~0.17.3", "@visactor/vgrammar": "~0.5.7", - "@visactor/vrender": "workspace:0.17.12", + "@visactor/vrender": "workspace:0.17.13", "markdown-it": "^13.0.0", "highlight.js": "^11.8.0", "axios": "^1.4.0", diff --git a/packages/react-vrender-utils/CHANGELOG.json b/packages/react-vrender-utils/CHANGELOG.json index e30cb1453..52cf3dd3f 100644 --- a/packages/react-vrender-utils/CHANGELOG.json +++ b/packages/react-vrender-utils/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "@visactor/react-vrender-utils", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/react-vrender-utils_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": {} + }, { "version": "0.17.12", "tag": "@visactor/react-vrender-utils_v0.17.12", diff --git a/packages/react-vrender-utils/CHANGELOG.md b/packages/react-vrender-utils/CHANGELOG.md index 921002314..321ea106b 100644 --- a/packages/react-vrender-utils/CHANGELOG.md +++ b/packages/react-vrender-utils/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @visactor/react-vrender-utils -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +_Version update only_ ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/react-vrender-utils/package.json b/packages/react-vrender-utils/package.json index 8d846c67c..c6588be8d 100644 --- a/packages/react-vrender-utils/package.json +++ b/packages/react-vrender-utils/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/react-vrender-utils", - "version": "0.17.12", + "version": "0.17.13", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -24,8 +24,8 @@ "react-dom": "^18.2.0" }, "dependencies": { - "@visactor/vrender": "workspace:0.17.12", - "@visactor/react-vrender": "workspace:0.17.12", + "@visactor/vrender": "workspace:0.17.13", + "@visactor/react-vrender": "workspace:0.17.13", "@visactor/vutils": "~0.17.3", "react-reconciler": "^0.29.0", "tslib": "^2.3.1" diff --git a/packages/react-vrender/CHANGELOG.json b/packages/react-vrender/CHANGELOG.json index 42b70e730..d008354f0 100644 --- a/packages/react-vrender/CHANGELOG.json +++ b/packages/react-vrender/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "@visactor/react-vrender", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/react-vrender_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": {} + }, { "version": "0.17.12", "tag": "@visactor/react-vrender_v0.17.12", diff --git a/packages/react-vrender/CHANGELOG.md b/packages/react-vrender/CHANGELOG.md index 173142516..daa161e2b 100644 --- a/packages/react-vrender/CHANGELOG.md +++ b/packages/react-vrender/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @visactor/react-vrender -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +_Version update only_ ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/react-vrender/package.json b/packages/react-vrender/package.json index 5592b01a8..778c67200 100644 --- a/packages/react-vrender/package.json +++ b/packages/react-vrender/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/react-vrender", - "version": "0.17.12", + "version": "0.17.13", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -23,7 +23,7 @@ "react": "^18.2.0" }, "dependencies": { - "@visactor/vrender": "workspace:0.17.12", + "@visactor/vrender": "workspace:0.17.13", "@visactor/vutils": "~0.17.3", "react-reconciler": "^0.29.0", "tslib": "^2.3.1" diff --git a/packages/vrender-components/CHANGELOG.json b/packages/vrender-components/CHANGELOG.json index 5a9f452f7..e2a19dc80 100644 --- a/packages/vrender-components/CHANGELOG.json +++ b/packages/vrender-components/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@visactor/vrender-components", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/vrender-components_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": { + "none": [ + { + "comment": "fix: filter out invisible indicator spec" + }, + { + "comment": "fix: `measureTextSize` needs to take into account the fonts configured on the stage theme" + } + ] + } + }, { "version": "0.17.12", "tag": "@visactor/vrender-components_v0.17.12", diff --git a/packages/vrender-components/CHANGELOG.md b/packages/vrender-components/CHANGELOG.md index 253a05ce3..6cfdaaaf2 100644 --- a/packages/vrender-components/CHANGELOG.md +++ b/packages/vrender-components/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log - @visactor/vrender-components -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +### Updates + +- fix: filter out invisible indicator spec +- fix: `measureTextSize` needs to take into account the fonts configured on the stage theme ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/vrender-components/package.json b/packages/vrender-components/package.json index b607c11b6..aa55200b8 100644 --- a/packages/vrender-components/package.json +++ b/packages/vrender-components/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender-components", - "version": "0.17.12", + "version": "0.17.13", "description": "components library for dp visualization", "sideEffects": false, "main": "cjs/index.js", @@ -24,8 +24,8 @@ "analysis-core": "bundle -f umd -a -i core.ts" }, "dependencies": { - "@visactor/vrender-core": "workspace:0.17.12", - "@visactor/vrender-kits": "workspace:0.17.12", + "@visactor/vrender-core": "workspace:0.17.13", + "@visactor/vrender-kits": "workspace:0.17.13", "@visactor/vutils": "~0.17.3", "@visactor/vscale": "~0.17.3" }, diff --git a/packages/vrender-core/CHANGELOG.json b/packages/vrender-core/CHANGELOG.json index ee7d5161f..a79f3dc66 100644 --- a/packages/vrender-core/CHANGELOG.json +++ b/packages/vrender-core/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@visactor/vrender-core", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/vrender-core_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": { + "none": [ + { + "comment": "fix: fix issue with incremental draw" + }, + { + "comment": "feat: background support opacity" + }, + { + "comment": "fix: supply the `getTheme()` api for `IStage`" + } + ] + } + }, { "version": "0.17.12", "tag": "@visactor/vrender-core_v0.17.12", diff --git a/packages/vrender-core/CHANGELOG.md b/packages/vrender-core/CHANGELOG.md index 6e49cf7c6..3602bdbde 100644 --- a/packages/vrender-core/CHANGELOG.md +++ b/packages/vrender-core/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log - @visactor/vrender-core -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +### Updates + +- fix: fix issue with incremental draw +- feat: background support opacity +- fix: supply the `getTheme()` api for `IStage` ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/vrender-core/package.json b/packages/vrender-core/package.json index 2bad4b1c7..55e01410a 100644 --- a/packages/vrender-core/package.json +++ b/packages/vrender-core/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender-core", - "version": "0.17.12", + "version": "0.17.13", "description": "", "sideEffects": [ "./src/modules.ts" diff --git a/packages/vrender-kits/CHANGELOG.json b/packages/vrender-kits/CHANGELOG.json index 43d42fe0d..f57f69463 100644 --- a/packages/vrender-kits/CHANGELOG.json +++ b/packages/vrender-kits/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "@visactor/vrender-kits", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/vrender-kits_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": {} + }, { "version": "0.17.12", "tag": "@visactor/vrender-kits_v0.17.12", diff --git a/packages/vrender-kits/CHANGELOG.md b/packages/vrender-kits/CHANGELOG.md index 045595445..27bf6952f 100644 --- a/packages/vrender-kits/CHANGELOG.md +++ b/packages/vrender-kits/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @visactor/vrender-kits -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +_Version update only_ ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/vrender-kits/package.json b/packages/vrender-kits/package.json index 50144d4ff..f2386bdd6 100644 --- a/packages/vrender-kits/package.json +++ b/packages/vrender-kits/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender-kits", - "version": "0.17.12", + "version": "0.17.13", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -20,7 +20,7 @@ "test": "" }, "dependencies": { - "@visactor/vrender-core": "workspace:0.17.12", + "@visactor/vrender-core": "workspace:0.17.13", "@visactor/vutils": "~0.17.3", "@resvg/resvg-js": "2.4.1", "roughjs": "4.5.2" diff --git a/packages/vrender/CHANGELOG.json b/packages/vrender/CHANGELOG.json index ec65c4e12..47c86bd92 100644 --- a/packages/vrender/CHANGELOG.json +++ b/packages/vrender/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "@visactor/vrender", "entries": [ + { + "version": "0.17.13", + "tag": "@visactor/vrender_v0.17.13", + "date": "Wed, 10 Jan 2024 14:18:21 GMT", + "comments": {} + }, { "version": "0.17.12", "tag": "@visactor/vrender_v0.17.12", diff --git a/packages/vrender/CHANGELOG.md b/packages/vrender/CHANGELOG.md index 65ac9b3a7..b99877968 100644 --- a/packages/vrender/CHANGELOG.md +++ b/packages/vrender/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @visactor/vrender -This log was last generated on Wed, 10 Jan 2024 03:56:46 GMT and should not be manually modified. +This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified. + +## 0.17.13 +Wed, 10 Jan 2024 14:18:21 GMT + +_Version update only_ ## 0.17.12 Wed, 10 Jan 2024 03:56:46 GMT diff --git a/packages/vrender/package.json b/packages/vrender/package.json index bf02ae384..e20ddad7b 100644 --- a/packages/vrender/package.json +++ b/packages/vrender/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender", - "version": "0.17.12", + "version": "0.17.13", "description": "", "sideEffects": true, "main": "cjs/index.js", @@ -24,8 +24,8 @@ "test-watch": "DEBUG_MODE=1 jest --watch" }, "dependencies": { - "@visactor/vrender-core": "workspace:0.17.12", - "@visactor/vrender-kits": "workspace:0.17.12" + "@visactor/vrender-core": "workspace:0.17.13", + "@visactor/vrender-kits": "workspace:0.17.13" }, "devDependencies": { "@internal/bundler": "workspace:*", diff --git a/tools/bugserver-trigger/package.json b/tools/bugserver-trigger/package.json index 53227a7d2..719814dcc 100644 --- a/tools/bugserver-trigger/package.json +++ b/tools/bugserver-trigger/package.json @@ -8,10 +8,10 @@ "ci": "ts-node --transpileOnly --skipProject ./scripts/trigger-test.ts" }, "dependencies": { - "@visactor/vrender": "workspace:0.17.12", - "@visactor/vrender-core": "workspace:0.17.12", - "@visactor/vrender-kits": "workspace:0.17.12", - "@visactor/vrender-components": "workspace:0.17.12" + "@visactor/vrender": "workspace:0.17.13", + "@visactor/vrender-core": "workspace:0.17.13", + "@visactor/vrender-kits": "workspace:0.17.13", + "@visactor/vrender-components": "workspace:0.17.13" }, "devDependencies": { "@rushstack/eslint-patch": "~1.1.4",