forked from 1b-agent/opencadstudio-upstream
ocs_doc_api: Phase 3 (block references)
- Operation::CreateInsert(InsertSpec) appended to the wire enum (append-only). - backend add_insert validates the BlockRecord exists (unknown block -> Validation, no mutation); host inserts acadrust::entities::Insert with scale+rotation. - Insert transform moves insert_point (transform_entity_geometry) + ensure_transformable includes Insert. - facade EntityCollection::create_insert; spec Insert family; api_reference + binding_schema regenerated; mocks updated. - Test phase3_create_insert_and_transform -> 599 host lib green. - IMPLEMENTATION.md: Phase 3 done (attributes/traversal remaining).
This commit is contained in:
1 parent
d46351cdb3
commit
b03f68737e
13 files changed
+146
-5
No files matched your search
@@ -61,9 +61,11 @@ variants append at enum end.
|
||||
are supported (Phase 0).
|
||||
|
||||
### Phase 3 — containers
|
||||
- **Entities:** insert/block references, attribute definitions/entities.
|
||||
- **Methods:** `create_insert`, placement, attribute get/set.
|
||||
- **Read-only:** nested block content traversal (nested ≠ first-level).
|
||||
- **Done:** `create_insert(block_name, point, scale, rotation)` → `Operation::CreateInsert`
|
||||
(validates the BlockRecord exists; unknown block → `Validation`, no mutation).
|
||||
Insert `transform` moves its `insert_point`. Covered by `phase3_*` test.
|
||||
- **Remaining:** `AttributeDefinition`/`AttributeEntity` typed create + attribute
|
||||
get/set; read-only nested block-content traversal.
|
||||
|
||||
### Phase 4 — paper-space & viewports
|
||||
- **Entities:** viewport entities.
|
||||
|
||||
Reference in new issue
Block a user