Vector kit command
linkedFile.info
Link Info
Answers an image's or placed document's Link Info: file, status, format, colour mode, size and effective resolution.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
- Acts on
id(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bounds | string | no | read by the command beside its listed parameters |
horizontal | number | no | read by the command beside its listed parameters |
id | integer | no | object ID |
vertical | number | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "linkedFile.info" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bounds, horizontal, id, vertical. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
id | number | no | |
linked | boolean | no | |
name | string | no | |
pixelHeight | number | no | |
pixelWidth | number | no | |
status | string | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"id": {
"type": "number"
},
"linked": {
"type": "boolean"
},
"name": {
"type": "string"
},
"pixelHeight": {
"type": "number"
},
"pixelWidth": {
"type": "number"
},
"status": {
"type": "string"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"bounds": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"horizontal": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"id": {
"description": "object ID",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"vertical": {
"description": "read by the command beside its listed parameters",
"type": "number"
}
},
"returns": "image.info's fields (id, name, linked, link, colorMode, pixelWidth, pixelHeight, width, height) and status: ok|modified|missing|embedded, format, ppi: [x, y] (the file's), effectivePpi: [x, y] (at its placed size), scale: [x%, y%] (of its 100% size), rotation (degrees, counter-clockwise), placement: {preserve, align, clip}; linked images also fileName, location (its folder), page?, fileSize? (bytes), modified?, created? (ms since the Unix epoch); a placed document has document: true, pageWidth and pageHeight (pt) instead of pixels, ppi and colorMode, and its scale is of its artboard's 100% size",
"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.