forked from 1b-agent/opencadstudio-upstream
Complete jogged radius dimension workflow
This commit is contained in:
1 parent
bbd58eb9f2
commit
5a9894fd3e
11 files changed
+664
-85
No files matched your search
@@ -18,6 +18,7 @@ pub struct DimensionCreationDefaults {
|
||||
pub text_height: f64,
|
||||
pub gap: f64,
|
||||
pub arrow_size: f64,
|
||||
pub jog_angle: f64,
|
||||
pub scale: f64,
|
||||
pub annotative: bool,
|
||||
}
|
||||
@@ -92,6 +93,9 @@ pub fn current_dimension_defaults(doc: &CadDocument) -> DimensionCreationDefault
|
||||
text_height: style.as_ref().map_or(2.5, |style| style.dimtxt),
|
||||
gap: style.as_ref().map_or(0.625, |style| style.dimgap),
|
||||
arrow_size: style.as_ref().map_or(2.5, |style| style.dimasz),
|
||||
jog_angle: style
|
||||
.as_ref()
|
||||
.map_or(std::f64::consts::FRAC_PI_4, |style| style.dimjogang),
|
||||
scale: style.as_ref().map_or(1.0, |style| {
|
||||
if style.annotative {
|
||||
1.0
|
||||
|
||||
Reference in new issue
Block a user