ocs_doc_api: Phase 2b-a (Text/MText annotations)

- CreateText/CreateMText/SetTextContent ops + GetTextContent query (append-only).
- backend add_text/add_mtext/set_text_content/text_content (Text.value/MText.value).
- facade create_text/create_mtext + Text/MText handles with content()/set_content().
- Text/MText coarse bounds + transform (insertion point); ensure_transformable.
- spec Text/MText families; api_reference + binding_schema regenerated; mocks.
- can_modify backend hook (exists + not-locked) for SetTextContent validation.
- consistency baseline extended with the appended variants.
- Test phase2b_text_mtext_create_content_transform -> 605 host lib + 3 consistency green.
This commit is contained in:
Sebastian committed 2026-09-06 09:07:41 +02:00
1 parent 1925a83a25
commit fc0e2c2c9d
16 files changed
+449 -4

No files matched your search

+73 -1
View File
@@ -188,6 +188,76 @@
"methods": [],
"name": "XLine"
},
{
"acadrust_variant": "Text",
"collection": "curves",
"handle": "Text",
"methods": [
{
"args": [],
"bulk": false,
"fixed": null,
"kind": "query",
"name": "content",
"op": null,
"query": "GetTextContent",
"read_only": true,
"returns": "String"
},
{
"args": [
{
"name": "value",
"ty": "&str"
}
],
"bulk": false,
"fixed": null,
"kind": "op",
"name": "set_content",
"op": "SetTextContent",
"query": null,
"read_only": false,
"returns": "()"
}
],
"name": "Text"
},
{
"acadrust_variant": "MText",
"collection": "curves",
"handle": "MText",
"methods": [
{
"args": [],
"bulk": false,
"fixed": null,
"kind": "query",
"name": "content",
"op": null,
"query": "GetTextContent",
"read_only": true,
"returns": "String"
},
{
"args": [
{
"name": "value",
"ty": "&str"
}
],
"bulk": false,
"fixed": null,
"kind": "op",
"name": "set_content",
"op": "SetTextContent",
"query": null,
"read_only": false,
"returns": "()"
}
],
"name": "MText"
},
{
"acadrust_variant": "Insert",
"collection": "entities",
@@ -270,7 +340,9 @@
"Ellipse",
"Spline",
"Ray",
"XLine"
"XLine",
"Text",
"MText"
],
"root": "DocApi"
},