Skip to content

Commit

Permalink
Merge pull request #3498 from VisActor/release/1.12.15
Browse files Browse the repository at this point in the history
[Auto release] release 1.12.15
  • Loading branch information
xile611 authored Dec 5, 2024
2 parents 77b1239 + 05d3f62 commit 2476b1d
Show file tree
Hide file tree
Showing 29 changed files with 330 additions and 219 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
# BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
# run: node ../../common/scripts/install-run-rushx.js ci

- name: Build vchart-extension
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --only @visactor/vchart-extension

- name: Build react-vchart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
Expand Down
258 changes: 129 additions & 129 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.14","mainProject":"@visactor/vchart","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.15","mainProject":"@visactor/vchart","nextBump":"patch"}]
26 changes: 26 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# v1.12.14

2024-12-05


**🆕 New feature**

- **@visactor/vchart**: support `autoRefreshDpr` in chart options
- **@visactor/vchart**: dataZoom can do filter when has `lockStatisticsByDomain`, close [#3469](https://github.com/VisActor/VChart/issues/3469)
- **@visactor/vchart**: add marker context to support the same color as series. close[#3437](https://github.com/VisActor/VChart/issues/3437)
- **@visactor/vchart**: update options `maxNodeHeight`, `maxLinkHeight` in sankey, close 3439
- **@visactor/vchart-extension**: add component `series-break`, close [#3450](https://github.com/VisActor/VChart/issues/3450)

**🐛 Bug fix**

- **@visactor/vchart**: upgrade scrollbar visible after layout. fix[#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: fix `adjacency` in sankey, fix [#3460](https://github.com/VisActor/VChart/issues/3460)
- **@visactor/vchart**: not update layout when scrollbar domain is the same as before. fix[#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: value in scale range should consider about whole range. fix[#3446](https://github.com/VisActor/VChart/issues/3446)
- **@visactor/vchart**: when the `invalidType` of line is `"link"`, line should be connected rightly. fix [#3436](https://github.com/VisActor/VChart/issues/3436), fix [#3238](https://github.com/VisActor/VChart/issues/3238)
- **@visactor/vchart**: richtext should work when set state, fix [#3465](https://github.com/VisActor/VChart/issues/3465)



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

# v1.12.13

2024-11-22
Expand Down
23 changes: 23 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# v1.12.14

2024-12-05

**🆕 新增功能**

- **@visactor/vchart**: 图表配置支持 `autoRefreshDpr`,自动根据设备像素比调整图表的 dpr。
- **@visactor/vchart**: 当设置了 `lockStatisticsByDomain`的时候,dataZoom 的`filter` 模式可以正常更新图表范围, close [#3469](https://github.com/VisActor/VChart/issues/3469)
- **@visactor/vchart**: 添加标记上下文以支持与系列相同的颜色,关闭 [#3437](https://github.com/VisActor/VChart/issues/3437)
- **@visactor/vchart**: 更新桑基图中的选项 `maxNodeHeight``maxLinkHeight`,关闭 3439
- **@visactor/vchart-extension**: 添加组件 `series-break`,关闭 [#3450](https://github.com/VisActor/VChart/issues/3450)

**🐛 功能修复**

- **@visactor/vchart**: 升级布局后滚动条可见性,修复 [#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: 修复桑基图中的 `adjacency`,修复 [#3460](https://github.com/VisActor/VChart/issues/3460)
- **@visactor/vchart**: 当滚动条域与之前相同时,不更新布局,修复 [#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: 比例尺范围内的值应考虑整个范围,修复 [#3446](https://github.com/VisActor/VChart/issues/3446)
- **@visactor/vchart**: 当线的 `invalidType``"link"` 时,线应正确连接,修复 [#3436](https://github.com/VisActor/VChart/issues/3436),修复 [#3238](https://github.com/VisActor/VChart/issues/3238)
- **@visactor/vchart**: 设置状态时富文本应正常工作,修复 [#3465](https://github.com/VisActor/VChart/issues/3465)

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

# v1.12.13

2024-11-22
Expand Down
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
},
"dependencies": {
"@arco-design/web-react": "2.46.1",
"@visactor/openinula-vchart": "workspace:1.12.14",
"@visactor/react-vchart": "workspace:1.12.14",
"@visactor/vchart": "workspace:1.12.14",
"@visactor/vchart-extension": "workspace:1.12.14",
"@visactor/openinula-vchart": "workspace:1.12.15",
"@visactor/react-vchart": "workspace:1.12.15",
"@visactor/vchart": "workspace:1.12.15",
"@visactor/vchart-extension": "workspace:1.12.15",
"@visactor/vchart-theme": "~1.6.6",
"@visactor/vmind": "1.2.4-alpha.5",
"@visactor/vutils": "~0.19.2",
"@visactor/vrender": "0.20.17",
"@visactor/vrender-kits": "0.20.17",
"@visactor/vgrammar": "0.14.17",
"@visactor/vrender": "0.20.18",
"@visactor/vrender-kits": "0.20.18",
"@visactor/vgrammar": "0.14.18",
"@visactor/vtable": "1.12.0",
"@visactor/vtable-editors": "1.12.0",
"@visactor/vtable-gantt": "1.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-vchart/block/vchart/index.js

Large diffs are not rendered by default.

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

2024-12-05


**🆕 New feature**

- **@visactor/vchart**: support `autoRefreshDpr` in chart options
- **@visactor/vchart**: dataZoom can do filter when has `lockStatisticsByDomain`, close [#3469](https://github.com/VisActor/VChart/issues/3469)
- **@visactor/vchart**: add marker context to support the same color as series. close[#3437](https://github.com/VisActor/VChart/issues/3437)
- **@visactor/vchart**: update options `maxNodeHeight`, `maxLinkHeight` in sankey, close 3439
- **@visactor/vchart-extension**: add component `series-break`, close [#3450](https://github.com/VisActor/VChart/issues/3450)

**🐛 Bug fix**

- **@visactor/vchart**: upgrade scrollbar visible after layout. fix[#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: fix `adjacency` in sankey, fix [#3460](https://github.com/VisActor/VChart/issues/3460)
- **@visactor/vchart**: not update layout when scrollbar domain is the same as before. fix[#3452](https://github.com/VisActor/VChart/issues/3452)
- **@visactor/vchart**: value in scale range should consider about whole range. fix[#3446](https://github.com/VisActor/VChart/issues/3446)
- **@visactor/vchart**: when the `invalidType` of line is `"link"`, line should be connected rightly. fix [#3436](https://github.com/VisActor/VChart/issues/3436), fix [#3238](https://github.com/VisActor/VChart/issues/3238)
- **@visactor/vchart**: richtext should work when set state, fix [#3465](https://github.com/VisActor/VChart/issues/3465)



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

# v1.12.13

2024-11-22
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.14',
version: '1.12.15',
description: '@visactor/vchart 针对 harmonyOS 打造的图表库,拥有非常酷炫的动画能力,近20种图表类型,以及原生的渲染性能',
main: 'Index.ets',
author: {
Expand Down
68 changes: 38 additions & 30 deletions packages/harmony_vchart/library/src/main/ets/vchart_dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -31737,10 +31737,11 @@ function placeToCandidates($, bitmap, text) {
let candidates = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
let clampForce = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !0;
let pad = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
let changePosition = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !1;
const validCandidates = candidates.filter(candidate => isValid$1(candidate));
for (let i = 0; i < validCandidates.length; i++) {
const tempText = text.clone();
if (tempText.setAttributes(validCandidates[i]), tempText.update(), canPlace($, bitmap, tempText.AABBBounds, clampForce, pad)) return bitmap.setRange(boundToRange($, tempText.AABBBounds, !0)), validCandidates[i];
let measureText;
if (measureText = changePosition ? text : text.clone(), measureText.setAttributes(validCandidates[i]), canPlace($, bitmap, measureText.AABBBounds, clampForce, pad)) return bitmap.setRange(boundToRange($, measureText.AABBBounds, !0)), validCandidates[i];
}
return !1;
}
Expand All @@ -31750,8 +31751,9 @@ function place$2($, bitmap, s, attrs, text, bounds, labeling) {
overlapPadding = null === (_b = attrs.overlap) || void 0 === _b ? void 0 : _b.overlapPadding;
if ("bound" === s.type || "position" === s.type) {
if (isFunction$1(labeling)) {
const candidates = ((isFunction$1(s.position) ? s.position(text.attribute) : s.position) || defaultLabelPosition(attrs.type)).map(p => labeling(text.AABBBounds, bounds, p, attrs.offset));
return placeToCandidates($, bitmap, text, candidates, clampForce, overlapPadding);
const candidates = ((isFunction$1(s.position) ? s.position(text.attribute) : s.position) || defaultLabelPosition(attrs.type)).map(p => labeling(text.AABBBounds, bounds, p, attrs.offset)),
shouldClone = !1 === s.restorePosition;
return placeToCandidates($, bitmap, text, candidates, clampForce, overlapPadding, shouldClone);
}
return !1;
}
Expand Down Expand Up @@ -32135,18 +32137,18 @@ function shiftY(texts, option) {
textInformation.get(text).attempts = attempts;
};
function adjustPositionInOneGroup(texts) {
var text;
if (1 !== texts.length) for (let i = texts.length - 1; i > 0; i--) {
for (let i = texts.length - 1; i >= 0; i--) {
const curText = texts[i],
upperText = texts[i - 1],
lowerText = texts[i + 1];
if (isIntersect(getY1(upperText) + getHeight(upperText), getY1(curText))) {
if (upperText && isIntersect(getY1(upperText) + getHeight(upperText), getY1(curText)) || 0 === getY1(curText) && curText._isClamped) {
const {
y: y
} = labelling(curText);
lowerText && isIntersect(y + getHeight(curText) / 2, getY1(lowerText)) || y + getHeight(curText) / 2 <= maxY && setY1(curText, getY1(curText) + y - (text = curText, textInformation.get(text).y));
}
}
var text;
}
texts.sort((a, b) => a.attribute.x - b.attribute.x);
for (const text of texts) {
Expand Down Expand Up @@ -32510,12 +32512,35 @@ class LabelBase extends AbstractComponent {
const text = result[i],
bounds = text.AABBBounds,
range = boundToRange(bmpTool, bounds, !0);
canPlace(bmpTool, bitmap, bounds, clampForce, text._isClamped ? 0 : overlapPadding) ? bitmap.setRange(range) : hideOnHit ? text.setAttributes({
visible: !1
}) : bitmap.setRange(range);
if (canPlace(bmpTool, bitmap, bounds, clampForce, overlapPadding)) bitmap.setRange(range);else {
if (clampForce) {
if (this._processClampForce(text, bmpTool, bitmap)) continue;
}
hideOnHit ? text.setAttributes({
visible: !1
}) : bitmap.setRange(range);
}
}
return result;
}
_processClampForce(text, bmpTool, bitmap) {
const {
dy = 0,
dx = 0
} = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
if (0 === dx && 0 === dy) {
if (canPlace(bmpTool, bitmap, text.AABBBounds)) return bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), !0;
} else if (canPlace(bmpTool, bitmap, {
x1: text.AABBBounds.x1 + dx,
x2: text.AABBBounds.x2 + dx,
y1: text.AABBBounds.y1 + dy,
y2: text.AABBBounds.y2 + dy
})) return text.setAttributes({
x: text.attribute.x + dx,
y: text.attribute.y + dy
}), bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), !0;
return !1;
}
_overlapByStrategy(labels, option, bmpTool, bitmap) {
var _a;
const {
Expand Down Expand Up @@ -32564,25 +32589,8 @@ class LabelBase extends AbstractComponent {
break;
}
if (!hasPlace && clampForce) {
const {
dx = 0,
dy = 0
} = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
if (0 === dx && 0 === dy) {
if (canPlace(bmpTool, bitmap, text.AABBBounds)) {
bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(text);
continue;
}
} else if (canPlace(bmpTool, bitmap, {
x1: text.AABBBounds.x1 + dx,
x2: text.AABBBounds.x2 + dx,
y1: text.AABBBounds.y1 + dy,
y2: text.AABBBounds.y2 + dy
})) {
text.setAttributes({
x: text.attribute.x + dx,
y: text.attribute.y + dy
}), bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(text);
if (this._processClampForce(text, bmpTool, bitmap)) {
result.push(text);
continue;
}
}
Expand Down Expand Up @@ -61920,7 +61928,7 @@ const registerVChartCore = () => {
};
registerVChartCore();

const version = "1.12.14";
const version = "1.12.15";

const addVChartProperty = (data, op) => {
const context = op.beforeCall();
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.14",
"version": "1.12.15",
"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.14",
"version": "1.12.15",
"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.14",
"@visactor/vchart": "workspace:1.12.15",
"@visactor/vutils": "~0.19.2",
"@visactor/vrender-core": "0.20.17",
"@visactor/vrender-kits": "0.20.17",
"@visactor/vgrammar-core": "0.14.17",
"@visactor/vrender-core": "0.20.18",
"@visactor/vrender-kits": "0.20.18",
"@visactor/vgrammar-core": "0.14.18",
"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.14",
"version": "1.12.15",
"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.14",
"@visactor/vchart": "workspace:1.12.15",
"@visactor/vutils": "~0.19.2",
"@visactor/vrender-core": "0.20.17",
"@visactor/vrender-kits": "0.20.17",
"@visactor/vgrammar-core": "0.14.17",
"@visactor/vrender-core": "0.20.18",
"@visactor/vrender-kits": "0.20.18",
"@visactor/vgrammar-core": "0.14.18",
"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.14",
"version": "1.12.15",
"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.14"
"@visactor/vchart": "workspace:1.12.15"
},
"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.

12 changes: 6 additions & 6 deletions packages/vchart-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vchart-extension",
"version": "1.12.14",
"version": "1.12.15",
"description": "vchart extension package, including extension plugins and components",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -21,13 +21,13 @@
"start": "ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
},
"dependencies": {
"@visactor/vrender-core": "0.20.17",
"@visactor/vrender-kits": "0.20.17",
"@visactor/vrender-components": "0.20.17",
"@visactor/vgrammar-core": "0.14.17",
"@visactor/vrender-core": "0.20.18",
"@visactor/vrender-kits": "0.20.18",
"@visactor/vrender-components": "0.20.18",
"@visactor/vgrammar-core": "0.14.18",
"@visactor/vutils": "~0.19.2",
"@visactor/vdataset": "~0.19.2",
"@visactor/vchart": "workspace:1.12.14"
"@visactor/vchart": "workspace:1.12.15"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
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.14",
"version": "1.12.15",
"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.14",
"version": "1.12.15",
"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.15",
"tag": "@visactor/vchart_v1.12.15",
"date": "Thu, 05 Dec 2024 09:50:08 GMT",
"comments": {
"none": [
{
"comment": "feat: support `restorePosition` in position/bound label overlap strategy"
},
{
"comment": "fix: optimize `shiftY` of label"
}
]
}
},
{
"version": "1.12.14",
"tag": "@visactor/vchart_v1.12.14",
Expand Down
Loading

0 comments on commit 2476b1d

Please sign in to comment.