FigmaSpringCurve class
A Custom implementation of Curve that implements spring curve commonly used in Figma
- Inheritance
-
- Object
- ParametricCurve<
double> - Curve
- FigmaSpringCurve
Constructors
- FigmaSpringCurve.new(double stiffness, double damping, double mass, [double initialVelocity = 0.5])
- Creates a FigmaSpringCurve curve
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
double t) → double -
Returns the value of the curve at point
t
.inherited -
transformInternal(
double t) → double -
Returns the value of the curve at point
t
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- bouncy ↔ FigmaSpringCurve
-
Bouncy spring curve
getter/setter pair
- gentle ↔ FigmaSpringCurve
-
Gentle spring curve
getter/setter pair
- quick ↔ FigmaSpringCurve
-
Quick spring curve
getter/setter pair
- slow ↔ FigmaSpringCurve
-
Slow spring curve
getter/setter pair