@pptx-studio/model 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @pptx-studio/model
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7d2c88e: A table cell's fill, borders and text now come from its style the way PowerPoint draws them.
8
+ `tablePartsAt` names the parts that reach a grid position, and `TABLE_PART_ORDER` is the order they
9
+ compose in. `tableCellFill`, `tableBackground` and `tableEdgeLine` resolve one property each and
10
+ name where it came from: a part, `tblBg`, `a:tcPr`, `a:tblPr` or the default grid. Merged cells and
11
+ the owner of every edge segment follow what PowerPoint drew. `tableTextLayer` gives the style's
12
+ bold, italic, faces and colour as run properties for the text cascade. `DEFAULT_GRID_LINE` is the 1-pt black line a table with no
13
+ built-in style draws. `TextContext.cell` puts a cell's list style and its style's text layer into
14
+ the text cascade, and `Origin` gains `cell` and `tableStyle`. A position or edge a table does not
15
+ have throws the new `MODEL_TABLE_POSITION`.
16
+
17
+ validate adds `V034`, a warning on a table cell that writes a border PowerPoint draws from the cell
18
+ across the edge instead, where that cell writes none or a different one.
19
+
3
20
  ## 0.3.0
4
21
 
5
22
  ### Minor Changes
package/README.md CHANGED
@@ -192,15 +192,38 @@ across 84 packages in three themes:
192
192
 
193
193
  `builtinTableStyle(id)` parses one of the 74 afresh; `parseTableStyle` reads any `CT_TableStyle`,
194
194
  defaulting nothing the file did not say. A GUID without braces or with padding, an edge with neither
195
- `a:ln` nor `a:lnRef`, and an empty `a:fill` throw: PowerPoint repairs each. The thirteen-part
196
- cascade is 4.3; drawing the grid is 4.4.
195
+ `a:ln` nor `a:lnRef`, and an empty `a:fill` throw: PowerPoint repairs each.
196
+
197
+ ## The thirteen parts compose in schema order, property by property
198
+
199
+ Which part of a style reaches a cell, and which wins, was measured in C9 on 10,480 slides of every
200
+ built-in in three themes (`corpus/ground-truth/table-cascade*.json`), against what PowerPoint's
201
+ object model reported for each cell and what it drew at 4 px a point:
202
+
203
+ - `tablePartsAt(props, rows, cols, row, col)` is ECMA-376's reading: the end rows and columns where
204
+ their flags are on, bands counted past a first row or column, a corner where both of its ends
205
+ apply. `TABLE_PART_ORDER` is the schema's order, `wholeTbl` lowest and `nwCell` highest, and it
206
+ is the order they compose in for fills, text and edges alike.
207
+ - Every property is found on its own: the highest part that states a fill, a colour, bold or
208
+ italic wins it, whatever that part leaves unsaid.
209
+ - `tableCellFill`: the cell's own `a:tcPr` fill, else the style's. `tableBackground`: `a:tblPr`'s
210
+ fill in place of the style's `tblBg`, painted under the cells.
211
+ - `tableEdgeLine`: an edge's owner writes the line it draws, replacing the style's whole; a line no
212
+ owner writes is the highest part's claim on that edge. The cell above or left owns a segment where
213
+ its anchor is level with it, in the anchor's column or row; else the cell below or right, where
214
+ its anchor is; else the cell above or left. An unmerged cell is always level. A table that
215
+ resolves to no style draws `DEFAULT_GRID_LINE`, 1 pt black.
216
+ - A merged cell takes its anchor's parts and every covered position's end and corner parts; its
217
+ bands are the anchor's. A covered cell's `a:tcPr` is never read.
218
+ - `tableTextLayer` is what the style gives a cell's text, and the text cascade reads it between the
219
+ cell's own list style and the master's `p:otherStyle`; `p:defaultTextStyle` is never read, and
220
+ under a master with no `p:txStyles` a cell takes the built-in `other` style whatever its frame.
221
+ - A position or edge the table does not have throws `MODEL_TABLE_POSITION`.
197
222
 
198
223
  ## What is not here
199
224
 
200
225
  - Nothing is painted. The renderers are 2.10.
