ReferenceAPI
Options and values
Every option object the methods take, and the lists of accepted values.
Every option object the methods take, and the lists of accepted values. The same text agents read through help().
ArrowOptions
Section titled “ArrowOptions”| Option | Type | Description |
|---|---|---|
type (required) |
ArrowType |
|
width |
ArrowSize |
|
length |
ArrowSize |
ArrowSize
Section titled “ArrowSize”Values: sm, md, lg.
ArrowType
Section titled “ArrowType”Values: none, triangle, stealth, diamond, oval, arrow.
AxisInput
Section titled “AxisInput”| Option | Type | Description |
|---|---|---|
title |
string | { text: string; style?: string | TextStyle } |
|
min |
number |
|
max |
number |
|
majorUnit |
number |
|
minorUnit |
number |
|
format |
string |
Excel number format of the tick labels, e.g. “$#,##0”, “0%”. |
gridlines |
boolean |
Major gridlines (default: on for the value axis). |
minorGridlines |
boolean |
|
reverse |
boolean |
Categories in reverse order. On slides, horizontal bar charts list theirs from the top in the order given (Office starts at the bottom); reverse: false keeps Office’s order. |
logBase |
number |
|
hidden |
boolean |
|
style |
string | TextStyle |
|
line |
string | LineOptions |
|
gridlineStyle |
string | LineOptions |
|
labels |
"nextTo" | "low" | "high" | "none" |
One of nextTo, low, high, none. |
crossesAt |
number |
|
tickMarks |
"none" | "out" | "in" | "cross" |
One of none, out, in, cross. |
labelEvery |
number |
Category axis: label every nth category, starting with the first (3 on monthly data labels each quarter). On slides, crowded labels are thinned this way by default; keep every category name rather than blanking some out. |
Also accepted: label (title), name (title), numberFormat (format), showGridlines (gridlines), grid (gridlines), step (majorUnit), tickLabelSkip (labelEvery), labelInterval (labelEvery), interval (majorUnit), visible (hidden: true to hide the axis), logarithmic (logBase).
borderStyles
Section titled “borderStyles”Border styles for border strings like “thin slate-300”.
Values: thin, medium, thick, dashed, dotted, double, hair, mediumDashed, dashDot, mediumDashDot, dashDotDot, mediumDashDotDot, slantDashDot.
Bullet
Section titled “Bullet”Bullet: string | { text: string; sub?: string | string[] }
| Option | Type | Description |
|---|---|---|
text (required) |
string |
|
sub |
string | string[] |
BulletInput
Section titled “BulletInput”BulletInput: | boolean /** A bullet character such as "•" or "–". */ | string | "number" | { char?: string; number?: string; startAt?: number; color?: string; size?: number; font?: string }Cell: string | number | null | undefined | CellInputA cell: plain text, a number, empty (null), or an object with formatting.
CellFormatInput
Section titled “CellFormatInput”How cells look. Colors are tokens like the rest of Artiwright (“accent1”, “slate-100”, “#2346C8”); borders are “style color” strings (“thin slate-300”, “medium”).
| Option | Type | Description |
|---|---|---|
numberFormat |
string |
An Excel number format code, or a shortcut: “integer”, “percent”, “currency”, “millions”, “date”, … |
font |
string |
Font family; default the theme’s body font. |
fontSize |
number |
Font size in points. |
bold |
boolean |
|
italic |
boolean |
|
underline |
boolean | "single" | "double" | "singleAccounting" | "doubleAccounting" |
|
strike |
boolean |
|
color |
string |
Text color. |
fill |
string |
Background color (a solid fill). |
align |
"left" | "center" | "right" | "fill" | "justify" | "centerAcross" | "distributed" |
One of left, center, right, fill, justify, centerAcross, distributed. |
valign |
"top" | "middle" | "bottom" | "justify" | "distributed" |
One of top, middle, bottom, justify, distributed. |
wrap |
boolean |
|
indent |
number |
|
rotation |
number |
Degrees, -90 to 90. |
shrinkToFit |
boolean |
|
border |
string |
All four edges of every cell: “thin”, “medium slate-400”, or “none”. |
borderTop |
string |
|
borderBottom |
string |
|
borderLeft |
string |
|
borderRight |
string |
|
locked |
boolean |
Unlocked cells stay editable when the sheet is protected. |
CellInput
Section titled “CellInput”| Option | Type | Description |
|---|---|---|
text |
TextInput | number |
|
colSpan |
number |
Columns this cell spans (HTML colspan). |
rowSpan |
number |
Rows this cell spans (HTML rowspan). |
fill |
string |
|
style |
string | TextStyle |
|
align |
TextStyle["align"] |
|
valign |
TextStyle["valign"] |
|
borders |
string | { top?: string; right?: string; bottom?: string; left?: string } |
Stroke for every side, or per side. |
Also accepted: value (text), content (text), colspan (colSpan), rowspan (rowSpan), background (fill), color (style.color), bold (style.bold).
ChartOptions
Section titled “ChartOptions”| Option | Type | Description |
|---|---|---|
frame (required) |
Frame |
|
name |
string |
|
alt |
string |
|
categories |
Array<string | number | string[]> |
Category labels (not used by scatter and bubble charts). Treemap and sunburst take a path per point, outermost first: [["Enterprise", "EMEA"], ["SMB"]]. Box & whisker: one per value. |
series (required) |
ChartSeriesInput[] |
|
title |
string | { text: string; style?: string | TextStyle; overlay?: boolean } |
|
legend |
| false | LegendPosition | { position?: LegendPosition; overlay?: boolean; style?: string | TextStyle } |
Position, false to hide, or options. Default bottom. |
dataLabels |
boolean | DataLabelsInput |
Labels on every series. true = values. |
stacked |
boolean | "percent" |
Column, bar, line and area charts: stack series, or stack to 100%. |
axes |
{ x?: AxisInput; y?: AxisInput; y2?: AxisInput } |
y2: the secondary value axis on the right, for series with axis: “secondary”. |
gap |
number |
Space between bar groups, percent of a bar’s width (0–500). |
overlap |
number |
Bar overlap within a group, percent (-100–100). |
holeSize |
number |
Doughnut hole, percent of the diameter (10–90). |
firstSliceAngle |
number |
Pie and doughnut rotation in degrees. |
varyColors |
boolean |
A different color for every point. |
radarStyle |
"marker" | "filled" | "lines" |
One of marker, filled, lines. |
blanks |
"gap" | "zero" | "span" |
How gaps draw: leave a gap, drop to zero, or connect across. One of gap, zero, span. |
style |
string | TextStyle |
Default text for the chart: font, size, color. |
background |
string |
|
border |
string | LineOptions |
|
plotBackground |
string |
|
upDownBars |
boolean |
Stock charts with four series (open, high, low, close). |
highLowLines |
boolean |
|
totals |
number[] |
Waterfall: indexes of the points that are totals (full bars from zero), e.g. [0, 4]. |
connectorLines |
boolean |
Waterfall: lines joining the bars (default true). |
parentLabels |
"overlapping" | "banner" | "none" |
Treemap: parent labels (default “overlapping”). One of overlapping, banner, none. |
bins |
number | { count?: number; width?: number } |
Histogram: the number of bins, or their width (default: automatic). |
threeD |
boolean |
Column, bar, line, area and pie charts drawn in 3D. 3D distorts values: prefer 2D. |
split |
{ by: "position" | "value" | "percent" | "custom"; value?: number; points?: number[]; /** Size of the second plot, percent of the first (5–200, default 75). */ secondSize?: number; } |
Pie-of-pie and bar-of-pie: which points go to the second plot. By “position” (the last value points), “value” (points below value), “percent” (below value percent of the whole) or “custom” (the points listed). Default: Office’s automatic split. |
wireframe |
boolean |
Surface and contour charts: lines only, no fill. |
boxWhisker |
{ /** A line through the means (default false). */ meanLine?: boolean; /** An x at each mean (default true). */ meanMarkers?: boolean; /** Points beyond the whiskers (default true). */ outliers?: boolean; /** Every value as a point (default false). */ innerPoints?: boolean; /** Median method (default "exclusive"). */ quartiles?: "exclusive" | "inclusive"; } |
Box & whisker: what to draw besides the boxes. |
Also accepted: data (series), labels (categories (or dataLabels for value labels)), xLabels (categories), position (frame), rect (frame), showLegend (legend: false to hide it), stack (stacked), grouping (stacked), gapWidth (gap), hole (holeSize), xAxis (axes: { x: … }), yAxis (axes: { y: … }), textStyle (style), font (style), description (alt), colors (series: [{ fill: … }]), subtotals (totals), 3d (threeD), is3D (threeD), threeDimensional (threeD), binCount (bins), binSize (bins: { width }).
ChartSeriesInput
Section titled “ChartSeriesInput”| Option | Type | Description |
|---|---|---|
name |
string |
|
values (required) |
Array<number | null> |
One value per category (or per x value); null leaves a gap. |
x |
number[] |
X values (scatter and bubble). |
sizes |
number[] |
Bubble sizes (bubble). |
fill |
string |
|
line |
string | LineOptions |
|
marker |
MarkerInput | false |
Markers on line, scatter and radar series; false for none. |
smooth |
boolean |
|
dataLabels |
boolean | DataLabelsInput |
|
points |
PointInput[] |
|
trendline |
TrendlineInput | TrendlineInput[] |
|
errorBars |
ErrorBarsInput | ErrorBarsInput[] |
|
explode |
number |
Pie: offset every slice, percent of the radius. |
format |
string |
Excel number format of the values, e.g. “0%”. |
type |
"column" | "line" | "area" |
Combo charts: draw this series as columns, a line or an area in a column, line or area chart. One of column, line, area. |
axis |
"primary" | "secondary" |
Combo charts: plot against the secondary value axis on the right (set it up with axes.y2). One of primary, secondary. |
ChartType
Section titled “ChartType”Office chart types: “column” is vertical bars, “bar” horizontal bars.
Values: column, bar, line, area, pie, doughnut, scatter, bubble, radar, stock, waterfall, funnel, treemap, sunburst, histogram, pareto, boxWhisker, pieOfPie, barOfPie, surface, contour.
colors
Section titled “colors”Color families; add a shade (e.g. slate-500), or use a theme slot, hex or rgb().
Values: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose.
CommentAuthorInput
Section titled “CommentAuthorInput”| Option | Type | Description |
|---|---|---|
name (required) |
string |
|
initials |
string |
Default: the first letters of the first two words of the name. |
userId |
string |
Account id, such as an e-mail address. |
providerId |
string |
Identity provider: “None” (default), “AD” or “Windows Live”. |
ComposeOptions
Section titled “ComposeOptions”| Option | Type | Description |
|---|---|---|
frame |
Box |
Area to lay out in, px. Default: the whole slide. |
baseUnit |
number |
Snap edges to this grid, px. Default 1 (whole pixels). Use 8 for an 8-px rhythm; spacing in multiples of 8 keeps layouts on it without moving measured text. |
ConditionalRuleInput
Section titled “ConditionalRuleInput”Rules apply in the order added; earlier rules win where two set the same thing.
Values: { type: "cellIs"; operator: CompareOperator; value: number | string | Date; value2?: number | string | Date; format: CellFormatInput }, { type: "expression"; formula: string; format: CellFormatInput }, { type: "colorScale"; colors: [string, string] | [string, string, string]; points?: ScalePoint[] }, { type: "dataBar"; color?: string; min?: ScalePoint; max?: ScalePoint; showValue?: boolean }, { type: "iconSet"; icons?: string; thresholds?: number[]; reverse?: boolean; showValue?: boolean }, { type: "top" | "bottom"; count?: number; percent?: boolean; format: CellFormatInput }, { type: "aboveAverage" | "belowAverage"; format: CellFormatInput }, { type: "containsText" | "notContainsText" | "beginsWith" | "endsWith"; text: string; format: CellFormatInput }, { type: "blanks" | "noBlanks" | "errors" | "noErrors" | "duplicates" | "unique"; format: CellFormatInput }, { type: "datePeriod"; period: "today" | "yesterday" | "tomorrow" | "last7Days" | "thisWeek" | "lastWeek" | "nextWeek" | "thisMonth" | "lastMonth" | "nextMonth"; format: CellFormatInput }.
sheet.conditionalFormats.add("C2:C13", { type: "cellIs", operator: "<", value: 0, format: { color: "red-700", bold: true } })sheet.conditionalFormats.add("D2:D13", { type: "dataBar", color: "accent1" })sheet.conditionalFormats.add("B2:B13", { type: "colorScale", colors: ["white", "green-400"] })Connectable
Section titled “Connectable”Something a connector can attach to: its frame and (optional) preset geometry.
| Option | Type | Description |
|---|---|---|
creationId (required) |
string |
ConnectOptions
Section titled “ConnectOptions”| Option | Type | Description |
|---|---|---|
kind |
"straight" | "elbow" | "curved" |
straight (default), elbow (right angles) or curved. One of straight, elbow, curved. |
line |
string | LineOptions |
Stroke string or options. Default “1.5px solid slate-500”. |
arrow |
ArrowType | false |
Arrowhead at the target end. Default “triangle”; false for none. |
fromSide |
Side |
Sides to connect; chosen from the shapes’ positions when omitted. |
toSide |
Side |
|
name |
string |
Also accepted: type (kind), style (kind), arrowHead (arrow), endArrow (arrow), stroke (line), from (fromSide), to (toSide), startSide (fromSide), endSide (toSide).
CustomPath
Section titled “CustomPath”A custom path in its own coordinate space (width × height), stretched to the frame.
| Option | Type | Description |
|---|---|---|
width (required) |
number |
|
height (required) |
number |
|
commands (required) |
Array< | { moveTo: [number, number] } | { lineTo: [number, number] } | { cubicTo: [[number, number], [number, number], [number, number]] } | { quadTo: [[number, number], [number, number]] } | { close: true } > |
|
fill |
boolean |
|
stroke |
boolean |
DataLabelContent
Section titled “DataLabelContent”Values: value, percent, category, series.
DataLabelsInput
Section titled “DataLabelsInput”| Option | Type | Description |
|---|---|---|
show |
DataLabelContent | DataLabelContent[] |
What each label shows (one or several). Default “value”. |
position |
"ctr" | "inEnd" | "inBase" | "outEnd" | "l" | "r" | "t" | "b" | "bestFit" |
Label placement, e.g. “outEnd”, “inEnd”, “ctr”, “inBase”, “bestFit”, “t”, “b”, “l”, “r”. One of ctr, inEnd, inBase, outEnd, l, r, t, b, bestFit. |
format |
string |
Excel number format, e.g. “0.0%”, “$#,##0”. |
style |
string | TextStyle |
|
separator |
string |
Between the parts of a label, e.g. “\n”. |
points |
"last" | "ends" | number[] |
Which points get a label: “last” (each line’s latest value), “ends” (first and last), or point indexes. Default every point, except where a line chart’s lines run too close to label them all. |
Also accepted: numberFormat (format), numFmt (format), placement (position), pos (position), fontSize (style).
DefineThemeOptions
Section titled “DefineThemeOptions”A brand’s colors by role, the way design systems name them. Only brand is needed; Artiwright
derives every role you leave out, and gives text in each color a shade that stays readable.
| Option | Type | Description |
|---|---|---|
brand (required) |
string |
The brand’s main color. Fills, bars and the first chart series use it exactly; text in it (the label above titles, links) uses a darker shade when the color itself is too light to read. |
accent |
string |
A second brand color: the second chart series and secondary fills. Derived from the brand if left out. |
palette |
string[] |
More brand colors, in order: the next chart series after brand and accent (up to four). |
text |
string |
Body and heading text. Default: a near-black tinted toward the brand (near-white on dark slides). |
background |
string |
The slide background. Default white (a near-black tinted toward the brand on dark slides). |
surface |
string |
Cards, panels and other surfaces on the background. Default: a faint tint of the background. |
good |
string |
Rising numbers and good news (KPI trends). Default green. |
bad |
string |
Falling numbers and bad news. Default red. |
fonts |
{ heading?: string; body?: string } |
Heading and body fonts; defaults to Aptos Display and Aptos. |
dark |
boolean |
Dark slides (light text on a dark background). |
name |
string |
Theme name shown in PowerPoint. Default “Custom”. |
radius |
number |
Corner radius of cards in px (panels and small boxes scale from it). Default 12. |
EncodeOptions
Section titled “EncodeOptions”| Option | Type | Description |
|---|---|---|
format |
ImageFormat |
|
scale |
number |
Pixels per px: 2 renders a 1280×720 slide at 2560×1440. Default 1. |
quality |
number |
0–1 for JPEG and WebP. Default 0.92. |
ErrorBarsInput
Section titled “ErrorBarsInput”| Option | Type | Description |
|---|---|---|
direction |
"x" | "y" |
“y” (default) or “x” (scatter and bubble only). One of x, y. |
bars |
"both" | "plus" | "minus" |
Both directions (default), only plus, or only minus. One of both, plus, minus. |
type |
"fixed" | "percent" | "stdDev" | "stdErr" | "custom" |
fixed amount, percentage of each value, standard deviations, standard error, or custom per point. One of fixed, percent, stdDev, stdErr, custom. |
value |
number |
|
plus |
number[] |
|
minus |
number[] |
|
noEndCap |
boolean |
|
line |
string | LineOptions |
FinalizeOptions
Section titled “FinalizeOptions”| Option | Type | Description |
|---|---|---|
output (required) |
string |
Where to publish: a new .pptx inside root. It must not exist; nothing is ever overwritten. |
root |
string |
The folder deliverables must stay inside. Default: the working directory. |
requirements |
FinalizeRequirements |
|
manifest |
boolean |
Write <output>.manifest.ndjson (inspect records plus a lint summary). Default true. |
receipt |
string | false |
Receipt path, or false for none. Default: <root>/.artiwright/receipts/<name>.<hash>.receipt.json. |
maxBytes |
number |
Largest file allowed, in bytes. Default 250 MB. |
numbers |
{ grids: unknown[][][]; source?: string } |
The values the deck’s numbers should come from: each workbook’s sheets as grids of cell values (a session passes its workbooks). A table or text box made largely of numbers not among them blocks; a few scattered ones are warnings. Waive with requirements.lint.waive: [“numbers/untraced”]. |
Also accepted: path (output), file (output), out (output), checks (requirements), require (requirements).
FinalizeRequirements
Section titled “FinalizeRequirements”| Option | Type | Description |
|---|---|---|
slideCount |
number |
Exact number of slides, cover included. |
nativeCharts |
string[] |
Slides (sl_…) that must hold a native chart, or charts (ch_…) that must be in the file. |
nativeTables |
string[] |
Slides (sl_…) that must hold a native table, or tables (tb_…) that must be in the file. |
tableTotals |
Array<{ table: string; totalRow?: number; columns: number[] }> |
Total rows that must equal the sum of the rows above them, within display rounding. |
fonts |
{ allowed: string[] } |
Font families the deck may use. |
lint |
{ block?: LintSeverity[]; waive?: string[]; blockPreexisting?: boolean } |
Lint findings that block (default: errors) and the ones waived (“rule” or “rule@anchor”). In an opened deck, findings on objects that are unchanged from the file are reported without blocking unless blockPreexisting is set. |
FooterOptions
Section titled “FooterOptions”| Option | Type | Description |
|---|---|---|
text |
string |
|
slideNumber |
boolean |
|
date |
string |
Frame in CSS px (96 DPI).
| Option | Type | Description |
|---|---|---|
x (required) |
number |
|
y (required) |
number |
|
w (required) |
number |
|
h (required) |
number |
Also accepted: width (w), height (h), left (x), top (y).
functions
Section titled “functions”The 494 worksheet functions Artiwright computes (Excel computes any others when the file opens).
Values: ABS, ACCRINT, ACCRINTM, ACOS, ACOSH, ACOT, ACOTH, ADDRESS, AGGREGATE, AMORDEGRC, AMORLINC, AND, ARABIC, AREAS, ARRAYTOTEXT, ASC, ASIN, ASINH, ATAN, ATAN2, ATANH, AVEDEV, AVERAGE, AVERAGEA, AVERAGEIF, AVERAGEIFS, BAHTTEXT, BASE, BESSELI, BESSELJ, BESSELK, BESSELY, BETA.DIST, BETA.INV, BETADIST, BETAINV, BIN2DEC, BIN2HEX, BIN2OCT, BINOM.DIST, BINOM.DIST.RANGE, BINOM.INV, BINOMDIST, BITAND, BITLSHIFT, BITOR, BITRSHIFT, BITXOR, BYCOL, BYROW, CEILING, CEILING.MATH, CEILING.PRECISE, CELL, CHAR, CHIDIST, CHIINV, CHISQ.DIST, CHISQ.DIST.RT, CHISQ.INV, CHISQ.INV.RT, CHISQ.TEST, CHITEST, CHOOSE, CHOOSECOLS, CHOOSEROWS, CLEAN, CODE, COLUMN, COLUMNS, COMBIN, COMBINA, COMPLEX, CONCAT, CONCATENATE, CONFIDENCE, CONFIDENCE.NORM, CONFIDENCE.T, CONVERT, CORREL, COS, COSH, COT, COTH, COUNT, COUNTA, COUNTBLANK, COUNTIF, COUNTIFS, COUPDAYBS, COUPDAYS, COUPDAYSNC, COUPNCD, COUPNUM, COUPPCD, COVAR, COVARIANCE.P, COVARIANCE.S, CRITBINOM, CSC, CSCH, CUMIPMT, CUMPRINC, DATE, DATEDIF, DATEVALUE, DAVERAGE, DAY, DAYS, DAYS360, DB, DBCS, DCOUNT, DCOUNTA, DDB, DEC2BIN, DEC2HEX, DEC2OCT, DECIMAL, DEGREES, DELTA, DEVSQ, DGET, DISC, DMAX, DMIN, DOLLAR, DOLLARDE, DOLLARFR, DPRODUCT, DROP, DSTDEV, DSTDEVP, DSUM, DURATION, DVAR, DVARP, EDATE, EFFECT, ENCODEURL, EOMONTH, ERF, ERF.PRECISE, ERFC, ERFC.PRECISE, ERROR.TYPE, EVEN, EXACT, EXP, EXPAND, EXPON.DIST, EXPONDIST, F.DIST, F.DIST.RT, F.INV, F.INV.RT, F.TEST, FACT, FACTDOUBLE, FALSE, FDIST, FILTER, FIND, FINDB, FINV, FISHER, FISHERINV, FIXED, FLOOR, FLOOR.MATH, FLOOR.PRECISE, FORECAST, FORECAST.LINEAR, FORMULATEXT, FREQUENCY, FTEST, FV, FVSCHEDULE, GAMMA, GAMMA.DIST, GAMMA.INV, GAMMADIST, GAMMAINV, GAMMALN, GAMMALN.PRECISE, GAUSS, GCD, GEOMEAN, GESTEP, GROWTH, HARMEAN, HEX2BIN, HEX2DEC, HEX2OCT, HLOOKUP, HOUR, HSTACK, HYPERLINK, HYPGEOM.DIST, HYPGEOMDIST, IF, IFERROR, IFNA, IFS, IMABS, IMAGINARY, IMARGUMENT, IMCONJUGATE, IMCOS, IMCOSH, IMCOT, IMCSC, IMCSCH, IMDIV, IMEXP, IMLN, IMLOG10, IMLOG2, IMPOWER, IMPRODUCT, IMREAL, IMSEC, IMSECH, IMSIN, IMSINH, IMSQRT, IMSUB, IMSUM, IMTAN, INDEX, INDIRECT, INFO, INT, INTERCEPT, INTRATE, IPMT, IRR, ISBLANK, ISERR, ISERROR, ISEVEN, ISFORMULA, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISO.CEILING, ISODD, ISOMITTED, ISOWEEKNUM, ISPMT, ISREF, ISTEXT, KURT, LAMBDA, LARGE, LCM, LEFT, LEFTB, LEN, LENB, LET, LINEST, LN, LOG, LOG10, LOGEST, LOGINV, LOGNORM.DIST, LOGNORM.INV, LOGNORMDIST, LOOKUP, LOWER, MAKEARRAY, MAP, MATCH, MAX, MAXA, MAXIFS, MDETERM, MDURATION, MEDIAN, MID, MIDB, MIN, MINA, MINIFS, MINUTE, MINVERSE, MIRR, MMULT, MOD, MODE, MODE.MULT, MODE.SNGL, MONTH, MROUND, MULTINOMIAL, MUNIT, N, NA, NEGBINOM.DIST, NEGBINOMDIST, NETWORKDAYS, NETWORKDAYS.INTL, NOMINAL, NORM.DIST, NORM.INV, NORM.S.DIST, NORM.S.INV, NORMDIST, NORMINV, NORMSDIST, NORMSINV, NOT, NOW, NPER, NPV, NUMBERVALUE, OCT2BIN, OCT2DEC, OCT2HEX, ODD, ODDFPRICE, ODDFYIELD, ODDLPRICE, ODDLYIELD, OFFSET, OR, PDURATION, PEARSON, PERCENTILE, PERCENTILE.EXC, PERCENTILE.INC, PERCENTRANK, PERCENTRANK.EXC, PERCENTRANK.INC, PERMUT, PERMUTATIONA, PHI, PHONETIC, PI, PMT, POISSON, POISSON.DIST, POWER, PPMT, PRICE, PRICEDISC, PRICEMAT, PROB, PRODUCT, PROPER, PV, QUARTILE, QUARTILE.EXC, QUARTILE.INC, QUOTIENT, RADIANS, RAND, RANDARRAY, RANDBETWEEN, RANK, RANK.AVG, RANK.EQ, RATE, RECEIVED, REDUCE, REGEXEXTRACT, REGEXREPLACE, REGEXTEST, REPLACE, REPLACEB, REPT, RIGHT, RIGHTB, ROMAN, ROUND, ROUNDDOWN, ROUNDUP, ROW, ROWS, RRI, RSQ, SCAN, SEARCH, SEARCHB, SEC, SECH, SECOND, SEQUENCE, SERIESSUM, SHEET, SHEETS, SIGN, SIN, SINH, SKEW, SKEW.P, SLN, SLOPE, SMALL, SORT, SORTBY, SQRT, SQRTPI, STANDARDIZE, STDEV, STDEV.P, STDEV.S, STDEVA, STDEVP, STDEVPA, STEYX, SUBSTITUTE, SUBTOTAL, SUM, SUMIF, SUMIFS, SUMPRODUCT, SUMSQ, SUMX2MY2, SUMX2PY2, SUMXMY2, SWITCH, SYD, T, T.DIST, T.DIST.2T, T.DIST.RT, T.INV, T.INV.2T, T.TEST, TAKE, TAN, TANH, TBILLEQ, TBILLPRICE, TBILLYIELD, TDIST, TEXT, TEXTAFTER, TEXTBEFORE, TEXTJOIN, TEXTSPLIT, TIME, TIMEVALUE, TINV, TOCOL, TODAY, TOROW, TRANSPOSE, TREND, TRIM, TRIMMEAN, TRUE, TRUNC, TTEST, TYPE, UNICHAR, UNICODE, UNIQUE, UPPER, VALUE, VALUETOTEXT, VAR, VAR.P, VAR.S, VARA, VARP, VARPA, VDB, VLOOKUP, VSTACK, WEEKDAY, WEEKNUM, WEIBULL, WEIBULL.DIST, WORKDAY, WORKDAY.INTL, WRAPCOLS, WRAPROWS, XIRR, XLOOKUP, XMATCH, XNPV, XOR, YEAR, YEARFRAC, YIELD, YIELDDISC, YIELDMAT, Z.TEST, ZTEST.
geometries
Section titled “geometries”Preset geometries for shapes.add({ geometry }), from ECMA-376.
Values: line, lineInv, triangle, rtTriangle, rect, diamond, parallelogram, trapezoid, nonIsoscelesTrapezoid, pentagon, hexagon, heptagon, octagon, decagon, dodecagon, star4, star5, star6, star7, star8, star10, star12, star16, star24, star32, roundRect, round1Rect, round2SameRect, round2DiagRect, snipRoundRect, snip1Rect, snip2SameRect, snip2DiagRect, plaque, ellipse, teardrop, homePlate, chevron, pieWedge, pie, blockArc, donut, noSmoking, rightArrow, leftArrow, upArrow, downArrow, stripedRightArrow, notchedRightArrow, bentUpArrow, leftRightArrow, upDownArrow, leftUpArrow, leftRightUpArrow, quadArrow, leftArrowCallout, rightArrowCallout, upArrowCallout, downArrowCallout, leftRightArrowCallout, upDownArrowCallout, quadArrowCallout, bentArrow, uturnArrow, circularArrow, leftCircularArrow, leftRightCircularArrow, curvedRightArrow, curvedLeftArrow, curvedUpArrow, curvedDownArrow, swooshArrow, cube, can, lightningBolt, heart, sun, moon, smileyFace, irregularSeal1, irregularSeal2, foldedCorner, bevel, frame, halfFrame, corner, diagStripe, chord, arc, leftBracket, rightBracket, leftBrace, rightBrace, bracketPair, bracePair, straightConnector1, bentConnector2, bentConnector3, bentConnector4, bentConnector5, curvedConnector2, curvedConnector3, curvedConnector4, curvedConnector5, callout1, callout2, callout3, accentCallout1, accentCallout2, accentCallout3, borderCallout1, borderCallout2, borderCallout3, accentBorderCallout1, accentBorderCallout2, accentBorderCallout3, wedgeRectCallout, wedgeRoundRectCallout, wedgeEllipseCallout, cloudCallout, cloud, ribbon, ribbon2, ellipseRibbon, ellipseRibbon2, leftRightRibbon, verticalScroll, horizontalScroll, wave, doubleWave, plus, flowChartProcess, flowChartDecision, flowChartInputOutput, flowChartPredefinedProcess, flowChartInternalStorage, flowChartDocument, flowChartMultidocument, flowChartTerminator, flowChartPreparation, flowChartManualInput, flowChartManualOperation, flowChartConnector, flowChartPunchedCard, flowChartPunchedTape, flowChartSummingJunction, flowChartOr, flowChartCollate, flowChartSort, flowChartExtract, flowChartMerge, flowChartOfflineStorage, flowChartOnlineStorage, flowChartMagneticTape, flowChartMagneticDisk, flowChartMagneticDrum, flowChartDisplay, flowChartDelay, flowChartAlternateProcess, flowChartOffpageConnector, actionButtonBlank, actionButtonHome, actionButtonHelp, actionButtonInformation, actionButtonForwardNext, actionButtonBackPrevious, actionButtonEnd, actionButtonBeginning, actionButtonReturn, actionButtonDocument, actionButtonSound, actionButtonMovie, gear6, gear9, funnel, mathPlus, mathMinus, mathMultiply, mathDivide, mathEqual, mathNotEqual, cornerTabs, squareTabs, plaqueTabs, chartX, chartStar, chartPlus.
Geometry
Section titled “Geometry”Geometry: PresetGeometry | "textbox" | "custom"HelpOptions
Section titled “HelpOptions”| Option | Type | Description |
|---|---|---|
include |
string | string[] |
Sections to show: summary, signature, doc, options, fields, values, aliases, examples. Default all. |
search |
string |
Case-insensitive regular expression over the catalog; lists matching entries. |
maxChars |
number |
Output budget in characters. Default 6000. |
Also accepted: query (search), fields (include), limit (maxChars), budget (maxChars).
ImageFormat
Section titled “ImageFormat”Values: png, jpeg, webp.
ImageOptions
Section titled “ImageOptions”| Option | Type | Description |
|---|---|---|
source (required) |
ImageSource |
|
frame (required) |
Frame |
|
name |
string |
|
alt |
string |
Alternative text. Strongly recommended. |
fit |
"contain" | "cover" | "fill" |
contain (default): shrink the frame to the image’s aspect ratio, centered. cover: fill the frame and crop the overflow evenly. fill: stretch to the frame. One of contain, cover, fill. |
crop |
{ left?: number; top?: number; right?: number; bottom?: number } |
Extra crop applied first, as fractions (0.1 = 10%) of the source image. |
clip |
PresetGeometry |
Clip the picture to a preset shape, e.g. “ellipse”. |
radius |
number | string |
Corner radius in px or a token; clips to roundRect. |
line |
string | LineOptions |
|
shadow |
string |
|
rotation |
number |
Degrees, clockwise. |
Also accepted: src (source), path (source), url (source), data (source), image (source), position (frame), rect (frame), box (frame), description (alt), altText (alt), objectFit (fit), sizing (fit), rotate (rotation), border (line).
ImageSource
Section titled “ImageSource”ImageSource: | string | Uint8Array | { path: string } | { bytes: Uint8Array } | { dataUrl: string } /** SVG markup, with a raster `fallback` (PNG) for apps that don't show SVG. */ | { svg: string; fallback: Uint8Array | string }inspectKinds
Section titled “inspectKinds”Record kinds for deck.inspect({ kind }).
Values: deck, slide, text, shape, image, table, chart, notes, thread, layout.
InspectOptions
Section titled “InspectOptions”| Option | Type | Description |
|---|---|---|
kind |
string | string[] |
Record kinds, comma separated or as a list. Default: everything except “layout”. |
slide |
string | number |
Only this slide: its anchor (“sl_…”) or 1-based number. |
search |
string |
Case-insensitive regular expression matched against each record’s JSON. |
include |
string | string[] |
Fields to keep (kind, id and slide are always kept). |
exclude |
string | string[] |
Fields to drop. |
target |
string | { id: string; before?: number; after?: number } |
Records around one id: { id, before: 3, after: 3 }, or just the id. |
maxChars |
number |
Output budget in characters. Default 12000; a truncation notice is always the last line. |
Also accepted: kinds (kind), type (kind), query (search), filter (search), fields (include), limit (maxChars), budget (maxChars), around (target).
Kpi: Kpi
| Option | Type | Description |
|---|---|---|
label (required) |
string |
|
value (required) |
string |
|
delta |
string |
|
trend |
"up" | "down" | "flat" |
Colors the delta: up green, down red. One of up, down, flat. |
layouts
Section titled “layouts”Layout keys for slides.add({ layout }).
Values: title, title-and-content, section, two-content, comparison, title-only, blank, content-with-caption, picture-with-caption, title-vertical-text, vertical-title-text.
LegendPosition
Section titled “LegendPosition”Values: bottom, top, left, right, top-right.
LineOptions
Section titled “LineOptions”| Option | Type | Description |
|---|---|---|
width |
number |
px |
color |
string |
|
dash |
"solid" | "dash" | "sysDot" | "sysDash" | "dashDot" | "lgDash" | "lgDashDot" | "sysDashDot" |
One of solid, dash, sysDot, sysDash, dashDot, lgDash, lgDashDot, sysDashDot. |
cap |
"flat" | "round" | "square" |
One of flat, round, square. |
join |
"round" | "bevel" | "miter" |
One of round, bevel, miter. |
head |
ArrowType | ArrowOptions |
|
tail |
ArrowType | ArrowOptions |
Also accepted: thickness (width), style (dash), dashType (dash), arrowHead (head), arrowTail (tail), beginArrow (head), endArrow (tail).
LintOptions
Section titled “LintOptions”| Option | Type | Description |
|---|---|---|
rules |
string | string[] |
Rule ids or prefixes (“text/”, “layout/*”). Default: every rule. |
severity |
LintSeverity |
Only this severity and above: “warn” (default, everything) or “error”. |
slide |
string | number |
Only this slide: its anchor or 1-based number. |
Also accepted: rule (rules), only (rules), level (severity), minSeverity (severity).
lintRules
Section titled “lintRules”Rules for deck.lint({ rules }). text/overflow (error): Text runs past the bottom of its box (autofit off), or a line that does not wrap runs past its side. layout/off-canvas (error): An element extends more than 2 px outside the slide. layout/sparse (warn): The slide’s content sits at the top and leaves more than 40% of the slide empty below it. layout/overlap (warn): Text overlaps other text, a chart, a table or a picture. layout/misaligned (warn): Matching text side by side (the same size in boxes of the same width, such as card labels or values) starts at different heights. text/min-size (warn): A paragraph of 40 words or more under 18 px, body text under 14 px, or any text under 11 px. text/typed-bullet (warn): A paragraph starts with a typed bullet character (•, –, -, *) instead of a real bullet. copy/symbols (warn): Text joins phrases with symbols (|, •, →) where words would read better. copy/punctuation (warn): Slide text joins clauses with em dashes, which read as machine-written, or puts a space before a comma. copy/precision (warn): A figure in text, a table or chart labels shows more digits than a room reads: three decimals or more on five significant digits, or four with a currency, scale or percent (“$45.984B”). copy/repeated-label (warn): The label above a title (the eyebrow) only repeats words of the title. table/total (warn): A table’s last row is a total that differs from the sum of the rows above it. layout/dense (warn): A slide holds more than 110 words of text outside its tables and charts. layout/table-run (warn): Three slides or more in a row are each carried by a table, so that part of the deck reads like a document. chart/blank-categories (warn): A chart blanks out category names between named ones to thin its axis labels; PowerPoint then spaces the remaining labels unevenly. deck/cover (warn): A deck of four slides or more opens on a chart, a table or a row of figures instead of a cover with its title. a11y/contrast (warn): Text contrast under 4.5:1 (3:1 for large text) against what is behind it. content/placeholder (error): An empty placeholder, “Click to add…” or lorem ipsum. image/distorted (error): A picture’s aspect ratio differs from its image by more than 2%. image/upscaled (warn): A raster picture is shown at more than 1.5× its pixels. font/substituted (warn): A font is not available to the renderer, so it was drawn with a stand-in. font/too-many (warn): The deck uses more than two font families. chart/placeholder-title (error): A chart title is empty or “Chart Title”. chart/3d (warn): A chart is drawn in 3D, which distorts the values it shows. chart/axis-unit (warn): A chart’s series are named as percentages, but its value axis shows bare numbers. connector/orphan (warn): A connector end is not glued to a shape, or the line crosses text.
Values: text/overflow, layout/off-canvas, layout/sparse, layout/overlap, layout/misaligned, text/min-size, text/typed-bullet, copy/symbols, copy/punctuation, copy/precision, copy/repeated-label, table/total, layout/dense, layout/table-run, chart/blank-categories, deck/cover, a11y/contrast, content/placeholder, image/distorted, image/upscaled, font/substituted, font/too-many, chart/placeholder-title, chart/3d, chart/axis-unit, connector/orphan.
LintSeverity
Section titled “LintSeverity”Values: error, warn.
Locator
Section titled “Locator”Locator: Array<string | [string, ...unknown[]]>Where an op acts: a root (“deck” or an anchor such as “sl_7Q2M4K9A”) followed by property names and calls, e.g. [“sl_7Q2M4K9A”, “placeholders”, [“get”, “title”]]. A dotted string (“sl_7Q2M4K9A.shapes”) is accepted as shorthand when there are no calls.
MarkerInput
Section titled “MarkerInput”| Option | Type | Description |
|---|---|---|
symbol |
"none" | "circle" | "square" | "diamond" | "triangle" | "x" | "star" | "dash" | "dot" | "plus" |
One of none, circle, square, diamond, triangle, x, star, dash, dot, plus. |
size |
number |
Points, 2–72. |
fill |
string |
|
line |
string | LineOptions |
Also accepted: shape (symbol), color (fill).
MasterOptions
Section titled “MasterOptions”| Option | Type | Description |
|---|---|---|
background |
string |
Background for every slide: color, gradient or pattern. |
titleStyle |
string | TextStyle |
Default title style (size in px, font, color, …). Use font “+mj-lt” for the theme heading font. |
bodyStyle |
string | TextStyle |
Default body style for level 1; deeper levels step down in size. |
bullets |
string[] | false |
Bullet characters per level; false for no bullets. |
MontageOptions
Section titled “MontageOptions”| Option | Type | Description |
|---|---|---|
columns |
number |
Tiles per row. Default: up to 4, fewer for small decks. |
tileWidth |
number |
Width of each tile in px. Default 320. |
gap |
number |
Space between tiles and around the sheet, in px. Default 16. |
background |
string |
Sheet background. Default “#E5E7EB”. |
labels |
string[] | false |
Captions under each tile, e.g. slide numbers. Default: “1”, “2”, … |
format |
ImageFormat |
|
scale |
number |
Pixels per px: 2 renders a 1280×720 slide at 2560×1440. Default 1. |
quality |
number |
0–1 for JPEG and WebP. Default 0.92. |
numberFormats
Section titled “numberFormats”Number format shortcuts; any Excel format code works too.
Values: general = General, integer = #,##0, number = #,##0.00, percent = 0%, percent1 = 0.0%, currency = $#,##0.00, currency0 = $#,##0, accounting = _($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_), millions = $#,##0.0,,"M", thousands = #,##0,"K", date = yyyy-mm-dd, datetime = yyyy-mm-dd hh:mm, time = hh:mm, text = @.
| Option | Type | Description |
|---|---|---|
target (required) |
Locator | string | unknown[] |
A locator, a dotted string, or (in apply) a locator starting with { $result: n }. |
op (required) |
string |
Method name, or “=name” to assign a property. |
args |
unknown[] |
|
ids |
string[] |
Creation ids the op made, so a replay gives every object the same anchor. |
times |
string[] |
Timestamps the op took (comment dates), replayed the same way. |
OpLogJSON
Section titled “OpLogJSON”| Option | Type | Description |
|---|---|---|
format (required) |
"artiwright.ops.v1" |
|
ops (required) |
Array<Op & { step: number }> |
The ops in order; step groups ops that undo together. |
assets (required) |
Record<string, string> |
Image bytes referenced by { $asset: sha256 }, base64. |
cursor (required) |
number |
Steps currently applied (the rest can be redone). |
ParagraphInput
Section titled “ParagraphInput”| Option | Type | Description |
|---|---|---|
text |
string |
|
runs |
Array<string | RunInput> |
|
style |
string | TextStyle |
|
bullet |
BulletInput |
|
level |
number |
0–8 |
align |
TextStyle["align"] |
|
spaceBefore |
number |
px |
spaceAfter |
number |
px |
lineHeight |
number | string |
Multiple (1.25) or length (“28px”). |
indent |
number |
px; defaults are set for bulleted paragraphs. |
marginLeft |
number |
|
math |
string |
An Office equation shown as this paragraph: OMML (the content of m:oMath). text is then its plain-text form, for readers that cannot show equations. math(slide, latex, …) makes both. |
patterns
Section titled “patterns”Pattern fills: pattern(<name>, fg, bg).
Values: pct5, pct10, pct20, pct25, pct30, pct40, pct50, pct60, pct70, pct75, pct80, pct90, horz, vert, ltHorz, ltVert, dkHorz, dkVert, narHorz, narVert, dashHorz, dashVert, cross, dnDiag, upDiag, ltDnDiag, ltUpDiag, dkDnDiag, dkUpDiag, wdDnDiag, wdUpDiag, dashDnDiag, dashUpDiag, diagCross, smCheck, lgCheck, smGrid, lgGrid, dotGrid, smConfetti, lgConfetti, horzBrick, diagBrick, solidDmnd, openDmnd, dotDmnd, plaid, sphere, weave, divot, shingle, wave, trellis, zigZag.
PlaceholderContent
Section titled “PlaceholderContent”PlaceholderContent: | TextInput | { text: TextInput; textStyle?: string | TextStyle; textBox?: TextBoxOptions; frame?: Frame } | ({ image: ImageOptions["source"] } & Omit<ImageOptions, "source" | "frame">)What a placeholder can hold: text (string or paragraphs), text with options, or a picture.
PointInput
Section titled “PointInput”| Option | Type | Description |
|---|---|---|
index (required) |
number |
0-based point index. |
fill |
string |
|
line |
string | LineOptions |
|
explode |
number |
Pie slice offset, percent of the radius. |
marker |
MarkerInput |
PresetGeometry
Section titled “PresetGeometry”PresetGeometry: (typeof PRESET_GEOMETRIES)[number]Quadrant
Section titled “Quadrant”Quadrant: Quadrant
| Option | Type | Description |
|---|---|---|
title (required) |
string |
|
text |
string |
|
highlight |
boolean |
Corner radius tokens, e.g. rounded-lg.
Values: rounded-none, rounded-sm, rounded, rounded-md, rounded-lg, rounded-xl, rounded-2xl, rounded-3xl, rounded-full.
RecipeStyle
Section titled “RecipeStyle”Styling that compose recipes take from the theme. Recipes refer to these slots by name
(className="$title", radius="$r-lg"), and compose fills them in from the deck’s theme.
| Option | Type | Description |
|---|---|---|
title (required) |
string |
Slide titles. |
display (required) |
string |
Cover and closing titles. |
eyebrow (required) |
string |
The small label above a title. |
num (required) |
string |
Weight and font of large numbers (KPI values, big stats, prices). |
"r-lg" (required) |
number |
Corner radius of cards, in px. |
"r-md" (required) |
number |
Corner radius of panels. |
"r-sm" (required) |
number |
Corner radius of small boxes. |
tint (required) |
number |
How muted text tints (tx1+40) apply: 1 as written, below 1 milder (for inks whose tints lose contrast quickly), negative to darken instead (light text on dark slides). |
colors (required) |
SemanticColors |
Colors with a meaning, as color tokens: good and bad trends, their panels, and a soft accent. |
table |
TableTheme |
Table colors for decks; without it tables keep their fixed style colors. |
RenderOptions
Section titled “RenderOptions”RenderOptions: EncodeOptionsRunInput
Section titled “RunInput”| Option | Type | Description |
|---|---|---|
text |
string |
|
style |
string | TextStyle |
|
link |
string | { url: string; tooltip?: string } |
Absolute http(s) or mailto URL, or { url, tooltip }. |
break |
true |
A soft line break inside the paragraph. |
field |
"slideNumber" | "date" |
A live field instead of fixed text: the slide number or the date. One of slideNumber, date. |
ScalePoint
Section titled “ScalePoint”| Option | Type | Description |
|---|---|---|
type (required) |
"min" | "max" | "number" | "percent" | "percentile" | "formula" |
One of min, max, number, percent, percentile, formula. |
value |
number | string |
SemanticColors
Section titled “SemanticColors”| Option | Type | Description |
|---|---|---|
good (required) |
string |
|
bad (required) |
string |
|
"good-bg" (required) |
string |
|
"good-ink" (required) |
string |
|
"bad-bg" (required) |
string |
|
"bad-ink" (required) |
string |
|
soft (required) |
string |
A light fill behind accent-colored text (initials, badges). |
"accent-ink" (required) |
string |
Text in the brand color (big numbers, dates, initials): accent1, or a shade of it that reads on the background. |
"on-accent" (required) |
string |
Text on a brand-colored fill (accent1): the background or the text color, whichever reads better. |
"on-accent-muted" (required) |
string |
Secondary text on a brand-colored fill: on-accent, softened when it still reads. |
shades
Section titled “shades”Shades for every color family, e.g. blue-600.
Values: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950.
shadows
Section titled “shadows”Shadow tokens, e.g. shadow-md.
Values: shadow-none, shadow-sm, shadow, shadow-md, shadow-lg, shadow-xl, shadow-2xl.
ShapeOptions
Section titled “ShapeOptions”| Option | Type | Description |
|---|---|---|
geometry |
Geometry |
Any ECMA-376 preset (rect, roundRect, ellipse, rightArrow, star5, …), “textbox” or “custom”. Default “rect”. |
frame (required) |
Frame |
|
name |
string |
Role name, e.g. “primary-heading”. |
alt |
string |
Alternative text for screen readers. |
fill |
string |
Color, gradient (“linear(135deg, white, sky-100)”), pattern or “none”. |
line |
string | LineOptions |
Stroke string (“2px dashed slate-300”) or options. |
shadow |
string |
Shadow token (shadow-sm … shadow-2xl) or “x y blur color”. |
radius |
number | string |
Corner radius in px or a token (rounded-xl). Turns rect into roundRect. |
adjust |
Record<string, number> |
Raw preset adjust values, e.g. { adj: 16667 } (1/100000 of the shorter side). |
rotation |
number |
Degrees, clockwise. |
flipH |
boolean |
|
flipV |
boolean |
|
className |
string |
Tailwind-style visual classes; explicit options win. |
text |
TextInput |
|
textStyle |
string | TextStyle |
Default style for every run: style string or object. |
textBox |
TextBoxOptions |
|
paths |
CustomPath[] |
Required when geometry is “custom”. |
Also accepted: type (geometry), shape (geometry), preset (geometry), position (frame), rect (frame), box (frame), bounds (frame), color (fill (the shape) or textStyle: { color } (its text)), background (fill), backgroundColor (fill), stroke (line), border (line), outline (line), rotate (rotation), description (alt), altText (alt), class (className), style (textStyle), font (textStyle.font), fontSize (textStyle.size), textColor (textStyle.color), bold (textStyle.bold), align (textStyle.align), valign (textBox.valign), padding (textBox.insets), content (text), label (text).
SheetChartOptions
Section titled “SheetChartOptions”| Option | Type | Description |
|---|---|---|
data (required) |
string |
The cells to plot: “A1:C13” on this sheet or “Model!A1:C13”. Headers become series names. |
seriesIn |
"columns" | "rows" |
Series run down columns (default) or across rows. One of columns, rows. |
at (required) |
string |
The chart’s top-left cell. |
size |
{ w: number; h: number } |
Size in px (default 480×288), or to for the bottom-right cell. |
to |
string |
|
series |
Array<Partial<ChartSeriesInput>> |
Per-series look, by position: [{ fill: "accent2" }, { type: "line", axis: "secondary" }]. |
name |
string |
|
alt |
string |
|
title |
string | { text: string; style?: string | TextStyle; overlay?: boolean } |
|
legend |
false | LegendPosition | { position?: LegendPosition; overlay?: boolean; style?: string | TextStyle } |
Position, false to hide, or options. Default bottom. |
dataLabels |
boolean | DataLabelsInput |
Labels on every series. true = values. |
stacked |
boolean | "percent" |
Column, bar, line and area charts: stack series, or stack to 100%. |
axes |
{ x?: AxisInput; y?: AxisInput; y2?: AxisInput } |
y2: the secondary value axis on the right, for series with axis: “secondary”. |
gap |
number |
Space between bar groups, percent of a bar’s width (0–500). |
overlap |
number |
Bar overlap within a group, percent (-100–100). |
holeSize |
number |
Doughnut hole, percent of the diameter (10–90). |
firstSliceAngle |
number |
Pie and doughnut rotation in degrees. |
varyColors |
boolean |
A different color for every point. |
radarStyle |
"marker" | "filled" | "lines" |
One of marker, filled, lines. |
blanks |
"gap" | "zero" | "span" |
How gaps draw: leave a gap, drop to zero, or connect across. One of gap, zero, span. |
style |
string | TextStyle |
Default text for the chart: font, size, color. |
background |
string |
|
border |
string | LineOptions |
|
plotBackground |
string |
|
upDownBars |
boolean |
Stock charts with four series (open, high, low, close). |
highLowLines |
boolean |
|
totals |
number[] |
Waterfall: indexes of the points that are totals (full bars from zero), e.g. [0, 4]. |
connectorLines |
boolean |
Waterfall: lines joining the bars (default true). |
parentLabels |
"overlapping" | "banner" | "none" |
Treemap: parent labels (default “overlapping”). One of overlapping, banner, none. |
bins |
number | { count?: number; width?: number } |
Histogram: the number of bins, or their width (default: automatic). |
threeD |
boolean |
Column, bar, line, area and pie charts drawn in 3D. 3D distorts values: prefer 2D. |
split |
{ by: "position" | "value" | "percent" | "custom"; value?: number; points?: number[]; /** Size of the second plot, percent of the first (5–200, default 75). */ secondSize?: number } |
Pie-of-pie and bar-of-pie: which points go to the second plot. By “position” (the last value points), “value” (points below value), “percent” (below value percent of the whole) or “custom” (the points listed). Default: Office’s automatic split. |
wireframe |
boolean |
Surface and contour charts: lines only, no fill. |
boxWhisker |
{ /** A line through the means (default false). */ meanLine?: boolean; /** An x at each mean (default true). */ meanMarkers?: boolean; /** Points beyond the whiskers (default true). */ outliers?: boolean; /** Every value as a point (default false). */ innerPoints?: boolean; /** Median method (default "exclusive"). */ quartiles?: "exclusive" | "inclusive" } |
Box & whisker: what to draw besides the boxes. |
SheetImageOptions
Section titled “SheetImageOptions”| Option | Type | Description |
|---|---|---|
source (required) |
ImageSource |
|
at (required) |
string |
|
size |
{ w: number; h: number } |
Size in px (default the image’s own size). |
name |
string |
|
alt |
string |
SheetRenderOptions
Section titled “SheetRenderOptions”| Option | Type | Description |
|---|---|---|
range |
string |
The cells to draw, e.g. “A1:H30” (default: everything used). |
headers |
boolean |
Row and column headers (default true). |
scale |
number |
Pixels per px (default 1). |
format |
"png" | "jpeg" | "webp" |
One of png, jpeg, webp. |
SheetTableOptions
Section titled “SheetTableOptions”| Option | Type | Description |
|---|---|---|
name |
string |
Unique in the workbook, no spaces; default “Table1”, “Table2”, … |
style |
string |
A built-in style, e.g. “TableStyleMedium2” (default), “TableStyleLight9”; “none” for plain. |
header |
boolean |
The first row holds the column names (default true). |
totals |
Record<string, TotalFunction | { label: string } | { formula: string }> |
A totals row below the data: per column name, a function, a label or a formula. |
rowStripes |
boolean |
|
columnStripes |
boolean |
|
firstColumn |
boolean |
|
lastColumn |
boolean |
|
filter |
boolean |
Filter buttons on the header (default true). |
Values: top, right, bottom, left.
SlideElement
Section titled “SlideElement”SlideElement: Shape | Picture | Table | Chart | Connector | Group | KeptElementAnything that can sit on a slide, layout or master, in z-order (first is at the back).
SlideOptions
Section titled “SlideOptions”| Option | Type | Description |
|---|---|---|
layout |
string |
Layout key, e.g. “title”, “title-and-content”, “two-content”. Default “blank”. |
background |
string |
Background for this slide only. |
placeholders |
Record<string, PlaceholderContent> |
Fill placeholders by name, e.g. { title: “Q3”, body: [“One”, “Two”] }. |
title |
PlaceholderContent |
|
subtitle |
PlaceholderContent |
|
body |
PlaceholderContent |
|
left |
PlaceholderContent |
|
right |
PlaceholderContent |
|
leftHeading |
PlaceholderContent |
|
rightHeading |
PlaceholderContent |
|
caption |
PlaceholderContent |
|
picture |
PlaceholderContent |
|
notes |
TextInput |
Speaker notes. |
Also accepted: bg (background), backgroundColor (background), speakerNotes (notes), note (notes), heading (title), subTitle (subtitle), content (body), text (body), image (picture).
SlideSize
Section titled “SlideSize”SlideSize: "16:9" | "4:3" | { width: number; height: number }TableOptions
Section titled “TableOptions”| Option | Type | Description |
|---|---|---|
frame (required) |
Frame |
|
name |
string |
|
alt |
string |
|
rows (required) |
Cell[][] |
Rows of cells, HTML-style: a cell with colSpan/rowSpan covers later positions, and the covered positions are left out of later cells in that row or the rows below. |
columns |
Array<number | string> |
Column widths in px or fractions (“2fr”). Default: by content, so short columns stay narrow and long text gets the room (no column narrower than its longest word, where the width allows). |
header |
boolean | number |
Number of header rows (default 1). false = 0. |
style |
TableStylePreset |
Default “grid”. |
headerFill |
string |
|
headerColor |
string |
|
bandFill |
string |
Fill for alternating body rows. |
border |
string |
Border stroke used by the preset, e.g. “1px solid slate-300”. |
textStyle |
string | TextStyle |
Style for body cells. |
headerStyle |
string | TextStyle |
Style for header cells (merged over textStyle). |
padding |
number | { x: number; y: number } |
Cell padding in px: one value or { x, y }. Default { x: 12, y: 8 }. |
rowHeight |
number |
Minimum row height in px. Default: frame height divided by the row count. |
rowHeights |
number[] |
Each row’s height in px, overriding rowHeight (compose sets these from the measured text). |
numberAlign |
TextStyle["align"] |
Alignment for columns whose body cells are all numbers, header included. Default “right”. |
Also accepted: data (rows), cells (rows), body (rows), colWidths (columns), columnWidths (columns), headerRows (header), position (frame), description (alt), preset (style), fontSize (textStyle.size), cellPadding (padding), margin (padding).
TableStylePreset
Section titled “TableStylePreset”Values: grid, striped, minimal, none.
TableTheme
Section titled “TableTheme”Colors tables take from the theme (color tokens or hex).
| Option | Type | Description |
|---|---|---|
band (required) |
string |
Fill of banded rows (“striped”). |
rule (required) |
string |
Color of cell rules. |
headerText (required) |
string |
Text on the header fill (accent1). |
TextBoxOptions
Section titled “TextBoxOptions”| Option | Type | Description |
|---|---|---|
insets |
number | { top?: number; right?: number; bottom?: number; left?: number } |
px: one value, or per side. |
valign |
"top" | "middle" | "bottom" |
One of top, middle, bottom. |
wrap |
boolean |
false turns off word wrap. |
autofit |
"none" | "shrink" | "resize" |
none: keep the box size; shrink: shrink text on overflow; resize: grow the box. One of none, shrink, resize. |
columns |
number |
|
columnGap |
number |
px |
vertical |
"vert" | "vert270" | "eaVert" |
Rotated text: “vert” (90°), “vert270”, or “eaVert” (stacked, as in vertical layouts). One of vert, vert270, eaVert. |
TextInput
Section titled “TextInput”TextInput: string | Array<string | ParagraphInput>A string (“\n” starts a paragraph), or one entry per paragraph.
textSizes
Section titled “textSizes”Text size tokens for className and textStyle, e.g. text-3xl.
Values: xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, 8xl, 9xl.
TextStyle
Section titled “TextStyle”Text style as an object; every field also has a string form via parseTextStyle.
| Option | Type | Description |
|---|---|---|
size |
number |
px |
bold |
boolean |
|
weight |
number |
100–900; 600 and above renders bold. |
italic |
boolean |
|
underline |
boolean | "single" | "double" |
|
strike |
boolean |
|
color |
string |
|
highlight |
string |
|
font |
string |
|
superscript |
boolean |
|
subscript |
boolean |
|
caps |
"all" | "small" |
One of all, small. |
letterSpacing |
number |
em |
lineHeight |
number | string |
Multiple of the font size (1.25) or px (“28px”). |
align |
"left" | "center" | "right" | "justify" |
One of left, center, right, justify. |
valign |
"top" | "middle" | "bottom" |
One of top, middle, bottom. |
Also accepted: fontSize (size), fontFamily (font), fontWeight (weight), textAlign (align), verticalAlign (valign), textDecoration (underline), textTransform (caps), fontStyle (italic), colour (color).
themeColors
Section titled “themeColors”Theme color slots, usable anywhere a color is (e.g. accent1, tx1+20).
Values: dk1, lt1, dk2, lt2, accent1, accent2, accent3, accent4, accent5, accent6, hlink, folHlink, tx1, bg1, tx2, bg2.
ThemeColorSlot
Section titled “ThemeColorSlot”ThemeColorSlot: (typeof THEME_COLOR_SLOTS)[number]ThemeOptions
Section titled “ThemeOptions”| Option | Type | Description |
|---|---|---|
name |
string |
|
colors |
Partial<Record<ThemeColorSlot | "tx1" | "bg1" | "tx2" | "bg2", string>> |
Any concrete color (hex, rgb(), palette token). Theme references are not allowed here. |
fonts |
{ heading?: string; body?: string } |
ThemePreset
Section titled “ThemePreset”| Option | Type | Description |
|---|---|---|
name (required) |
string |
Theme name shown in PowerPoint’s Design tab. |
colors (required) |
Record<ThemeColorSlot, string> |
The twelve theme colors, with the usual meaning: dk1 is the darkest ink, lt1 the lightest paper. Chart series use accent1 to accent6 in order. |
fonts (required) |
{ heading: string; body: string } |
|
dark (required) |
boolean |
Decks are light text on dk1 (PowerPoint’s dark color mapping). Workbooks stay light. |
workbook |
Partial<Record<ThemeColorSlot, string>> |
Colors replaced when the theme is used in a workbook (cells are always light). |
style (required) |
RecipeStyle |
ThemePresetName
Section titled “ThemePresetName”ThemePresetName: keyof typeof THEME_PRESETSTrendlineInput
Section titled “TrendlineInput”| Option | Type | Description |
|---|---|---|
type |
"linear" | "exp" | "log" | "poly" | "movingAvg" | "power" |
One of linear, exp, log, poly, movingAvg, power. |
order |
number |
Polynomial order, 2–6. |
period |
number |
Moving-average period. |
name |
string |
|
line |
string | LineOptions |
|
showEquation |
boolean |
|
showRSquared |
boolean |
|
forward |
number |
|
backward |
number |
ValidationInput
Section titled “ValidationInput”| Option | Type | Description |
|---|---|---|
type (required) |
"list" | "whole" | "decimal" | "date" | "time" | "textLength" | "custom" |
One of list, whole, decimal, date, time, textLength, custom. |
values |
Array<string | number> |
list: the allowed items. |
source |
string |
list: cells holding the items, e.g. “Lists!$A$2:$A$6”. |
operator |
CompareOperator |
Number, date, time and length rules (default “between” when min and max are given). |
min |
number | Date | string |
|
max |
number | Date | string |
|
value |
number | Date | string |
|
formula |
string |
custom: a formula true for allowed values, e.g. “=ISNUMBER(B2)”. |
allowBlank |
boolean |
|
dropdown |
boolean |
list: show the in-cell dropdown (default true). |
prompt |
string | { title?: string; text: string } |
|
error |
string | { title?: string; text: string; style?: "stop" | "warning" | "information" } |
WorkbookFinalizeOptions
Section titled “WorkbookFinalizeOptions”| Option | Type | Description |
|---|---|---|
output (required) |
string |
Where to publish: a new .xlsx inside root. It must not exist; nothing is overwritten. |
root |
string |
The folder deliverables must stay inside. Default: the working directory. |
requirements |
WorkbookFinalizeRequirements |
|
receipt |
string | false |
Receipt path, or false for none. Default: <root>/.artiwright/receipts/… |
WorkbookFinalizeRequirements
Section titled “WorkbookFinalizeRequirements”| Option | Type | Description |
|---|---|---|
sheets |
string[] |
Sheets the workbook must have, by name. |
tables |
string[] |
Tables that must exist, by name. |
charts |
number |
At least this many native charts. |
values |
Array<{ cell: string; equals: number | string | boolean; tolerance?: number }> |
Cells whose values must be what you expect, e.g. a model’s checks: [{ cell: "Model!D20", equals: 0 }, { cell: "Summary!B4", equals: 90.1e6, tolerance: 1 }]. |
lint |
{ block?: WorkbookLintSeverity[]; waive?: string[]; blockPreexisting?: boolean } |
Lint findings that block (default: errors) and the ones waived (“rule” or “rule@Sheet!A1”). In an opened workbook, findings in cells unchanged from the file are reported without blocking unless blockPreexisting is set. |
WorkbookInspectOptions
Section titled “WorkbookInspectOptions”| Option | Type | Description |
|---|---|---|
kind |
string | WorkbookInspectKind[] |
Record kinds, comma-separated or a list (default all). |
sheet |
string |
One sheet by name. |
range |
string |
Only cells and formulas in this range, e.g. “A1:F20” (with sheet). |
search |
string |
Text to find in values and formulas (case-insensitive). |
maxChars |
number |
Cap on the output size (default 20,000 characters). |
WorkbookLintOptions
Section titled “WorkbookLintOptions”| Option | Type | Description |
|---|---|---|
rules |
string | string[] |
Rule ids or prefixes, comma-separated or a list: “formula/,cell/too-narrow”. |
severity |
WorkbookLintSeverity |
|
sheet |
string |
One sheet by name. |