update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov
2022-03-21 13:49:55 -05:00
parent f31d6f5a36
commit a863db9580
6 changed files with 205 additions and 56 deletions

View File

@@ -1889,12 +1889,16 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
var box = this.getClientRect();
var stage = this.getStage(),
x = config.x !== undefined ? config.x : box.x,
y = config.y !== undefined ? config.y : box.y,
x = config.x !== undefined ? config.x : Math.floor(box.x),
y = config.y !== undefined ? config.y : Math.floor(box.y),
pixelRatio = config.pixelRatio || 1,
canvas = new SceneCanvas({
width: config.width || box.width || (stage ? stage.width() : 0),
height: config.height || box.height || (stage ? stage.height() : 0),
width:
config.width || Math.ceil(box.width) || (stage ? stage.width() : 0),
height:
config.height ||
Math.ceil(box.height) ||
(stage ? stage.height() : 0),
pixelRatio: pixelRatio,
}),
context = canvas.getContext();