feat: expose Construction Line in the Draw expansion

This commit is contained in:
ramox81 committed 2026-09-10 15:57:18 +03:00
1 parent b19992cbcb
commit dc83a3e5fa
3 files changed
+9 -1

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-label="Construction Line" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 22L22 2" stroke="#B4B6B9" stroke-width="1.6"/><path d="M2 17v5h5M17 2h5v5" stroke="#6DB7ED" stroke-width="1.6"/><path d="M10 10h4v4h-4z" fill="#6DB7ED" stroke="none"/>
</svg>

After

Width:  |  Height:  |  Size: 351 B

-1
View File
@@ -167,7 +167,6 @@ impl CadCommand for XLineCommand {
Vector3::new(base.x, base.y, base.z),
Vector3::new(dir_n.x, dir_n.y, dir_n.z),
);
self.base = None;
CmdResult::CommitEntity(EntityType::XLine(xline))
} else {
self.base = Some(pt);
+6
View File
@@ -0,0 +1,6 @@
Tool {
command: "XLINE",
label: "Construction Line",
icon: include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/icons/xline.svg")),
options: &[],
}