blob: c8ae4d2f5fa41543ff9bf0874d07c7df2b0e6ff0 [file] [log] [blame]
function ISolidElement(data,parentType, animationItem){
this.parent.constructor.call(this,data,parentType, animationItem);
}
createElement(BaseElement, ISolidElement);
ISolidElement.prototype.createElements = function(){
this.svgElem = document.createElementNS (svgNS, "g");
this.parent.createElements.call(this);
this.anchorElement.appendChild(this.svgElem);
var rect = document.createElementNS(svgNS,'rect');
rect.setAttribute('width',this.data.width);
rect.setAttribute('height',this.data.height);
/*rect.setAttribute('width',1);
rect.setAttribute('height',1);*/
rect.setAttribute('fill',this.data.color);
this.svgElem.appendChild(rect);
styleUnselectableDiv(this.svgElem);
styleUnselectableDiv(rect);
this.maskingGroup = this.svgElem;
this.maskedElement = rect;
};