Skip to main content

Crate dola

Crate dola 

Source
Expand description

§Dola — Declarative Orchestration for Live Animation

プラグイン間で共有可能なシリアライズ可能アニメーション宣言フォーマット。 Windows Animation Manager の概念(変数・トランジション・キーフレーム・ストーリーボード)を プラットフォーム非依存のデータモデルとして再構成する。

Structs§

BetweenKeyframes
キーフレーム間配置指定
CompiledSegment
単一トランジションセグメントの全情報
CompiledStoryboard
コンパイル済みストーリーボードのルート構造体
CompiledVariableTimeline
変数ごとのセグメント列とランタイムヒント
DolaDocument
Dola ドキュメントのルートコンテナ
DolaDocumentBuilder
DolaDocument ビルダー
ScheduleRequest
スケジューリング指示
Storyboard
ストーリーボード(メタ情報 + エントリ配列)
StoryboardBuilder
Storyboard ビルダー
StoryboardEntry
ストーリーボードエントリ(配置 + KF 定義の統合単位)
TransitionDef
トランジション定義

Enums§

AnimationVariableDef
アニメーション変数定義(内部タグ方式: “type” フィールドで判別)
DolaError
Dola バリデーションエラー
DynamicValue
フォーマット非依存の動的値型(JSON/TOML/YAML 共通) バリアント順序: Integer を Float より前に定義し、TOML の整数/浮動小数点区別を保持
EasingFunction
イージング関数(名前付き or パラメトリック)
EasingName
名前付きイージング(interpolation::EaseFunction 準拠 + Linear) Rust バリアント名は PascalCase、シリアライズ形式は snake_case
InterruptionPolicy
割り込み終了戦略(ストーリーボード競合時の自己申告方針)
KeyframeNames
キーフレーム名指定(単一または複数)
KeyframeRef
キーフレーム起点指定(at フィールド用) 4つの表現形式をサポート: at = “visible” → Single at = [“visible”, “audio_done”] → Multiple at = { keyframes = “visible”, offset = 0.5 } → WithOffset (single) at = { keyframes = [“visible”, “done”], offset = 0.5 } → WithOffset (multiple)
ParametricEasing
パラメトリックイージング(内部タグ “type” で判別)
PlaybackState
再生状態列挙型
TransitionRef
トランジション参照(ハイブリッド: 名前文字列 or インライン定義) serde 動作: 文字列→Named、オブジェクト→Inline を順番に試行
TransitionValue
トランジションの開始値・終了値を表す型 serde 動作: #[serde(untagged)] により Scalar(f64) を先に試行。 数値は Scalar、オブジェクト構造は Dynamic にマッピング。
VariableTypeHint
ランタイムに変数型固有の処理方法を伝達する enum

Traits§

Validate
DolaDocument のバリデーション

Functions§

compile_storyboard
ストーリーボードをコンパイルする