Skip to content

[bug] Using HTML color code changes wire thickness #494

@esromneb

Description

@esromneb

I've found that if I only use the color abbreviations the diagram looks one way. If I add a single quoted html color code, the wire thickness across the entire diagram changes, as well as other minor visual changes

Before

connectors:
  MOTORDRIVER:
    type: Motor Driver
    pinlabels: [12V, GND, 5V, IN1, IN2, IN3, IN4, OUT1, OUT2, OUT3, OUT4]
  ESP32:
    type: ESP32
    pinlabels: [GND, 3V3, USBN, USBP, P4, P33, P34, P47, P48]

cables:
  SIGNALMOTORDRIVER:
    wirecount: 2
    colors: [BU, OG]
    type: Jumper Wire

connections:
  -
    - ESP32: [8, 9]
    - SIGNALMOTORDRIVER: [1, 2]
    - MOTORDRIVER:       [6, 7]

Before output

Image

After

connectors:
  MOTORDRIVER:
    type: Motor Driver
    pinlabels: [12V, GND, 5V, IN1, IN2, IN3, IN4, OUT1, OUT2, OUT3, OUT4]
  ESP32:
    type: ESP32
    pinlabels: [GND, 3V3, USBN, USBP, P4, P33, P34, P47, P48]

cables:
  SIGNALMOTORDRIVER:
    wirecount: 2
    colors: [BU, "#ffcf80"]
    type: Jumper Wire

connections:
  -
    - ESP32: [8, 9]
    - SIGNALMOTORDRIVER: [1, 2]
    - MOTORDRIVER:       [6, 7]

After output

Image

Version

# wireviz --version

WireViz 0.4.1

# python3 --version
Python 3.10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions