RitoHitResolver class final

Resolves taps against the records of an artifact's pages (RitoReaderSession.readPage).

Resolution order follows the engine's hit order — text runs, then block-level link boxes, then images — so a tap inside a link's text wins over an image behind it, and only an image outside every link resolves as an image. Coordinates are display-list space, the same space the artifact paints in.

Constructors

RitoHitResolver(List<RitoPageRecords> pages)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
pages → List<RitoPageRecords>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({required double x, required double y, double linkSlack = 0}) → RitoTapTarget?
The target under (x, y), or null when the tap lands on nothing.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited