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:
Hakan Seven committed 2026-08-03 16:43:58 +03:00
1 parent 53cf31f33d
commit de2707a23e
14 files changed
+676 -129

No files matched your search

+4 -2
View File
@@ -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,
}
}