Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auto release] release 0.21.8 #1665

Merged
merged 13 commits into from
Jan 7, 2025
Merged
26 changes: 13 additions & 13 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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":"vrenderMain","version":"0.21.7","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.21.8","nextBump":"patch"}]
29 changes: 29 additions & 0 deletions docs/assets/changelog/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# v0.21.7

2024-12-25


**🆕 New feature**

- **@visactor/vrender-components**: support polygon sector crosshair for non-smooth angle axis
- **@visactor/vrender-components**: add switch component

**🐛 Bug fix**

- **@visactor/vrender-components**: upgrade vutils to 0.19.3
- **@visactor/react-vrender-utils**: upgrade vutils to 0.19.3
- **@visactor/react-vrender**: upgrade vutils to 0.19.3
- **@visactor/vrender-kits**: upgrade vutils to 0.19.3
- **@visactor/vrender-core**: upgrade vutils to 0.19.3
- **@visactor/vrender**: upgrade vutils to 0.19.3

**🔖 other**

- **@visactor/vrender-components**: Revert "fix: fix the bug of axis pickable"

This reverts commit 55637a84c01f7af8f4b64ccdfc8cd7215a257c03.



[more detail about v0.21.7](https://github.com/VisActor/VRender/releases/tag/v0.21.7)

# v0.21.6

2024-12-25
Expand Down
29 changes: 29 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# v0.21.7

2024-12-25


**🆕 新增功能**

- **@visactor/vrender-components**: support polygon sector crosshair for non-smooth angle axis
- **@visactor/vrender-components**: add switch component

**🐛 功能修复**

- **@visactor/vrender-components**: upgrade vutils to 0.19.3
- **@visactor/react-vrender-utils**: upgrade vutils to 0.19.3
- **@visactor/react-vrender**: upgrade vutils to 0.19.3
- **@visactor/vrender-kits**: upgrade vutils to 0.19.3
- **@visactor/vrender-core**: upgrade vutils to 0.19.3
- **@visactor/vrender**: upgrade vutils to 0.19.3

**🔖 其他**

- **@visactor/vrender-components**: Revert "fix: fix the bug of axis pickable"

This reverts commit 55637a84c01f7af8f4b64ccdfc8cd7215a257c03.



[更多详情请查看 v0.21.7](https://github.com/VisActor/VRender/releases/tag/v0.21.7)

# v0.21.6

2024-12-25
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@visactor/vchart": "1.3.0",
"@visactor/vutils": "~0.19.3",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.21.7",
"@visactor/vrender": "workspace:0.21.8",
"markdown-it": "^13.0.0",
"highlight.js": "^11.8.0",
"axios": "^1.4.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender-utils/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender-utils",
"entries": [
{
"version": "0.21.8",
"tag": "@visactor/react-vrender-utils_v0.21.8",
"date": "Mon, 06 Jan 2025 11:07:36 GMT",
"comments": {}
},
{
"version": "0.21.7",
"tag": "@visactor/react-vrender-utils_v0.21.7",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender-utils

This log was last generated on Wed, 25 Dec 2024 07:53:11 GMT and should not be manually modified.
This log was last generated on Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.

## 0.21.8
Mon, 06 Jan 2025 11:07:36 GMT

_Version update only_

## 0.21.7
Wed, 25 Dec 2024 07:53:11 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/react-vrender-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender-utils",
"version": "0.21.7",
"version": "0.21.8",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.7",
"@visactor/react-vrender": "workspace:0.21.7",
"@visactor/vrender": "workspace:0.21.8",
"@visactor/react-vrender": "workspace:0.21.8",
"@visactor/vutils": "~0.19.3",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender",
"entries": [
{
"version": "0.21.8",
"tag": "@visactor/react-vrender_v0.21.8",
"date": "Mon, 06 Jan 2025 11:07:36 GMT",
"comments": {}
},
{
"version": "0.21.7",
"tag": "@visactor/react-vrender_v0.21.7",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender

This log was last generated on Wed, 25 Dec 2024 07:53:11 GMT and should not be manually modified.
This log was last generated on Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.

## 0.21.8
Mon, 06 Jan 2025 11:07:36 GMT

_Version update only_

## 0.21.7
Wed, 25 Dec 2024 07:53:11 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/react-vrender/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender",
"version": "0.21.7",
"version": "0.21.8",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.7",
"@visactor/vrender": "workspace:0.21.8",
"@visactor/vutils": "~0.19.3",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
15 changes: 15 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "0.21.8",
"tag": "@visactor/vrender-components_v0.21.8",
"date": "Mon, 06 Jan 2025 11:07:36 GMT",
"comments": {
"none": [
{
"comment": "fix: handle the additional logic of 3d arc label layout"
},
{
"comment": "fix: fix layout of title component\n\n"
}
]
}
},
{
"version": "0.21.7",
"tag": "@visactor/vrender-components_v0.21.7",
Expand Down
12 changes: 11 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Change Log - @visactor/vrender-components

This log was last generated on Wed, 25 Dec 2024 07:53:11 GMT and should not be manually modified.
This log was last generated on Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.

## 0.21.8
Mon, 06 Jan 2025 11:07:36 GMT

### Updates

- fix: handle the additional logic of 3d arc label layout
- fix: fix layout of title component



## 0.21.7
Wed, 25 Dec 2024 07:53:11 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/vrender-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-components",
"version": "0.21.7",
"version": "0.21.8",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,8 +27,8 @@
"dependencies": {
"@visactor/vutils": "~0.19.3",
"@visactor/vscale": "~0.19.3",
"@visactor/vrender-core": "workspace:0.21.7",
"@visactor/vrender-kits": "workspace:0.21.7"
"@visactor/vrender-core": "workspace:0.21.8",
"@visactor/vrender-kits": "workspace:0.21.8"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
19 changes: 18 additions & 1 deletion packages/vrender-components/src/label/arc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { isFunction } from '@visactor/vutils';
export class ArcInfo {
key!: string;
refDatum!: any;
refArc!: IArc;
/**
* 绘图区圆弧中点
*/
Expand Down Expand Up @@ -239,6 +240,14 @@ export class ArcLabel extends LabelBase<ArcLabelAttrs> {
basedArc.labelLimit ?? (labels[i].attribute as ITextAttribute).maxLineWidth;
}

if (basedArc.refArc && basedArc.refArc.type === 'arc3d') {
(labelAttribute as any).anchor3d = [
basedArc.circleCenter.x - labelAttribute.x,
basedArc.circleCenter.y - labelAttribute.y
];
(labelAttribute as any).beta = basedArc.refArc.attribute.beta;
}

labels[i].setAttributes(labelAttribute);
}
}
Expand Down Expand Up @@ -290,7 +299,7 @@ export class ArcLabel extends LabelBase<ArcLabelAttrs> {
graphicAttribute.outerRadius,
center
);

arc.refArc = currentMark as IArc;
arc.pointA = polarToCartesian(
center as IPoint,
this.computeDatumRadius(center.x * 2, center.y * 2, graphicAttribute.outerRadius),
Expand Down Expand Up @@ -1006,6 +1015,14 @@ export class ArcLabel extends LabelBase<ArcLabelAttrs> {
curveType: 'basis'
});
}

if (baseMark.type === 'arc3d' && baseMark) {
const { beta, x, y } = baseMark.attribute;
lineGraphic.setAttributes({
beta,
anchor3d: [x, y]
});
}
}

return lineGraphic;
Expand Down
Loading
Loading