Skip to content

Commit

Permalink
fix: the logic boundary condition judgment of text element attribute …
Browse files Browse the repository at this point in the history
…update is missing (#1755) (#1756)
  • Loading branch information
wang1212 authored Aug 22, 2024
1 parent d52a8d8 commit 3fb2553
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-camels-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@antv/g-plugin-device-renderer': patch
---

fix: the logic boundary condition judgment of text element attribute update is missing (#1755)
5 changes: 5 additions & 0 deletions packages/g-plugin-device-renderer/src/drawcalls/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ export class TextDrawcall extends Instanced {
name: string,
value: any,
): void {
// fix https://github.com/antvis/G/issues/1755
if (objects.length === 0) {
return;
}

if (
name === 'text' ||
name === 'fontFamily' ||
Expand Down

0 comments on commit 3fb2553

Please sign in to comment.