Layout kit command

style.cell.edit

Cell Style Options

Changes a cell style; cells using it follow.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes

Parameters

Parameters of style.cell.edit
NameTypeRequiredDescription
basedOnstringnoread by the command beside its listed parameters
fillstringno
insetsnumber | number[]no
namestringno
paragraphStylestringno
strokeobjectno
tintnumbernoread by the command beside its listed parameters
vjstringnoread by the command beside its listed parameters

Call through layout_run

text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "style.cell.edit" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: basedOn, fill, insets, name, paragraphStyle, stroke, tint, vj. 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": {
    "basedOn": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "fill": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch"
      ]
    },
    "insets": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "items": {
            "type": "number"
          },
          "maxItems": 4,
          "minItems": 4,
          "type": "array"
        }
      ]
    },
    "name": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "paragraphStyle": {
      "type": "string",
      "x-khp-name": "paragraphName",
      "x-khp-types": [
        "Style"
      ]
    },
    "stroke": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "type": "string",
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Swatch"
          ]
        }
      },
      "type": "object"
    },
    "tint": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "vj": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "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.