Layout kit command

frame.grid

Gridify

Creates a grid of frames filling a rectangle with columns, rows and a gutter.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes

Parameters

Parameters of frame.grid
NameTypeRequiredDescription
colsintegerno
contentstringnographic, text or unassigned
gutternumbernopoints
rectnumber[]no[x0, y0, x1, y1] in points
rowsintegerno
shapestringnoa frame shape such as rectangle or ellipse
spreadinteger | objectno

Call through layout_run

text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "frame.grid" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: cols, content, gutter, rect, rows, shape, spread. layout_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": {
    "cols": {
      "type": "integer"
    },
    "content": {
      "description": "graphic, text or unassigned",
      "type": "string"
    },
    "gutter": {
      "description": "points",
      "type": "number"
    },
    "rect": {
      "description": "[x0, y0, x1, y1] in points",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "rows": {
      "type": "integer"
    },
    "shape": {
      "description": "a frame shape such as rectangle or ellipse",
      "type": "string"
    },
    "spread": {
      "oneOf": [
        {
          "description": "a spread counted from 0",
          "type": "integer"
        },
        {
          "additionalProperties": true,
          "description": "a spread reference such as {kind: doc, index: 0}",
          "type": "object"
        }
      ]
    }
  },
  "type": "object"
}

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