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/shapes/stroke.rs Rust · 26 lines · 851 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::graphic_element::GraphicElementShape;
5use super::stroke_dash::StrokeDashShape;
6use crate::schema::animated_properties::value::FloatValue;
7use crate::schema::constants::line_cap::LineCap;
8use crate::schema::constants::line_join::LineJoin;
9use crate::schema::shapes::base_stroke::BaseStrokeShape;
10use crate::schema::{
11    animated_properties::color_value::ColorValue, shapes::shape_style::ShapeStyleShape,
12};
13use serde::{Deserialize, Serialize};
14
15/// Defines a stroke.
16#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
17pub struct StrokeShape {
18    #[serde(flatten)]
19    pub shape_style: ShapeStyleShape,
20    #[serde(flatten)]
21    pub base_stroke: BaseStrokeShape,
22
23    /// Stroke color
24    #[serde(rename = "c")]
25    pub stroke_color: ColorValue,
26}