Skip to content

Hit-test index #101

Closed
Closed

Description

@michaelstonis

Parent

#86 → #33 Spec: Broadside v1

What to build

A display list yields a hit-test index of glyph quads (with Unicode and content order), link rectangles and image and path bounds, queryable by point and by rectangle in page space, so selection and link clicks map screen points to content.

Spec clauses

viewer capability 4

Acceptance criteria

  • On text-truetype-embedded.pdf a point inside the second glyph returns that glyph with its Unicode and quad.
  • Rotated text (new corpus file text-rotated.pdf) returns rotated quads, not axis-aligned boxes.
  • A link annotation on annotations-link.pdf is returned with its action for a point inside its QuadPoints.
  • Building the index for a 10,000-glyph page allocates per page, not per glyph; queries allocate nothing.

Blocked by

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Activity

  1. added
    taskUnit of work from the task template
    ready-for-agentTriaged: an agent can pick this up without further clarification
    on Oct 10, 2026
  2. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 14, 2026
  3. added 3 commits that reference this issue on Oct 14, 2026
  4. michaelstonis commented on Oct 16, 2026

    @michaelstonis
    OwnerAuthor

    Done: implemented, tested and merged into the integration branch spec/33-broadside-v1 (full gate green). It reaches main with PR #277.

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

Metadata

Metadata

Assignees

Labels

integratedMerged into the spec integration branch; closes when the integration PR mergesphase:3Phase 3ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task templatetrack:3A-display-listTrack 3A-display-list

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions