|
@ -89,6 +89,10 @@ GraphGroup.prototype.drawIcon = function(x, y, JSONcontainer, SVGcontainer, icon |
|
|
if (this.options.style == 'line') { |
|
|
if (this.options.style == 'line') { |
|
|
path = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); |
|
|
path = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); |
|
|
path.setAttributeNS(null, "class", this.className); |
|
|
path.setAttributeNS(null, "class", this.className); |
|
|
|
|
|
if(this.style !== undefined) { |
|
|
|
|
|
path.setAttributeNS(null, "style", this.style); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
path.setAttributeNS(null, "d", "M" + x + ","+y+" L" + (x + iconWidth) + ","+y+""); |
|
|
path.setAttributeNS(null, "d", "M" + x + ","+y+" L" + (x + iconWidth) + ","+y+""); |
|
|
if (this.options.shaded.enabled == true) { |
|
|
if (this.options.shaded.enabled == true) { |
|
|
fillPath = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); |
|
|
fillPath = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); |
|
|