Vector kit command
object.slice.options
Slice Options…
Sets the selected slices' web options: kind, name, URL, target, message, alt text, cell text, background and alignment.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
alt | string | no | |
background | "" | "matte" | "#rrggbb" | no | |
hAlign | "default" | "left" | "center" | "right" | no | |
htmlText | string | no | read by the command beside its listed parameters |
kind | "image" | "noImage" | "htmlText" | no | object slices of type only |
message | string | no | |
name | string | no | |
target | string | no | |
text | string | no | |
url | string | no | |
vAlign | "default" | "top" | "middle" | "baseline" | "bottom" | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.slice.options" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: alt, background, hAlign, htmlText, kind, message, name, target, text, url, vAlign. vector_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": {
"alt": {
"type": "string"
},
"background": {
"enum": [
"",
"matte",
"#rrggbb"
],
"type": "string"
},
"hAlign": {
"enum": [
"default",
"left",
"center",
"right"
],
"type": "string"
},
"htmlText": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"kind": {
"description": "object slices of type only",
"enum": [
"image",
"noImage",
"htmlText"
],
"type": "string"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"target": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"vAlign": {
"enum": [
"default",
"top",
"middle",
"baseline",
"bottom"
],
"type": "string"
}
},
"returns": "the first slice's {kind, name, url, target, message, alt, text, background, hAlign, vAlign, htmlText: whether HTML Text applies}",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.