| 42 | |
| 43 | @dataclass |
| 44 | class 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 |