Browse Source

Put a proper scale limit on the bar icon

Minor cleanup
codeClimate
Ludo Stellingwerff 9 years ago
parent
commit
d4324cfb61
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      lib/timeline/component/graph2d_types/bar.js

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

@ -23,13 +23,12 @@ Bargraph.drawIcon = function (group, x, y, iconWidth, iconHeight, framework) {
DOMutil.drawBar(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, barWidth, bar1Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style);
DOMutil.drawBar(x + 1.5 * barWidth + offset + 2, y + fillHeight - bar2Height - 1, barWidth, bar2Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style);
//TODO: draw little points if drawPoints enabled.
if (group.options.drawPoints.enabled == true) {
var groupTemplate = {
style: group.options.drawPoints.style,
styles: group.options.drawPoints.styles,
size: barWidth/5,
size: Math.max(barWidth/5,group.options.drawPoints.size),
className: group.className
};
DOMutil.drawPoint(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, groupTemplate, framework.svgElements, framework.svg);

Loading…
Cancel
Save