CanvasViewportTransform class

Renderer-neutral contain-fit transform.

Callers are responsible for choosing the source bounds and applying any higher-level viewport policy such as padding, cropping, or output sizing.

Constructors

CanvasViewportTransform({required double scale, required double translateX, required double translateY})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
final
translateX → double
final
translateY → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
snapTranslation(double pixelRatio) → CanvasViewportTransform
toString() → String
A string representation of this object.
inherited

Operators

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