forked from 1b-agent/opencadstudio-upstream
ATTDEF: dialog, -ATTDEF prompts, tag display, Properties and ribbon
Attribute Definition dialog and Edit Attribute Definition dialog, -ATTDEF with the reference prompts and modes (AFLAGS), tag shown in the drawing, justification-aware grips, reworked Properties with validation, Home Block slide-out and Insert Block Definition panel, and the codec patch for ATTDEF DXF output and the R2013+ solid wire cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3dcebf0dc6
commit
c5790c74a9
48 files changed
+2501
-435
No files matched your search
Vendored
+12
@@ -617,6 +617,18 @@ fn build_defn(
|
||||
continue
|
||||
}
|
||||
_ => {
|
||||
// A standalone definition draws its tag; as block content a
|
||||
// constant one draws its value.
|
||||
let shown;
|
||||
let entity = match entity {
|
||||
EntityType::AttributeDefinition(ad) => {
|
||||
let mut value = ad.clone();
|
||||
value.tag = ad.default_value.clone();
|
||||
shown = EntityType::AttributeDefinition(value);
|
||||
&shown
|
||||
}
|
||||
other => other,
|
||||
};
|
||||
// A wide polyline inside a block carries its `world_width` on
|
||||
// the LocalWire; `emit_wire` scales it by the insert transform
|
||||
// so the shader band matches the scaled geometry (same band the
|
||||
|
||||
Reference in new issue
Block a user