Skip to content

Commit

Permalink
Release 0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
RobolabGs2 committed Oct 1, 2024
1 parent 8e75034 commit 7a50416
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@

<!-- ## [Unreleased] -->

## [0.2.11] - 2024-10-01

### Добавлено

- Добавлен кэш текстур и свойств текста, теперь за один кадр в большинстве случаев будет пересчитываться только активный блок, что должно оптимизировать большинство проблем с производительностью, особенно в Firefox.

## [0.2.10] - 2024-09-29

### Добавлено
Expand Down
7 changes: 5 additions & 2 deletions src/lib/graphics/text_stencil_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ class TableCell {
self.style.strokeWidth == other.style.strokeWidth &&
deepEqual(self.style.font, other.style.font) &&
deepEqual(self.style.fontSizeStrategy, other.style.fontSizeStrategy) &&
self.ctx.frame.height === other.ctx.frame.height &&
self.ctx.frame.width === other.ctx.frame.width
(self.style.fontSizeStrategy.type !== 'relative' ||
(self.ctx.frame.height === other.ctx.frame.height &&
self.ctx.frame.width === other.ctx.frame.width)) &&
(self.style.stroke.settings.type === 'disabled') ===
(other.style.stroke.settings.type === 'disabled')
);
}
}
Expand Down

0 comments on commit 7a50416

Please sign in to comment.