mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fix cache with float dimensions. fix #798
This commit is contained in:
@@ -363,8 +363,8 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
|
||||
relativeTo: this.getParent()
|
||||
});
|
||||
}
|
||||
var width = conf.width || rect.width,
|
||||
height = conf.height || rect.height,
|
||||
var width = Math.ceil(conf.width || rect.width),
|
||||
height = Math.ceil(conf.height || rect.height),
|
||||
pixelRatio = conf.pixelRatio,
|
||||
x = conf.x === undefined ? rect.x : conf.x,
|
||||
y = conf.y === undefined ? rect.y : conf.y,
|
||||
|
Reference in New Issue
Block a user