Vector kit command

object.addObjectMosaic

Create Object Mosaic…

Builds a group of rectangles coloured by the selected image's tile colours (a mosaic), optionally deleting the image.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.addObjectMosaic
NameTypeRequiredDescription
columnsintegerno
deleteRasterbooleanno
graybooleanno
heightnumbernonew size in pt; default the image's
rowsintegerno
spacingXnumbernopoints
spacingYnumbernopoints; between tiles
widthnumberno

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: columns, deleteRaster, gray, height, rows, spacingX, spacingY, width. 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": {
    "columns": {
      "default": 10,
      "type": "integer"
    },
    "deleteRaster": {
      "type": "boolean"
    },
    "gray": {
      "type": "boolean"
    },
    "height": {
      "description": "new size in pt; default the image's",
      "type": "number"
    },
    "rows": {
      "default": 10,
      "type": "integer"
    },
    "spacingX": {
      "default": 0,
      "description": "points",
      "type": "number"
    },
    "spacingY": {
      "default": 0,
      "description": "points; between tiles",
      "type": "number"
    },
    "width": {
      "type": "number"
    }
  },
  "returns": "{id, tiles}",
  "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.