Doc kit command
drawing.erase
Erase Ink
Deletes the ink strokes a path or a circle touches.
- Kit
- Doc 0.1.0 (.docx)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | no | read by the command beside its listed parameters |
path | number[][] | no | [x, y] page points |
placement | object | no | |
radius | number | no | points |
y | number | no |
Call through doc_run
text
doc_run {
"path": "<file>.docx",
"steps": [{ "command": "drawing.erase" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: page, path, placement, radius, y. doc_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"page": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"path": {
"description": "[x, y] page points",
"items": {
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"placement": {
"additionalProperties": true,
"properties": {
"page": {
"type": "integer"
}
},
"type": "object"
},
"radius": {
"description": "points",
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (doc_commands through @kition/[email protected], built from KitionAI/kition-doc@41e14a8). As data: commands.jsonl.