try {
this._loadTexture(page, callback, enter);
} catch (e) {
+ console.warn(e);
callback();
}
}
if (img.width === 0) {
$this.deletePage(page);
$this._preloadPage(page, callback);
+ console.warn('failed to load page for drawing texture ', page);
return;
}
ctx.drawImage(img, -1, 0, d + 2, d);
} catch (e) {
+ console.warn(e);
}
}
var width = parseFloat($(this).css('width')) * wr;
var height = parseFloat($(this).css('height')) * hr;
- var blendmode=$(this).data('blendmode');
+ var blendmode = $(this).data('blendmode');
if (blendmode === 'normal') {
ctx.globalCompositeOperation = 'source-over';
}
}
+ if($(this).is('[data-layer="bothsvg"]')){
+ ctx.fillStyle = '#ffffff';
+ ctx.fillRect(left, top, width, height);
+ }
+
if ($(this).is('[data-color]')) {
ctx.fillStyle = $(this).attr('data-color');
ctx.fillRect(left, top, width, height);
try {
ctx.drawImage(textures[i], left, top, width, height);
} catch (e) {
-
+ console.warn(e);
}
}
}
}
i.src = dataurl;
} catch (e) {
+ console.warn(e);
callback();
}
});