forked from 1b-agent/opencadstudio-upstream
feat: node graph overlay; move to opencadcodec/opencadkernel/opencadgraph
The codec and kernel repositories and crates are renamed opencadcodec and opencadkernel. Inside OCS they are depended on under short keys, so code reads `codec::`, `kernel::` and the new `graph::` (opencadgraph, the node graph engine). File-format and protocol spellings stay as they were: the ACIS product id `acadrust`, the ACADRUST_* switches and the plugin version keys `acadrust_version` / `acadrust_source`. A button left of MCP on the command line opens a translucent node graph over the viewport, with a palette of object, input, math, logic, list, text and geometry nodes added by click or drag. An object node owns drawing entities and its rows are the Properties panel's own rows for them: the single-object page is extracted from refresh_properties as entity_property_sections, values use the control protocol's property_json, and writes go through set_property_value with a property target override, so the panel, MCP and the graph share one read/write path. A list reaching an object row makes one entity per element. Each graph action is one undo step; the canvas pans and zooms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
56c04408d6
commit
f537aff75c
430 files changed
+9925
-8540
No files matched your search
@@ -12,10 +12,10 @@
|
||||
// The definition is created when the INSERT is committed (see the command
|
||||
// driver), so one undo removes both.
|
||||
|
||||
use acadrust::entities::Insert;
|
||||
use acadrust::tables::block_record::{BlockFlags, BlockRecord};
|
||||
use acadrust::types::Vector3;
|
||||
use acadrust::EntityType;
|
||||
use codec::entities::Insert;
|
||||
use codec::tables::block_record::{BlockFlags, BlockRecord};
|
||||
use codec::types::Vector3;
|
||||
use codec::EntityType;
|
||||
use glam::DVec3;
|
||||
|
||||
use crate::command::{CadCommand, CmdOption, CmdResult, InputKind, WorkingPlane};
|
||||
@@ -684,7 +684,7 @@ pub fn prepare_xref_definition(
|
||||
}
|
||||
.or(file_dir);
|
||||
if let Some(base_dir) = base_dir {
|
||||
let keys: rustc_hash::FxHashSet<acadrust::types::Handle> = [key].into_iter().collect();
|
||||
let keys: rustc_hash::FxHashSet<codec::types::Handle> = [key].into_iter().collect();
|
||||
let _ = crate::io::xref::resolve_xrefs_for_keys(&mut scene.document, &base_dir, &keys);
|
||||
}
|
||||
|
||||
@@ -713,7 +713,7 @@ mod tests {
|
||||
XAttachCommand,
|
||||
};
|
||||
use crate::command::{CadCommand, CmdResult};
|
||||
use acadrust::EntityType;
|
||||
use codec::EntityType;
|
||||
use glam::DVec3;
|
||||
|
||||
#[test]
|
||||
@@ -770,7 +770,7 @@ mod tests {
|
||||
assert!(cmd.prompt().contains("Specify insertion point"));
|
||||
}
|
||||
|
||||
fn committed(result: Option<CmdResult>) -> acadrust::entities::Insert {
|
||||
fn committed(result: Option<CmdResult>) -> codec::entities::Insert {
|
||||
match result {
|
||||
Some(CmdResult::CommitAndExit(EntityType::Insert(ins))) => ins,
|
||||
_ => panic!("expected CommitAndExit(Insert)"),
|
||||
|
||||
Reference in new issue
Block a user