Lines Matching +full:attrib +full:-
25 # https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform
49 path = self.paths[-1]
54 self.paths[-1] = path
102 x1 = float(line.attrib.get("x1", 0))
103 y1 = float(line.attrib.get("y1", 0))
104 x2 = float(line.attrib.get("x2", 0))
105 y2 = float(line.attrib.get("y2", 0))
112 x = float(rect.attrib.get("x", 0))
113 y = float(rect.attrib.get("y", 0))
114 w = float(rect.attrib.get("width"))
115 h = float(rect.attrib.get("height"))
116 rx = float(rect.attrib.get("rx", 0))
117 ry = float(rect.attrib.get("ry", 0))
125 self.H(x + w - rx)
128 self.V(y + h - ry)
130 self.A(rx, ry, x + w - rx, y + h)
133 self.A(rx, ry, x, y + h - ry)
140 if "d" in path.attrib:
141 self._start_path(initial_path=path.attrib["d"])
144 if "points" in poly.attrib:
145 self._start_path("M" + poly.attrib["points"])
149 if "points" in poly.attrib:
150 self._start_path("M" + poly.attrib["points"])
153 cx = float(circle.attrib.get("cx", 0))
154 cy = float(circle.attrib.get("cy", 0))
155 r = float(circle.attrib.get("r"))
159 self.M(cx - r, cy)
161 self.A(r, r, cx - r, cy, large_arc=1)
164 cx = float(ellipse.attrib.get("cx", 0))
165 cy = float(ellipse.attrib.get("cy", 0))
166 rx = float(ellipse.attrib.get("rx"))
167 ry = float(ellipse.attrib.get("ry"))
171 self.M(cx - rx, cy)
173 self.A(rx, ry, cx - rx, cy, large_arc=1)
181 if "transform" in el.attrib:
182 self.transforms[-1] = _transform(el.attrib["transform"])