Skip to content

Commit

Permalink
Merge pull request #1759 from VisActor/release/0.22.3
Browse files Browse the repository at this point in the history
[Auto release] release 0.22.3
  • Loading branch information
neuqzxy authored Feb 27, 2025
2 parents d5db4cd + 7335e14 commit 0595859
Show file tree
Hide file tree
Showing 28 changed files with 235 additions and 341 deletions.
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.22.2","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.22.3","nextBump":"patch"}]
25 changes: 25 additions & 0 deletions docs/assets/changelog/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# v0.22.2

2025-02-24


**🆕 New feature**

- **@visactor/vrender-components**: add trigger array config to support pointerupoutside. close @VisActor/VChart[#3734](https://github.com/VisActor/VRender/issues/3734)
- **@visactor/vrender-kits**: graphic support clipConfig attribute
- **@visactor/vrender-core**: graphic support clipConfig attribute
- **@visactor/vrender-core**: group support drawMode attribute
- **@visactor/vrender-core**: image support auto width height by rawImage wh
- **@visactor/vrender**: image support auto width height by rawImage wh

**🐛 Bug fix**

- **@visactor/vrender-core**: fix refresh memory issue caused by event listener
- **@visactor/vrender-core**: fix issue with group setShadowBlendStyle not work on background
- **@visactor/vrender-core**: fix issue with image stroke style
- **@visactor/vrender-core**: issue where NAN appears during the text animation process, [#1752](https://github.com/VisActor/VRender/issues/1752)



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

# v0.21.16

2025-02-21
Expand Down
25 changes: 25 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# v0.22.2

2025-02-24


**🆕 新增功能**

- **@visactor/vrender-components**: add trigger array config to support pointerupoutside. close @VisActor/VChart[#3734](https://github.com/VisActor/VRender/issues/3734)
- **@visactor/vrender-kits**: graphic support clipConfig attribute
- **@visactor/vrender-core**: graphic support clipConfig attribute
- **@visactor/vrender-core**: group support drawMode attribute
- **@visactor/vrender-core**: image support auto width height by rawImage wh
- **@visactor/vrender**: image support auto width height by rawImage wh

**🐛 功能修复**

- **@visactor/vrender-core**: fix refresh memory issue caused by event listener
- **@visactor/vrender-core**: fix issue with group setShadowBlendStyle not work on background
- **@visactor/vrender-core**: fix issue with image stroke style
- **@visactor/vrender-core**: issue where NAN appears during the text animation process, [#1752](https://github.com/VisActor/VRender/issues/1752)



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

# v0.21.16

2025-02-21
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.4",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.22.2",
"@visactor/vrender": "workspace:0.22.3",
"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.22.3",
"tag": "@visactor/react-vrender-utils_v0.22.3",
"date": "Wed, 26 Feb 2025 07:36:06 GMT",
"comments": {}
},
{
"version": "0.22.2",
"tag": "@visactor/react-vrender-utils_v0.22.2",
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, 24 Feb 2025 08:19:49 GMT and should not be manually modified.
This log was last generated on Wed, 26 Feb 2025 07:36:06 GMT and should not be manually modified.

## 0.22.3
Wed, 26 Feb 2025 07:36:06 GMT

_Version update only_

## 0.22.2
Mon, 24 Feb 2025 08:19:49 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.22.2",
"version": "0.22.3",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.22.2",
"@visactor/react-vrender": "workspace:0.22.2",
"@visactor/vrender": "workspace:0.22.3",
"@visactor/react-vrender": "workspace:0.22.3",
"@visactor/vutils": "~0.19.4",
"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.22.3",
"tag": "@visactor/react-vrender_v0.22.3",
"date": "Wed, 26 Feb 2025 07:36:06 GMT",
"comments": {}
},
{
"version": "0.22.2",
"tag": "@visactor/react-vrender_v0.22.2",
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, 24 Feb 2025 08:19:49 GMT and should not be manually modified.
This log was last generated on Wed, 26 Feb 2025 07:36:06 GMT and should not be manually modified.

## 0.22.3
Wed, 26 Feb 2025 07:36:06 GMT

_Version update only_

## 0.22.2
Mon, 24 Feb 2025 08:19:49 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.22.2",
"version": "0.22.3",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.22.2",
"@visactor/vrender": "workspace:0.22.3",
"@visactor/vutils": "~0.19.4",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "0.22.3",
"tag": "@visactor/vrender-components_v0.22.3",
"date": "Wed, 26 Feb 2025 07:36:06 GMT",
"comments": {}
},
{
"version": "0.22.2",
"tag": "@visactor/vrender-components_v0.22.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/vrender-components

This log was last generated on Mon, 24 Feb 2025 08:19:49 GMT and should not be manually modified.
This log was last generated on Wed, 26 Feb 2025 07:36:06 GMT and should not be manually modified.

## 0.22.3
Wed, 26 Feb 2025 07:36:06 GMT

_Version update only_

## 0.22.2
Mon, 24 Feb 2025 08:19:49 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.22.2",
"version": "0.22.3",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,8 +27,8 @@
"dependencies": {
"@visactor/vutils": "~0.19.4",
"@visactor/vscale": "~0.19.4",
"@visactor/vrender-core": "workspace:0.22.2",
"@visactor/vrender-kits": "workspace:0.22.2"
"@visactor/vrender-core": "workspace:0.22.3",
"@visactor/vrender-kits": "workspace:0.22.3"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
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.22.3",
"tag": "@visactor/vrender-core_v0.22.3",
"date": "Wed, 26 Feb 2025 07:36:06 GMT",
"comments": {
"none": [
{
"comment": "fix: fix issue with text edit include textAlign and bounds"
}
]
}
},
{
"version": "0.22.2",
"tag": "@visactor/vrender-core_v0.22.2",
Expand Down
9 changes: 8 additions & 1 deletion packages/vrender-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @visactor/vrender-core

This log was last generated on Mon, 24 Feb 2025 08:19:49 GMT and should not be manually modified.
This log was last generated on Wed, 26 Feb 2025 07:36:06 GMT and should not be manually modified.

## 0.22.3
Wed, 26 Feb 2025 07:36:06 GMT

### Updates

- fix: fix issue with text edit include textAlign and bounds

## 0.22.2
Mon, 24 Feb 2025 08:19:49 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/vrender-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-core",
"version": "0.22.2",
"version": "0.22.3",
"description": "",
"sideEffects": [
"./src/modules.ts",
Expand Down
19 changes: 16 additions & 3 deletions packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ import type {
// }

export function getDefaultCharacterConfig(attribute: IRichTextGraphicAttribute) {
const { fill = 'black', stroke = false, fontWeight = 'normal', lineHeight, fontFamily = 'Arial' } = attribute;
const {
fill = 'black',
stroke = false,
fontWeight = 'normal',
lineHeight,
fontFamily = 'Arial',
textAlign
} = attribute;
let { fontSize = 12 } = attribute;
if (!isFinite(fontSize)) {
fontSize = 12;
Expand All @@ -29,7 +36,8 @@ export function getDefaultCharacterConfig(attribute: IRichTextGraphicAttribute)
fontSize,
fontWeight,
fontFamily,
lineHeight
lineHeight,
textAlign
} as any;
}

Expand Down Expand Up @@ -219,7 +227,12 @@ export class EditModule {
} else {
const configIdx = this.composingConfigIdx;
const lastConfig = textConfig[configIdx] || textConfig[configIdx - 1];
textConfig.splice(configIdx, 0, { fill: 'black', ...lastConfig, text: '' });
textConfig.splice(configIdx, 0, {
fill: 'black',
...getDefaultCharacterConfig(this.currRt.attribute),
...lastConfig,
text: ''
});
}
};
handleCompositionEnd = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,8 @@ export class RichTextEditPlugin implements IPlugin {
if (!editOptions || !boundsStrokeWhenInput) {
return;
}
// 得先偏移,不然上一次的Bounds会影响后续的计算
this.offsetShadowRoot();
// const { attribute } = this.currRt;
const b = this.getRichTextAABBBounds(this.currRt);
const height = b.height();
Expand All @@ -641,7 +643,6 @@ export class RichTextEditPlugin implements IPlugin {
// shadow.add(this.shadowBounds);

this.offsetLineBgAndShadowBounds();
this.offsetShadowRoot();
}

trySyncPlaceholderToTextConfig() {
Expand Down Expand Up @@ -1089,7 +1090,7 @@ export class RichTextEditPlugin implements IPlugin {
protected getShadow(rt: IRichText) {
const sr = rt.shadowRoot || rt.attachShadow();
// TODO 这里比较hack,因为emptyBoundsContainer是empty,导致shadowRoot的Bounds为空,所以这里给一个1*1的rect,让其能绘制
sr.setAttributes({ width: 1, height: 1 });
sr.setAttributes({ width: 0, height: 0 });
return sr;
}

Expand Down
Loading

0 comments on commit 0595859

Please sign in to comment.