tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
⎇ main
shared/foreign-lottie/src/schema/animated_properties/position_keyframe.rs
Historia
Quién tocó qué
crudo
1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use super::keyframe::Keyframe;
5use serde::{Deserialize, Serialize};
6
7/// Position Keyframe
8#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
9pub struct PositionKeyframe {
10 #[serde(flatten)]
11 pub keyframe: Keyframe,
12 /// In-Tangent for values (e.g., moving position around a curved path).
13 #[serde(rename = "ti")]
14 #[serde(skip_serializing_if = "Option::is_none")]
15 pub value_in_tangent: Option<Vec<f64>>,
16 /// Out-Tangent for values (e.g., moving position around a curved path).
17 #[serde(rename = "to")]
18 #[serde(skip_serializing_if = "Option::is_none")]
19 pub value_out_tangent: Option<Vec<f64>>,
20}