Design kit command

select.area

Select area

Selects the layers inside a marquee rectangle (adding or including nested layers as asked); answers the selection.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of select.area
NameTypeRequiredDescription
addbooleanno
deepbooleanno
heightnumbernopage units; a marquee from x, y
widthnumberno
xnumberno
ynumberno

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "select.area" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: add, deep, height, width, x, y. design_run answers the step’s result in completed[i].result.

Result

Result of select.area
NameTypeRequiredDescription
okbooleanno
selectionanyno
uiRequestsobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "selection": {},
    "uiRequests": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "data": {
            "additionalProperties": true,
            "type": "object"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "deep": {
      "type": "boolean"
    },
    "height": {
      "description": "page units; a marquee from x, y",
      "type": "number"
    },
    "width": {
      "type": "number"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "returns": "{selection}; with no box: draw one from the keyboard in the app (arrows move it, Cmd/Ctrl+arrows or Shift+arrows size it, Enter selects, Escape cancels)",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.