MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _label_x

Method _label_x

SLiCAP/schematic/component_item.py:553–561  ·  view source on GitHub ↗

X offset for the first label column, just right of the symbol outline.

(self)

Source from the content-addressed store, hash-verified

551 # ── property helpers ──────────────────────────────────────────────────────
552
553 def _label_x(self) -> float:
554 """X offset for the first label column, just right of the symbol outline."""
555 tight = SYMBOL_TIGHT_RECT.get(self.symbol_name)
556 if tight:
557 x0, _y0, w, _h = tight
558 right = x0 + w
559 if right > 0:
560 return right + _LABEL_MARGIN
561 return _DEFAULT_LABEL_X
562
563 def _all_prop_keys(self) -> list[str]:
564 """Ordered list of every key that can be displayed as a label, in the

Callers 1

update_labelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected