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.2 #1613

Merged
merged 13 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.21.2","nextBump":"patch"}]
43 changes: 43 additions & 0 deletions docs/assets/changelog/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# v0.21.1

2024-12-05


**🆕 New feature**

- **@visactor/vrender-components**: support `restorePosition` in position/bound label overlap strategy
- **@visactor/vrender-components**: support vertex point of marker area label. close @VisActor/VChart[#3442](https://github.com/VisActor/VRender/issues/3442)

**🐛 Bug fix**

- **@visactor/vrender-components**: end symbol angle when arc line in markpoint. fix @VisActor/VChart[#3427](https://github.com/VisActor/VRender/issues/3427)
- **@visactor/vrender-components**: fix issue with scroll-plugin
- **@visactor/vrender-core**: fix issue with insertAfter and insertBefore
- **@visactor/vrender-core**: fix the issue when line is configured to connect, closed [#3238](https://github.com/VisActor/VRender/issues/3238)
- **@visactor/vrender-core**: fix issue with richtext setAttribute, closed [#1578](https://github.com/VisActor/VRender/issues/1578)
- **@visactor/vrender-core**: fix issue with richtext default font



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

# v0.21.0

2024-12-05


**🆕 New feature**

- **@visactor/vrender-components**: support label overlap for inside arc labels
- **@visactor/vrender-core**: use ascend and decent to make measure more accurate
- **@visactor/vrender-core**: sync animated attribute while call render func, closed [#1416](https://github.com/VisActor/VRender/issues/1416)

**🐛 Bug fix**

- **@visactor/vrender-core**: smooth out stuttering effects when multiple TagPointsUpdate instances execute concurrently
- **@visactor/vrender-core**: fix issue with dirtyBounds incorrectly while set visible



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

# v0.20.16

2024-11-25
Expand Down
43 changes: 43 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# v0.21.1

2024-12-05


**🆕 新增功能**

- **@visactor/vrender-components**: support `restorePosition` in position/bound label overlap strategy
- **@visactor/vrender-components**: support vertex point of marker area label. close @VisActor/VChart[#3442](https://github.com/VisActor/VRender/issues/3442)

**🐛 功能修复**

- **@visactor/vrender-components**: end symbol angle when arc line in markpoint. fix @VisActor/VChart[#3427](https://github.com/VisActor/VRender/issues/3427)
- **@visactor/vrender-components**: fix issue with scroll-plugin
- **@visactor/vrender-core**: fix issue with insertAfter and insertBefore
- **@visactor/vrender-core**: fix the issue when line is configured to connect, closed [#3238](https://github.com/VisActor/VRender/issues/3238)
- **@visactor/vrender-core**: fix issue with richtext setAttribute, closed [#1578](https://github.com/VisActor/VRender/issues/1578)
- **@visactor/vrender-core**: fix issue with richtext default font



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

# v0.21.0

2024-12-05


**🆕 新增功能**

- **@visactor/vrender-components**: support label overlap for inside arc labels
- **@visactor/vrender-core**: use ascend and decent to make measure more accurate
- **@visactor/vrender-core**: sync animated attribute while call render func, closed [#1416](https://github.com/VisActor/VRender/issues/1416)

**🐛 功能修复**

- **@visactor/vrender-core**: smooth out stuttering effects when multiple TagPointsUpdate instances execute concurrently
- **@visactor/vrender-core**: fix issue with dirtyBounds incorrectly while set visible



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

# v0.20.16

2024-11-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.2",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.21.1",
"@visactor/vrender": "workspace:0.21.2",
"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.2",
"tag": "@visactor/react-vrender-utils_v0.21.2",
"date": "Thu, 12 Dec 2024 10:23:51 GMT",
"comments": {}
},
{
"version": "0.21.1",
"tag": "@visactor/react-vrender-utils_v0.21.1",
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 Thu, 05 Dec 2024 07:50:46 GMT and should not be manually modified.
This log was last generated on Thu, 12 Dec 2024 10:23:51 GMT and should not be manually modified.

## 0.21.2
Thu, 12 Dec 2024 10:23:51 GMT

_Version update only_

## 0.21.1
Thu, 05 Dec 2024 07:50:46 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.1",
"version": "0.21.2",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.1",
"@visactor/react-vrender": "workspace:0.21.1",
"@visactor/vrender": "workspace:0.21.2",
"@visactor/react-vrender": "workspace:0.21.2",
"@visactor/vutils": "~0.19.2",
"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.2",
"tag": "@visactor/react-vrender_v0.21.2",
"date": "Thu, 12 Dec 2024 10:23:51 GMT",
"comments": {}
},
{
"version": "0.21.1",
"tag": "@visactor/react-vrender_v0.21.1",
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 Thu, 05 Dec 2024 07:50:46 GMT and should not be manually modified.
This log was last generated on Thu, 12 Dec 2024 10:23:51 GMT and should not be manually modified.

## 0.21.2
Thu, 12 Dec 2024 10:23:51 GMT

_Version update only_

## 0.21.1
Thu, 05 Dec 2024 07:50:46 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.1",
"version": "0.21.2",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.1",
"@visactor/vrender": "workspace:0.21.2",
"@visactor/vutils": "~0.19.2",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
12 changes: 12 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "0.21.2",
"tag": "@visactor/vrender-components_v0.21.2",
"date": "Thu, 12 Dec 2024 10:23:51 GMT",
"comments": {
"none": [
{
"comment": "feat: support 'inside-middle' position for line-data label"
}
]
}
},
{
"version": "0.21.1",
"tag": "@visactor/vrender-components_v0.21.1",
Expand Down
9 changes: 8 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @visactor/vrender-components

This log was last generated on Thu, 05 Dec 2024 07:50:47 GMT and should not be manually modified.
This log was last generated on Thu, 12 Dec 2024 10:23:51 GMT and should not be manually modified.

## 0.21.2
Thu, 12 Dec 2024 10:23:51 GMT

### Updates

- feat: support 'inside-middle' position for line-data label

## 0.21.1
Thu, 05 Dec 2024 07:50:47 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.1",
"version": "0.21.2",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,8 +27,8 @@
"dependencies": {
"@visactor/vutils": "~0.19.2",
"@visactor/vscale": "~0.19.2",
"@visactor/vrender-core": "workspace:0.21.1",
"@visactor/vrender-kits": "workspace:0.21.1"
"@visactor/vrender-core": "workspace:0.21.2",
"@visactor/vrender-kits": "workspace:0.21.2"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
16 changes: 14 additions & 2 deletions packages/vrender-components/src/label/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,15 +709,27 @@ export class LabelBase<T extends BaseLabelAttrs> extends AbstractComponent<T> {
return (this.getRootNode() as IGroup).find(node => node.name === baseMarkGroupName, true) as IGroup;
}

protected getGraphicBounds(graphic?: IGraphic, point?: Partial<PointLocationCfg>, position?: string): IBoundsLike;
protected getGraphicBounds(graphic?: IGraphic, point: Partial<PointLocationCfg> = {}): IBoundsLike {
protected getGraphicBounds(
graphic?: IGraphic,
point: Partial<PointLocationCfg> = {},
position?: string
): IBoundsLike {
if (graphic) {
if (graphic.attribute.visible !== false) {
return graphic.AABBBounds;
}
const { x, y } = graphic.attribute;
return { x1: x, x2: x, y1: y, y2: y } as IBoundsLike;
}
if (point && position && position === 'inside-middle') {
const { x, y, x1 = x, y1 = y } = point;
return {
x1: (x + x1) / 2,
x2: (x + x1) / 2,
y1: (y + y1) / 2,
y2: (y + y1) / 2
};
}
const { x, y } = point;
return { x1: x, x2: x, y1: y, y2: y } as IBoundsLike;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vrender-components/src/label/overlap/shiftY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function shiftY(texts: IText[], option: IShiftYOption) {
deltaYTolerance = Number.MAX_VALUE
} = globalShiftY;
for (let iter = 0; iter < maxIterations; iter++) {
texts.sort((a, b) => getY1(a) - getY1(b));
texts.sort((a, b) => getY1Initial(a) - getY1Initial(b));
let error = 0;
for (let i = 0; i < n - 1; i++) {
const curText = texts[i];
Expand Down
3 changes: 2 additions & 1 deletion packages/vrender-components/src/label/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,9 @@ export interface LineDataLabelAttrs extends BaseLabelAttrs {
/**
* 标签位置
* @default 'top'
* @since 0.21.1 支持 'inside-middle' 在面积图元中显示在中间位置
*/
position?: Functional<BoundsAnchorType>;
position?: Functional<BoundsAnchorType | 'inside-middle'>;
}

export interface PolygonLabelAttrs extends BaseLabelAttrs {
Expand Down
12 changes: 12 additions & 0 deletions packages/vrender-core/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vrender-core",
"entries": [
{
"version": "0.21.2",
"tag": "@visactor/vrender-core_v0.21.2",
"date": "Thu, 12 Dec 2024 10:23:51 GMT",
"comments": {
"none": [
{
"comment": "fix: fix issue with shadow-root transform"
}
]
}
},
{
"version": "0.21.1",
"tag": "@visactor/vrender-core_v0.21.1",
Expand Down
Loading
Loading