update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov 2024-05-23 12:20:00 -05:00
parent e30a16cb36
commit a5cd67261f
3 changed files with 18 additions and 1 deletions

View File

@ -3,6 +3,11 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
### 9.3.10 (2024-05-23)
- Fix chrome clear canvas issue
- Typescript fixes
### 9.3.9 (2024-05-20) ### 9.3.9 (2024-05-20)
- Fix underline and line-through for `Konva.Text` when `Konva._fixTextRendering = true` - Fix underline and line-through for `Konva.Text` when `Konva._fixTextRendering = true`

View File

@ -965,3 +965,15 @@ _registerNode(Stage);
* stage.container(container); * stage.container(container);
*/ */
Factory.addGetterSetter(Stage, 'container'); Factory.addGetterSetter(Stage, 'container');
// chrome is clearing canvas in inactive browser window, causing layer content to be erased
// so let's redraw layers as soon as window becomes active
// TODO: any other way to solve this issue?
// TODO: should we remove it if chrome fixes the issue?
if (Konva.isBrowser) {
window.addEventListener('focus', () => {
stages.forEach((stage) => {
stage.batchDraw();
});
});
}

View File

@ -47,7 +47,7 @@ export interface TransformerConfig extends ContainerConfig {
newPos: Vector2d, newPos: Vector2d,
evt: any evt: any
) => Vector2d; ) => Vector2d;
anchorStyleFunc?: (anchor: Shape) => void; anchorStyleFunc?: (anchor: Rect) => void;
} }
var EVENTS_NAME = 'tr-konva'; var EVENTS_NAME = 'tr-konva';