@pptx-studio/model 0.2.1 → 0.3.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 +15 -0
- package/NOTICE +13 -3
- package/README.md +27 -4
- package/dist/index.d.ts +89 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +590 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pptx-studio/model
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ae2e566: A table's style is the one PowerPoint draws. `BUILTIN_TABLE_STYLES` is PowerPoint's own Table
|
|
8
|
+
Styles gallery: 74 styles, each with its GUID, its name and the `a:tblStyle` PowerPoint writes for
|
|
9
|
+
it. `tableStyleOf(table)` returns the built-in a table's GUID names, in any case, or `null` for
|
|
10
|
+
PowerPoint's default 1-pt black grid; nothing in `ppt/tableStyles.xml` changes which. `builtinTableStyle`
|
|
11
|
+
and `parseTableStyle` read a `CT_TableStyle` into its thirteen parts. An inline `TableStyleRef` now
|
|
12
|
+
carries its `id`, a style GUID without braces or with padding throws `MODEL_TABLE_ATTR`, and
|
|
13
|
+
`MODEL_ERROR_CODES` lists every code, including the new `MODEL_TABLE_STYLE`.
|
|
14
|
+
|
|
15
|
+
validate adds `V032`, a warning on a table that names no built-in style, and `V033`, refusing the
|
|
16
|
+
table-style forms PowerPoint repairs.
|
|
17
|
+
|
|
3
18
|
## 0.2.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/NOTICE
CHANGED
|
@@ -27,14 +27,24 @@ Entries are added here at the moment the material lands, not at release time.
|
|
|
27
27
|
presetShapeDefinitions.xml, 538970 bytes
|
|
28
28
|
sha256 4a762444d8d85876881c02a5b1dedf6f73006fcd8acb7b4e393435615b37c780
|
|
29
29
|
|
|
30
|
+
* Microsoft PowerPoint output
|
|
31
|
+
Written by Microsoft PowerPoint, driven by this project's own scripts.
|
|
32
|
+
|
|
33
|
+
@pptx-studio/model contains PowerPoint's 74 built-in table styles: each is
|
|
34
|
+
the a:tblStyle element PowerPoint writes into ppt/tableStyles.xml, byte for
|
|
35
|
+
byte, enumerated through PowerPoint's Table Styles gallery and saved by
|
|
36
|
+
PowerPoint (LEGAL.md, ADR 0063). corpus/ground-truth/table-styles.json holds
|
|
37
|
+
the same 74.
|
|
38
|
+
|
|
39
|
+
The decks in corpus/authored are PowerPoint Blank Presentations, so each
|
|
40
|
+
carries the Microsoft-generated ppt/theme/theme1.xml and default layouts
|
|
41
|
+
PowerPoint writes into a new deck (ADR 0009).
|
|
42
|
+
|
|
30
43
|
--------------------------------------------------------------------------------
|
|
31
44
|
Attributions the plan commits us to, listed so the obligation is visible before
|
|
32
45
|
the code arrives
|
|
33
46
|
--------------------------------------------------------------------------------
|
|
34
47
|
|
|
35
|
-
* Pattern fill tiles (sub-phase 2.7) are generated from Mono libgdiplus.
|
|
36
|
-
libgdiplus - Copyright Novell, Inc. and contributors - MIT
|
|
37
|
-
|
|
38
48
|
* Metric-compatible substitute fonts ship in a separate package,
|
|
39
49
|
@pptx-studio/fonts-metric-compat, under SIL OFL 1.1 with its own
|
|
40
50
|
OFL.txt and reserved-font-name handling. They are deliberately kept out
|
package/README.md
CHANGED
|
@@ -171,15 +171,36 @@ built to disagree with themselves:
|
|
|
171
171
|
a column is never narrower than its cells' side margins plus 2 pt; and the frame's `a:ext` says
|
|
172
172
|
nothing about the drawn size, which is the grid's sums (76/76 against 62/76).
|
|
173
173
|
|
|
174
|
-
Cell text is a `TextBody` like any other.
|
|
175
|
-
|
|
174
|
+
Cell text is a `TextBody` like any other.
|
|
175
|
+
|
|
176
|
+
## A table draws the built-in its GUID names, or none
|
|
177
|
+
|
|
178
|
+
`BUILTIN_TABLE_STYLES` is PowerPoint's own Table Styles gallery: the 74 styles, in gallery order,
|
|
179
|
+
each with its GUID, its name and the `a:tblStyle` PowerPoint writes for it, byte for byte. They were
|
|
180
|
+
enumerated by driving the gallery itself and read back as PowerPoint serialised them (C8,
|
|
181
|
+
`corpus/ground-truth/table-styles.json`); nothing was transcribed from another implementation.
|
|
182
|
+
|
|
183
|
+
`tableStyleOf(table)` is the style PowerPoint draws a table with, and C8 found one rule for it
|
|
184
|
+
across 84 packages in three themes:
|
|
185
|
+
|
|
186
|
+
- The `a:tableStyleId` - or an inline `a:tableStyle`'s `@styleId` - names one of the 74, in any
|
|
187
|
+
case, and that built-in is drawn (230/230 across every style in two themes).
|
|
188
|
+
- Nothing in `ppt/tableStyles.xml` changes the drawing: a redefined built-in draws PowerPoint's own
|
|
189
|
+
(7/7), a custom style defined there draws nothing of itself, and `@def` is never applied.
|
|
190
|
+
- Any other id, or none, returns `null`: PowerPoint draws a 1-pt black grid with no fill, whatever
|
|
191
|
+
the theme (3/3 against the theme's `dk1` and `tx1`).
|
|
192
|
+
|
|
193
|
+
`builtinTableStyle(id)` parses one of the 74 afresh; `parseTableStyle` reads any `CT_TableStyle`,
|
|
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.
|
|
176
197
|
|
|
177
198
|
## What is not here
|
|
178
199
|
|
|
179
200
|
- Nothing is painted. The renderers are 2.10.
|
|
180
201
|
- The ten-source **text** cascade is 3.1. `Origin` already declares the five members only that
|
|
181
202
|
cascade can produce, so 3.1 adds cases rather than widening a type every consumer has switched on.
|
|
182
|
-
-
|
|
203
|
+
- The table-style cascade and table drawing are 4.3 and 4.4; SmartArt is 4.5.
|
|
183
204
|
- Commands, undo and history are Phase 5; Change Layout is 7.4. What PowerPoint rewrites when a
|
|
184
205
|
layout changes is recorded in the fixture and not acted on.
|
|
185
206
|
- `a:effectDag` is not modelled — a directed graph of effect primitives PowerPoint has never been
|
|
@@ -190,6 +211,7 @@ thirteen-part cascade is 4.3; drawing the grid is 4.4.
|
|
|
190
211
|
|
|
191
212
|
`corpus/ground-truth/sheets.json` — 114 probes in 37 packages, sub-phase 2.9.
|
|
192
213
|
`corpus/ground-truth/tables.json` — 82 tables, one package each, and 21 slides PowerPoint authored, sub-phase 4.1.
|
|
214
|
+
`corpus/ground-truth/table-styles.json` — the 74 built-in table styles and 84 probe packages, sub-phase 4.2.
|
|
193
215
|
|
|
194
216
|
The measurement is a **position**, and PowerPoint reports it directly. C3 and C4 sampled bitmaps
|
|
195
217
|
because a fill and a stroke are pictures; an inheritance is not. A placeholder with no `a:xfrm` of
|
|
@@ -205,4 +227,5 @@ against a summary of them, so a rule that drifts fails on the measurements.
|
|
|
205
227
|
|
|
206
228
|
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`,
|
|
207
229
|
`docs/adr/phase-2-geometry-and-paint/0023-lines.md`, `docs/adr/phase-2-geometry-and-paint/0024-model-parse-and-resolve.md`
|
|
208
|
-
|
|
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`.
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,9 @@ type ModelErrorCode =
|
|
|
69
69
|
/** A paragraph level that is not an integer. */
|
|
70
70
|
'MODEL_TEXT_LEVEL' | 'MODEL_TEXT_TYPEFACE' |
|
|
71
71
|
/** A table attribute missing where the schema requires it, or not of the type it names. */
|
|
72
|
-
'MODEL_TABLE_ATTR' |
|
|
72
|
+
'MODEL_TABLE_ATTR' |
|
|
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';
|
|
73
75
|
export declare class ModelError extends Error {
|
|
74
76
|
readonly name = "ModelError";
|
|
75
77
|
readonly code: ModelErrorCode;
|
|
@@ -80,7 +82,7 @@ export declare class ModelError extends Error {
|
|
|
80
82
|
constructor(code: ModelErrorCode, message: string, partName?: string | null, detail?: string | null);
|
|
81
83
|
}
|
|
82
84
|
export declare function isModelError(value: unknown): value is ModelError;
|
|
83
|
-
export declare const MODEL_ERROR_CODES: readonly
|
|
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"];
|
|
84
86
|
//#endregion
|
|
85
87
|
//#region src/parse/geometry.d.ts
|
|
86
88
|
/**
|
|
@@ -471,12 +473,13 @@ interface TableProps {
|
|
|
471
473
|
readonly style: TableStyleRef | undefined;
|
|
472
474
|
readonly node: XElement;
|
|
473
475
|
}
|
|
474
|
-
/** `a:tableStyleId`,
|
|
476
|
+
/** `a:tableStyleId`, or an inline `a:tableStyle`, which PowerPoint resolves by its `@styleId` alone. */
|
|
475
477
|
type TableStyleRef = {
|
|
476
478
|
readonly kind: 'id';
|
|
477
479
|
readonly id: string;
|
|
478
480
|
} | {
|
|
479
481
|
readonly kind: 'inline';
|
|
482
|
+
readonly id: string;
|
|
480
483
|
readonly node: XElement;
|
|
481
484
|
};
|
|
482
485
|
/** `a:gridCol`. */
|
|
@@ -560,6 +563,61 @@ interface TableGrid {
|
|
|
560
563
|
* column, a claimed position is covered whatever it says, a span stops at the edge or a claim.
|
|
561
564
|
*/
|
|
562
565
|
export declare function tableGrid(table: Table): TableGrid;
|
|
566
|
+
/** `ST_OnOffStyleType`. */
|
|
567
|
+
type OnOffStyle = 'on' | 'off' | 'def';
|
|
568
|
+
/** A value written out, or a reference into the theme: the `EG_Themeable*` choices. */
|
|
569
|
+
type Themeable<T, Ref = StyleRef> = {
|
|
570
|
+
readonly kind: 'value';
|
|
571
|
+
readonly value: T;
|
|
572
|
+
} | {
|
|
573
|
+
readonly kind: 'ref';
|
|
574
|
+
readonly ref: Ref;
|
|
575
|
+
};
|
|
576
|
+
/** `a:tcTxStyle`. */
|
|
577
|
+
interface TableStyleText {
|
|
578
|
+
readonly b: OnOffStyle | undefined;
|
|
579
|
+
readonly i: OnOffStyle | undefined;
|
|
580
|
+
readonly font: Themeable<FontCollection, FontRef> | undefined;
|
|
581
|
+
readonly color: Color | undefined;
|
|
582
|
+
}
|
|
583
|
+
/** `a:tcBdr`; `tl2br` and `tr2bl` take the names `TableCellBorders` gives the diagonals. */
|
|
584
|
+
interface TableStyleBorders {
|
|
585
|
+
readonly left: Themeable<Line> | undefined;
|
|
586
|
+
readonly right: Themeable<Line> | undefined;
|
|
587
|
+
readonly top: Themeable<Line> | undefined;
|
|
588
|
+
readonly bottom: Themeable<Line> | undefined;
|
|
589
|
+
readonly insideH: Themeable<Line> | undefined;
|
|
590
|
+
readonly insideV: Themeable<Line> | undefined;
|
|
591
|
+
readonly tlToBr: Themeable<Line> | undefined;
|
|
592
|
+
readonly blToTr: Themeable<Line> | undefined;
|
|
593
|
+
}
|
|
594
|
+
/** `a:tcStyle`. */
|
|
595
|
+
interface TableStyleCell {
|
|
596
|
+
readonly borders: TableStyleBorders | undefined;
|
|
597
|
+
readonly fill: Themeable<Fill> | undefined;
|
|
598
|
+
/** `a:cell3D`, kept as written. */
|
|
599
|
+
readonly cell3D: XElement | undefined;
|
|
600
|
+
}
|
|
601
|
+
/** One of a style's thirteen parts. */
|
|
602
|
+
interface TableStylePart {
|
|
603
|
+
readonly text: TableStyleText | undefined;
|
|
604
|
+
readonly cell: TableStyleCell | undefined;
|
|
605
|
+
}
|
|
606
|
+
/** `a:tblBg`. An `a:effect` holding an `a:effectDag` reads as `undefined`, as `parseEffects` does. */
|
|
607
|
+
interface TableBackground {
|
|
608
|
+
readonly fill: Themeable<Fill> | undefined;
|
|
609
|
+
readonly effect: Themeable<readonly Effect[] | undefined> | undefined;
|
|
610
|
+
}
|
|
611
|
+
/** The thirteen parts in schema order, which is not the order they compose in. */
|
|
612
|
+
type TableStylePartName = 'wholeTbl' | 'band1H' | 'band2H' | 'band1V' | 'band2V' | 'lastCol' | 'firstCol' | 'lastRow' | 'seCell' | 'swCell' | 'firstRow' | 'neCell' | 'nwCell';
|
|
613
|
+
/** `CT_TableStyle`: an `a:tblStyle`, or an inline `a:tableStyle`. Nothing absent is defaulted. */
|
|
614
|
+
interface TableStyle {
|
|
615
|
+
readonly id: string;
|
|
616
|
+
readonly name: string;
|
|
617
|
+
readonly background: TableBackground | undefined;
|
|
618
|
+
readonly parts: Readonly<Partial<Record<TableStylePartName, TableStylePart>>>;
|
|
619
|
+
readonly node: XElement;
|
|
620
|
+
}
|
|
563
621
|
//#endregion
|
|
564
622
|
//#region src/types.d.ts
|
|
565
623
|
/** `a:off` and `a:ext` together, in EMU, plus the three transform attributes. */
|
|
@@ -1197,7 +1255,7 @@ export declare function parseTextBody(element: XElement, partName: string): Text
|
|
|
1197
1255
|
/** The `p:txBody` of a shape, when it has one. */
|
|
1198
1256
|
export declare function parseTextBodyChild(parent: XElement, partName: string): TextBody | undefined;
|
|
1199
1257
|
//#endregion
|
|
1200
|
-
//#region src/builtin
|
|
1258
|
+
//#region src/builtin/text-styles.d.ts
|
|
1201
1259
|
/**
|
|
1202
1260
|
* PowerPoint's own `p:txStyles`, substituted when a master declares none.
|
|
1203
1261
|
*
|
|
@@ -1265,6 +1323,21 @@ export declare const BUILTIN_TEXT_STYLES: {
|
|
|
1265
1323
|
*/
|
|
1266
1324
|
export declare const TEXT_FLOOR: BuiltinLevel;
|
|
1267
1325
|
//#endregion
|
|
1326
|
+
//#region src/builtin/table-styles.d.ts
|
|
1327
|
+
/**
|
|
1328
|
+
* PowerPoint's 74 built-in table styles, each `a:tblStyle` byte for byte as PowerPoint writes it.
|
|
1329
|
+
* GENERATED by tools/ground-truth/model/tables/styles/write-tables.ts from
|
|
1330
|
+
* corpus/ground-truth/table-styles.json. Do not edit: table.test.ts re-derives it.
|
|
1331
|
+
*/
|
|
1332
|
+
interface BuiltinTableStyle {
|
|
1333
|
+
readonly id: string;
|
|
1334
|
+
readonly name: string;
|
|
1335
|
+
/** The `a:tblStyle` PowerPoint writes into `ppt/tableStyles.xml` for this style. */
|
|
1336
|
+
readonly xml: string;
|
|
1337
|
+
}
|
|
1338
|
+
/** In the order of PowerPoint's Table Styles gallery. */
|
|
1339
|
+
export declare const BUILTIN_TABLE_STYLES: readonly BuiltinTableStyle[];
|
|
1340
|
+
//#endregion
|
|
1268
1341
|
//#region src/resolve/text.d.ts
|
|
1269
1342
|
/** Which `p:txStyles` bucket a placeholder type reads, or `null` for none. */
|
|
1270
1343
|
export declare function bucketOf(type: string): 'title' | 'body' | null;
|
|
@@ -1434,6 +1507,17 @@ export declare function parseBodyPropsChild(parent: XElement, partName: string):
|
|
|
1434
1507
|
export declare function parseTable(element: XElement, part: string): Table;
|
|
1435
1508
|
/** The table of a `p:graphicFrame`, when its `a:graphicData` carries one. */
|
|
1436
1509
|
export declare function parseTableChild(frame: XElement, part: string): Table | undefined;
|
|
1510
|
+
/** An `a:tblStyle` or an inline `a:tableStyle`: `CT_TableStyle`. */
|
|
1511
|
+
export declare function parseTableStyle(element: XElement, part: string): TableStyle;
|
|
1512
|
+
//#endregion
|
|
1513
|
+
//#region src/resolve/table.d.ts
|
|
1514
|
+
/** One of PowerPoint's 74 built-ins by GUID, in any case, parsed afresh; `undefined` for any other. */
|
|
1515
|
+
export declare function builtinTableStyle(id: string): TableStyle | undefined;
|
|
1516
|
+
/**
|
|
1517
|
+
* The built-in style a table is drawn with, or `null` for PowerPoint's default: a 1-pt black
|
|
1518
|
+
* grid and no fill, whatever the theme and whatever the package defines.
|
|
1519
|
+
*/
|
|
1520
|
+
export declare function tableStyleOf(table: Table): TableStyle | null;
|
|
1437
1521
|
//#endregion
|
|
1438
1522
|
//#region src/resolve/typeface.d.ts
|
|
1439
1523
|
/** The four slots a `CT_TextCharacterProperties` can name. */
|
|
@@ -1455,5 +1539,5 @@ export declare function resolveTypefaceOf(font: Typeface, scheme: FontScheme): s
|
|
|
1455
1539
|
*/
|
|
1456
1540
|
export declare function requestedTypefaces(fonts: Iterable<Typeface | undefined>, scheme: FontScheme): readonly string[];
|
|
1457
1541
|
//#endregion
|
|
1458
|
-
export { type Background, type BuiltinLevel, 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 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 TableCell, type TableCellBorders, type TableCellProps, type TableColumn, type TableGrid, type TableProps, type TableRow, type TableStyleRef, 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 Typeface, type Underline, type VerticalText, type Xfrm };
|
|
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 };
|
|
1459
1543
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
|
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;;WAEN,MAAM;WACN,kBAAkB;;WAElB,WAAW;;WAEX,MAAM;;;;;;;;;KAkBL;;KAGA;WACG;WAA2B,OAAO;;;;WAElC;;;KAGH;;;WAEG;WAA0B;;;;WAE1B;WAAyB;;WACzB;;;KAGH;WACC;WAAwB,OAAO;;WAAqB;;;UAGhD;;WAEN;;;;;;;WAOA;;;;;;;;;;UAWM;;WAEN;WACA;;WAEA;WACA,MAAM;;WAEN;WACA;W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