201
- - The ten-source **text** cascade is 3.1. `Origin` already declares the five members only that
202
- cascade can produce, so 3.1 adds cases rather than widening a type every consumer has switched on.
203
- - The table-style cascade and table drawing are 4.3 and 4.4; SmartArt is 4.5.
226
+ - Table drawing and editing are 4.4; SmartArt is 4.5.
204
227
  - Commands, undo and history are Phase 5; Change Layout is 7.4. What PowerPoint rewrites when a
205
228
  layout changes is recorded in the fixture and not acted on.
206
229
  - `a:effectDag` is not modelled — a directed graph of effect primitives PowerPoint has never been
@@ -212,6 +235,8 @@ cascade is 4.3; drawing the grid is 4.4.
212
235
  `corpus/ground-truth/sheets.json` — 114 probes in 37 packages, sub-phase 2.9.
213
236
  `corpus/ground-truth/tables.json` — 82 tables, one package each, and 21 slides PowerPoint authored, sub-phase 4.1.
214
237
  `corpus/ground-truth/table-styles.json` — the 74 built-in table styles and 84 probe packages, sub-phase 4.2.
238
+ `corpus/ground-truth/table-cascade.json` and its five `table-cascade-*.json` siblings — 250 packages of
239
+ tables in three themes, every cell and edge PowerPoint reported and drew, sub-phase 4.3.
215
240
 
216
241
  The measurement is a **position**, and PowerPoint reports it directly. C3 and C4 sampled bitmaps
217
242
  because a fill and a stroke are pictures; an inheritance is not. A placeholder with no `a:xfrm` of
@@ -227,5 +252,6 @@ against a summary of them, so a rule that drifts fails on the measurements.
227
252
 
228
253
  See `docs/adr/phase-0-foundation/0007-ground-truth.md`, `docs/adr/phase-2-geometry-and-paint/0021-colour.md`, `docs/adr/phase-2-geometry-and-paint/0022-fills.md`,
229
254
  `docs/adr/phase-2-geometry-and-paint/0023-lines.md`, `docs/adr/phase-2-geometry-and-paint/0024-model-parse-and-resolve.md`
230
- `docs/adr/phase-4-tables-and-smartart/0056-the-spans-are-the-merge.md` and
231
- `docs/adr/phase-4-tables-and-smartart/0063-a-table-draws-the-built-in-its-guid-names.md`.
255
+ `docs/adr/phase-4-tables-and-smartart/0056-the-spans-are-the-merge.md`,
256
+ `docs/adr/phase-4-tables-and-smartart/0063-a-table-draws-the-built-in-its-guid-names.md` and
257
+ `docs/adr/phase-4-tables-and-smartart/0064-the-parts-compose-in-schema-order.md`.
package/dist/index.d.ts CHANGED
@@ -71,7 +71,9 @@ type ModelErrorCode =
71
71
  /** A table attribute missing where the schema requires it, or not of the type it names. */
72
72
  'MODEL_TABLE_ATTR' |
73
73
  /** A table-style edge with neither `a:ln` nor `a:lnRef`, or an `a:fill` holding no fill. */
