mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 04:42:02 +08:00
update CHANGELOG with new version
This commit is contained in:
parent
e30a16cb36
commit
a5cd67261f
@ -3,6 +3,11 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
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)
|
||||
|
||||
- Fix underline and line-through for `Konva.Text` when `Konva._fixTextRendering = true`
|
||||
|
12
src/Stage.ts
12
src/Stage.ts
@ -965,3 +965,15 @@ _registerNode(Stage);
|
||||
* stage.container(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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ export interface TransformerConfig extends ContainerConfig {
|
||||
newPos: Vector2d,
|
||||
evt: any
|
||||
) => Vector2d;
|
||||
anchorStyleFunc?: (anchor: Shape) => void;
|
||||
anchorStyleFunc?: (anchor: Rect) => void;
|
||||
}
|
||||
|
||||
var EVENTS_NAME = 'tr-konva';
|
||||
|
Loading…
Reference in New Issue
Block a user