Hi.
I have a requirement to show ‘highlighting’ on a node with a 50% opaque background.
My gojs node consists of a panel and rectangle. I can set the opacity on the panel OR the rectangle and both give a pleasing effect for the background.
Problem: However, in both cases the highlight (a 2 px width red stroke) is also affected by the opacity.
Question: Is there a way to set the opacity such that it affects only the background of a node and NOT the ‘border’ ?
Solutions tried: I tried putting 2 rectangles in the panel - one for the 50% opaque background and another for the border. However, only the first declared rectangle auto-sizes to fill the panel. Maybe I was missing how to tell the second rectangle to ‘go large’ ?
Poss feature request: Maybe add a backgroundOpacity setting to GraphObject ? Effect to be to apply opacity to background only.