diff --git a/examples/example2.yml b/examples/example2.yml index 54adfaf..34dbf2b 100644 --- a/examples/example2.yml +++ b/examples/example2.yml @@ -30,16 +30,20 @@ nodes: wires: W1: <<: *wire_i2c + show_name: false W2: <<: *wire_i2c + show_name: false W3: mm2: 0.14 length: 0.2 colors: [BK, BU, OG, VT] + show_name: false W4: mm2: 0.5 length: 0.35 colors: [BK, RD] + show_name: false connections: - diff --git a/src/wireviz.py b/src/wireviz.py index fa47aea..40cc50e 100644 --- a/src/wireviz.py +++ b/src/wireviz.py @@ -184,8 +184,8 @@ class Node: gender: str = None num_pins: int = None pinout: List[Any] = field(default_factory=list) - show_name: bool = False - show_num_pins: bool = False + show_name: bool = True + show_num_pins: bool = True def __post_init__(self): self.ports_left = False @@ -214,7 +214,7 @@ class Cable: shield: bool = False colors: List[Any] = field(default_factory=list) color_code: str = None - show_name: bool = False + show_name: bool = True show_pinout: bool = False show_num_wires: bool = True