blob: 3c8f5db8f40c0439c52f99a837c46922d8e5c381 [file] [log] [blame]
function CVSolidElement(data,globalData){
this.parent.constructor.call(this,data,globalData);
}
createElement(CVBaseElement, CVSolidElement);
CVSolidElement.prototype.draw = function(parentMatrix){
if(this.parent.draw.call(this, parentMatrix)===false){
return;
}
var ctx = this.canvasContext;
this.globalData.renderer.save();
var finalMat = this.finalTransform.mat.props;
this.globalData.renderer.ctxTransform(finalMat);
this.globalData.renderer.ctxOpacity(this.finalTransform.opacity);
ctx.fillStyle=this.data.color;
ctx.fillRect(0,0,this.data.width,this.data.height);
this.globalData.renderer.restore(this.data.hasMask);
};