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

Method move_points

SLiCAP/schematic/wire_item.py:218–222  ·  view source on GitHub ↗

Shift the points at the given indices by delta (used by rubber-banding).

(self, indices: set[int], delta: QPointF)

Source from the content-addressed store, hash-verified

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)."""
220 for i in indices:
221 self.points[i] = self.points[i] + delta
222 self._rebuild()
223
224 # ── visuals ───────────────────────────────────────────────────────────────
225

Callers 2

_rubber_band_wiresMethod · 0.80
_rubber_band_wiresMethod · 0.80

Calls 1

_rebuildMethod · 0.95

Tested by

no test coverage detected