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

Method _flip_transform

SLiCAP/schematic/component_item.py:537–542  ·  view source on GitHub ↗

Scale transform that represents the current flip state.

(self)

Source from the content-addressed store, hash-verified

535 # ── flip / rotation ───────────────────────────────────────────────────────
536
537 def _flip_transform(self) -> QTransform:
538 """Scale transform that represents the current flip state."""
539 return QTransform().scale(
540 -1.0 if self.h_flip else 1.0,
541 -1.0 if self.v_flip else 1.0,
542 )
543
544 def apply_transform(self) -> None:
545 """Apply h_flip / v_flip to the item and counter-transform all labels."""

Callers 1

apply_transformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected