Skip to content

Commit

Permalink
Merge pull request #1674 from VisActor/release/0.21.9
Browse files Browse the repository at this point in the history
[Auto release] release 0.21.9
  • Loading branch information
neuqzxy authored Jan 13, 2025
2 parents 39b6192 + c5a5dd7 commit adad6c5
Show file tree
Hide file tree
Showing 61 changed files with 1,654 additions and 504 deletions.
38 changes: 25 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.8","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.21.9","nextBump":"patch"}]
4 changes: 4 additions & 0 deletions docs/assets/api/en/common/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui sym
#${prefix} lineThrough(number) = 0

中划线线粗

#${prefix} disableAutoClipedPoptip(boolean) = false

禁用省略hover展示poptip
4 changes: 4 additions & 0 deletions docs/assets/api/zh/common/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui sym
#${prefix} lineThrough(number) = 0

中划线线粗

#${prefix} disableAutoClipedPoptip(boolean) = false

禁用省略hover展示poptip
4 changes: 4 additions & 0 deletions docs/assets/option/en/common/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui sym
#${prefix} lineThrough(number) = 0

中划线线粗

#${prefix} disableAutoClipedPoptip(boolean) = false

禁用省略hover展示poptip
4 changes: 4 additions & 0 deletions docs/assets/option/zh/common/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui sym
#${prefix} lineThrough(number) = 0

中划线线粗

#${prefix} disableAutoClipedPoptip(boolean) = false

禁用省略hover展示poptip
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.8",
"@visactor/vrender": "workspace:0.21.9",
"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.9",
"tag": "@visactor/react-vrender-utils_v0.21.9",
"date": "Mon, 13 Jan 2025 03:23:50 GMT",
"comments": {}
},
{
"version": "0.21.8",
"tag": "@visactor/react-vrender-utils_v0.21.8",
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 Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.
This log was last generated on Mon, 13 Jan 2025 03:23:50 GMT and should not be manually modified.

## 0.21.9
Mon, 13 Jan 2025 03:23:50 GMT

_Version update only_

## 0.21.8
Mon, 06 Jan 2025 11:07:36 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.8",
"version": "0.21.9",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.8",
"@visactor/react-vrender": "workspace:0.21.8",
"@visactor/vrender": "workspace:0.21.9",
"@visactor/react-vrender": "workspace:0.21.9",
"@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.9",
"tag": "@visactor/react-vrender_v0.21.9",
"date": "Mon, 13 Jan 2025 03:23:50 GMT",
"comments": {}
},
{
"version": "0.21.8",
"tag": "@visactor/react-vrender_v0.21.8",
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 Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.
This log was last generated on Mon, 13 Jan 2025 03:23:50 GMT and should not be manually modified.

## 0.21.9
Mon, 13 Jan 2025 03:23:50 GMT

_Version update only_

## 0.21.8
Mon, 06 Jan 2025 11:07:36 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.8",
"version": "0.21.9",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.21.8",
"@visactor/vrender": "workspace:0.21.9",
"@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.9",
"tag": "@visactor/vrender-components_v0.21.9",
"date": "Mon, 13 Jan 2025 03:23:50 GMT",
"comments": {
"none": [
{
"comment": "feat: add GifImage component"
},
{
"comment": "fix: fix duplicate label issue after custom filtering with label dataFilter"
}
]
}
},
{
"version": "0.21.8",
"tag": "@visactor/vrender-components_v0.21.8",
Expand Down
10 changes: 9 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log - @visactor/vrender-components

This log was last generated on Mon, 06 Jan 2025 11:07:36 GMT and should not be manually modified.
This log was last generated on Mon, 13 Jan 2025 03:23:50 GMT and should not be manually modified.

## 0.21.9
Mon, 13 Jan 2025 03:23:50 GMT

### Updates

- feat: add GifImage component
- fix: fix duplicate label issue after custom filtering with label dataFilter

## 0.21.8
Mon, 06 Jan 2025 11:07:36 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.8",
"version": "0.21.9",
"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.8",
"@visactor/vrender-kits": "workspace:0.21.8"
"@visactor/vrender-core": "workspace:0.21.9",
"@visactor/vrender-kits": "workspace:0.21.9"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-components/src/axis/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,13 @@ export interface AxisLabelOverlap {
overflowLimitLength?:
| number
| {
/**
* 左侧扩充空间的大小
*/
left?: number;
/**
* 右侧扩充空间的大小
*/
right?: number;
// top?: number;
// bottom?: number;
Expand Down
18 changes: 18 additions & 0 deletions packages/vrender-components/src/core/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,21 @@ export type Padding =
| number
| number[]
| {
/**
* 上边距
*/
top?: number;
/**
* 下边距
*/
bottom?: number;
/**
* 左边距
*/
left?: number;
/**
* 右边距
*/
right?: number;
};

Expand All @@ -65,7 +77,13 @@ type CommonTextContent = {
| number
| number[]
| {
/**
* 指定文本节点类型为'text'
*/
type?: 'text';
/**
* 设置文本的内容
*/
text: string | string[] | number | number[];
};
};
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-components/src/label/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ export class LabelBase<T extends BaseLabelAttrs> extends AbstractComponent<T> {
data = dataFilter(data);
}

if (data && data.length) {
// 数据保护,防止重复 id 造成不可预知的问题
const seenIds = new Set();
data = data.filter(d => !seenIds.has(d.id) && seenIds.add(d.id));
}

let labels: (IText | IRichText)[] = this._initText(data);

if (isFunction(customLayoutFunc)) {
Expand Down
Loading

0 comments on commit adad6c5

Please sign in to comment.