Browse Source

Fixed styling of Graph2d lines/points

flowchartTest
jos 9 years ago
parent
commit
9a793f79cd
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      lib/DOMutil.js
  2. +1
    -1
      lib/timeline/component/GraphGroup.js
  3. +1
    -1
      lib/timeline/component/graph2d_types/line.js

+ 1
- 1
lib/DOMutil.js View File

@ -150,7 +150,7 @@ exports.drawPoint = function(x, y, group, JSONcontainer, svgContainer, labelObj)
} }
if(group.options.drawPoints.styles !== undefined) { if(group.options.drawPoints.styles !== undefined) {
point.setAttributeNS(null, "style", 'vis-' + group.group.options.drawPoints.styles);
point.setAttributeNS(null, "style", group.group.options.drawPoints.styles);
} }
point.setAttributeNS(null, "class", group.className + " vis-point"); point.setAttributeNS(null, "class", group.className + " vis-point");
//handle label //handle label

+ 1
- 1
lib/timeline/component/GraphGroup.js View File

@ -138,7 +138,7 @@ GraphGroup.prototype.drawIcon = function(x, y, JSONcontainer, SVGcontainer, icon
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) { if(this.style !== undefined) {
path.setAttributeNS(null, "style", 'vis-' + this.style);
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+"");

+ 1
- 1
lib/timeline/component/graph2d_types/line.js View File

@ -119,7 +119,7 @@ Line.prototype.draw = function (dataset, group, framework) {
path = DOMutil.getSVGElement('path', framework.svgElements, framework.svg); path = DOMutil.getSVGElement('path', framework.svgElements, framework.svg);
path.setAttributeNS(null, "class", group.className); path.setAttributeNS(null, "class", group.className);
if(group.style !== undefined) { if(group.style !== undefined) {
path.setAttributeNS(null, "style", 'vis-' + group.style);
path.setAttributeNS(null, "style", group.style);
} }
// construct path from dataset // construct path from dataset

Loading…
Cancel
Save