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

Method _save_label_offsets

SLiCAP/schematic/component_item.py:608–611  ·  view source on GitHub ↗

Persist current label positions into prop_offsets.

(self)

Source from the content-addressed store, hash-verified

606 # ── label management ──────────────────────────────────────────────────────
607
608 def _save_label_offsets(self) -> None:
609 """Persist current label positions into prop_offsets."""
610 for key, lbl in self._labels.items():
611 self.prop_offsets[key] = (lbl.pos().x(), lbl.pos().y())
612
613 def update_labels(self) -> None:
614 """Rebuild visible property labels from prop_display."""

Callers 6

update_labelsMethod · 0.95
applyMethod · 0.80
applyMethod · 0.80
_copy_selectionMethod · 0.80
to_dataMethod · 0.80
applyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected