MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _build_path

Function _build_path

SLiCAP/schematic/canvas.py:64–70  ·  view source on GitHub ↗
(points: list[QPointF])

Source from the content-addressed store, hash-verified

62
63
64def _build_path(points: list[QPointF]) -> QPainterPath:
65 if len(points) < 2:
66 return QPainterPath()
67 path = QPainterPath(points[0])
68 for pt in points[1:]:
69 path.lineTo(pt)
70 return path
71
72
73def _elbow(p1: QPointF, p2: QPointF, h_first: bool) -> list[QPointF]:

Callers 3

_start_paste_ghostMethod · 0.85
_refresh_previewMethod · 0.85
mouseMoveEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected