From 2f428279f0c96b4c1a2b20ea76a1e09624acbc3b Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Mon, 2 Dec 2024 11:21:06 +0800 Subject: [PATCH] fix: fix issue with richtext setAttribute, closed #1578 --- ...ix-richtext-attribute-opacity_2024-12-02-05-00.json | 10 ++++++++++ packages/vrender-core/src/graphic/richtext.ts | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 common/changes/@visactor/vrender-core/fix-richtext-attribute-opacity_2024-12-02-05-00.json diff --git a/common/changes/@visactor/vrender-core/fix-richtext-attribute-opacity_2024-12-02-05-00.json b/common/changes/@visactor/vrender-core/fix-richtext-attribute-opacity_2024-12-02-05-00.json new file mode 100644 index 000000000..eb0cddf3b --- /dev/null +++ b/common/changes/@visactor/vrender-core/fix-richtext-attribute-opacity_2024-12-02-05-00.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-core", + "comment": "fix: fix issue with richtext setAttribute, closed #1578", + "type": "none" + } + ], + "packageName": "@visactor/vrender-core" +} \ No newline at end of file diff --git a/packages/vrender-core/src/graphic/richtext.ts b/packages/vrender-core/src/graphic/richtext.ts index a2e94ebd1..e7fe6d0a5 100644 --- a/packages/vrender-core/src/graphic/richtext.ts +++ b/packages/vrender-core/src/graphic/richtext.ts @@ -41,6 +41,13 @@ const RICHTEXT_UPDATE_TAG_KEY = [ 'fill', 'stroke', 'fontSize', + 'fontFamily', + 'fontStyle', + 'fontWeight', + 'lineWidth', + 'opacity', + 'fillOpacity', + 'strokeOpacity', ...GRAPHIC_UPDATE_TAG_KEY ];