Skip to content

[FEATURE] Canvas: edge color scheme and node-size scaling - #1

Draft
SoWieMarkus wants to merge 3 commits into
feat/canvas-graph-generationfrom
feat/canvas-edge-colors
Draft

SoWieMarkus wants to merge 3 commits into
feat/canvas-graph-generationfrom
feat/canvas-edge-colors

Conversation

@SoWieMarkus

@SoWieMarkus SoWieMarkus commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #891, which was kept focused on automatic graph generation. This PR adds the value-driven styling that was split out of that review:

  • Edge color scheme - a dedicated edgeThresholds option so edges can be colored independently of nodes. When unset, edges fall back to the node thresholds, so existing dashboards keep their current edge colors.
  • Node-size scaling - nodeThresholdSizes + per-node sizeMode: "threshold" scale a node's base size by its bound value (relative to nodeDefaultSize). Generated nodes opt into this automatically.
  • Legend - when edges use their own color scheme, the panel now renders a separate titled Edges legend alongside the Nodes legend.

Screenshots

Bildschirmfoto 2026-10-30 um 13 17 08 Bildschirmfoto 2026-10-30 um 13 16 57

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Keep this branch focused on automatic graph generation. Remove the edge
color scheme (edgeThresholds), node-size scaling (nodeThresholdSizes,
sizeMode scaling), and the view-mode zoom interaction change, which move
to follow-up PRs stacked on top of this one.

Generation plumbing is retained, including the no-op sizeMode:'threshold'
on generated nodes and nodeDefaultSize.
Reintroduce the edge color scheme (edgeThresholds, falling back to node
thresholds) and value-driven node-size scaling (nodeThresholdSizes,
sizeMode) across runtime, editor, schema, and SDK.

Also surface edge colors in the legend: when edges use their own color
scheme, the panel renders a separate titled "Edges" legend alongside the
"Nodes" legend.

Signed-off-by: Markus Wieland <markus.wieland@sap.com>
@SoWieMarkus
SoWieMarkus force-pushed the feat/canvas-edge-colors branch from bb143de to fc05624 Compare October 30, 2026 12:18
Signed-off-by: Markus Wieland <wie.markus@web.de>
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.

1 participant