mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
Debug info while caching
This commit is contained in:
@@ -150,8 +150,12 @@
|
|||||||
width = conf.width || this.width(),
|
width = conf.width || this.width(),
|
||||||
height = conf.height || this.height(),
|
height = conf.height || this.height(),
|
||||||
drawBorder = conf.drawBorder || false,
|
drawBorder = conf.drawBorder || false,
|
||||||
layer = this.getLayer(),
|
layer = this.getLayer();
|
||||||
cachedSceneCanvas = new Kinetic.SceneCanvas({
|
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,
|
pixelRatio: 1,
|
||||||
width: width,
|
width: width,
|
||||||
height: height
|
height: height
|
||||||
|
|||||||
Reference in New Issue
Block a user