Layout kit command

layout.addAlternate

Create Alternate Layout

Creates an alternate layout of the pages at a new size, with a page rule.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes

Parameters

Parameters of layout.addAlternate
NameTypeRequiredDescription
heightnumberno
namestringno
rulestringnoa page rule such as scale or reCenter
sourcestringnoa layout name
widthnumberno

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: height, name, rule, source, width. 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": {
    "height": {
      "type": "number"
    },
    "name": {
      "type": "string"
    },
    "rule": {
      "description": "a page rule such as scale or reCenter",
      "type": "string"
    },
    "source": {
      "description": "a layout name",
      "type": "string"
    },
    "width": {
      "type": "number"
    }
  },
  "returns": "{name, firstPage, pages}",
  "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.