(parent, item)
| 217 | |
| 218 | |
| 219 | def _border_rect(parent, item): |
| 220 | pos = item.pos() |
| 221 | r = item.rect() |
| 222 | el = ET.SubElement(parent, f"{{{_SVG_NS}}}rect") |
| 223 | el.set("x", f"{pos.x():.2f}") |
| 224 | el.set("y", f"{pos.y():.2f}") |
| 225 | el.set("width", f"{r.width():.2f}") |
| 226 | el.set("height", f"{r.height():.2f}") |
| 227 | el.set("fill", "none") |
| 228 | el.set("stroke", "#5050b4") |
| 229 | el.set("stroke-width", "0.8") |
| 230 | el.set("stroke-dasharray", "4 2") |
| 231 | |
| 232 | |
| 233 | def _image_svg(parent, defs, item) -> None: |