Sha256: 317b0a90bf0124fa58ba77c0908bef18e8f55b847fe9aaf7a2bc52a0799989d9

Contents?: true

Size: 707 Bytes

Versions: 23

Compression:

Stored size: 707 Bytes

Contents

pv.SvgScene.rule = function(scenes) {
  var e = scenes.$g.firstChild;
  for (var i = 0; i < scenes.length; i++) {
    var s = scenes[i];

    /* visible */
    if (!s.visible) continue;
    var stroke = s.strokeStyle;
    if (!stroke.opacity) continue;

    e = this.expect(e, "line", {
        "shape-rendering": s.antialias ? null : "crispEdges",
        "pointer-events": s.events,
        "cursor": s.cursor,
        "x1": s.left,
        "y1": s.top,
        "x2": s.left + s.width,
        "y2": s.top + s.height,
        "stroke": stroke.color,
        "stroke-opacity": stroke.opacity,
        "stroke-width": s.lineWidth / this.scale
      });
    e = this.append(e, scenes, i);
  }
  return e;
};

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubyvis-0.6.0 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.5.2 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.5.1 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.5.0 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.4.1 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.4.0 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.6 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.5 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.4 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.3 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.2 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.1 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.3.0 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.2.2 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.2.1 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.2.0 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.1.7 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.1.6 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.1.5 vendor/protovis/src/scene/SvgRule.js
rubyvis-0.1.4 vendor/protovis/src/scene/SvgRule.js