Tamale.Anchor.Relative (tamale v0.1.0)

Copy Markdown

Compound anchor: ref travels by identity (Ordinal rules), then the absolute interval is re-derived from the element's current span at use time — Tamale.Anchor.project/3, with element spans supplied by the Caller.

Offsets are absolute from the element's start, are not rescaled when the host stretches, and may be negative or overhang the host ("80 ms before phoneme 3 starts" — preutterance). There is no within-host invariant. Offsets are exact rational coordinates (Tamale.Coord): integers are promoted, floats are rejected at transport time.

Summary

Types

t()

@type t() :: %Tamale.Anchor.Relative{
  at_version: Tamale.version(),
  from_offset: Tamale.Coord.input(),
  ref: Tamale.id(),
  to_offset: Tamale.Coord.input()
}