Skip to main content

Module keyframes

Module keyframes 

Source
Expand description

Keyframe export for rmedia SVG animation pipeline.

Captures per-frame element positions and properties from render commands, then exports as JSON for consumption by resolve-pipeline’s animate.* properties on rmedia SVG producers.

§Output Format

{
  "fps": 60,
  "duration_frames": 600,
  "seed": 42,
  "domain": "orbit",
  "elements": {
    "earth": { "cx": [960.0, 962.1, ...], "cy": [540.0, 538.2, ...] },
    "trail": { "d": ["M960,540", "M960,540 L962,538", ...] }
  }
}

Structs§

KeyframeRecorder
Keyframe recorder that captures element state per frame.
KeyframesExport
Complete keyframes export for a simulation run.

Enums§

KeyframeValue
A single keyframe value (numeric, color, or path string).

Type Aliases§

ElementKeyframes
Per-element keyframe data: attribute name → frame values.