TransformHelper class

A helper class for managing transformation calculations in the image editor.

This class provides utilities for handling transformations related to the image and editor body sizes, offering a unified approach to scale calculations based on the current transformation configurations.

Constructors

TransformHelper({required Size mainBodySize, required Size mainImageSize, required Size editorBodySize, TransformConfigs? transformConfigs})
Creates an instance of TransformHelper.
const

Properties

editorBodySize Size
The size of the editor body.
final
hashCode int
The hash code for this object.
no setterinherited
mainBodySize Size
The size of the main body.
final
mainImageSize Size
The size of the main image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Calculates the scale factor for transformations.
no setter
transformConfigs TransformConfigs?
Optional transformation configurations.
final

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