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

Class ComponentData

SLiCAP/schematic/schematic_data.py:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43@dataclass
44class ComponentData:
45 symbol_name: str
46 instance_id: str
47 x: float
48 y: float
49 rotation: float = 0.0
50 h_flip: bool = False
51 v_flip: bool = False
52 params: dict[str, str] = field(default_factory=dict)
53 model: str = ""
54 refs: list[str] = field(default_factory=list)
55 # prop_display: {key: [show_value, show_name]}
56 # show_value=False → no label; show_name only meaningful when show_value is True
57 prop_display: dict[str, list[bool]] = field(
58 default_factory=lambda: {"refdes": [True, False]}
59 )
60 # Label positions in component-local coordinates: {key: [x, y]}
61 prop_offsets: dict[str, list[float]] = field(default_factory=dict)
62
63
64@dataclass

Callers 2

to_dataMethod · 0.85
from_jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected