Skip to main content

kcl_api/
default_planes.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3use serde::Serialize;
4
5/// There's six standard planes (XY/XZ/YZ, and their negations).
6/// They get created by the engine, and the engine needs to tell
7/// clients what each plane's ID is.
8#[derive(Debug, Default, Clone, Deserialize, Serialize, JsonSchema, PartialEq, ts_rs::TS)]
9#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
10#[ts(export)]
11#[serde(rename_all = "camelCase")]
12pub struct DefaultPlanes {
13    pub xy: uuid::Uuid,
14    pub xz: uuid::Uuid,
15    pub yz: uuid::Uuid,
16    pub neg_xy: uuid::Uuid,
17    pub neg_xz: uuid::Uuid,
18    pub neg_yz: uuid::Uuid,
19}