MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _border_rect

Function _border_rect

SLiCAP/schematic/export.py:219–230  ·  view source on GitHub ↗
(parent, item)

Source from the content-addressed store, hash-verified

217
218
219def _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
233def _image_svg(parent, defs, item) -> None:

Callers 1

_build_svgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected