LinearAnimation class
- Inheritance
-
- Object
- LinearAnimationBase
- LinearAnimation
Constructors
Properties
- artboard ↔ Artboard?
-
getter/setter pairinherited
- context ↔ RuntimeArtboard
-
covariantgetter/setter pairinherited
- coreType → int
-
no setterinherited
-
coreTypes
→ Set<
int> -
no setterinherited
- duration ↔ int
-
Duration expressed in number of frames.
getter/setter pairinherited
- durationSeconds → double
-
Returns the length of the animation
no setter
- enableWorkArea ↔ bool
-
Whether or not the work area is enabled.
getter/setter pairinherited
- endSeconds → double
-
Returns the seconds where the animation work area ends
no setter
- endTime → double
-
Returns the end time of the animation in seconds, considering speed
no setter
- fps ↔ int
-
Frames per second used to quantize keyframe times to discrete values that
match this rate.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasValidated → bool
-
no setterinherited
- id ↔ int
-
getter/setter pairinherited
-
keyedObjects
→ Iterable<
KeyedObject> -
The metadata for the objects that are keyed in this animation.
no setter
- loop ↔ Loop
-
getter/setter pair
- loopValue ↔ int
-
Loop value option matches Loop enumeration.
getter/setter pairinherited
- name ↔ String
-
Name of the animation.
getter/setter pairinherited
- quantize ↔ bool
-
Whether frames are quantized to desired frame rate or floating based on
runtime speed.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed ↔ double
-
Playback speed multiplier.
getter/setter pairinherited
- startSeconds → double
-
Returns the seconds where the animiation work area starts
no setter
- startTime → double
-
Returns the start time of the animation in seconds, considering speed
no setter
- workEnd ↔ int
-
End of the work area in frames.
getter/setter pairinherited
- workStart ↔ int
-
Start of the work area in frames.
getter/setter pairinherited
Methods
-
apply(
double time, {required CoreContext coreContext, double mix = 1}) → void -
Pass in a different
core
context if you want to apply the animation to a different instance. This isn't meant to be used yet but left as mostly a note to remember that at runtime we have to support applying animations to instances. We do a nice job of not duping all that data at runtime (so animations exist once but entire Rive file can be instanced multiple times playing different positions). -
clone<
K extends Core< (CoreContext> >) → K? -
Make a duplicate of this core object, N.B. that all properties including
id's are copied.
inherited
-
copy(
covariant Core< CoreContext> source) → void -
Copies property values, currently doesn't trigger change callbacks. It's
meant to be a helper for clone.
inherited
-
durationChanged(
int from, int to) → void -
override
-
enableWorkAreaChanged(
bool from, bool to) → void -
override
-
fpsChanged(
int from, int to) → void -
override
-
globalToLocalTime(
double seconds) → double - Convert a global clock to local seconds (takes into consideration work area start/end, speed, looping).
-
import(
ImportStack stack) → bool -
internalAddKeyedObject(
KeyedObject object) → bool - Called by rive_core to add a KeyedObject to the animation. This should be @internal when it's supported.
-
internalCheckAddKeyedObject(
KeyedObject object) → bool -
isAnyObjectKeyed(
Iterable< Core< objects) → boolCoreContext> > -
isObjectKeyed(
Core< CoreContext> object) → bool -
loopValueChanged(
int from, int to) → void -
override
-
nameChanged(
String from, String to) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAdded(
) → void -
inherited
-
onAddedDirty(
) → void -
inherited
-
onRemoved(
) → void -
inherited
-
quantizeChanged(
bool from, bool to) → void -
override
-
remove(
) → void -
inherited
-
removeObjectKeys(
Core< CoreContext> object) → bool -
reportKeyedCallbacks(
double secondsFrom, double secondsTo, {required KeyedCallbackReporter reporter}) → void -
speedChanged(
double from, double to) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → bool -
inherited
-
workEndChanged(
int from, int to) → void -
override
-
workStartChanged(
int from, int to) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited