I'm finding that Perspective Pipes (using the piping tool) disappear randomly.
e.g.
What it should be:
It's not possible to predict when it's going to remove pipes in the client. I though it was resolution-based, but if I go into full screen, out again, and back in, sometimes the pipes disappear, other times they don't for the same page.
Nope! Just a super simple page with a bunch of embedded views (devices) and some pipes. Well, the example screenshot above isn't as simple, but I have the same issue on pages with a handful of embedded views and <5 pipes
Interestingly, I put another application window over the top of the browser and then moved it away, and the pipes rendered... only in Chrome, sometimes. Edge still stays invisible
do any of the embedded views also have pipes? My hunch is there is some sort of id collision occurring with the masking- ie mask="url(#C-0-mask-0-4)" that # id might exist in multiple embedded views. I'm looking into it now.
If they are the same views inside the embbeded contaienrs then it shouldnt matter if their are identical id's. They all will refer to only one def (first probably).
Feel free to pm me a copy of the html/views if you want me to take a look
Thanks for doing that, none of the duplicate id's listed would cause the issue, though resizing the browser to cause it to render does give me a clue. I'll investigate further and get back with my findings.
I still haven't been able to reproduce it locally, but I have something new for you to try.
Would you copy and paste this Button component somewhere in your view and press the button when the Pipes aren't showing?
The button has an onClick mouse event, it increments session.props.pipes.overlapGap by some small number (.000000001) . This forces the pipes to rerender, helping me to diagnose whether it's the pipe's themselves that aren't rendering properly, or if it's something else like the dimensions causing the issue.
I'll test this today, but would changing the appearance achieve the same thing? Eg from p&id to something else back to p&id. This is what my work around script is doing at the moment. Changing the gap would would less intrusive though!
that's actually a very good clue - it's not @nminchin 's doing, it's the Pipe Renderer. "under the covers" the PipeRenderer sets a width and a height for the SVG based on the contents of the SVG that is being generated, there is likely a bug in that code.
I haven't nailed down the exact cause yet, but I'll file a bug for further exploration