forked from 1b-agent/opencadstudio-upstream
fix(styles): apply active creation defaults
Resolve style properties before editors and previews open. Use absolute annotation multipliers for style-driven objects. Refs #401 Refs #431
This commit is contained in:
1 parent
53cf31f33d
commit
de2707a23e
14 files changed
+676
-129
No files matched your search
@@ -21,12 +21,14 @@ enum Step {
|
||||
|
||||
pub struct TextCommand {
|
||||
step: Step,
|
||||
height: f64,
|
||||
}
|
||||
|
||||
impl TextCommand {
|
||||
pub fn new() -> Self {
|
||||
pub fn with_height(height: f64) -> Self {
|
||||
Self {
|
||||
step: Step::InsertPoint,
|
||||
height,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,7 +50,7 @@ impl CadCommand for TextCommand {
|
||||
pos: pt,
|
||||
handle: None,
|
||||
initial: String::new(),
|
||||
height: 0.25,
|
||||
height: self.height,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user