Vector kit command

file.setup

Document Setup

Sets Document Setup options: units, bleed, outline images, font substitution highlighting, transparency grid, type options and language.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of file.setup
NameTypeRequiredDescription
appearanceanynoSVG text as text or as outlines; one of several alternative parameters
backgroundContentsstringnolike transparent; one of several alternative parameters
bleednumber | number[] | objectno
discardWhiteOverprintbooleanno
exportTextstringnolike editable; one of several alternative parameters
flattenerPresetstringno
gridColorsstring[]no
gridSize"small" | "medium" | "large"no
highlightSubstitutedFontsbooleanno
highlightSubstitutedGlyphsbooleanno
languagestringno
onbooleannoread by the command beside its listed parameters
outlineImagesbooleannoshow images in Outline mode
quotesobjectnobeside a language: only if they differ from the current ones
simulatePaperbooleanno
smallCapsSizenumbernopercent
subscriptobjectno
superscriptobjectno
typographersQuotesbooleannotyped straight quotes become the document's quotes
unitsstringno
whiteanynowhite: raster exports are white behind the art; one of several alternative parameters

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "file.setup" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: appearance, backgroundContents, bleed, discardWhiteOverprint, exportText, flattenerPreset, gridColors, gridSize, highlightSubstitutedFonts, highlightSubstitutedGlyphs, language, on, outlineImages, quotes, simulatePaper, smallCapsSize, subscript, superscript, typographersQuotes, units, white. 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": {
    "appearance": {
      "description": "SVG text as text or as outlines; one of several alternative parameters"
    },
    "backgroundContents": {
      "description": "like transparent; one of several alternative parameters",
      "type": "string"
    },
    "bleed": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ]
    },
    "discardWhiteOverprint": {
      "type": "boolean"
    },
    "exportText": {
      "description": "like editable; one of several alternative parameters",
      "type": "string"
    },
    "flattenerPreset": {
      "type": "string"
    },
    "gridColors": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "gridSize": {
      "enum": [
        "small",
        "medium",
        "large"
      ],
      "type": "string"
    },
    "highlightSubstitutedFonts": {
      "type": "boolean"
    },
    "highlightSubstitutedGlyphs": {
      "type": "boolean"
    },
    "language": {
      "type": "string"
    },
    "on": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "outlineImages": {
      "description": "show images in Outline mode",
      "type": "boolean"
    },
    "quotes": {
      "additionalProperties": true,
      "description": "beside a language: only if they differ from the current ones",
      "properties": {
        "double": {
          "description": "like “”",
          "type": "string"
        },
        "single": {
          "description": "like ‘’",
          "type": "string"
        }
      },
      "type": "object"
    },
    "simulatePaper": {
      "type": "boolean"
    },
    "smallCapsSize": {
      "description": "percent",
      "type": "number"
    },
    "subscript": {
      "additionalProperties": true,
      "properties": {
        "position": {
          "description": "percent",
          "type": "number"
        },
        "size": {
          "description": "percent",
          "type": "number"
        }
      },
      "type": "object"
    },
    "superscript": {
      "additionalProperties": true,
      "properties": {
        "position": {
          "description": "percent",
          "type": "number"
        },
        "size": {
          "description": "percent",
          "type": "number"
        }
      },
      "type": "object"
    },
    "typographersQuotes": {
      "description": "typed straight quotes become the document's quotes",
      "type": "boolean"
    },
    "units": {
      "type": "string"
    },
    "white": {
      "description": "white: raster exports are white behind the art; one of several alternative parameters"
    }
  },
  "returns": "the current setup",
  "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.