blob: f465d549bbb762f51498fa8fd8915e9f5e6ea79a [file] [log] [blame]
function CVSolidElement(data, comp,globalData){
this.parent.constructor.call(this,data, comp,globalData);
}
createElement(CVBaseElement, CVSolidElement);
CVSolidElement.prototype.renderFrame = function(parentMatrix){
if(this.parent.renderFrame.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.sc;
ctx.fillRect(0,0,this.data.sw,this.data.sh);
this.globalData.renderer.restore(this.data.hasMask);
if(this.firstFrame){
this.firstFrame = false;
}
};