Skip to content

Commit

Permalink
Merge pull request #3183 from VisActor/release/1.12.3
Browse files Browse the repository at this point in the history
[Auto release] release 1.12.3
  • Loading branch information
xile611 authored Sep 5, 2024
2 parents 76bea4d + d5846fc commit c6cb6a6
Show file tree
Hide file tree
Showing 28 changed files with 341 additions and 187 deletions.
244 changes: 122 additions & 122 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.2","mainProject":"@visactor/vchart","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.3","mainProject":"@visactor/vchart","nextBump":"patch"}]
40 changes: 40 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
# v1.12.2

2024-09-05


**🆕 New feature**

- **brush**: add config to control zoom when brush empty data. close[#2934](https://github.com/VisActor/VChart/issues/2934)
- **@visactor/vchart**: support 'inside-center' label position in pie chart

**🐛 Bug fix**

- **@visactor/vchart**: rangeMode of scrollbar not work. fix[#3147](https://github.com/VisActor/VChart/issues/3147)
- **@visactor/vchart**: fix error of `barWidth`, `barMinWidth`, `barMaxWidth` when value is null
- **@visactor/vchart**: x brush filter not work. fix[#3111](https://github.com/VisActor/VChart/issues/3111)
- **@visactor/vchart**: indicator stop tooltip interactive. fix[#3123](https://github.com/VisActor/VChart/issues/3123)
- **@visactor/vchart**: fix error of `getCenter` when layoutRadius is a customized function in radar
- **@visactor/vchart**: media query causes incorrect render result, [#3102](https://github.com/VisActor/VChart/issues/3102)
- **@visactor/vchart**: normal animation not work since v1.12.0
- **@visactor/vchart**: sankey scale update not work
- **@visactor/vchart**: fix error of sankey when some customized mark has name "node"
- **@visactor/vchart**: fix dimension value of tooltip when has innerOffset, fix [#2923](https://github.com/VisActor/VChart/issues/2923)
- **@visactor/vchart**: vchart should not throw error when the values of series data is empty, fix [#3082](https://github.com/VisActor/VChart/issues/3082)
- **@visactor/vchart**: fix error of `updateSpec` when array change
- **@visactor/vchart**: wordcloud fill not update after updateSpec. fix[#3122](https://github.com/VisActor/VChart/issues/3122)
- **@visactor/vchart**: wordcloud scale update not work. fix[#3129](https://github.com/VisActor/VChart/issues/3129)

**🔨 Refactor**

- **@visactor/vchart**: refactor the parser of tooltip pattern

**📖 Site / documentation update**

- **@visactor/vchart**: fix issue of treemap.label not shown in option pages, fix [#2562](https://github.com/VisActor/VChart/issues/2562)
- **@visactor/vchart**: update docs about circular progress, close [#2987](https://github.com/VisActor/VChart/issues/2987)



[more detail about v1.12.2](https://github.com/VisActor/VChart/releases/tag/v1.12.2)

# v1.12.1

2024-08-21
Expand Down
40 changes: 40 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
# v1.12.2

2024-09-05


**🆕 新增功能**

- **brush**: 添加配置以控制Brush组件在空数据时的缩放行为。关闭 [#2934](https://github.com/VisActor/VChart/issues/2934)
- **@visactor/vchart**: 在饼图中支持 'inside-center' 标签位置

**🐛 功能修复**

- **@visactor/vchart**: 滚动条的 rangeMode 不生效。修复 [#3147](https://github.com/VisActor/VChart/issues/3147)
- **@visactor/vchart**: 修复当 `barWidth``barMinWidth``barMaxWidth` 的值为 null 时的错误
- **@visactor/vchart**: x 轴的 brush 过滤器不生效。修复 [#3111](https://github.com/VisActor/VChart/issues/3111)
- **@visactor/vchart**: 修复 Indicator 阻止了 tooltip 的交互。修复 [#3123](https://github.com/VisActor/VChart/issues/3123)
- **@visactor/vchart**: 修复雷达图中当 layoutRadius 是自定义函数时 `getCenter` 的错误
- **@visactor/vchart**: 媒体查询导致渲染结果不正确,[#3102](https://github.com/VisActor/VChart/issues/3102)
- **@visactor/vchart**: 修复normal动画不生效的问题
- **@visactor/vchart**: 修复桑基图scale更新不生效
- **@visactor/vchart**: 修复桑基图中某些自定义mark名称为 "node" 时导致事件错误
- **@visactor/vchart**: 修复当有 innerOffset 时 tooltip 的维度值,修复 [#2923](https://github.com/VisActor/VChart/issues/2923)
- **@visactor/vchart**: 当系列数据的值为空时,vchart 不应抛出错误,修复 [#3082](https://github.com/VisActor/VChart/issues/3082)
- **@visactor/vchart**: 修复数组变化时 `updateSpec` 的错误
- **@visactor/vchart**: 词云图在 updateSpec 后填充不更新。修复 [#3122](https://github.com/VisActor/VChart/issues/3122)
- **@visactor/vchart**: 词云图比例尺更新不生效。修复 [#3129](https://github.com/VisActor/VChart/issues/3129)

**🔨 功能重构**

- **@visactor/vchart**: 重构 tooltip 模式的解析器

**📖 文档更新**

- **@visactor/vchart**: 修复树图标签在选项页面中不显示的问题,修复 [#2562](https://github.com/VisActor/VChart/issues/2562)
- **@visactor/vchart**: 更新关于环形进度图的文档,关闭 [#2987](https://github.com/VisActor/VChart/issues/2987)



[更多详情请查看 v1.12.2](https://github.com/VisActor/VChart/releases/tag/v1.12.2)

# v1.12.1

2024-08-21
Expand Down
12 changes: 6 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"dependencies": {
"@arco-design/web-react": "2.46.1",
"@visactor/openinula-vchart": "workspace:1.12.2",
"@visactor/react-vchart": "workspace:1.12.2",
"@visactor/vchart": "workspace:1.12.2",
"@visactor/openinula-vchart": "workspace:1.12.3",
"@visactor/react-vchart": "workspace:1.12.3",
"@visactor/vchart": "workspace:1.12.3",
"@visactor/vchart-theme": "~1.6.6",
"@visactor/vmind": "1.2.4-alpha.5",
"@visactor/vutils": "~0.18.15",
"@visactor/vrender": "0.20.1",
"@visactor/vrender-kits": "0.20.1",
"@visactor/vgrammar": "0.14.2",
"@visactor/vrender": "0.20.2",
"@visactor/vrender-kits": "0.20.2",
"@visactor/vgrammar": "0.14.4",
"markdown-it": "^13.0.0",
"highlight.js": "^11.8.0",
"axios": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-vchart/block/vchart/index.js

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions packages/harmony_vchart/library/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
# v1.12.2

2024-09-05


**🆕 New feature**

- **brush**: add config to control zoom when brush empty data. close[#2934](https://github.com/VisActor/VChart/issues/2934)
- **@visactor/vchart**: support 'inside-center' label position in pie chart

**🐛 Bug fix**

- **@visactor/vchart**: rangeMode of scrollbar not work. fix[#3147](https://github.com/VisActor/VChart/issues/3147)
- **@visactor/vchart**: fix error of `barWidth`, `barMinWidth`, `barMaxWidth` when value is null
- **@visactor/vchart**: x brush filter not work. fix[#3111](https://github.com/VisActor/VChart/issues/3111)
- **@visactor/vchart**: indicator stop tooltip interactive. fix[#3123](https://github.com/VisActor/VChart/issues/3123)
- **@visactor/vchart**: fix error of `getCenter` when layoutRadius is a customized function in radar
- **@visactor/vchart**: media query causes incorrect render result, [#3102](https://github.com/VisActor/VChart/issues/3102)
- **@visactor/vchart**: normal animation not work since v1.12.0
- **@visactor/vchart**: sankey scale update not work
- **@visactor/vchart**: fix error of sankey when some customized mark has name "node"
- **@visactor/vchart**: fix dimension value of tooltip when has innerOffset, fix [#2923](https://github.com/VisActor/VChart/issues/2923)
- **@visactor/vchart**: vchart should not throw error when the values of series data is empty, fix [#3082](https://github.com/VisActor/VChart/issues/3082)
- **@visactor/vchart**: fix error of `updateSpec` when array change
- **@visactor/vchart**: wordcloud fill not update after updateSpec. fix[#3122](https://github.com/VisActor/VChart/issues/3122)
- **@visactor/vchart**: wordcloud scale update not work. fix[#3129](https://github.com/VisActor/VChart/issues/3129)

**🔨 Refactor**

- **@visactor/vchart**: refactor the parser of tooltip pattern

**📖 Site / documentation update**

- **@visactor/vchart**: fix issue of treemap.label not shown in option pages, fix [#2562](https://github.com/VisActor/VChart/issues/2562)
- **@visactor/vchart**: update docs about circular progress, close [#2987](https://github.com/VisActor/VChart/issues/2987)



[more detail about v1.12.2](https://github.com/VisActor/VChart/releases/tag/v1.12.2)

# v1.12.1

2024-08-21
Expand Down
2 changes: 1 addition & 1 deletion packages/harmony_vchart/library/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
name: '@visactor/harmony-vchart',
version: '1.12.2',
version: '1.12.3',
description: '@visactor/vchart 针对 harmonyOS 打造的图表库,拥有非常酷炫的动画能力,近20种图表类型,以及原生的渲染性能',
main: 'Index.ets',
author: {
Expand Down
27 changes: 17 additions & 10 deletions packages/harmony_vchart/library/src/main/ets/vchart_dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -11835,7 +11835,8 @@ let Animate$1 = class Animate {
constructor() {
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Generator.GenAutoIncrementId();
let timeline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTimeline;
this.id = id, this.timeline = timeline, this.status = AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this);
let slience = arguments.length > 2 ? arguments[2] : undefined;
this.id = id, this.timeline = timeline, this.status = AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
}
setTimeline(timeline) {
timeline !== this.timeline && (this.timeline.removeAnimate(this, !1), timeline.addAnimate(this));
Expand Down Expand Up @@ -11963,7 +11964,7 @@ let Animate$1 = class Animate {
return !this._preventAttrs || !this._preventAttrs.has(key);
}
bind(target) {
return this.target = target, this.target.onAnimateBind && this.target.onAnimateBind(this), this.subAnimates.forEach(sa => {
return this.target = target, this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.subAnimates.forEach(sa => {
sa.bind(target);
}), this;
}
Expand Down Expand Up @@ -14052,8 +14053,8 @@ class Graphic extends Node {
}
animate(params) {
this.animates || (this.animates = new Map());
const animate = new Animate$1(null == params ? void 0 : params.id, this.stage && this.stage.getTimeline()).bind(this);
if (params) {
const animate = new Animate$1(null == params ? void 0 : params.id, this.stage && this.stage.getTimeline(), null == params ? void 0 : params.slience);
if (animate.bind(this), params) {
const {
onStart: onStart,
onFrame: onFrame,
Expand Down Expand Up @@ -14089,7 +14090,9 @@ class Graphic extends Node {
keys.forEach(key => {
noWorkAttrs[key] ? (noAnimateAttrs || (noAnimateAttrs = {}), noAnimateAttrs[key] = attrs[key]) : animateAttrs[key] = isClear && void 0 === attrs[key] ? this.getDefaultAttribute(key) : attrs[key];
});
const animate = this.animate();
const animate = this.animate({
slience: !0
});
animate.stateNames = stateNames, animate.to(animateAttrs, null !== (_b = null === (_a = this.stateAnimateConfig) || void 0 === _a ? void 0 : _a.duration) && void 0 !== _b ? _b : DefaultStateAnimateConfig.duration, null !== (_d = null === (_c = this.stateAnimateConfig) || void 0 === _c ? void 0 : _c.easing) && void 0 !== _d ? _d : DefaultStateAnimateConfig.easing), noAnimateAttrs && this.setAttributes(noAnimateAttrs, !1, {
type: AttributeUpdateType.STATE
});
Expand Down Expand Up @@ -14306,7 +14309,7 @@ class Graphic extends Node {
if (!animate.validAttr(key)) return;
const nextStepVal = nextProps[key],
lastStepVal = null !== (_a = lastProps && lastProps[key]) && void 0 !== _a ? _a : subAnimate.getLastPropByName(key, step);
if (null == nextStepVal || null == lastStepVal) return void (nextAttributes[key] = nextStepVal);
if (null == nextStepVal || null == lastStepVal || nextStepVal === lastStepVal) return void (nextAttributes[key] = nextStepVal);
let match;
match = animate.interpolateFunc && animate.interpolateFunc(key, ratio, lastStepVal, nextStepVal, nextAttributes), match || (match = animate.customInterpolate(key, ratio, lastStepVal, nextStepVal, this, nextAttributes), match || this.defaultInterpolate(nextStepVal, lastStepVal, key, nextAttributes, nextParsedProps, ratio) || this._interpolate(key, ratio, lastStepVal, nextStepVal, nextAttributes));
}), step.parsedProps = nextParsedProps;
Expand Down Expand Up @@ -23030,7 +23033,9 @@ class Stage extends Group$1 {
release() {
super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
layer.release();
}), this.interactiveLayer && (this.interactiveLayer.release(), this.interactiveLayer.removeAllChild()), this.window.release(), this.ticker.remTimeline(this.timeline), this.renderService.renderTreeRoots = [];
}), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
}), this.interactiveLayer.release()), this.window.release(), this.ticker.remTimeline(this.timeline), this.renderService.renderTreeRoots = [];
}
setStage(stage) {}
dirty(b, matrix) {
Expand Down Expand Up @@ -30972,7 +30977,7 @@ let PopTipRenderContribution = class {
interactiveLayer && interactiveLayer.add(this.poptipComponent);
} else 2 === graphic._showPoptip && (graphic._showPoptip = 0, this.poptipComponent && (this.poptipComponent.setAttributes({
visibleAll: !1
}), null === (_b = this.poptipComponent.parent) || void 0 === _b || _b.removeChild(this.poptipComponent)));
}), null === (_b = this.poptipComponent.parent) || void 0 === _b || _b.removeChild(this.poptipComponent), this.poptipComponent = null));
}
};
PopTipRenderContribution = __decorate$1([injectable()], PopTipRenderContribution);
Expand Down Expand Up @@ -60880,7 +60885,7 @@ const registerVChartCore = () => {
};
registerVChartCore();

const version = "1.12.2";
const version = "1.12.3";

const addVChartProperty = (data, op) => {
const context = op.beforeCall();
Expand Down Expand Up @@ -61750,8 +61755,10 @@ class BaseSeriesSpecTransformer extends BaseModelSpecTransformer {
}
const labels = array(spec[labelSpecKey]);
labels.forEach(labelSpec => {
var _a, _b, _c, _d;
if (labelSpec && labelSpec.visible) {
this.addLabelSpec(markName, Object.assign(Object.assign({ animation: hasAnimation !== null && hasAnimation !== void 0 ? hasAnimation : spec.animation }, labelSpec), { getStyleHandler: (series) => { var _a; return (_a = series[styleHandlerName]) === null || _a === void 0 ? void 0 : _a.bind(series); } }), head);
const animationEnabled = (_d = (_c = (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.animation) !== null && _b !== void 0 ? _b : spec.animation) !== null && _c !== void 0 ? _c : labelSpec.animation) !== null && _d !== void 0 ? _d : true;
this.addLabelSpec(markName, Object.assign(Object.assign({}, labelSpec), { animation: animationEnabled && hasAnimation, getStyleHandler: (series) => { var _a; return (_a = series[styleHandlerName]) === null || _a === void 0 ? void 0 : _a.bind(series); } }), head);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lark-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/lark-vchart",
"version": "1.12.2",
"version": "1.12.3",
"description": "VChart 飞书小程序组件",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/lark-vchart/src/vchart/index.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/openinula-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/openinula-vchart",
"version": "1.12.2",
"version": "1.12.3",
"sideEffects": false,
"description": "The openinula version of VChart 4.x",
"keywords": [
Expand Down Expand Up @@ -28,11 +28,11 @@
"build": "bundle --clean"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.2",
"@visactor/vchart": "workspace:1.12.3",
"@visactor/vutils": "~0.18.15",
"@visactor/vrender-core": "0.20.1",
"@visactor/vrender-kits": "0.20.1",
"@visactor/vgrammar-core": "0.14.2",
"@visactor/vrender-core": "0.20.2",
"@visactor/vrender-kits": "0.20.2",
"@visactor/vgrammar-core": "0.14.4",
"react-is": "^18.2.0"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/react-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vchart",
"version": "1.12.2",
"version": "1.12.3",
"sideEffects": false,
"description": "The react version of VChart 4.x",
"keywords": [
Expand Down Expand Up @@ -28,11 +28,11 @@
"build": "bundle --clean"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.2",
"@visactor/vchart": "workspace:1.12.3",
"@visactor/vutils": "~0.18.15",
"@visactor/vrender-core": "0.20.1",
"@visactor/vrender-kits": "0.20.1",
"@visactor/vgrammar-core": "0.14.2",
"@visactor/vrender-core": "0.20.2",
"@visactor/vrender-kits": "0.20.2",
"@visactor/vgrammar-core": "0.14.4",
"react-is": "^18.2.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-vchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/taro-vchart",
"version": "1.12.2",
"version": "1.12.3",
"description": "Taro VChart 图表组件",
"sideEffects": false,
"main": "esm/index.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"license": "MIT",
"dependencies": {
"@visactor/vchart": "workspace:1.12.2"
"@visactor/vchart": "workspace:1.12.3"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/tt-vchart/src/vchart/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/vchart-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"start": "ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
},
"dependencies": {
"@visactor/vchart": "workspace:1.12.2",
"@visactor/vrender-core": "0.20.1",
"@visactor/vrender-kits": "0.20.1",
"@visactor/vchart": "workspace:1.12.3",
"@visactor/vrender-core": "0.20.2",
"@visactor/vrender-kits": "0.20.2",
"@visactor/vutils": "~0.18.15"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vchart-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-schema",
"version": "1.12.2",
"version": "1.12.3",
"description": "The VChart JSON schema file.",
"sideEffects": false,
"main": "vchart.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/vchart-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-types",
"version": "1.12.2",
"version": "1.12.3",
"description": "Provide the type declarations of VChart.",
"sideEffects": false,
"main": "types/index.d.ts",
Expand Down
15 changes: 15 additions & 0 deletions packages/vchart/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@visactor/vchart",
"entries": [
{
"version": "1.12.3",
"tag": "@visactor/vchart_v1.12.3",
"date": "Thu, 05 Sep 2024 05:54:53 GMT",
"comments": {
"none": [
{
"comment": "fix: cannot disable label update animation by `option.animation:false`"
},
{
"comment": "fix: upgrade vrender to 0.20.2, vgrammar to 0.14.3\n\n"
}
]
}
},
{
"version": "1.12.2",
"tag": "@visactor/vchart_v1.12.2",
Expand Down
12 changes: 11 additions & 1 deletion packages/vchart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Change Log - @visactor/vchart

This log was last generated on Tue, 03 Sep 2024 12:46:51 GMT and should not be manually modified.
This log was last generated on Thu, 05 Sep 2024 05:54:53 GMT and should not be manually modified.

## 1.12.3
Thu, 05 Sep 2024 05:54:53 GMT

### Updates

- fix: cannot disable label update animation by `option.animation:false`
- fix: upgrade vrender to 0.20.2, vgrammar to 0.14.3



## 1.12.2
Tue, 03 Sep 2024 12:46:51 GMT
Expand Down
Loading

0 comments on commit c6cb6a6

Please sign in to comment.