Skip to content

feat(vtkProperty): add vtkProperty edgeOpacity#3470

Open
daker wants to merge 1 commit intoKitware:masterfrom
daker:feat-edgeopacity
Open

feat(vtkProperty): add vtkProperty edgeOpacity#3470
daker wants to merge 1 commit intoKitware:masterfrom
daker:feat-edgeopacity

Conversation

@daker
Copy link
Copy Markdown
Collaborator

@daker daker commented Apr 3, 2026

Context

Results

fixes: #3461

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@daker
Copy link
Copy Markdown
Collaborator Author

daker commented Apr 13, 2026

@sankhesh could you help us review the pending WebGPU PRs?

@daker
Copy link
Copy Markdown
Collaborator Author

daker commented Apr 15, 2026

@finetjul sorry for the noise, how can we move forward? also who would be the right person to review the WebGPU(code) PRs?

Copy link
Copy Markdown
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups, I had a pending review that never got submitted.

Here you go.

I can review such "easy" PR.

publicAPI.getEdgeOpacity = () =>
model.edgeOpacity == null ? model.opacity : model.edgeOpacity;

publicAPI.setEdgeOpacity = (edgeOpacity) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use macro.set instead

model.classHierarchy.push('vtkProperty');

publicAPI.getEdgeOpacity = () =>
model.edgeOpacity == null ? model.opacity : model.edgeOpacity;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not obvious for the consumer that he/she will get the opacity if edgeOpacity is null. It's counter intuitive. And he/she won't know if it is null or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Edge Opacity

2 participants