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 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}