74
- 'MODEL_TABLE_STYLE' | 'BLIP_NO_EMBED' | 'BLIP_DUOTONE' | 'BLIP_CLR_CHANGE' | 'BLIP_TILE_ALIGN' | 'BLIP_TILE_FLIP';
74
+ 'MODEL_TABLE_STYLE' |
75
+ /** A grid position or grid edge asked of a table that has no such position or edge. */
76
+ 'MODEL_TABLE_POSITION' | 'BLIP_NO_EMBED' | 'BLIP_DUOTONE' | 'BLIP_CLR_CHANGE' | 'BLIP_TILE_ALIGN' | 'BLIP_TILE_FLIP';
75
77
  export declare class ModelError extends Error {
76
78
  readonly name = "ModelError";
77
79
  readonly code: ModelErrorCode;
@@ -82,7 +84,7 @@ export declare class ModelError extends Error {
82
84
  constructor(code: ModelErrorCode, message: string, partName?: string | null, detail?: string | null);
83
85
  }
84
86
  export declare function isModelError(value: unknown): value is ModelError;
85
- export declare const MODEL_ERROR_CODES: readonly ["MODEL_PART_MISSING", "MODEL_PART_KIND", "MODEL_NO_PRESENTATION", "MODEL_NO_PARENT", "MODEL_NO_THEME", "MODEL_CLRMAP_INCOMPLETE", "MODEL_CLRMAP_SLOT", "MODEL_PLACEHOLDER_IDX", "MODEL_XFRM_NUMBER", "MODEL_GEOMETRY", "MODEL_STYLE_IDX", "MODEL_FONT_COLLECTION", "MODEL_NO_STYLE_MATRIX", "MODEL_STYLE_LIST_EMPTY", "MODEL_SHEET_CYCLE", "MODEL_FOREIGN_SHEET", "MODEL_TEXT_ATTR", "MODEL_TEXT_FIELD", "MODEL_TEXT_LEVEL", "MODEL_TEXT_BULLET", "MODEL_TEXT_TYPEFACE", "MODEL_TABLE_ATTR", "MODEL_TABLE_STYLE", "BLIP_NO_EMBED", "BLIP_DUOTONE", "BLIP_CLR_CHANGE", "BLIP_TILE_ALIGN", "BLIP_TILE_FLIP"];
87
+ export declare const MODEL_ERROR_CODES: readonly ["MODEL_PART_MISSING", "MODEL_PART_KIND", "MODEL_NO_PRESENTATION", "MODEL_NO_PARENT", "MODEL_NO_THEME", "MODEL_CLRMAP_INCOMPLETE", "MODEL_CLRMAP_SLOT", "MODEL_PLACEHOLDER_IDX", "MODEL_XFRM_NUMBER", "MODEL_GEOMETRY", "MODEL_STYLE_IDX", "MODEL_FONT_COLLECTION", "MODEL_NO_STYLE_MATRIX", "MODEL_STYLE_LIST_EMPTY", "MODEL_SHEET_CYCLE", "MODEL_FOREIGN_SHEET", "MODEL_TEXT_ATTR", "MODEL_TEXT_FIELD", "MODEL_TEXT_LEVEL", "MODEL_TEXT_BULLET", "MODEL_TEXT_TYPEFACE", "MODEL_TABLE_ATTR", "MODEL_TABLE_STYLE", "MODEL_TABLE_POSITION", "BLIP_NO_EMBED", "BLIP_DUOTONE", "BLIP_CLR_CHANGE", "BLIP_TILE_ALIGN", "BLIP_TILE_FLIP"];
86
88
  //#endregion
87
89
  //#region src/parse/geometry.d.ts
88
90
  /**
@@ -608,7 +610,7 @@ interface TableBackground {
608
610
  readonly fill: Themeable<Fill> | undefined;
609
611
  readonly effect: Themeable<readonly Effect[] | undefined> | undefined;
610
612
  }
611
- /** The thirteen parts in schema order, which is not the order they compose in. */
613
+ /** The thirteen parts in schema order, which is the order they compose in, lowest first (C9). */
612
614
  type TableStylePartName = 'wholeTbl' | 'band1H' | 'band2H' | 'band1V' | 'band2V' | 'lastCol' | 'firstCol' | 'lastRow' | 'seCell' | 'swCell' | 'firstRow' | 'neCell' | 'nwCell';
613
615
  /** `CT_TableStyle`: an `a:tblStyle`, or an inline `a:tableStyle`. Nothing absent is defaulted. */
614
616
  interface TableStyle {
@@ -618,6 +620,18 @@ interface TableStyle {
618
620
  readonly parts: Readonly<Partial<Record<TableStylePartName, TableStylePart>>>;
619
621
  readonly node: XElement;
620
622
  }
623
+ /** A grid edge: `h` is the top of row `row` at column `col` (`row = rows` is the bottom); `v` the left of column `col`. */
624
+ interface TableEdge {
625
+ readonly axis: 'h' | 'v';
626
+ readonly row: number;
627
+ readonly col: number;
628
+ }
629
+ /** Where a table's format came from: a style part, `tblBg`, a cell's `a:tcPr`, `a:tblPr`, or the default grid. */
630
+ type TableSource = TableStylePartName | 'tblBg' | 'tcPr' | 'tblPr' | 'grid';
631
+ interface TableSourced<T> {
632
+ readonly value: T;
633
+ readonly source: TableSource;
634
+ }
621
635
  //#endregion
622
636
  //#region src/types.d.ts
623
637
  /** `a:off` and `a:ext` together, in EMU, plus the three transform attributes. */
@@ -863,24 +877,19 @@ interface Sheet {
863
877
  readonly theme: Theme | null;
864
878
  readonly node: XElement;
865
879
  }
866
- /**
867
- * Where a resolved value came from.
868
- *
869
- * 2.9 declared this union in advance, guessing at the members the text cascade
870
- * would need. 3.1 measured them, and the guess was wrong in one place:
871
- * `themeObjDefaults` is gone, because `a:objectDefaults/a:spDef/a:lstStyle` is
872
- * not a source. A package declaring a size there and nowhere else resolves to
873
- * the built-in default, so the member named a level that never fires - see
874
- * `corpus/ground-truth/text-cascade.json`.
875
- */
880
+ /** Where a resolved value came from: each member is a level the text cascade reads (ADR 0027, 0064). */
876
881
  type Origin =
877
882
  /** The run's own `a:rPr`. */
878
883
  'run' |
879
884
  /** The paragraph's `a:pPr`, or its `a:defRPr`. */
880
885
  'paragraph' |
881
886
  /** The shape itself: its `p:spPr`, or its own `a:lstStyle`. */
882
- 'shape' | 'layoutPh' | 'masterPh' |
883
- /** The master's `p:txStyles`, in the bucket the chain's last type selects. */
887
+ 'shape' |
888
+ /** A table cell's own `a:txBody/a:lstStyle`. */
889
+ 'cell' |
890
+ /** What a table's style, or PowerPoint's default grid, gives a cell's text. */
891
+ 'tableStyle' | 'layoutPh' | 'masterPh' |
892
+ /** The master's `p:txStyles`: the bucket a shape's chain selects, `p:otherStyle` for a cell. */
884
893
  'txStyles' |
885
894
  /** `p:defaultTextStyle`, which only a shape with no bucket reaches. */
886
895
  'defaultTextStyle' |
@@ -1342,46 +1351,38 @@ export declare const BUILTIN_TABLE_STYLES: readonly BuiltinTableStyle[];
1342
1351
  /** Which `p:txStyles` bucket a placeholder type reads, or `null` for none. */
1343
1352
  export declare function bucketOf(type: string): 'title' | 'body' | null;
1344
1353
  /**
1345
- * Everything the cascade needs that is not on the shape.
1346
- *
1347
- * `defaultTextStyle` comes from `ppt/presentation.xml` and is therefore a
1348
- * property of the package rather than of any sheet, which is why it is passed
1349
- * in rather than walked to. A caller that has a `Document` has it already;
1350
- * `undefined` means the package declared none, which is a state PowerPoint
1351
- * distinguishes and this must too.
1354
+ * Everything the cascade needs that is not on the shape. `defaultTextStyle` is the package's, from
1355
+ * `ppt/presentation.xml`; `undefined` is a package that declares none, which PowerPoint tells apart.
1352
1356
  */
1353
1357
  interface TextContext {
1354
1358
  readonly sheet: Sheet;
1355
1359
  readonly shape: Shape;
1356
1360
  readonly defaultTextStyle: ListStyle | undefined;
1361
+ /** Set for the text of a table cell, whose walk is its own (C9, ADR 0064). */
1362
+ readonly cell?: TableCellText;
1363
+ }
1364
+ /** A table cell's two levels of its own: its `a:lstStyle`, and what the table's style gives it. */
1365
+ interface TableCellText {
1366
+ readonly lstStyle: ListStyle | undefined;
1367
+ /** `tableTextLayer`'s answer for the cell. */
1368
+ readonly layer: RunProps;
1357
1369
  }
1358
- /** One level of the walk: a list style, and what to call it if it answers. */
1370
+ /** One level of the walk: a list style, or run properties at every level, and what to call it. */
1359
1371
  interface Level {
1360
1372
  readonly style: ListStyle | undefined;
1373
+ readonly run?: RunProps;
1361
1374
  readonly origin: Origin;
1362
1375
  readonly sheet: Sheet | null;
1363
1376
  readonly shape: Shape | null;
1364
1377
  }
1365
1378
  /**
1366
- * The list styles a shape reads, nearest first, ending at whichever terminus it
1367
- * reaches.
1368
- *
1369
- * Exported because it *is* the finding: a caller that wants to show the user
1370
- * where a value could have come from - the inspector's Overrides panel, layout
1371
- * compatibility scoring - needs the same list the resolver walks, not a second
1372
- * opinion about it.
1379
+ * The list styles a shape or a table cell reads, nearest first, ending at whichever terminus it
1380
+ * reaches. Exported so a caller that shows where a value could come from walks the same list.
1373
1381
  */
1374
1382
  export declare function textLevels(context: TextContext): readonly Level[];
1375
1383
  /**
1376
- * The values left when every level has been asked and none of them said.
1377
- *
1378
- * Two quite different things, and which applies turns on one question: does the
1379
- * master declare `p:txStyles` at all? If it does not, PowerPoint substitutes its
1380
- * whole built-in set, and a body placeholder is 28 points with a hanging bullet
1381
- * indent. If it does, there is no per-property backstop underneath it and what
1382
- * remains is the floor - 18 points, no margin, no indent. Measured as two
1383
- * separate probes precisely because the two are easy to conflate and differ on
1384
- * every partially-specified master.
1384
+ * The values left when every level has been asked and none of them said (ADR 0027).
1385
+ * A master with `p:txStyles` leaves `TEXT_FLOOR`; one without substitutes PowerPoint's built-ins.
1385
1386
  */
1386
1387
  export declare function floorOf(context: TextContext, level: number): BuiltinLevel;
1387
1388
  /**
@@ -1518,6 +1519,48 @@ export declare function builtinTableStyle(id: string): TableStyle | undefined;
1518
1519
  * grid and no fill, whatever the theme and whatever the package defines.
1519
1520
  */
1520
1521
  export declare function tableStyleOf(table: Table): TableStyle | null;
1522
+ /** The order the parts compose in, lowest first: C9 on every drawable table (ADR 0064). */
1523
+ export declare const TABLE_PART_ORDER: readonly ["wholeTbl", "band1H", "band2H", "band1V", "band2V", "lastCol", "firstCol", "lastRow", "seCell", "swCell", "firstRow", "neCell", "nwCell"];
1524
+ /**
1525
+ * The parts reaching grid position (row, col), highest first: ECMA-376's reading, which C9 found
1526
+ * alone fits (ADR 0064). Bands skip the rows and columns their end flags take, and a corner part
1527
+ * needs both of its flags.
1528
+ */
1529
+ export declare function tablePartsAt(props: TableProps | undefined, rows: number, cols: number, row: number, col: number): readonly TableStylePartName[];
1530
+ /**
1531
+ * The fill of the cell at grid position (row, col): its own `a:tcPr` fill, else the highest part
1532
+ * that states one. Parts compose per property (C9); `null` paints nothing, and one translucent fill
1533
+ * is painted alone, never over another part's.
1534
+ */
1535
+ export declare function tableCellFill(table: Table, style: TableStyle | null, grid: TableGrid, row: number, col: number): TableSourced<Themeable<Fill>> | null;
1536
+ /** What paints under the cells: `a:tblPr`'s own fill in place of the style's `tblBg` (C9). */
1537
+ export declare function tableBackground(table: Table, style: TableStyle | null): TableSourced<Themeable<Fill>> | null;
1538
+ /** PowerPoint's default grid: a 1-pt black line on every edge of a table that names no built-in (C8). */
1539
+ export declare const DEFAULT_GRID_LINE: Line;
1540
+ /**
1541
+ * The line a grid edge draws: its owner's `a:tcPr` line, else the highest part of either cell that
1542
+ * states it, a part reaching both offering its inside edge (C9).
1543
+ * The owner is the cell before (above, left) where its anchor is level with the edge, else the cell
1544
+ * after where its anchor is, else the cell before; `null` inside a merged cell.
1545
+ */
1546
+ export declare function tableEdgeLine(table: Table, style: TableStyle | null, grid: TableGrid, edge: TableEdge): TableSourced<Themeable<Line>> | null;
1547
+ /**
1548
+ * What the style gives the text of the cell at (row, col): bold, italic, face and colour, each from
1549
+ * the highest part that states it (C9), as run properties for the text cascade.
1550
+ * The default grid gives `tx1` in the minor face whatever the flags; `node` is the style's element,
1551
+ * or the table's for the grid.
1552
+ */
1553
+ export declare function tableTextLayer(table: Table, style: TableStyle | null, grid: TableGrid, row: number, col: number): RunProps;
1554
+ /** A style fill with a `fillRef` followed into the theme, and the colour `phClr` takes in it. */
1555
+ export declare function themedFill(fill: Themeable<Fill>, theme: Theme, colors: ColorContext): {
1556
+ readonly fill: Fill | null;
1557
+ readonly phClr: Rgba | null;
1558
+ };
1559
+ /** A style line with an `lnRef` followed into the theme, and the colour `phClr` takes in it. */
1560
+ export declare function themedLine(line: Themeable<Line>, theme: Theme, colors: ColorContext): {
1561
+ readonly line: Line | null;
1562
+ readonly phClr: Rgba | null;
1563
+ };
1521
1564
  //#endregion
1522
1565
  //#region src/resolve/typeface.d.ts
1523
1566
  /** The four slots a `CT_TextCharacterProperties` can name. */
@@ -1539,5 +1582,5 @@ export declare function resolveTypefaceOf(font: Typeface, scheme: FontScheme): s
1539
1582
  */
1540
1583
  export declare function requestedTypefaces(fonts: Iterable<Typeface | undefined>, scheme: FontScheme): readonly string[];
1541
1584
  //#endregion
1542
- export { type Background, type BuiltinLevel, type BuiltinTableStyle, type BulletAutoNum, type BulletColor, type BulletFont, type BulletKind, type BulletSize, COLOR_TRANSFORM_OPS, type Caps, type ChainLink, type ColorMapOverride, type Document, type DocumentProblem, type FontAlign, type FontCollection, type FontRef, type FontScheme, type FormatScheme, type GridCell, type ListStyle, type ModelErrorCode, type NormalPlaceholder, type OnOffStyle, type Origin, type ParaProps, type Paragraph, type Placeholder, type PlaceholderSize, type PlaceholderType, type Resolved, type ResolvedAppearance, type ResolvedBackground, type ResolvedInsets, type RunProps, type ScriptSlot, type Shape, type ShapeGeometry, type ShapeKind, type ShapeStyle, type Sheet, type SheetKind, type Spacing, type Strike, type StyleMatrixTarget, type StyleRef, type Table, type TableBackground, type TableCell, type TableCellBorders, type TableCellProps, type TableColumn, type TableGrid, type TableProps, type TableRow, type TableStyle, type TableStyleBorders, type TableStyleCell, type TableStylePart, type TableStylePartName, type TableStyleRef, type TableStyleText, type TextAlign, type TextAnchor, type TextBody, type TextBreak, type TextContent, type TextContext, type TextField, type TextRun, type TextStyleBucket, type TextStyles, type Theme, type ThemeFontRef, type Themeable, type Typeface, type Underline, type VerticalText, type Xfrm };
1585
+ export { type Background, type BuiltinLevel, type BuiltinTableStyle, type BulletAutoNum, type BulletColor, type BulletFont, type BulletKind, type BulletSize, COLOR_TRANSFORM_OPS, type Caps, type ChainLink, type ColorMapOverride, type Document, type DocumentProblem, type FontAlign, type FontCollection, type FontRef, type FontScheme, type FormatScheme, type GridCell, type ListStyle, type ModelErrorCode, type NormalPlaceholder, type OnOffStyle, type Origin, type ParaProps, type Paragraph, type Placeholder, type PlaceholderSize, type PlaceholderType, type Resolved, type ResolvedAppearance, type ResolvedBackground, type ResolvedInsets, type RunProps, type ScriptSlot, type Shape, type ShapeGeometry, type ShapeKind, type ShapeStyle, type Sheet, type SheetKind, type Spacing, type Strike, type StyleMatrixTarget, type StyleRef, type Table, type TableBackground, type TableCell, type TableCellBorders, type TableCellProps, type TableCellText, type TableColumn, type TableEdge, type TableGrid, type TableProps, type TableRow, type TableSource, type TableSourced, type TableStyle, type TableStyleBorders, type TableStyleCell, type TableStylePart, type TableStylePartName, type TableStyleRef, type TableStyleText, type TextAlign, type TextAnchor, type TextBody, type TextBreak, type TextContent, type TextContext, type TextField, type TextRun, type TextStyleBucket, type TextStyles, type Theme, type ThemeFontRef, type Themeable, type Typeface, type Underline, type VerticalText, type Xfrm };
1543
1586
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/errors.ts","../src/parse/geometry.ts","../src/text.ts","../src/table.ts","../src/types.ts","../src/parse/paint.ts","../src/parse/sheet.ts","../src/resolve/placeholder.ts","../src/resolve/resolve.ts","../src/style.ts","../src/resolve/background.ts","../src/document.ts","../src/parse/text.ts","../src/builtin/text-styles.ts","../src/builtin/table-styles.ts","../src/resolve/text.ts","../src/resolve/body.ts","../src/parse/body.ts","../src/parse/table.ts","../src/resolve/table.ts","../src/resolve/typeface.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAkBY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0DC,mBAAmB;WACZ;WACT,MAAM;;WAEN;;WAEA;EAGP,YAAA,MAAM,gBACN,iBACA,0BACA;;wBASY,aAAa,iBAAiB,SAAS;qBAI1C;;;;;;;;;;;KCnDD;WACG;WAAyB;WAAuB,iBAAiB;;WACjE;WAAyB,UAAU;;;;;;;;;wBAkMlC,cACd,MAAM,sBACN,mBACC;;;;KCrMS;;KAGA;;KAGA;;KAqBA;;KAGA;;;;;;;;;;;;KAaA;WACG;WAA0B;;WAC1B;WAAyB;;;;;;;;;;UAUvB;WACN;;WAEA;;WAEA;;WAEA;;;;;;;;;;KAWC;WACD;WACA;;;wBAMK,aAAa,mBAAmB;;;;;;;;;UAsB/B;;WAEN;WACA;WACA;WACA,GAAG;WACH,QAAQ;WACR,KAAK;;WAEL;;WAEA;;WAEA;WACA;WACA;WACA;WACA,OAAO;WACP,IAAI;WACJ,IAAI;WACJ,KAAK;;WAEL,MAAM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AQ,UAAU,mBAAmB;;;;wBCmHzD,WAAW,SAAS,UAAU,eAAe;;wBAmB7C,gBAAgB,OAAO,UAAU,eAAe;;wBA2IhD,gBAAgB,SAAS,UAAU,eAAe;;;;wBClYlD,kBAAkB,aAAa;;;;;wBAe/B,aAAa,OAAO,QAAQ;;;;KCtBhC;;;;;;;wBAQI,gBAAgB,kBAAkB,QAAQ;;wBAU1C,kBAAkB,MAAM,UAAU,QAAQ;;;;;;;wBAU1C,mBACd,OAAO,SAAS,uBAChB,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/errors.ts","../src/parse/geometry.ts","../src/text.ts","../src/table.ts","../src/types.ts","../src/parse/paint.ts","../src/parse/sheet.ts","../src/resolve/placeholder.ts","../src/resolve/resolve.ts","../src/style.ts","../src/resolve/background.ts","../src/document.ts","../src/parse/text.ts","../src/builtin/text-styles.ts","../src/builtin/table-styles.ts","../src/resolve/text.ts","../src/resolve/body.ts","../src/parse/body.ts","../src/parse/table.ts","../src/resolve/table.ts","../src/resolve/typeface.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAkBY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DC,mBAAmB;WACZ;WACT,MAAM;;WAEN;;WAEA;EAGP,YAAA,MAAM,gBACN,iBACA,0BACA;;wBASY,aAAa,iBAAiB,SAAS;qBAI1C;;;;;;;;;;;KCrDD;WACG;WAAyB;WAAuB,iBAAiB;;WACjE;WAAyB,UAAU;;;;;;;;;wBAkMlC,cACd,MAAM,sBACN,mBACC;;;;KCrMS;;KAGA;;KAGA;;KAqBA;;KAGA;;;;;;;;;;;;KAaA;WACG;WAA0B;;WAC1B;WAAyB;;;;;;;;;;UAUvB;WACN;;WAEA;;WAEA;;WAEA;;;;;;;;;;KAWC;WACD;WACA;;;wBAMK,aAAa,mBAAmB;;;;;;;;;UAsB/B;;WAEN;WACA;WACA;WACA,GAAG;WACH,QAAQ;WAC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