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/shapes/stroke_dash.rs Rust · 24 líneas · 800 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 crate::schema::animated_properties::value::FloatValue;
5use crate::schema::constants::stroke_dash_type::StrokeDashType;
6use crate::schema::helpers::visual_object::VisualObject;
7use serde::{Deserialize, Serialize};
8
9/// An item used to described the dashe pattern in a stroked path
10#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
11pub struct StrokeDashShape {
12    #[serde(flatten)]
13    visual_object: VisualObject,
14
15    /// Type of the dash
16    #[serde(rename = "n")]
17    #[serde(skip_serializing_if = "Option::is_none")]
18    dash_type: Option<StrokeDashType>,
19
20    /// Length of the dash
21    #[serde(rename = "v")]
22    #[serde(skip_serializing_if = "Option::is_none")]
23    length: Option<FloatValue>,
24}