Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Shield wires in cable nodes are rendered differently than spline shield wires #125

Closed
kvid opened this issue Jul 26, 2020 · 6 comments

Comments

@kvid
Copy link
Collaborator

kvid commented Jul 26, 2020

[Current dev branch]: As the spline shield wires are rendered as thin tinned wires with black borders, and the shield wires in cable nodes are rendered as a black single (bottom) border, they don't fit well together, e.g. in tutorial03.png:
tutorial03

kvid added a commit to kvid/WireViz that referenced this issue Jul 26, 2020
As the spline shield wires are rendered as thin tinned wires with
black borders, and the shield wires in cable nodes were rendered as
a single (bottom) border, they didn't fit well together.

The shield wires in cable nodes are now rendered equally as the spline
shield wires. The shield wire color is moved into a common definition.

This fixes bug wireviz#125.
@formatc1702
Copy link
Collaborator

true... personally I like displaying shields as thin black wires to match the line in the node, and to make them appear different from a black/grey regular wire. would that be better?

@kvid
Copy link
Collaborator Author

kvid commented Jul 26, 2020

I will make a change in my PR #126 later today - probably in the evening, and then you can compare.

@formatc1702
Copy link
Collaborator

formatc1702 commented Jul 26, 2020

FYI: In the multicolor wires PR, shields were represented as a thin silver wire... My worry with that is that this offers poor contrast, especially when printing the diagram. While using colors is definitely helpful, I'm trying to make all the WireViz features work even when printed in B&W, and to keep it accessible to colorblind users (hence the explicit color names in the wire nodes), as well as making sure all the relevant information has proper black on white contrast in the first place.

kvid added a commit to kvid/WireViz that referenced this issue Jul 26, 2020
As the spline shield wires were rendered as tinned wires with
black borders, and the shield wires in cable nodes were rendered
as a single (bottom) border, they didn't fit well together.

Each shield wire is now rendered equally along the spline sections
and in cable nodes. If cable.shield is true, they are rendered as
thin black wires in the same way as with version 0.1. The new
feature is that cable.shield is allowed to contain a two-letter
color code to specify a colored shield wire with black borders.

The shield wire thickness is not increased, even if the cable has
some multi-colored wires that makes all other wires to increase.

This fixes bug wireviz#125.
kvid added a commit to kvid/WireViz that referenced this issue Jul 26, 2020
As the spline shield wires were rendered as tinned wires with
black borders, and the shield wires in cable nodes were rendered
as a single (bottom) border, they didn't fit well together.

Each shield wire is now rendered equally along the spline sections
and in cable nodes. If cable.shield is true, they are rendered as
thin black wires in the same way as before multi-colors were
introduced. The new feature is that cable.shield is allowed to
contain a two-letter color code to specify a colored shield wire
with black borders.

The shield wire thickness is not increased, even if the cable has
some multi-colored wires that makes all other wires to increase.

This fixes bug wireviz#125.
@kvid
Copy link
Collaborator Author

kvid commented Jul 27, 2020

@formatc1702 wrote:

true... personally I like displaying shields as thin black wires to match the line in the node, and to make them appear different from a black/grey regular wire. would that be better?

I have now updated PR #126 according to your preference. In addition, it was very easy to also allow colored shield wires if the user wants that, by allowing to specify a color in cable.shield. See the comparison in the PR description, test it yourself, and let me know what you think.

@SnowMB
Copy link
Contributor

SnowMB commented Jul 27, 2020

In the multicolor wires PR...

I just quickly hacked something because I was messing with the wire representation inside the cable table. It was not meant as a change suggestion. Sorry for the confusion. 😅

formatc1702 pushed a commit that referenced this issue Jul 27, 2020
As the spline shield wires were rendered as tinned wires with
black borders, and the shield wires in cable nodes were rendered
as a single (bottom) border, they didn't fit well together.

Each shield wire is now rendered equally along the spline sections
and in cable nodes. If cable.shield is true, they are rendered as
thin black wires in the same way as before multi-colors were
introduced. The new feature is that cable.shield is allowed to
contain a two-letter color code to specify a colored shield wire
with black borders.

The shield wire thickness is not increased, even if the cable has
some multi-colored wires that makes all other wires to increase.

This fixes bug #125.
@formatc1702
Copy link
Collaborator

@SnowMB don't worry, I was talking about the old PR #96. I know your work on stripes is WIP ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants