Skip to content

Commit 976ea96

Browse files
committed
rename things
1 parent 0b0144e commit 976ea96

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

modeling-cmds/src/shared.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ pub struct AnnotationTextOptions {
142142
#[serde(rename_all = "snake_case")]
143143
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
144144
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
145-
pub struct AnnotationMBDControlFrame {
145+
pub struct AnnotationMbdControlFrame {
146146
///Geometric symbol, the type of geometric control specified
147-
pub symbol: MBDSymbol,
147+
pub symbol: MbdSymbol,
148148
/// Diameter symbol (if required) whether the geometric control requires a cylindrical or diameter tolerance
149-
pub diameter_symbol: Option<MBDSymbol>,
149+
pub diameter_symbol: Option<MbdSymbol>,
150150
/// Tolerance value - the total tolerance of the geometric control. The unit is based on the drawing standard.
151151
pub tolerance: f64,
152152
/// Feature of size or tolerance modifiers
153-
pub modifier: Option<MBDSymbol>,
153+
pub modifier: Option<MbdSymbol>,
154154
/// Primary datum
155155
pub primary_datum: Option<char>,
156156
/// Secondary datum
@@ -164,9 +164,9 @@ pub struct AnnotationMBDControlFrame {
164164
#[serde(rename_all = "snake_case")]
165165
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
166166
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
167-
pub struct AnnotationMBDBasicDimension {
167+
pub struct AnnotationMbdBasicDimension {
168168
/// Type of symbol to use for this dimension (if required)
169-
pub symbol: Option<MBDSymbol>,
169+
pub symbol: Option<MbdSymbol>,
170170
/// The explicitly defined dimension. Only required if the measurement is not automatically calculated.
171171
pub dimension: Option<f64>,
172172
/// The tolerance of the dimension
@@ -192,7 +192,7 @@ pub struct AnnotationBasicDimension {
192192
pub to_entity_pos: Point2d<f64>,
193193

194194
/// Basic dimension parameters (symbol and tolerance)
195-
pub dimension: AnnotationMBDBasicDimension,
195+
pub dimension: AnnotationMbdBasicDimension,
196196

197197
/// Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin.
198198
pub plane_uuid: Uuid,
@@ -226,10 +226,10 @@ pub struct AnnotationFeatureControl {
226226
pub leader_type: AnnotationLineEnd,
227227

228228
/// Basic dimensions
229-
pub dimension: Option<AnnotationMBDBasicDimension>,
229+
pub dimension: Option<AnnotationMbdBasicDimension>,
230230

231231
/// MBD Control frame for geometric control
232-
pub control_frame: Option<AnnotationMBDControlFrame>,
232+
pub control_frame: Option<AnnotationMbdControlFrame>,
233233

234234
/// Set if this annotation is defining a datum
235235
pub defined_datum: Option<char>,
@@ -406,7 +406,7 @@ pub enum AnnotationType {
406406
#[serde(rename_all = "lowercase")]
407407
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
408408
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
409-
pub enum MBDStandard {
409+
pub enum MbdStandard {
410410
/// ASME Y14.5 GD&T
411411
AsmeY14_5,
412412
}
@@ -434,7 +434,7 @@ pub enum MBDStandard {
434434
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
435435
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
436436
#[repr(u16)]
437-
pub enum MBDSymbol {
437+
pub enum MbdSymbol {
438438
#[default]
439439
None = 0,
440440
ArcLength = 174,
@@ -1315,8 +1315,8 @@ impl_extern_type! {
13151315
AnnotationTextAlignmentX = "Enums::_AnnotationTextAlignmentX"
13161316
AnnotationTextAlignmentY = "Enums::_AnnotationTextAlignmentY"
13171317
AnnotationLineEnd = "Enums::_AnnotationLineEnd"
1318-
MBDStandard = "Enums::_MBDStandard"
1319-
MBDSymbol = "Enums::_MBDSymbol"
1318+
MbdStandard = "Enums::_MBDStandard"
1319+
MbdSymbol = "Enums::_MBDSymbol"
13201320

13211321
CurveType = "Enums::_CurveType"
13221322
PathCommand = "Enums::_PathCommand"

0 commit comments

Comments
 (0)