[FEATURE] Add stroke-dasharray Config to Piping Pipes

Currently, the stroke-dasharray isn't configurable for pipes when using the pipe tool, and the default dash array looks like a monitor display glitch :confused: (it's set to 8, 0.75 for a 1px width pipe, and the 0.75 is only visible every 2nd iteration due to pixel rounding...)

Example (1px width pipe set to be dashed):
image

I don't believe there's a way that I can hack around this to make it look less like a glitch...

The other question I have is, why is the stroke-dasharray set to a repeating sequence (8, 0.75, 8, 0.75, ....) instead of just 8, 0.75 which achieves the same thing?

Dev tools:

1 Like

seems like it ends on 3.5 for some reason, you can probably override this with css

1 Like

You can override it, but it will override for all pipes, not just the dashed pipes. I can't find any way to:

  • single out particular pipes, or
  • change the dash array for all pipes set to dashed (without affecting non-dashed pipes)

There doesn't seem to be anything that I can use to filter the CSS selector, unless I'm just missing something

2 Likes

im sure there are several ways to select specific pipes.

but a generalish one i could be (untested and def not most optimal)

.ia_pipeSegment[style*="stroke-dasharray: 8, 0.75, 8, 0.75"]{
stroke-dasharray: 8, 0.75 !important;
}
1 Like