Vector kit command

clipboard.conflicts

Swatch Conflicts

Answers the global or spot swatches on the clipboard whose names the active document gives another colour, so you can pass swatchConflict to a paste.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of clipboard.conflicts
NameTypeRequiredDescription
artboardintegernoread by the command beside its listed parameters
centerany[]noread by the command beside its listed parameters
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.conflicts" }]
}

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

Result

Result of clipboard.conflicts
NameTypeRequiredDescription
swatchesany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "swatches": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "artboard": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "center": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "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": "{swatches: [{name, document, clipboard, spot}]} the global or spot swatches the copied objects use whose name the active document gives another colour (`document`/`clipboard`: #rrggbb): Paste asks Merge or Add for each (pass the answer as edit.paste* {swatchConflict}). Pasting back into the document the objects came from raises none",
  "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.