tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definiciones

⎇ main shared/foreign-lottie/src/schema/animated_properties/position_keyframe.rs Rust · 20 líneas · 722 B Historia Quién tocó qué crudo

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

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}