File tree Expand file tree Collapse file tree
src/extensions/renderer/canvas/webgl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -766,11 +766,17 @@ export class ElementDrawingWebGL {
766766
767767 // Nodes should still be clickable if they pass the visibility check but
768768 // have background-opacity: 0
769- const opacity = this . renderTarget . picking ? 1 : node . effectiveOpacity ( ) ;
769+ let opacity = this . renderTarget . picking ? 1 : node . effectiveOpacity ( ) ;
770+ let bgOpacity = this . renderTarget . picking ? 1 : node . pstyle ( 'background-opacity' ) . value * opacity ;
771+
772+ if ( type === 'node-overlay' ) {
773+ opacity = node . pstyle ( props . opacity ) . value ;
774+ bgOpacity = opacity ;
775+ }
770776
771777 const color = node . pstyle ( props . color ) . value ;
772778 const colorView = this . colorBuffer . getView ( instance ) ;
773- util . toWebGLColor ( color , opacity , colorView ) ;
779+ util . toWebGLColor ( color , bgOpacity , colorView ) ;
774780
775781 const lineWidthView = this . lineWidthBuffer . getView ( instance ) ; // reuse edge line width attribute for node border
776782 lineWidthView [ 0 ] = 0 ;
You can’t perform that action at this time.
0 commit comments