Skip to content

WebGL: child nodes don't inherit their opacity from the parent node #3409

@mikekucera

Description

@mikekucera

Environment info

  • Cytoscape.js version : 3.34.0-unstable
  • Browser/Node.js & version : Node v20.19.2, Chrome 139

Current (buggy) behaviour

When in webgl mode, child nodes don't inherit their opacity from the parent node.

Desired behaviour

Should work the same as when in canvas mode.

Minimum steps to reproduce

I used the debug/webgl/index.html site. Change to the "Compound Nodes" network. Go to the network-compound-nodes.json file and set the parent selector opacity to 0.5. Compare how it looks when webgl is enabled vs disabled.

Fork/clone this JSBin demo and reproduce your issue so that your issue can be addressed quickly and effectively:

  1. Go to our base JSBin: http://jsbin.com/fiqugiq
  2. Click the 'Edit in JSBin' button in the top-right corner.
  3. Click File > Clone to make your own copy of the demo (with its own unique URL) that you can edit.
  4. Click the yellow 'Login or Register' button at the top-right corner so that your JSBin persists longer-term.
  5. Log in with your GitHub account.
  6. Edit the JSBin to reproduce your issue.
  7. When you're finished editing, click 'File > Save snapshot` (command + s) to save your edits.
  8. Post the link to your JSBin here.

For reviewers

Reviewers should ensure that the following tasks are carried out for incorporated issues:

  • Ensure that the reporter has included a reproducible demo. They can easily fork this JSBin demo: http://jsbin.com/fiqugiq
  • The issue has been associated with a corresponding milestone.
  • The commits have been incorporated into the corresponding branches. Bug-fix patches go on
    • master and
    • unstable.
  • The issue has been labelled as a bug, if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in the code of Cytoscape.js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions