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
4//! Shapes - <https://lottiefiles.github.io/lottie-docs/shapes/>
5
6use super::visual::VisualLayer;
7use crate::schema::shapes::AnyShape;
8use serde::{Deserialize, Serialize};
9
10/// Has an array of shapes
11#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
12pub struct ShapeLayer {
13 /// Visual layer data
14 #[serde(flatten)]
15 pub visual_layer: VisualLayer,
16 /// Has an array of shapes
17 #[serde(rename = "shapes")]
18 pub shapes: Vec<AnyShape>,
19}