Vector kit command
webExport.settings
Save for Web Settings
Reads or changes the remembered Save for Web settings.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
preset | string | no | |
reset | boolean | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "webExport.settings" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: preset, reset. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
settings | object | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"settings": {
"additionalProperties": true,
"properties": {
"antiAlias": {
"type": "string"
},
"artboard": {},
"clipToArtboard": {
"type": "boolean"
},
"colorTable": {
"additionalProperties": true,
"properties": {
"locked": {
"type": "array"
},
"sort": {
"type": "string"
},
"transparent": {
"type": "array"
},
"webShift": {
"type": "array"
}
},
"type": "object"
},
"colors": {
"type": "number"
},
"convertToSrgb": {
"type": "boolean"
},
"dither": {
"type": "string"
},
"ditherAmount": {
"type": "number"
},
"embedProfile": {
"type": "boolean"
},
"format": {
"type": "string"
},
"height": {},
"interlaced": {
"type": "boolean"
},
"lossy": {
"type": "number"
},
"matte": {
"type": "string"
},
"metadata": {
"type": "string"
},
"optimized": {
"type": "boolean"
},
"output": {
"type": "string"
},
"percent": {},
"progressive": {
"type": "boolean"
},
"quality": {
"type": "number"
},
"reduction": {
"type": "string"
},
"slices": {
"type": "string"
},
"transparency": {
"type": "boolean"
},
"webSnap": {
"type": "number"
},
"width": {}
},
"type": "object"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"preset": {
"type": "string"
},
"reset": {
"default": false,
"type": "boolean"
}
},
"returns": "{settings}",
"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.