Layout kit command

transform.set

Transform Panel

Sets objects' position, size, scale, rotation and shear exactly, as the Transform panel does.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of transform.set
NameTypeRequiredDescription
boundsnumber[]nowith content: the graphic's box [x0, y0, x1, y1] on the spread
contentbooleannosize and place each frame's placed graphic, not the frame
heightnumberno
ids(integer | string)[]no
refintegerno0 to 8
rotationnumberno°
scaleXnumbernopercent
scaleYnumbernopercent
shearnumbernodegrees
widthnumberno
xnumberno
ynumberno

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: bounds, content, height, ids, ref, rotation, scaleX, scaleY, shear, width, x, y. 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": {
    "bounds": {
      "description": "with content: the graphic's box [x0, y0, x1, y1] on the spread",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "content": {
      "description": "size and place each frame's placed graphic, not the frame",
      "type": "boolean"
    },
    "height": {
      "type": "number"
    },
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "ref": {
      "description": "0 to 8",
      "type": "integer"
    },
    "rotation": {
      "description": "°",
      "type": "number"
    },
    "scaleX": {
      "description": "percent",
      "type": "number"
    },
    "scaleY": {
      "description": "percent",
      "type": "number"
    },
    "shear": {
      "description": "degrees",
      "type": "number"
    },
    "width": {
      "type": "number"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "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.