1 pv.SvgScene.rule = function(scenes) { 2 var e = scenes.$g.firstChild; 3 for (var i = 0; i < scenes.length; i++) { 4 var s = scenes[i]; 5 6 /* visible */ 7 if (!s.visible) continue; 8 var stroke = s.strokeStyle; 9 if (!stroke.opacity) continue; 10 11 e = this.expect(e, "line", { 12 "shape-rendering": s.antialias ? null : "crispEdges", 13 "pointer-events": s.events, 14 "cursor": s.cursor, 15 "x1": s.left, 16 "y1": s.top, 17 "x2": s.left + s.width, 18 "y2": s.top + s.height, 19 "stroke": stroke.color, 20 "stroke-opacity": stroke.opacity, 21 "stroke-width": s.lineWidth / this.scale 22 }); 23 e = this.append(e, scenes, i); 24 } 25 return e; 26 }; 27