diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ef9c41d40..c3ff0d1e2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -14,7 +14,7 @@ importers: '@types/react-dom': ^18.0.0 '@visactor/vchart': 1.3.0 '@visactor/vgrammar': ~0.5.7 - '@visactor/vrender': workspace:0.22.2 + '@visactor/vrender': workspace:0.22.3 '@visactor/vutils': ~0.19.4 '@vitejs/plugin-react': 3.1.0 axios: ^1.4.0 @@ -71,7 +71,7 @@ importers: '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 '@types/react-reconciler': ^0.28.2 - '@visactor/vrender': workspace:0.22.2 + '@visactor/vrender': workspace:0.22.3 '@visactor/vutils': ~0.19.4 '@vitejs/plugin-react': 3.1.0 cross-env: ^7.0.3 @@ -111,8 +111,8 @@ importers: '@rushstack/eslint-patch': ~1.1.4 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@visactor/react-vrender': workspace:0.22.2 - '@visactor/vrender': workspace:0.22.2 + '@visactor/react-vrender': workspace:0.22.3 + '@visactor/vrender': workspace:0.22.3 '@visactor/vutils': ~0.19.4 '@vitejs/plugin-react': 3.1.0 cross-env: ^7.0.3 @@ -153,8 +153,8 @@ importers: '@types/jest': ^26.0.0 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@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 '@visactor/vutils': ~0.19.4 '@vitejs/plugin-react': 3.1.0 canvas: 2.11.2 @@ -200,8 +200,8 @@ importers: '@internal/ts-config': workspace:* '@rushstack/eslint-patch': ~1.1.4 '@types/jest': ^26.0.0 - '@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 '@visactor/vscale': ~0.19.4 '@visactor/vutils': ~0.19.4 cross-env: ^7.0.3 @@ -287,7 +287,7 @@ importers: '@types/node-fetch': 2.6.4 '@types/react': ^18.0.0 '@types/react-dom': ^18.0.0 - '@visactor/vrender-core': workspace:0.22.2 + '@visactor/vrender-core': workspace:0.22.3 '@visactor/vutils': ~0.19.4 '@vitejs/plugin-react': 3.1.0 canvas: 2.11.2 @@ -373,10 +373,10 @@ importers: '@rushstack/eslint-patch': ~1.1.4 '@types/node': '*' '@types/node-fetch': 2.6.4 - '@visactor/vrender': workspace:0.22.2 - '@visactor/vrender-components': workspace:0.22.2 - '@visactor/vrender-core': workspace:0.22.2 - '@visactor/vrender-kits': workspace:0.22.2 + '@visactor/vrender': workspace:0.22.3 + '@visactor/vrender-components': workspace:0.22.3 + '@visactor/vrender-core': workspace:0.22.3 + '@visactor/vrender-kits': workspace:0.22.3 cross-env: ^7.0.3 eslint: ~8.18.0 form-data: ~4.0.0 diff --git a/common/config/rush/version-policies.json b/common/config/rush/version-policies.json index 28ed963e8..ab7458deb 100644 --- a/common/config/rush/version-policies.json +++ b/common/config/rush/version-policies.json @@ -1 +1 @@ -[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.22.2","nextBump":"patch"}] +[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.22.3","nextBump":"patch"}] diff --git a/docs/assets/changelog/en/changelog.md b/docs/assets/changelog/en/changelog.md index 0a7cf682f..7b1e3dff9 100644 --- a/docs/assets/changelog/en/changelog.md +++ b/docs/assets/changelog/en/changelog.md @@ -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 diff --git a/docs/assets/changelog/zh/changelog.md b/docs/assets/changelog/zh/changelog.md index 3e8e1b884..c13ef481f 100644 --- a/docs/assets/changelog/zh/changelog.md +++ b/docs/assets/changelog/zh/changelog.md @@ -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 diff --git a/docs/package.json b/docs/package.json index 47845476b..2c07e363d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/packages/react-vrender-utils/CHANGELOG.json b/packages/react-vrender-utils/CHANGELOG.json index eac71bd0e..c4e4ca249 100644 --- a/packages/react-vrender-utils/CHANGELOG.json +++ b/packages/react-vrender-utils/CHANGELOG.json @@ -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", diff --git a/packages/react-vrender-utils/CHANGELOG.md b/packages/react-vrender-utils/CHANGELOG.md index 99e70d345..98dd4d9cc 100644 --- a/packages/react-vrender-utils/CHANGELOG.md +++ b/packages/react-vrender-utils/CHANGELOG.md @@ -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 diff --git a/packages/react-vrender-utils/package.json b/packages/react-vrender-utils/package.json index 3904588db..16e098a19 100644 --- a/packages/react-vrender-utils/package.json +++ b/packages/react-vrender-utils/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/react-vrender-utils", - "version": "0.22.2", + "version": "0.22.3", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -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" diff --git a/packages/react-vrender/CHANGELOG.json b/packages/react-vrender/CHANGELOG.json index aee680f2c..87321dd43 100644 --- a/packages/react-vrender/CHANGELOG.json +++ b/packages/react-vrender/CHANGELOG.json @@ -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", diff --git a/packages/react-vrender/CHANGELOG.md b/packages/react-vrender/CHANGELOG.md index 06f8f9f4d..863e274a2 100644 --- a/packages/react-vrender/CHANGELOG.md +++ b/packages/react-vrender/CHANGELOG.md @@ -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 diff --git a/packages/react-vrender/package.json b/packages/react-vrender/package.json index 050f02d51..4c54cfb93 100644 --- a/packages/react-vrender/package.json +++ b/packages/react-vrender/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/react-vrender", - "version": "0.22.2", + "version": "0.22.3", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -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" diff --git a/packages/vrender-components/CHANGELOG.json b/packages/vrender-components/CHANGELOG.json index 0acca397b..757c8d5b8 100644 --- a/packages/vrender-components/CHANGELOG.json +++ b/packages/vrender-components/CHANGELOG.json @@ -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", diff --git a/packages/vrender-components/CHANGELOG.md b/packages/vrender-components/CHANGELOG.md index d648c4cf7..92cb491ae 100644 --- a/packages/vrender-components/CHANGELOG.md +++ b/packages/vrender-components/CHANGELOG.md @@ -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 diff --git a/packages/vrender-components/package.json b/packages/vrender-components/package.json index dbefc6e86..2d92a3ae3 100644 --- a/packages/vrender-components/package.json +++ b/packages/vrender-components/package.json @@ -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", @@ -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:*", diff --git a/packages/vrender-core/CHANGELOG.json b/packages/vrender-core/CHANGELOG.json index 4e71b9bc8..6a28a2107 100644 --- a/packages/vrender-core/CHANGELOG.json +++ b/packages/vrender-core/CHANGELOG.json @@ -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", diff --git a/packages/vrender-core/CHANGELOG.md b/packages/vrender-core/CHANGELOG.md index 5084bd30c..cacf8918c 100644 --- a/packages/vrender-core/CHANGELOG.md +++ b/packages/vrender-core/CHANGELOG.md @@ -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 diff --git a/packages/vrender-core/package.json b/packages/vrender-core/package.json index 3d7f433d8..21a55e72c 100644 --- a/packages/vrender-core/package.json +++ b/packages/vrender-core/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender-core", - "version": "0.22.2", + "version": "0.22.3", "description": "", "sideEffects": [ "./src/modules.ts", diff --git a/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts b/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts index 58ebd735a..6f494a008 100644 --- a/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts +++ b/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts @@ -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; @@ -29,7 +36,8 @@ export function getDefaultCharacterConfig(attribute: IRichTextGraphicAttribute) fontSize, fontWeight, fontFamily, - lineHeight + lineHeight, + textAlign } as any; } @@ -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 = () => { diff --git a/packages/vrender-core/src/plugins/builtin-plugin/richtext-edit-plugin.ts b/packages/vrender-core/src/plugins/builtin-plugin/richtext-edit-plugin.ts index d32c40436..a60df0018 100644 --- a/packages/vrender-core/src/plugins/builtin-plugin/richtext-edit-plugin.ts +++ b/packages/vrender-core/src/plugins/builtin-plugin/richtext-edit-plugin.ts @@ -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(); @@ -641,7 +643,6 @@ export class RichTextEditPlugin implements IPlugin { // shadow.add(this.shadowBounds); this.offsetLineBgAndShadowBounds(); - this.offsetShadowRoot(); } trySyncPlaceholderToTextConfig() { @@ -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; } diff --git a/packages/vrender-kits/CHANGELOG.json b/packages/vrender-kits/CHANGELOG.json index b0705329d..2da0d4f88 100644 --- a/packages/vrender-kits/CHANGELOG.json +++ b/packages/vrender-kits/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@visactor/vrender-kits", "entries": [ + { + "version": "0.22.3", + "tag": "@visactor/vrender-kits_v0.22.3", + "date": "Wed, 26 Feb 2025 07:36:06 GMT", + "comments": { + "none": [ + { + "comment": "fix: roam zoom not work in mobile browser" + } + ] + } + }, { "version": "0.22.2", "tag": "@visactor/vrender-kits_v0.22.2", diff --git a/packages/vrender-kits/CHANGELOG.md b/packages/vrender-kits/CHANGELOG.md index 110cc25be..10e9f0dfb 100644 --- a/packages/vrender-kits/CHANGELOG.md +++ b/packages/vrender-kits/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @visactor/vrender-kits -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: roam zoom not work in mobile browser ## 0.22.2 Mon, 24 Feb 2025 08:19:49 GMT diff --git a/packages/vrender-kits/package.json b/packages/vrender-kits/package.json index 7327fa7a3..6989e5815 100644 --- a/packages/vrender-kits/package.json +++ b/packages/vrender-kits/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender-kits", - "version": "0.22.2", + "version": "0.22.3", "description": "", "sideEffects": false, "main": "cjs/index.js", @@ -21,7 +21,7 @@ }, "dependencies": { "@visactor/vutils": "~0.19.4", - "@visactor/vrender-core": "workspace:0.22.2", + "@visactor/vrender-core": "workspace:0.22.3", "@resvg/resvg-js": "2.4.1", "roughjs": "4.5.2", "gifuct-js": "2.1.2", diff --git a/packages/vrender-kits/src/event/extension/gesture.ts b/packages/vrender-kits/src/event/extension/gesture.ts index 24d7988c9..a0dc41844 100644 --- a/packages/vrender-kits/src/event/extension/gesture.ts +++ b/packages/vrender-kits/src/event/extension/gesture.ts @@ -158,9 +158,13 @@ export class Gesture extends EventEmitter { } private onStart = (ev?: FederatedPointerEvent) => { - this.cachedEvents = []; - this.startPoints = []; - this.reset(); + // 双指缩放时, onStart会被触发多次, startPoints负责收集上下文 + // 如果onStart时清空startPoints, 会导致onMove提前return, 从而无法触发pinch事件 + // 由于onEnd时会清空startPoints, 所以这里暂不清空 + // 后续遇到bad case再作处理 + // this.cachedEvents = []; + // this.startPoints = []; + // this.reset(); this.startTime = clock.now(); diff --git a/packages/vrender/CHANGELOG.json b/packages/vrender/CHANGELOG.json index 78ad743b2..d39c3a73a 100644 --- a/packages/vrender/CHANGELOG.json +++ b/packages/vrender/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "@visactor/vrender", "entries": [ + { + "version": "0.22.3", + "tag": "@visactor/vrender_v0.22.3", + "date": "Wed, 26 Feb 2025 07:36:06 GMT", + "comments": {} + }, { "version": "0.22.2", "tag": "@visactor/vrender_v0.22.2", diff --git a/packages/vrender/CHANGELOG.md b/packages/vrender/CHANGELOG.md index 0777e82d7..f3b6f24a8 100644 --- a/packages/vrender/CHANGELOG.md +++ b/packages/vrender/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @visactor/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 diff --git a/packages/vrender/__tests__/browser/src/pages/richtext-editor.ts b/packages/vrender/__tests__/browser/src/pages/richtext-editor.ts index 523589d9c..4eb8a2960 100644 --- a/packages/vrender/__tests__/browser/src/pages/richtext-editor.ts +++ b/packages/vrender/__tests__/browser/src/pages/richtext-editor.ts @@ -28,308 +28,52 @@ export const page = () => { shapes.push( createRichText({ visible: true, + x: 162.07207758976318, + y: 216.49803822714284, + textAlign: 'center', + text: null, fontSize: 16, - _debug_bounds: true, - width: 0, + whiteSpace: 'normal', + graphicAlign: 'center', + graphicBaseline: 'middle', + fill: '#1F2329', + ignoreBuf: true, + anchor: [-162.07207758976318, 216.49803822714284], + angle: 0, + editOptions: { + placeholder: '请输入文本', + placeholderColor: '#B3B8C3', + keepHeightWhileEmpty: true, + boundsStrokeWhenInput: '#3073F2', + syncPlaceholderToTextConfig: false, + stopPropagation: true + }, + editable: true, + fontFamily: 'D-Din', height: 0, - x: 100, - y: 100, + heightLimit: 999999, lineHeight: '150%', - editable: true, - upgradeAttrs: { - multiBreakLine: true - }, - // background: 'green', - // "textAlign": "center", + maxWidth: 120, + strokeBoundsBuffer: -1, + textBaseline: 'top', textConfig: [ { - text: '我', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '们', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '是', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '\n', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '\n', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '\n', - fontSize: 16, - - textAlign: 'center', - background: 'rgba(255, 0, 0, 0.3)', - fill: '#0f51b5' - }, - { - text: '无', + fill: '#1F2329', + stroke: false, fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '缘', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { + fontWeight: 'normal', + fontFamily: 'D-Din', + lineHeight: '150%', text: 'a', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '无', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '故', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '的', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '尘😁', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '埃\n', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '无', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '缘', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '无', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '故', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '的', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '游', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '走\n', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '黑', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '暗', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '只', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '需', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '要', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '张', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '开', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '一', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '张', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '缝', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '隙\n', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '就', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '能', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '挂', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '起', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '飓', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '[4]', - script: 'super', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: '风\n', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' - }, - { - text: 'and this is our world, \nthat we call life', - fontSize: 16, - - textAlign: 'center', - fill: '#0f51b5' + isComposing: false } - ] + ], + upgradeAttrs: { + lineHeight: true, + multiBreakLine: true + }, + verticalDirection: 'middle', + width: 0 }) ); diff --git a/packages/vrender/package.json b/packages/vrender/package.json index fda1e1a01..0bf65adb7 100644 --- a/packages/vrender/package.json +++ b/packages/vrender/package.json @@ -1,6 +1,6 @@ { "name": "@visactor/vrender", - "version": "0.22.2", + "version": "0.22.3", "description": "", "sideEffects": true, "main": "cjs/index.js", @@ -24,8 +24,8 @@ "test-watch": "cross-env DEBUG_MODE=1 jest --watch" }, "dependencies": { - "@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:*", diff --git a/tools/bugserver-trigger/package.json b/tools/bugserver-trigger/package.json index 8a620d840..e946b035f 100644 --- a/tools/bugserver-trigger/package.json +++ b/tools/bugserver-trigger/package.json @@ -8,10 +8,10 @@ "ci": "ts-node --transpileOnly --skipProject ./scripts/trigger-test.ts" }, "dependencies": { - "@visactor/vrender": "workspace:0.22.2", - "@visactor/vrender-core": "workspace:0.22.2", - "@visactor/vrender-kits": "workspace:0.22.2", - "@visactor/vrender-components": "workspace:0.22.2" + "@visactor/vrender": "workspace:0.22.3", + "@visactor/vrender-core": "workspace:0.22.3", + "@visactor/vrender-kits": "workspace:0.22.3", + "@visactor/vrender-components": "workspace:0.22.3" }, "devDependencies": { "@rushstack/eslint-patch": "~1.1.4",