Vector kit command
graphicStyle.list
List Graphic Styles
Answers every graphic style with its fills, strokes, effects, transparency and the ids of objects linked to it.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
linked | boolean | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "graphicStyle.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: linked. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
or | any | no | |
overrideCharColor | boolean | no | |
selected | any | no | |
styles | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"or": {},
"overrideCharColor": {
"type": "boolean"
},
"selected": {},
"styles": {
"items": {
"additionalProperties": true,
"properties": {
"blend": {
"type": "string"
},
"effects": {
"type": "array"
},
"fill": {
"type": "string"
},
"fills": {
"type": "number"
},
"id": {
"type": "number"
},
"isolate": {
"type": "boolean"
},
"knockout": {
"type": "string"
},
"linked": {
"type": "array"
},
"name": {
"type": "string"
},
"opacity": {
"type": "number"
},
"stroke": {
"type": "string"
},
"strokeWidth": {
"type": "number"
},
"strokes": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"linked": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
}
},
"returns": "{styles: [{id, name, fill, stroke, strokeWidth, fills, strokes, effects: [effect id…], opacity: 0..100, blend, isolate, knockout: \"on\"|\"off\"|\"neutral\", linked: [object ids]}], selected: the style the first selected object is linked to, or null, overrideCharColor}",
"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.