RitoClusters class final
Where every cluster of a run paints, in text order: cluster i starts
at byte bytes[i] of the run's UTF-8 text and paints with its origin
at (origins[2i], origins[2i + 1]) in CSS pixels at float32 (the
precision a canvas takes it at), spacing and justification already
applied — the y is the alphabetic baseline, for a text run and an
annotation alike. joins[i] is 1 where a pen drawing one string from
the previous cluster's origin puts cluster i there. A decoded list's
runs share the table these are views of: read them, never write them.
Constructors
- RitoClusters({required Uint32List bytes, required Float32List origins, required Uint8List joins})
- RitoClusters.empty()
Properties
- bytes → Uint32List
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- joins → Uint8List
-
final
- length → int
-
no setter
- origins → Float32List
-
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited