Vector kit command
clipboard.importEmf
Load Metafile into Clipboard
Replaces the kit's clipboard with the paths, images and type of an EMF or WMF picture; unsupported records are skipped with a warning. Run edit.paste afterwards.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
artboard | integer | no | read by the command beside its listed parameters |
center | number[] | no | |
dataBase64 | string | no | EMF or WMF bytes |
dx | number | no | read by the command beside its listed parameters |
dy | number | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "clipboard.importEmf" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: artboard, center, dataBase64, dx, dy. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
count | number | no | |
warnings | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"count": {
"type": "number"
},
"warnings": {
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"artboard": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"center": {
"items": {
"type": "number"
},
"type": "array"
},
"dataBase64": {
"description": "EMF or WMF bytes",
"type": "string"
},
"dx": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"dy": {
"description": "read by the command beside its listed parameters",
"type": "number"
}
},
"returns": "{count, warnings}; records Kition Vector doesn't read are skipped with one warning; then run edit.paste",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.