pub struct Anim {Show 17 fields
pub shape: usize,
pub effect: String,
pub start: f64,
pub duration: f64,
pub repeat: i64,
pub yoyo: bool,
pub ease: Option<String>,
pub path: Option<usize>,
pub color: Option<String>,
pub out: bool,
pub from: Option<String>,
pub morph: Option<usize>,
pub type_word: bool,
pub scramble_chars: Option<String>,
pub wiggles: Option<i64>,
pub draw_from: Option<f64>,
pub draw_to: Option<f64>,
}Expand description
A resolved animation entry. shape indexes into Drawing::shapes; the
SVG backend gives that shape the id s{shape} so the player can target it.
Fields§
§shape: usize§effect: String§start: f64Absolute start time in seconds.
duration: f64§repeat: i64GSAP repeat: -1 loops forever, 0 plays once.
yoyo: boolGSAP yoyo: alternate direction each repeat.
ease: Option<String>GSAP easing name overriding the per-effect default, if given.
path: Option<usize>For the move effect: index of the shape whose geometry to follow.
The SVG backend gives it the id s{path}, the MotionPath target.
color: Option<String>For the highlight effect: the CSS target colour (to <colour>).
out: boolPlay as an exit (reverse) rather than an entrance.
from: Option<String>For the slide effect: the direction it enters from
("left"/"right"/"up"/"down").
morph: Option<usize>For the morph effect: index of the shape whose geometry to morph into.
The SVG backend gives it the id s{morph}, the MorphSVG target.
type_word: boolFor the type effect: split the label by whole words (by word) rather
than by character. The SVG backend wraps each unit in a .rpic-ch tspan
the player staggers.
scramble_chars: Option<String>For the scramble effect: a custom scramble charset (by "01"); None
uses the plugin’s upperCase. Present in the manifest only when set.
wiggles: Option<i64>For the wiggle effect: the oscillation count (wiggles <n>); None
lets the player default it. Present in the manifest only when set.
draw_from: Option<f64>For the draw effect: reveal only the [from,to] sub-segment of the
stroke, as fractions in [0,1] (draw from 40% to 60%). Each rides the
manifest only when set; absent means the segment’s natural endpoint.
draw_to: Option<f64>