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

Method move_vertex

SLiCAP/schematic/wire_item.py:214–216  ·  view source on GitHub ↗
(self, idx: int, pt: QPointF)

Source from the content-addressed store, hash-verified

212 return seg_idx + 1
213
214 def move_vertex(self, idx: int, pt: QPointF) -> None:
215 self.points[idx] = pt
216 self._rebuild()
217
218 def move_points(self, indices: set[int], delta: QPointF) -> None:
219 """Shift the points at the given indices by delta (used by rubber-banding)."""

Callers 1

mouseMoveEventMethod · 0.80

Calls 1

_rebuildMethod · 0.95

Tested by

no test coverage detected