blob: 55ad41e16340ca4af9e3e52150e6ba7669179c0d [file] [edit]
function CVSolidElement(data,globalData){
this.parent.constructor.call(this,data,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;
}
};