Feat/element opacity#7
Merged
Merged
Conversation
A per-element Opacity slider (0-1) in the styling panel for nodes and edges, folding into the color's alpha so it composes with colors that already carry transparency. Threaded through every node program (SVG texture, border-circle, native circle/square) and the edge stroke. - Scale-by-property (∿) supported via the numeric scale picker - Round-trips through JSON and a new Excel `Opacity` column, documented in the template readme tab - Backward compatible: absent opacity defaults to 1 (fully opaque) - Release: bump to 1.15.5, changelog entry Tests: opacity->alpha across all node programs, edge-color composition, clamp/identity cases, and Excel + scale-picker round-trips.
…-order PNG (toDataURL) and SVG (collectSvgScene) exports painted bubble-set hulls beneath the node/edge mesh, but the live view has drawn them on top (afterLayer: "nodes") since 1.15.1. On dense graphs the edges buried the hulls and also read as more opaque than on screen. Both exporters now composite hulls above nodes/edges and below labels. Sparse graphs were unaffected, so this only showed on large graphs. Added an SVG z-order regression test (node < body < label).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a per-element Opacity slider (0–1) for nodes and edges in the styling panel, and fixes bubble-group layering in exports.
What's new
Fixes
Compatibility
Backward compatible — absent opacity defaults to 1 (fully opaque); older saved files render identically.
Tests
All 1402 pass. Added coverage for opacity→alpha across every node programmp/identity cases, Excel + scale-picker round-trips, and an SVG exportz-order regression test.