mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:07:13 +08:00
fix large memory usage
This commit is contained in:
parent
abfdf7153f
commit
76cace8b38
@ -3,6 +3,10 @@
|
|||||||
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.2 (2024-01-26)
|
||||||
|
|
||||||
|
- Fix large memory usage on node export
|
||||||
|
|
||||||
### 9.3.1 (2024-01-17)
|
### 9.3.1 (2024-01-17)
|
||||||
|
|
||||||
- Fix Pixelate filter work/fix caching size
|
- Fix Pixelate filter work/fix caching size
|
||||||
|
@ -1933,8 +1933,10 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
|
|||||||
context = canvas.getContext();
|
context = canvas.getContext();
|
||||||
|
|
||||||
const bufferCanvas = new SceneCanvas({
|
const bufferCanvas = new SceneCanvas({
|
||||||
width: canvas.width,
|
// width and height already multiplied by pixelRatio
|
||||||
height: canvas.height,
|
// so we need to revert that
|
||||||
|
width: canvas.width / canvas.pixelRatio,
|
||||||
|
height: canvas.height / canvas.pixelRatio,
|
||||||
pixelRatio: canvas.pixelRatio,
|
pixelRatio: canvas.pixelRatio,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user