forked from 1b-agent/opencadstudio-upstream
fix(doc-api): preserve XDATA and XRecord integrity
This commit is contained in:
1 parent
acba9f87bd
commit
4de2792798
9 files changed
+367
-108
No files matched your search
@@ -471,7 +471,7 @@ description = "Extended record (XRecord): arbitrary DXF group-code/value pairs.
|
||||
name = "create_xrecord"
|
||||
args = [{ name = "spec", ty = "XRecordSpec" }]
|
||||
op = "CreateXRecord"
|
||||
returns = "Entity"
|
||||
returns = "XRecord"
|
||||
|
||||
[[family.method]]
|
||||
name = "payload"
|
||||
@@ -486,21 +486,6 @@ op = "SetXRecord"
|
||||
args = [{ name = "spec", ty = "XRecordSpec" }]
|
||||
returns = "()"
|
||||
|
||||
# Cross-cutting: every Entity handle can read/write its own XDATA.
|
||||
[[family.method]]
|
||||
name = "xdata"
|
||||
kind = "query"
|
||||
query = "GetXData"
|
||||
args = [{ name = "application_name", ty = "&str" }]
|
||||
returns = "Option<XDataRecord>"
|
||||
|
||||
[[family.method]]
|
||||
name = "set_xdata"
|
||||
kind = "op"
|
||||
op = "SetXData"
|
||||
args = [{ name = "application_name", ty = "&str" }, { name = "record", ty = "Option<XDataRecord>" }]
|
||||
returns = "()"
|
||||
|
||||
# ============================================================================
|
||||
# Cross-cutting ops (generic handles + bulk) — documented in build.rs
|
||||
# ============================================================================
|
||||
|
||||
Reference in new issue
Block a user