Skip to content

New feature : style-based uncertainty bar visualization for components (DSL and WYSIWYG)#310

Open
formicoidea wants to merge 2 commits into
damonsk:mainfrom
formicoidea:uncertainty-clean
Open

New feature : style-based uncertainty bar visualization for components (DSL and WYSIWYG)#310
formicoidea wants to merge 2 commits into
damonsk:mainfrom
formicoidea:uncertainty-clean

Conversation

@formicoidea

@formicoidea formicoidea commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Goal

It is usefull to mark a level of confidence on the evaluation of the evolution level. On one hand, this helps to mark a reminder where we have to deep research to lower the position uncertainty. On the other hand, this is usefull to communicate about component position uncertainty in the evolution.

The uncertainty feature create an error bar like on a component to indicate uncertainty.

Main changes

  • Style-specific uncertainty rendering:
    • Wardley: centered line with vertical end caps.
    • Other styles: gradient band.
  • Gradient intensity is anchored to the component position (maximum intensity at the
    component).
  • Uncertainty model extended with component-relative bounds (offsets), while
    keeping absolute-bound compatibility.
  • WYSIWYG selection/editing of uncertainty area (visual highlight + draggable
    handles).
  • Extended mixed DSL parsing:
    • uncertainty [,x], [x,], [,+d], [-d,]
    • uncertainty right +d, uncertainty left -d
  • Updated editor syntax highlighting rules (mode-owm) for the mixed syntax.
  • Updated converter, visual rendering, and editor tests.

Validation

  • Frontend build: ✅
  • Frontend tests: ⚠️ 1 known failing golden master (GivenMapElementsGoldenMaster) to
    align/regenerate.

component Cup of Tea [0.85, 0.61] label [-74.00, -10.00] uncertainty [0.51, 0.61]
component Cup of Tea [0.68, 0.58] uncertainty [0.48, 0.58] label [-74.00, -10.00] uncertainty left 0.1
component Cup of Tea [0.30, 0.63] label [-74.00, -10.00] uncertainty [-0.05,+0.05]
@formicoidea formicoidea changed the title New feature : style-based visualization, relative bounds, and WYSIWYG editing New feature : style-based uncertainty bar visualization for components (DSL and WYSIWYG) Apr 12, 2026
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