tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
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}