Layout kit command

story.get

Get Story

Answers a story's text, frames, paragraphs, direction and whether it is overset; the way to read text.

Kit
Layout 0.1.0 (.klayout)
Changes the document
no

Parameters

Parameters of story.get
NameTypeRequiredDescription
frameintegernoone of several alternative parameters
linesintegernoread by the command beside its listed parameters
storyanynoone of several alternative parameters

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: frame, lines, story. layout_run answers the step’s result in completed[i].result.

Result

Result of story.get
NameTypeRequiredDescription
directionstringno
framesnumber[]no
idnumberno
lengthnumberno
linesnumberno
oversetanyno
paragraphsnumberno
textstringno
verticalbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "direction": {
      "type": "string"
    },
    "frames": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "id": {
      "type": "number"
    },
    "length": {
      "type": "number"
    },
    "lines": {
      "type": "number"
    },
    "overset": {},
    "paragraphs": {
      "type": "number"
    },
    "text": {
      "type": "string"
    },
    "vertical": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "frame": {
      "description": "one of several alternative parameters",
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "lines": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "story": {
      "description": "one of several alternative parameters",
      "x-khp-types": [
        "Story"
      ]
    }
  },
  "returns": "text, frames, paragraphs, vertical, overset",
  "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.