mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 09:54:56 +08:00
Debug info while caching
This commit is contained in:
@@ -150,8 +150,12 @@
|
||||
width = conf.width || this.width(),
|
||||
height = conf.height || this.height(),
|
||||
drawBorder = conf.drawBorder || false,
|
||||
layer = this.getLayer(),
|
||||
cachedSceneCanvas = new Kinetic.SceneCanvas({
|
||||
layer = this.getLayer();
|
||||
if (width === 0 || height === 0) {
|
||||
Kinetic.Util.warn('Width or height of caching configuration equals 0. Cache is ignored.');
|
||||
return;
|
||||
}
|
||||
var cachedSceneCanvas = new Kinetic.SceneCanvas({
|
||||
pixelRatio: 1,
|
||||
width: width,
|
||||
height: height
|
||||
|
||||
Reference in New Issue
Block a user