Skip to content

Commit

Permalink
fix: fix issue with richtext not support setShadowBlendStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Dec 20, 2024
1 parent b897b9f commit 802275e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-core",
"comment": "fix: fix issue with richtext not support setShadowBlendStyle",
"type": "none"
}
],
"packageName": "@visactor/vrender-core"
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class DefaultCanvasRichTextRender extends BaseRender<IRichText> implement
return;
}

// shadow
context.setShadowBlendStyle && context.setShadowBlendStyle(richtext, richtext.attribute, richtextAttribute);

context.translate(x, y);
this.beforeRenderStep(
richtext,
Expand Down

0 comments on commit 802275e

Please sign in to comment.