Vector kit command

clipboard.exportPng

Clipboard as PNG

Answers the clipboard's objects as a PNG cropped to their visual bounds with a transparent background, at scale pixels per point.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of clipboard.exportPng
NameTypeRequiredDescription
scaleintegernopixels per point, up to 64

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "clipboard.exportPng" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: scale. vector_run answers the step’s result in completed[i].result.

Result

Result of clipboard.exportPng
NameTypeRequiredDescription
dataBase64anyno
heightanyno
widthanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "dataBase64": {},
    "height": {},
    "width": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "scale": {
      "default": 1,
      "description": "pixels per point, up to 64",
      "type": "integer"
    }
  },
  "returns": "{dataBase64, width, height (px)} the copied objects cropped to their visual bounds, transparent around them (dataBase64 null when the clipboard is empty)",
  "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.