Skip to content

Codex suggestion: De-duplicate horizontal and vertical ruler drawing logic #138

Closed

Description

@pascalpp

Summary

Extract the shared tick/label setup from HorizontalRule and VerticalRule so drawing changes are easier to reason about.

Suggested scope

  • Identify common unit-to-tick calculations and label setup.
  • Consider a small TickLayout, UnitScale, or drawing helper.
  • Keep behavior and visuals unchanged.

Why

HorizontalRule.swift and VerticalRule.swift share most of their tick configuration and label logic. Consolidating that would reduce drift and make future features safer.

Activity

  1. self-assigned this
    on Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions