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

Parameters of clipboard.importEmf
NameTypeRequiredDescription
artboardintegernoread by the command beside its listed parameters
centernumber[]no
dataBase64stringnoEMF or WMF bytes
dxnumbernoread by the command beside its listed parameters
dynumbernoread 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

Result of clipboard.importEmf
NameTypeRequiredDescription
countnumberno
warningsany[]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.