Vector kit command

pattern.options

Pattern Options

Sets a pattern's options: name, tile type, brick offset, size, spacing, overlap and editing display.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of pattern.options
NameTypeRequiredDescription
brickOffsetnumberno
copies3 | 5 | 7 | 9no
dimCopiesnumbernopercent
hSpacingnumberno
heightnumberno
namestringnodefault: the pattern being edited
newNamestringno
overlapobjectno
showSwatchBoundsbooleannooutline the part of the tiling the swatch repeats, dashed
showTileEdgebooleanno
sizeTileToArtbooleanno
tileType"grid" | "brickByRow" | "brickByColumn" | "hexByColumn" | "hexByRow"no
vSpacingnumberno
widthnumberno

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: brickOffset, copies, dimCopies, hSpacing, height, name, newName, overlap, showSwatchBounds, showTileEdge, sizeTileToArt, tileType, vSpacing, 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": {
    "brickOffset": {
      "type": "number"
    },
    "copies": {
      "enum": [
        3,
        5,
        7,
        9
      ],
      "type": "integer"
    },
    "dimCopies": {
      "description": "percent",
      "type": "number"
    },
    "hSpacing": {
      "type": "number"
    },
    "height": {
      "type": "number"
    },
    "name": {
      "description": "default: the pattern being edited",
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Pattern"
      ]
    },
    "newName": {
      "type": "string"
    },
    "overlap": {
      "additionalProperties": true,
      "properties": {
        "h": {
          "enum": [
            "left",
            "right"
          ],
          "type": "string"
        },
        "v": {
          "enum": [
            "top",
            "bottom"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "showSwatchBounds": {
      "description": "outline the part of the tiling the swatch repeats, dashed",
      "type": "boolean"
    },
    "showTileEdge": {
      "type": "boolean"
    },
    "sizeTileToArt": {
      "type": "boolean"
    },
    "tileType": {
      "enum": [
        "grid",
        "brickByRow",
        "brickByColumn",
        "hexByColumn",
        "hexByRow"
      ],
      "type": "string"
    },
    "vSpacing": {
      "type": "number"
    },
    "width": {
      "type": "number"
    }
  },
  "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.