Move wire endpoints that currently touch this junction.
(self, delta: QPointF)
| 46 | return super().itemChange(change, value) |
| 47 | |
| 48 | def _rubber_band_wires(self, delta: QPointF) -> None: |
| 49 | """Move wire endpoints that currently touch this junction.""" |
| 50 | from .wire_item import WireItem |
| 51 | pos_key = _pt_key(self.pos()) |
| 52 | for item in self.scene().items(): |
| 53 | if not isinstance(item, WireItem): |
| 54 | continue |
| 55 | hits = {i for i, pt in enumerate(item.points) if _pt_key(pt) == pos_key} |
| 56 | if hits: |
| 57 | item.move_points(hits, delta) |
no test coverage detected