Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion modeling-cmds/src/def_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1727,12 +1727,23 @@ define_modeling_cmd_enum! {
/// Which units the `value` field uses.
pub units: units::UnitLength,
}

/// Set the grid lines to auto scale. The grid will get larger the further you zoom out,
/// and smaller the more you zoom in.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema, ModelingCmdVariant)]
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
pub struct SetGridAutoScale {
pub struct SetGridAutoScale {}

/// Apply a label to an object.
#[derive(Clone, Debug, PartialEq, Deserialize, JsonSchema, Serialize, ModelingCmdVariant)]
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
pub struct SetLabel {
/// The object to be labeled.
pub object_id: Uuid,
/// Label to be set. Send an empty string to unset the label.
pub label: String,
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions modeling-cmds/src/ok_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,17 @@ define_ok_modeling_cmd_response_enum! {
pub extra_solid_ids: Vec<Uuid>,
}


/// The response from the 'SetGridScale'.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct SetGridScale {}

/// The response from the 'SetGridScale'.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct SetGridAutoScale {}

/// The response from the 'SetLabel' command.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct SetLabel {}
}
}
Loading