forked from 1b-agent/opencadstudio-upstream
fix(rect): harden rectangle behavior
Reject invalid trim geometry instead of silently changing dimensions.\nRegister XData application IDs so rectangle metadata survives saves.
This commit is contained in:
1 parent
8dc9803c02
commit
27cae9467a
26 files changed
+542
-113
No files matched your search
@@ -432,6 +432,11 @@ pub fn parse_direction(text: &str) -> Option<f64> {
|
||||
Some(relative + ctx.angbase)
|
||||
}
|
||||
|
||||
/// Read a direction typed at a command prompt, accepting a decimal comma.
|
||||
pub fn parse_typed_direction(text: &str) -> Option<f64> {
|
||||
parse_direction(&text.replace(',', "."))
|
||||
}
|
||||
|
||||
/// Two interior triangles covering a quad (flat list, 6 vertices) — the
|
||||
/// click-anywhere pick surface for frame-like entities (image, OLE frame,
|
||||
/// underlay, wipeout). Corners in ring order.
|
||||
|
||||
Reference in new issue
Block a user