Vector kit command

object.scale

Scale…

Scales the selection by sx and sy percent about an origin, optionally as a copy and scaling strokes, corners and patterns.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.scale
NameTypeRequiredDescription
copybooleanno
cornersbooleannoScale Corners: corner radii scale
idsany[]noread by the command beside its listed parameters
matrixany[]noread by the command beside its listed parameters
originnumber[]no
patternsbooleannoTransform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles
strokesbooleannoScale Strokes & Effects: stroke weights, dashes and effect distances scale; off keeps them, type strokes included
sxnumbernopercent
synumbernopercent
typeAreasbooleannoread by the command beside its listed parameters

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: copy, corners, ids, matrix, origin, patterns, strokes, sx, sy, typeAreas. 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": {
    "copy": {
      "type": "boolean"
    },
    "corners": {
      "description": "Scale Corners: corner radii scale",
      "type": "boolean"
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "matrix": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "origin": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "patterns": {
      "description": "Transform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles",
      "type": "boolean"
    },
    "strokes": {
      "description": "Scale Strokes & Effects: stroke weights, dashes and effect distances scale; off keeps them, type strokes included",
      "type": "boolean"
    },
    "sx": {
      "description": "percent",
      "type": "number"
    },
    "sy": {
      "description": "percent",
      "type": "number"
    },
    "typeAreas": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "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.