Vector kit command

linkedFile.placementOptions

Placement Options

Sets how linked art fits its bounds when the file is updated or relinked: preserve transforms, bounds, file size, fit or fill, with alignment.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of linkedFile.placementOptions
NameTypeRequiredDescription
align"topLeft" | "top" | "topRight" | "left" | "center" | "right" | "bottomLeft" | "bottom" | "bottomRight"nodefault; where the new art sits; not for bounds
clipbooleannoclip it to the old bounds where it is larger
idsinteger[]noobject IDs
preserve"transforms" | "bounds" | "fileDimensions" | "fit" | "fill"nodefault

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: align, clip, ids, preserve. vector_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": {
    "align": {
      "description": "default; where the new art sits; not for bounds",
      "enum": [
        "topLeft",
        "top",
        "topRight",
        "left",
        "center",
        "right",
        "bottomLeft",
        "bottom",
        "bottomRight"
      ],
      "type": "string"
    },
    "clip": {
      "default": false,
      "description": "clip it to the old bounds where it is larger",
      "type": "boolean"
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "preserve": {
      "description": "default",
      "enum": [
        "transforms",
        "bounds",
        "fileDimensions",
        "fit",
        "fill"
      ],
      "type": "string"
    }
  },
  "returns": "{placement} of the first image; else one undo step → {ids, placement}",
  "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.