feat(block-editor): edit definition properties in the Properties panel

Add the no-selection Block section with annotation, orientation, scaling, exploding, units, description and hyperlink controls. Integrate definition edits with editor history, save checkpoints and discard, and keep staged text tied to its definition.

Persist annotation and hyperlink metadata on the block record, migrate legacy marker values on edit, and honor orientation and hyperlink descriptions during block creation. Cover native DWG/DXF roundtrips and replacement after reopening.
This commit is contained in:
Karim Jerbi committed 2026-10-15 09:45:58 +01:00
1 parent f3973f08a7
commit c48fac7ae9
9 files changed
+952 -7

No files matched your search

+6
View File
@@ -2655,6 +2655,9 @@ impl OpenCADStudio {
field: &'static str,
value: String,
) -> Task<Message> {
if field.starts_with("bedit_") {
return self.set_block_property(field, &value);
}
if matches!(field, "dyn_constraint_form" | "dyn_constraint_reference") {
return self.on_dynamic_dimension_choice(field, &value);
}
@@ -3886,6 +3889,9 @@ impl OpenCADStudio {
}
pub(super) fn on_prop_geom_commit(&mut self, field: &'static str) -> Task<Message> {
if field.starts_with("bedit_") {
return self.commit_block_property(field);
}
use crate::ui::window::named_parameters::ParamField;
// A dynamic dimension's Name/Expression rows edit its parameter.
let dynamic_field = match field {