Design kit command

comment.open

Open comment

Opens a comment thread and zooms or centres the view on it.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of comment.open
NameTypeRequiredDescription
authorstringno
idinteger | stringnoan id; one of several alternative parameters
idsany[]noread by the command beside its listed parameters
linkanynoone of several alternative parameters
maxLinesnumbernoread by the command beside its listed parameters
minSizenumbernoread by the command beside its listed parameters
orphansbooleannoread by the command beside its listed parameters
view"fit" | "center" | "keep"no

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "comment.open" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: author, id, ids, link, maxLines, minSize, orphans, view. design_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "author": {
      "type": "string"
    },
    "id": {
      "description": "an id; one of several alternative parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "CommentThread"
      ]
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "link": {
      "description": "one of several alternative parameters"
    },
    "maxLines": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "minSize": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "orphans": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "view": {
      "enum": [
        "fit",
        "center",
        "keep"
      ],
      "type": "string"
    }
  },
  "type": "object"
}

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