Skip to content

layout: docs call scale-sensitive quality terms scale-free #631

Closed

Description

@bpowers

The docs still describe some layout quality terms as scale-free when they are not.
Shapes are drawn at a fixed pixel size, so when every coordinate is scaled up, crossings is unchanged but node_connector_overlap shrinks, and edge_length_cv and aspect_penalty only approach their unscaled values.
The code and test_scale_invariance_of_scale_free_terms already treat this as intended.

Fix

  • In the LayoutMetrics doc comment (src/simlin-engine/src/layout/metrics.rs), add node_connector_overlap, edge_length_cv and aspect_penalty to the list of scale-sensitive terms.
  • Correct docs/design-plans/2026-05-22-layout-quality-eval.md, which calls every term scale-free (lines 9, 48, 99, 107, 183, 239).

Alternative: redefine those three terms to be exactly scale-free, which would change the calibrated weights.
Only node_connector_overlap carries weight today (docs/design/layout-quality.md).

Activity

  1. added
    engine
    layout
    on Jun 8, 2026
  2. added
    hygiene
    on Oct 12, 2026
  3. changed the title [-]layout: revisit AC1.8 scale-invariance term classification during Phase 4 calibration[/-] [+]layout: document which quality metric terms depend on diagram scale[/+] on Oct 12, 2026
  4. changed the title [-]layout: document which quality metric terms depend on diagram scale[/-] [+]layout: docs call scale-sensitive quality terms scale-free[/+] on Oct 12, 2026
  5. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing: 12b1df5 corrects the LayoutMetrics doc comment and the layout-quality plan, with each term checked against the code and the scale test.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enginehygienelayout

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions