tawasuyu

tawasuyu/llimphi

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

Rust 124Markdown 82TOML 78Shell 12149 Definitions

⎇ main shared/foreign-lottie/src/schema/assets/precomposition.rs Rust · 24 lines · 813 B History Who touched what raw

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::asset::Asset;
5use crate::schema::animation::composition::Composition;
6use crate::schema::helpers::int_boolean::BoolInt;
7use serde::{Deserialize, Serialize};
8
9/// Asset containing an animation that can be referenced by layers.
10#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
11pub struct Precomposition {
12    #[serde(flatten)]
13    pub asset: Asset,
14    #[serde(flatten)]
15    pub composition: Composition,
16    /// Framerate in frames per second
17    #[serde(rename = "fr")]
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub frame_rate: Option<f64>,
20    /// Extra composition
21    #[serde(rename = "xt", default)]
22    #[serde(skip_serializing_if = "Option::is_none")]
23    pub extra: Option<BoolInt>,
24}