@pptx-studio/model 0.2.0 → 0.2.1
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 +18 -0
- package/dist/index.d.ts +91 -91
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @pptx-studio/model
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b58dd19: Built with tsdown 0.23. The declarations take a new shape, and the API is unchanged.
|
|
8
|
+
|
|
9
|
+
- Every value is exported where it is declared (`export declare function …`), not in a trailing
|
|
10
|
+
`export { … }`.
|
|
11
|
+
- The types are exported in one `export type { … }`.
|
|
12
|
+
- The JavaScript is byte-for-byte what 0.22 emitted.
|
|
13
|
+
- In geometry, opc, validate and xml, the source maps name fewer symbols.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [b58dd19]
|
|
16
|
+
- @pptx-studio/opc@0.1.3
|
|
17
|
+
- @pptx-studio/xml@0.1.2
|
|
18
|
+
- @pptx-studio/geometry@0.1.2
|
|
19
|
+
- @pptx-studio/paint@0.4.1
|
|
20
|
+
|
|
3
21
|
## 0.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ type ModelErrorCode =
|
|
|
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
72
|
'MODEL_TABLE_ATTR' | 'BLIP_NO_EMBED' | 'BLIP_DUOTONE' | 'BLIP_CLR_CHANGE' | 'BLIP_TILE_ALIGN' | 'BLIP_TILE_FLIP';
|
|
73
|
-
declare class ModelError extends Error {
|
|
73
|
+
export declare class ModelError extends Error {
|
|
74
74
|
readonly name = "ModelError";
|
|
75
75
|
readonly code: ModelErrorCode;
|
|
76
76
|
/** The part the failure is about, when there is one. */
|
|
@@ -79,8 +79,8 @@ declare class ModelError extends Error {
|
|
|
79
79
|
readonly detail: string | null;
|
|
80
80
|
constructor(code: ModelErrorCode, message: string, partName?: string | null, detail?: string | null);
|
|
81
81
|
}
|
|
82
|
-
declare function isModelError(value: unknown): value is ModelError;
|
|
83
|
-
declare const MODEL_ERROR_CODES: readonly ModelErrorCode[];
|
|
82
|
+
export declare function isModelError(value: unknown): value is ModelError;
|
|
83
|
+
export declare const MODEL_ERROR_CODES: readonly ModelErrorCode[];
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/parse/geometry.d.ts
|
|
86
86
|
/**
|
|
@@ -106,7 +106,7 @@ type ShapeGeometry = {
|
|
|
106
106
|
* not chosen to be a rectangle, it has said nothing, and `resolve` is what turns
|
|
107
107
|
* that into the layout's answer.
|
|
108
108
|
*/
|
|
109
|
-
declare function parseGeometry(spPr: XElement | undefined, partName: string): ShapeGeometry | undefined;
|
|
109
|
+
export declare function parseGeometry(spPr: XElement | undefined, partName: string): ShapeGeometry | undefined;
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/text.d.ts
|
|
112
112
|
/** `ST_TextAlignType`. */
|
|
@@ -167,7 +167,7 @@ type ThemeFontRef = {
|
|
|
167
167
|
readonly script: 'latin' | 'ea' | 'cs';
|
|
168
168
|
};
|
|
169
169
|
/** `+mn-lt` and its five siblings, or `null` for a real typeface name. */
|
|
170
|
-
declare function themeFontRef(typeface: string): ThemeFontRef | null;
|
|
170
|
+
export declare function themeFontRef(typeface: string): ThemeFontRef | null;
|
|
171
171
|
/**
|
|
172
172
|
* `CT_TextCharacterProperties` - `a:rPr`, `a:defRPr` and `a:endParaRPr`.
|
|
173
173
|
*
|
|
@@ -330,7 +330,7 @@ interface ListStyle {
|
|
|
330
330
|
readonly node: XElement;
|
|
331
331
|
}
|
|
332
332
|
/** The number of levels a `CT_TextListStyle` holds, and `@lvl`'s range plus one. */
|
|
333
|
-
declare const LEVELS = 9;
|
|
333
|
+
export declare const LEVELS = 9;
|
|
334
334
|
/** `a:r`: a run of text with its own properties. */
|
|
335
335
|
interface TextRun {
|
|
336
336
|
readonly kind: 'run';
|
|
@@ -454,9 +454,9 @@ interface TextStyles {
|
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region src/table.d.ts
|
|
456
456
|
/** `a:graphicData/@uri` of a table. */
|
|
457
|
-
declare const TABLE_URI = "http://schemas.openxmlformats.org/drawingml/2006/table";
|
|
457
|
+
export declare const TABLE_URI = "http://schemas.openxmlformats.org/drawingml/2006/table";
|
|
458
458
|
/** The column PowerPoint invents for a grid that declares none, empty: two margins and 2 pt. */
|
|
459
|
-
declare const INVENTED_COLUMN_WIDTH = 208280;
|
|
459
|
+
export declare const INVENTED_COLUMN_WIDTH = 208280;
|
|
460
460
|
/** `a:tblPr`. The seven flags are the file's own and inherit from nothing, so absent is false. */
|
|
461
461
|
interface TableProps {
|
|
462
462
|
readonly rtl: boolean;
|
|
@@ -559,7 +559,7 @@ interface TableGrid {
|
|
|
559
559
|
* The occupancy C7 measured, 76/76 against 52/76 for the flags: each `a:tc` takes the next
|
|
560
560
|
* column, a claimed position is covered whatever it says, a span stops at the edge or a claim.
|
|
561
561
|
*/
|
|
562
|
-
declare function tableGrid(table: Table): TableGrid;
|
|
562
|
+
export declare function tableGrid(table: Table): TableGrid;
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region src/types.d.ts
|
|
565
565
|
/** `a:off` and `a:ext` together, in EMU, plus the three transform attributes. */
|
|
@@ -592,9 +592,9 @@ interface Xfrm {
|
|
|
592
592
|
* stock master.
|
|
593
593
|
*/
|
|
594
594
|
type PlaceholderType = 'title' | 'body' | 'ctrTitle' | 'subTitle' | 'obj' | 'chart' | 'tbl' | 'clipArt' | 'dgm' | 'media' | 'sldImg' | 'pic' | 'sldNum' | 'hdr' | 'ftr' | 'dt';
|
|
595
|
-
declare const PLACEHOLDER_TYPES: readonly PlaceholderType[];
|
|
595
|
+
export declare const PLACEHOLDER_TYPES: readonly PlaceholderType[];
|
|
596
596
|
/** The six a slide master may carry. Measured; see `PlaceholderType`. */
|
|
597
|
-
declare const MASTER_PLACEHOLDER_TYPES: readonly PlaceholderType[];
|
|
597
|
+
export declare const MASTER_PLACEHOLDER_TYPES: readonly PlaceholderType[];
|
|
598
598
|
/** `@sz`, a sizing hint. Recorded, and not part of matching - measured. */
|
|
599
599
|
type PlaceholderSize = 'full' | 'half' | 'quarter';
|
|
600
600
|
interface Placeholder {
|
|
@@ -847,16 +847,16 @@ interface Resolved<T> {
|
|
|
847
847
|
//#endregion
|
|
848
848
|
//#region src/parse/paint.d.ts
|
|
849
849
|
/** One of the six `EG_ColorChoice` members. */
|
|
850
|
-
declare function parseColorElement(element: XElement): Color;
|
|
850
|
+
export declare function parseColorElement(element: XElement): Color;
|
|
851
851
|
/** The first colour child of a wrapper such as `a:solidFill` or `a:fillRef`. */
|
|
852
|
-
declare function parseColorChild(parent: XElement | undefined): Color | null;
|
|
852
|
+
export declare function parseColorChild(parent: XElement | undefined): Color | null;
|
|
853
853
|
/** One member of `EG_FillProperties`. */
|
|
854
|
-
declare function parseFillElement(element: XElement, partName: string): Fill;
|
|
854
|
+
export declare function parseFillElement(element: XElement, partName: string): Fill;
|
|
855
855
|
/** The fill a container declares, or `undefined` when it declares none. */
|
|
856
|
-
declare function parseFill(parent: XElement, partName: string): Fill | undefined;
|
|
856
|
+
export declare function parseFill(parent: XElement, partName: string): Fill | undefined;
|
|
857
857
|
/** `a:ln`, lazily: every field is `null` when the attribute was absent. */
|
|
858
|
-
declare function parseLineElement(element: XElement, partName: string): Line;
|
|
859
|
-
declare function parseLine(parent: XElement, partName: string): Line | undefined;
|
|
858
|
+
export declare function parseLineElement(element: XElement, partName: string): Line;
|
|
859
|
+
export declare function parseLine(parent: XElement, partName: string): Line | undefined;
|
|
860
860
|
/**
|
|
861
861
|
* `a:effectLst`, in the order the file wrote it.
|
|
862
862
|
*
|
|
@@ -868,7 +868,7 @@ declare function parseLine(parent: XElement, partName: string): Line | undefined
|
|
|
868
868
|
* rather than approximated. PowerPoint writes none but does render one:
|
|
869
869
|
* measured on `a04-effects-03`, where it composites a glow over the fill.
|
|
870
870
|
*/
|
|
871
|
-
declare function parseEffects(parent: XElement): readonly Effect[] | undefined;
|
|
871
|
+
export declare function parseEffects(parent: XElement): readonly Effect[] | undefined;
|
|
872
872
|
//#endregion
|
|
873
873
|
//#region src/parse/sheet.d.ts
|
|
874
874
|
/**
|
|
@@ -878,13 +878,13 @@ declare function parseEffects(parent: XElement): readonly Effect[] | undefined;
|
|
|
878
878
|
* rather than a partial opinion, and there is nothing sensible to default the
|
|
879
879
|
* missing one to.
|
|
880
880
|
*/
|
|
881
|
-
declare function parseClrMap(element: XElement, partName: string): ClrMap;
|
|
882
|
-
declare function parseTheme(root: XElement, partName: string): Theme;
|
|
881
|
+
export declare function parseClrMap(element: XElement, partName: string): ClrMap;
|
|
882
|
+
export declare function parseTheme(root: XElement, partName: string): Theme;
|
|
883
883
|
/**
|
|
884
884
|
* One part into one sheet. The parent and the theme are filled in by
|
|
885
885
|
* `document.ts`, which is the only thing that can follow a relationship.
|
|
886
886
|
*/
|
|
887
|
-
declare function parseSheet(root: XElement, partName: string): Omit<Sheet, 'parent' | 'theme'>;
|
|
887
|
+
export declare function parseSheet(root: XElement, partName: string): Omit<Sheet, 'parent' | 'theme'>;
|
|
888
888
|
//#endregion
|
|
889
889
|
//#region src/resolve/placeholder.d.ts
|
|
890
890
|
/**
|
|
@@ -897,11 +897,11 @@ declare function parseSheet(root: XElement, partName: string): Omit<Sheet, 'pare
|
|
|
897
897
|
* and `body` is already there. They agree, and it is worth knowing why rather
|
|
898
898
|
* than by luck.
|
|
899
899
|
*/
|
|
900
|
-
declare const DEFAULT_PLACEHOLDER_TYPE: PlaceholderType;
|
|
900
|
+
export declare const DEFAULT_PLACEHOLDER_TYPE: PlaceholderType;
|
|
901
901
|
/** The `@idx` of a `p:ph` that has none. */
|
|
902
|
-
declare const DEFAULT_PLACEHOLDER_IDX = 0;
|
|
902
|
+
export declare const DEFAULT_PLACEHOLDER_IDX = 0;
|
|
903
903
|
/** Supply the two defaults, so a comparison has something to compare. */
|
|
904
|
-
declare function normalizePlaceholder(ph: Placeholder): NormalPlaceholder;
|
|
904
|
+
export declare function normalizePlaceholder(ph: Placeholder): NormalPlaceholder;
|
|
905
905
|
/**
|
|
906
906
|
* The type a placeholder presents when it asks a master for its parent.
|
|
907
907
|
*
|
|
@@ -911,9 +911,9 @@ declare function normalizePlaceholder(ph: Placeholder): NormalPlaceholder;
|
|
|
911
911
|
* because a master cannot hold them either and `body` is the only remaining
|
|
912
912
|
* content type.
|
|
913
913
|
*/
|
|
914
|
-
declare function masterPlaceholderType(type: PlaceholderType): PlaceholderType;
|
|
914
|
+
export declare function masterPlaceholderType(type: PlaceholderType): PlaceholderType;
|
|
915
915
|
/** Every placeholder in a sheet's top-level shape tree, in document order. */
|
|
916
|
-
declare function placeholders(sheet: Sheet): readonly Shape[];
|
|
916
|
+
export declare function placeholders(sheet: Sheet): readonly Shape[];
|
|
917
917
|
/**
|
|
918
918
|
* Slide to layout: the first placeholder whose `@idx` agrees.
|
|
919
919
|
*
|
|
@@ -921,9 +921,9 @@ declare function placeholders(sheet: Sheet): readonly Shape[];
|
|
|
921
921
|
* which PowerPoint accepts without repairing; the first in the shape tree is
|
|
922
922
|
* the one that wins.
|
|
923
923
|
*/
|
|
924
|
-
declare function matchInLayout(ph: Placeholder, layout: Sheet): Shape | null;
|
|
924
|
+
export declare function matchInLayout(ph: Placeholder, layout: Sheet): Shape | null;
|
|
925
925
|
/** Layout to master: the first placeholder of the folded type. */
|
|
926
|
-
declare function matchInMaster(ph: Placeholder, master: Sheet): Shape | null;
|
|
926
|
+
export declare function matchInMaster(ph: Placeholder, master: Sheet): Shape | null;
|
|
927
927
|
/** One link of the chain: a shape, the sheet it is on, and how it was reached. */
|
|
928
928
|
interface ChainLink {
|
|
929
929
|
readonly shape: Shape;
|
|
@@ -939,7 +939,7 @@ interface ChainLink {
|
|
|
939
939
|
* with the placeholder of the sheet it is leaving, which is why the layout's
|
|
940
940
|
* `@type` and not the slide's decides the second hop.
|
|
941
941
|
*/
|
|
942
|
-
declare function inheritanceChain(shape: Shape, sheet: Sheet): readonly ChainLink[];
|
|
942
|
+
export declare function inheritanceChain(shape: Shape, sheet: Sheet): readonly ChainLink[];
|
|
943
943
|
/**
|
|
944
944
|
* A placeholder that reached no parent and states no geometry of its own.
|
|
945
945
|
*
|
|
@@ -948,7 +948,7 @@ declare function inheritanceChain(shape: Shape, sheet: Sheet): readonly ChainLin
|
|
|
948
948
|
* Measured on four probes: a title where the layout has none, a body at an index
|
|
949
949
|
* nobody has, and both against a layout with no placeholders at all.
|
|
950
950
|
*/
|
|
951
|
-
declare const ORPHAN_RECT: {
|
|
951
|
+
export declare const ORPHAN_RECT: {
|
|
952
952
|
readonly x: 0;
|
|
953
953
|
readonly y: 0;
|
|
954
954
|
readonly cx: 0;
|
|
@@ -964,7 +964,7 @@ declare const ORPHAN_RECT: {
|
|
|
964
964
|
* conflating that with silence is how an explicit `a:noFill` gets overwritten by
|
|
965
965
|
* an inherited colour.
|
|
966
966
|
*/
|
|
967
|
-
declare function resolve<T>(shape: Shape, sheet: Sheet, pick: (shape: Shape) => T | undefined): Resolved<T> | undefined;
|
|
967
|
+
export declare function resolve<T>(shape: Shape, sheet: Sheet, pick: (shape: Shape) => T | undefined): Resolved<T> | undefined;
|
|
968
968
|
/**
|
|
969
969
|
* The rectangle a shape occupies, and which sheet stated it.
|
|
970
970
|
*
|
|
@@ -974,11 +974,11 @@ declare function resolve<T>(shape: Shape, sheet: Sheet, pick: (shape: Shape) =>
|
|
|
974
974
|
* whole resolved rectangle is baked in at once. So an absent `xfrm` is the
|
|
975
975
|
* statement "still bound to my layout", and it is what Change Layout reads.
|
|
976
976
|
*/
|
|
977
|
-
declare function resolveXfrm(shape: Shape, sheet: Sheet): Resolved<Xfrm> | undefined;
|
|
977
|
+
export declare function resolveXfrm(shape: Shape, sheet: Sheet): Resolved<Xfrm> | undefined;
|
|
978
978
|
/** Every sheet from this one up to its master, nearest first. */
|
|
979
|
-
declare function sheetChain(sheet: Sheet): readonly Sheet[];
|
|
979
|
+
export declare function sheetChain(sheet: Sheet): readonly Sheet[];
|
|
980
980
|
/** The master at the top of a sheet's chain, or `null` if the chain is broken. */
|
|
981
|
-
declare function masterOf(sheet: Sheet): Sheet | null;
|
|
981
|
+
export declare function masterOf(sheet: Sheet): Sheet | null;
|
|
982
982
|
/**
|
|
983
983
|
* The theme a sheet resolves against.
|
|
984
984
|
*
|
|
@@ -993,8 +993,8 @@ declare function masterOf(sheet: Sheet): Sheet | null;
|
|
|
993
993
|
* one is repaired on open, so a shared theme is a broken file rather than an
|
|
994
994
|
* economy.
|
|
995
995
|
*/
|
|
996
|
-
declare function themeOf(sheet: Sheet): Theme | null;
|
|
997
|
-
declare function schemeOf(sheet: Sheet): ClrScheme | undefined;
|
|
996
|
+
export declare function themeOf(sheet: Sheet): Theme | null;
|
|
997
|
+
export declare function schemeOf(sheet: Sheet): ClrScheme | undefined;
|
|
998
998
|
/**
|
|
999
999
|
* The colour map in force on a sheet.
|
|
1000
1000
|
*
|
|
@@ -1005,7 +1005,7 @@ declare function schemeOf(sheet: Sheet): ClrScheme | undefined;
|
|
|
1005
1005
|
* its layout's. The element is named for the sheet it usually ends at rather
|
|
1006
1006
|
* than for the one it asks.
|
|
1007
1007
|
*/
|
|
1008
|
-
declare function colorMapOf(sheet: Sheet): ClrMap | undefined;
|
|
1008
|
+
export declare function colorMapOf(sheet: Sheet): ClrMap | undefined;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Everything `resolveColor` needs, for a colour written on this sheet.
|
|
1011
1011
|
*
|
|
@@ -1014,7 +1014,7 @@ declare function colorMapOf(sheet: Sheet): ClrMap | undefined;
|
|
|
1014
1014
|
* `schemeClr val="phClr"` reached any other way throws rather than painting
|
|
1015
1015
|
* black.
|
|
1016
1016
|
*/
|
|
1017
|
-
declare function colorContextOf(sheet: Sheet, phClr?: Rgba): ColorContext;
|
|
1017
|
+
export declare function colorContextOf(sheet: Sheet, phClr?: Rgba): ColorContext;
|
|
1018
1018
|
//#endregion
|
|
1019
1019
|
//#region src/style.d.ts
|
|
1020
1020
|
/**
|
|
@@ -1026,7 +1026,7 @@ declare function colorContextOf(sheet: Sheet, phClr?: Rgba): ColorContext;
|
|
|
1026
1026
|
* agreed between the two elements, and `idx="0"` and `idx="1000"` both painted
|
|
1027
1027
|
* nothing.
|
|
1028
1028
|
*/
|
|
1029
|
-
declare const STYLE_MATRIX_OFFSET = 1000;
|
|
1029
|
+
export declare const STYLE_MATRIX_OFFSET = 1000;
|
|
1030
1030
|
/** Which of the two lists an index reaches, and where in it. */
|
|
1031
1031
|
type StyleMatrixTarget = {
|
|
1032
1032
|
readonly list: 'none';
|
|
@@ -1045,18 +1045,18 @@ type StyleMatrixTarget = {
|
|
|
1045
1045
|
* entry: PowerPoint clamps, opens the file without repairing it, and a renderer
|
|
1046
1046
|
* that throws here refuses a deck PowerPoint shows.
|
|
1047
1047
|
*/
|
|
1048
|
-
declare function styleMatrixTarget(idx: number): StyleMatrixTarget;
|
|
1048
|
+
export declare function styleMatrixTarget(idx: number): StyleMatrixTarget;
|
|
1049
1049
|
/** The fill a `fillRef`/`bgRef` index names, or `null` for none. */
|
|
1050
|
-
declare function styleMatrixFill(ref: StyleRef, theme: Theme): Fill | null;
|
|
1050
|
+
export declare function styleMatrixFill(ref: StyleRef, theme: Theme): Fill | null;
|
|
1051
1051
|
/**
|
|
1052
1052
|
* The line an `lnRef` index names, or `null` for none.
|
|
1053
1053
|
*
|
|
1054
1054
|
* `a:lnStyleLst` has no background counterpart, so an index above 1000 clamps
|
|
1055
1055
|
* into the same list rather than reaching a second one.
|
|
1056
1056
|
*/
|
|
1057
|
-
declare function styleMatrixLine(ref: StyleRef, theme: Theme): Line | null;
|
|
1057
|
+
export declare function styleMatrixLine(ref: StyleRef, theme: Theme): Line | null;
|
|
1058
1058
|
/** The effects an `effectRef` index names. Empty for none. */
|
|
1059
|
-
declare function styleMatrixEffects(ref: StyleRef, theme: Theme): readonly Effect[];
|
|
1059
|
+
export declare function styleMatrixEffects(ref: StyleRef, theme: Theme): readonly Effect[];
|
|
1060
1060
|
/**
|
|
1061
1061
|
* The colour a style reference invokes its entry with.
|
|
1062
1062
|
*
|
|
@@ -1066,7 +1066,7 @@ declare function styleMatrixEffects(ref: StyleRef, theme: Theme): readonly Effec
|
|
|
1066
1066
|
* its forty-two entries, so `phClr` is a fully transformed colour and not a
|
|
1067
1067
|
* theme slot name.
|
|
1068
1068
|
*/
|
|
1069
|
-
declare function phClrOf(ref: StyleRef, sheet: Sheet): Rgba | null;
|
|
1069
|
+
export declare function phClrOf(ref: StyleRef, sheet: Sheet): Rgba | null;
|
|
1070
1070
|
/** What a shape paints, and where each half of the answer came from. */
|
|
1071
1071
|
interface ResolvedAppearance {
|
|
1072
1072
|
/** `null` means nothing is painted: no fill was declared and no style names one. */
|
|
@@ -1089,7 +1089,7 @@ interface ResolvedAppearance {
|
|
|
1089
1089
|
* the whole inheritance chain first, and only if no level declared one does the
|
|
1090
1090
|
* `p:style` - itself inherited down the same chain - get consulted.
|
|
1091
1091
|
*/
|
|
1092
|
-
declare function resolveAppearance(shape: Shape, sheet: Sheet): ResolvedAppearance;
|
|
1092
|
+
export declare function resolveAppearance(shape: Shape, sheet: Sheet): ResolvedAppearance;
|
|
1093
1093
|
/**
|
|
1094
1094
|
* A shape's fill as a single colour, when it is one.
|
|
1095
1095
|
*
|
|
@@ -1097,9 +1097,9 @@ declare function resolveAppearance(shape: Shape, sheet: Sheet): ResolvedAppearan
|
|
|
1097
1097
|
* ground-truth fixture is in: PowerPoint's object model reports one RGB per
|
|
1098
1098
|
* shape, so this is what a measurement can be compared against.
|
|
1099
1099
|
*/
|
|
1100
|
-
declare function resolveSolidFill(shape: Shape, sheet: Sheet): Rgba | null;
|
|
1100
|
+
export declare function resolveSolidFill(shape: Shape, sheet: Sheet): Rgba | null;
|
|
1101
1101
|
/** Resolve any colour written on a sheet, with an optional `phClr` in scope. */
|
|
1102
|
-
declare function resolveOnSheet(color: Color, sheet: Sheet, phClr?: Rgba): Rgba;
|
|
1102
|
+
export declare function resolveOnSheet(color: Color, sheet: Sheet, phClr?: Rgba): Rgba;
|
|
1103
1103
|
//#endregion
|
|
1104
1104
|
//#region src/resolve/background.d.ts
|
|
1105
1105
|
/** A background, with the sheet that declared it and how it was expressed. */
|
|
@@ -1115,7 +1115,7 @@ interface ResolvedBackground {
|
|
|
1115
1115
|
readonly phClr: Rgba | null;
|
|
1116
1116
|
}
|
|
1117
1117
|
/** Which sheet's `p:bg` applies, without unpacking it. */
|
|
1118
|
-
declare function backgroundSheet(sheet: Sheet): {
|
|
1118
|
+
export declare function backgroundSheet(sheet: Sheet): {
|
|
1119
1119
|
sheet: Sheet;
|
|
1120
1120
|
background: Background;
|
|
1121
1121
|
} | null;
|
|
@@ -1125,9 +1125,9 @@ declare function backgroundSheet(sheet: Sheet): {
|
|
|
1125
1125
|
* `null` when no sheet in the chain declares one, which is a legal file: a deck
|
|
1126
1126
|
* whose master has no `p:bg` paints nothing behind its slides.
|
|
1127
1127
|
*/
|
|
1128
|
-
declare function resolveBackground(sheet: Sheet): ResolvedBackground | null;
|
|
1128
|
+
export declare function resolveBackground(sheet: Sheet): ResolvedBackground | null;
|
|
1129
1129
|
/** The background as one colour, when it is a solid. `null` otherwise. */
|
|
1130
|
-
declare function resolveBackgroundColor(sheet: Sheet): Rgba | null;
|
|
1130
|
+
export declare function resolveBackgroundColor(sheet: Sheet): Rgba | null;
|
|
1131
1131
|
//#endregion
|
|
1132
1132
|
//#region src/document.d.ts
|
|
1133
1133
|
/** One thing wrong with the package that did not stop the load. */
|
|
@@ -1172,13 +1172,13 @@ interface Document {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
sheet(partName: string): Sheet | undefined;
|
|
1174
1174
|
}
|
|
1175
|
-
declare function loadDocument(store: PartStore): Document;
|
|
1175
|
+
export declare function loadDocument(store: PartStore): Document;
|
|
1176
1176
|
//#endregion
|
|
1177
1177
|
//#region src/parse/text.d.ts
|
|
1178
1178
|
/** `a:rPr`, `a:defRPr` or `a:endParaRPr` - one type under three names. */
|
|
1179
|
-
declare function parseRunProps(element: XElement, partName: string): RunProps;
|
|
1179
|
+
export declare function parseRunProps(element: XElement, partName: string): RunProps;
|
|
1180
1180
|
/** `a:pPr`, `a:defPPr` or any `a:lvlNpPr` - one type under eleven names. */
|
|
1181
|
-
declare function parseParaProps(element: XElement, partName: string): ParaProps;
|
|
1181
|
+
export declare function parseParaProps(element: XElement, partName: string): ParaProps;
|
|
1182
1182
|
/**
|
|
1183
1183
|
* `a:lstStyle`, or a `p:txStyles` bucket, which is the same type unwrapped.
|
|
1184
1184
|
*
|
|
@@ -1187,15 +1187,15 @@ declare function parseParaProps(element: XElement, partName: string): ParaProps;
|
|
|
1187
1187
|
* third to the master. So a level nobody declared stays `undefined` rather than
|
|
1188
1188
|
* falling back to level one, and the resolver asks per level.
|
|
1189
1189
|
*/
|
|
1190
|
-
declare function parseListStyle(element: XElement, partName: string): ListStyle;
|
|
1190
|
+
export declare function parseListStyle(element: XElement, partName: string): ListStyle;
|
|
1191
1191
|
/** `p:txStyles` on a master. */
|
|
1192
|
-
declare function parseTextStyles(element: XElement, partName: string): TextStyles;
|
|
1192
|
+
export declare function parseTextStyles(element: XElement, partName: string): TextStyles;
|
|
1193
1193
|
/** `p:defaultTextStyle` on `ppt/presentation.xml`, which is a `CT_TextListStyle`. */
|
|
1194
|
-
declare function parseDefaultTextStyle(presentation: XElement, partName: string): ListStyle | undefined;
|
|
1194
|
+
export declare function parseDefaultTextStyle(presentation: XElement, partName: string): ListStyle | undefined;
|
|
1195
1195
|
/** A `p:txBody` or an `a:txBody`. */
|
|
1196
|
-
declare function parseTextBody(element: XElement, partName: string): TextBody;
|
|
1196
|
+
export declare function parseTextBody(element: XElement, partName: string): TextBody;
|
|
1197
1197
|
/** The `p:txBody` of a shape, when it has one. */
|
|
1198
|
-
declare function parseTextBodyChild(parent: XElement, partName: string): TextBody | undefined;
|
|
1198
|
+
export declare function parseTextBodyChild(parent: XElement, partName: string): TextBody | undefined;
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
//#region src/builtin-text-styles.d.ts
|
|
1201
1201
|
/**
|
|
@@ -1239,7 +1239,7 @@ interface BuiltinLevel {
|
|
|
1239
1239
|
readonly typeface: string | null;
|
|
1240
1240
|
}
|
|
1241
1241
|
/** The three buckets, nine levels each, level 1 first. */
|
|
1242
|
-
declare const BUILTIN_TEXT_STYLES: {
|
|
1242
|
+
export declare const BUILTIN_TEXT_STYLES: {
|
|
1243
1243
|
readonly title: readonly BuiltinLevel[];
|
|
1244
1244
|
readonly body: readonly BuiltinLevel[];
|
|
1245
1245
|
readonly other: readonly BuiltinLevel[];
|
|
@@ -1263,11 +1263,11 @@ declare const BUILTIN_TEXT_STYLES: {
|
|
|
1263
1263
|
*
|
|
1264
1264
|
* The typeface is the minor face on all 6 probes that reach a silent cascade.
|
|
1265
1265
|
*/
|
|
1266
|
-
declare const TEXT_FLOOR: BuiltinLevel;
|
|
1266
|
+
export declare const TEXT_FLOOR: BuiltinLevel;
|
|
1267
1267
|
//#endregion
|
|
1268
1268
|
//#region src/resolve/text.d.ts
|
|
1269
1269
|
/** Which `p:txStyles` bucket a placeholder type reads, or `null` for none. */
|
|
1270
|
-
declare function bucketOf(type: string): 'title' | 'body' | null;
|
|
1270
|
+
export declare function bucketOf(type: string): 'title' | 'body' | null;
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Everything the cascade needs that is not on the shape.
|
|
1273
1273
|
*
|
|
@@ -1298,7 +1298,7 @@ interface Level {
|
|
|
1298
1298
|
* compatibility scoring - needs the same list the resolver walks, not a second
|
|
1299
1299
|
* opinion about it.
|
|
1300
1300
|
*/
|
|
1301
|
-
declare function textLevels(context: TextContext): readonly Level[];
|
|
1301
|
+
export declare function textLevels(context: TextContext): readonly Level[];
|
|
1302
1302
|
/**
|
|
1303
1303
|
* The values left when every level has been asked and none of them said.
|
|
1304
1304
|
*
|
|
@@ -1310,7 +1310,7 @@ declare function textLevels(context: TextContext): readonly Level[];
|
|
|
1310
1310
|
* separate probes precisely because the two are easy to conflate and differ on
|
|
1311
1311
|
* every partially-specified master.
|
|
1312
1312
|
*/
|
|
1313
|
-
declare function floorOf(context: TextContext, level: number): BuiltinLevel;
|
|
1313
|
+
export declare function floorOf(context: TextContext, level: number): BuiltinLevel;
|
|
1314
1314
|
/**
|
|
1315
1315
|
* A paragraph property, from the paragraph's own `a:pPr` or up the walk.
|
|
1316
1316
|
*
|
|
@@ -1319,7 +1319,7 @@ declare function floorOf(context: TextContext, level: number): BuiltinLevel;
|
|
|
1319
1319
|
* reason: a level may legitimately declare a `null`, and conflating that with
|
|
1320
1320
|
* silence is how an explicit value gets overwritten by an inherited one.
|
|
1321
1321
|
*/
|
|
1322
|
-
declare function resolveParagraph<T>(context: TextContext, paragraph: Paragraph, pick: (props: ParaProps) => T | undefined): Resolved<T> | undefined;
|
|
1322
|
+
export declare function resolveParagraph<T>(context: TextContext, paragraph: Paragraph, pick: (props: ParaProps) => T | undefined): Resolved<T> | undefined;
|
|
1323
1323
|
/**
|
|
1324
1324
|
* A run property, from the run's own `a:rPr` and then every `a:defRPr` above it.
|
|
1325
1325
|
*
|
|
@@ -1327,7 +1327,7 @@ declare function resolveParagraph<T>(context: TextContext, paragraph: Paragraph,
|
|
|
1327
1327
|
* between the run and the shape's `a:lstStyle`, which the ladder pinned by
|
|
1328
1328
|
* declaring a different size at each and reading back which one won.
|
|
1329
1329
|
*/
|
|
1330
|
-
declare function resolveRun<T>(context: TextContext, paragraph: Paragraph, run: TextContent | undefined, pick: (props: RunProps) => T | undefined): Resolved<T> | undefined;
|
|
1330
|
+
export declare function resolveRun<T>(context: TextContext, paragraph: Paragraph, run: TextContent | undefined, pick: (props: RunProps) => T | undefined): Resolved<T> | undefined;
|
|
1331
1331
|
/**
|
|
1332
1332
|
* The font size of a run, in hundredths of a point, always.
|
|
1333
1333
|
*
|
|
@@ -1337,7 +1337,7 @@ declare function resolveRun<T>(context: TextContext, paragraph: Paragraph, run:
|
|
|
1337
1337
|
* `schemaDefault` when it does and the bucket said nothing - two different
|
|
1338
1338
|
* numbers on the same slide, and the field says which was used.
|
|
1339
1339
|
*/
|
|
1340
|
-
declare function resolveSize(context: TextContext, paragraph: Paragraph, run: TextContent | undefined): Resolved<number>;
|
|
1340
|
+
export declare function resolveSize(context: TextContext, paragraph: Paragraph, run: TextContent | undefined): Resolved<number>;
|
|
1341
1341
|
/**
|
|
1342
1342
|
* The Latin typeface of a run, with any theme reference followed.
|
|
1343
1343
|
*
|
|
@@ -1345,11 +1345,11 @@ declare function resolveSize(context: TextContext, paragraph: Paragraph, run: Te
|
|
|
1345
1345
|
* some face, and the face when nothing named one is measured rather than
|
|
1346
1346
|
* chosen - the theme's minor, on all six probes reaching a silent cascade.
|
|
1347
1347
|
*/
|
|
1348
|
-
declare function resolveLatinTypeface(context: TextContext, paragraph: Paragraph, run: TextContent | undefined): Resolved<string>;
|
|
1348
|
+
export declare function resolveLatinTypeface(context: TextContext, paragraph: Paragraph, run: TextContent | undefined): Resolved<string>;
|
|
1349
1349
|
/** `@marL` in EMU. Measured to be 0 when nothing declares it, not 347663. */
|
|
1350
|
-
declare function resolveMarginLeft(context: TextContext, paragraph: Paragraph): Resolved<number>;
|
|
1350
|
+
export declare function resolveMarginLeft(context: TextContext, paragraph: Paragraph): Resolved<number>;
|
|
1351
1351
|
/** `@indent` in EMU. Measured to be 0 when nothing declares it, not -342900. */
|
|
1352
|
-
declare function resolveIndent(context: TextContext, paragraph: Paragraph): Resolved<number>;
|
|
1352
|
+
export declare function resolveIndent(context: TextContext, paragraph: Paragraph): Resolved<number>;
|
|
1353
1353
|
/**
|
|
1354
1354
|
* The bullet, merged the way T5 measured it: five slots, each on its own.
|
|
1355
1355
|
*
|
|
@@ -1366,13 +1366,13 @@ declare function resolveIndent(context: TextContext, paragraph: Paragraph): Reso
|
|
|
1366
1366
|
* Nothing here supplies a default, because a paragraph with no bullet anywhere
|
|
1367
1367
|
* in its chain genuinely has none.
|
|
1368
1368
|
*/
|
|
1369
|
-
declare function resolveBulletKind(context: TextContext, paragraph: Paragraph): Resolved<BulletKind> | undefined;
|
|
1369
|
+
export declare function resolveBulletKind(context: TextContext, paragraph: Paragraph): Resolved<BulletKind> | undefined;
|
|
1370
1370
|
/** `a:buChar/@char`, as written. The symbol mapping belongs to the renderer. */
|
|
1371
|
-
declare function resolveBulletChar(context: TextContext, paragraph: Paragraph): Resolved<string> | undefined;
|
|
1371
|
+
export declare function resolveBulletChar(context: TextContext, paragraph: Paragraph): Resolved<string> | undefined;
|
|
1372
1372
|
/** `a:buAutoNum`, type and start value together, since one is meaningless alone. */
|
|
1373
|
-
declare function resolveBulletAutoNum(context: TextContext, paragraph: Paragraph): Resolved<BulletAutoNum> | undefined;
|
|
1373
|
+
export declare function resolveBulletAutoNum(context: TextContext, paragraph: Paragraph): Resolved<BulletAutoNum> | undefined;
|
|
1374
1374
|
/** `a:buBlip/a:blip/@r:embed`, which the caller resolves against the part's rels. */
|
|
1375
|
-
declare function resolveBulletBlip(context: TextContext, paragraph: Paragraph): Resolved<string> | undefined;
|
|
1375
|
+
export declare function resolveBulletBlip(context: TextContext, paragraph: Paragraph): Resolved<string> | undefined;
|
|
1376
1376
|
/**
|
|
1377
1377
|
* `a:buFont` or `a:buFontTx`.
|
|
1378
1378
|
*
|
|
@@ -1383,11 +1383,11 @@ declare function resolveBulletBlip(context: TextContext, paragraph: Paragraph):
|
|
|
1383
1383
|
* numbers. The resolver still reports it, because the file says it and 1.3 has
|
|
1384
1384
|
* to write it back; the renderer is where it is ignored.
|
|
1385
1385
|
*/
|
|
1386
|
-
declare function resolveBulletFont(context: TextContext, paragraph: Paragraph): Resolved<BulletFont> | undefined;
|
|
1386
|
+
export declare function resolveBulletFont(context: TextContext, paragraph: Paragraph): Resolved<BulletFont> | undefined;
|
|
1387
1387
|
/** `a:buSzPct`, `a:buSzPts` or `a:buSzTx`; a percentage is of the first run's size. */
|
|
1388
|
-
declare function resolveBulletSize(context: TextContext, paragraph: Paragraph): Resolved<BulletSize> | undefined;
|
|
1388
|
+
export declare function resolveBulletSize(context: TextContext, paragraph: Paragraph): Resolved<BulletSize> | undefined;
|
|
1389
1389
|
/** `a:buClr` or `a:buClrTx`. Unlike the font, this one *does* reach an autonumber. */
|
|
1390
|
-
declare function resolveBulletColor(context: TextContext, paragraph: Paragraph): Resolved<BulletColor> | undefined;
|
|
1390
|
+
export declare function resolveBulletColor(context: TextContext, paragraph: Paragraph): Resolved<BulletColor> | undefined;
|
|
1391
1391
|
//#endregion
|
|
1392
1392
|
//#region src/resolve/body.d.ts
|
|
1393
1393
|
/**
|
|
@@ -1409,31 +1409,31 @@ interface ResolvedInsets {
|
|
|
1409
1409
|
* `pick` returns `undefined` for "this level did not say", the same contract the
|
|
1410
1410
|
* text cascade uses.
|
|
1411
1411
|
*/
|
|
1412
|
-
declare function resolveBody<T>(shape: Shape, sheet: Sheet, pick: (props: BodyProps) => T | undefined): Resolved<T> | undefined;
|
|
1413
|
-
declare function resolveAnchor(shape: Shape, sheet: Sheet): Resolved<TextAnchor> | undefined;
|
|
1414
|
-
declare function resolveAnchorCtr(shape: Shape, sheet: Sheet): Resolved<boolean> | undefined;
|
|
1415
|
-
declare function resolveVertical(shape: Shape, sheet: Sheet): Resolved<VerticalText> | undefined;
|
|
1416
|
-
declare function resolveWrap(shape: Shape, sheet: Sheet): Resolved<TextWrap> | undefined;
|
|
1417
|
-
declare function resolveColumns(shape: Shape, sheet: Sheet): Resolved<number> | undefined;
|
|
1412
|
+
export declare function resolveBody<T>(shape: Shape, sheet: Sheet, pick: (props: BodyProps) => T | undefined): Resolved<T> | undefined;
|
|
1413
|
+
export declare function resolveAnchor(shape: Shape, sheet: Sheet): Resolved<TextAnchor> | undefined;
|
|
1414
|
+
export declare function resolveAnchorCtr(shape: Shape, sheet: Sheet): Resolved<boolean> | undefined;
|
|
1415
|
+
export declare function resolveVertical(shape: Shape, sheet: Sheet): Resolved<VerticalText> | undefined;
|
|
1416
|
+
export declare function resolveWrap(shape: Shape, sheet: Sheet): Resolved<TextWrap> | undefined;
|
|
1417
|
+
export declare function resolveColumns(shape: Shape, sheet: Sheet): Resolved<number> | undefined;
|
|
1418
1418
|
/**
|
|
1419
1419
|
* The four insets, in points, each falling back on its own.
|
|
1420
1420
|
*
|
|
1421
1421
|
* A frame stating only `lIns` still gets 3.6 above and below, so this resolves
|
|
1422
1422
|
* four times rather than once.
|
|
1423
1423
|
*/
|
|
1424
|
-
declare function resolveInsets(shape: Shape, sheet: Sheet): ResolvedInsets;
|
|
1424
|
+
export declare function resolveInsets(shape: Shape, sheet: Sheet): ResolvedInsets;
|
|
1425
1425
|
//#endregion
|
|
1426
1426
|
//#region src/parse/body.d.ts
|
|
1427
1427
|
/** Parse an `a:bodyPr`. Lengths stay in EMU and angles in 60000ths of a degree. */
|
|
1428
|
-
declare function parseBodyProps(element: XElement, partName: string): BodyProps;
|
|
1428
|
+
export declare function parseBodyProps(element: XElement, partName: string): BodyProps;
|
|
1429
1429
|
/** The `a:bodyPr` of a `p:txBody`, when it has one. */
|
|
1430
|
-
declare function parseBodyPropsChild(parent: XElement, partName: string): BodyProps | undefined;
|
|
1430
|
+
export declare function parseBodyPropsChild(parent: XElement, partName: string): BodyProps | undefined;
|
|
1431
1431
|
//#endregion
|
|
1432
1432
|
//#region src/parse/table.d.ts
|
|
1433
1433
|
/** An `a:tbl`. */
|
|
1434
|
-
declare function parseTable(element: XElement, part: string): Table;
|
|
1434
|
+
export declare function parseTable(element: XElement, part: string): Table;
|
|
1435
1435
|
/** The table of a `p:graphicFrame`, when its `a:graphicData` carries one. */
|
|
1436
|
-
declare function parseTableChild(frame: XElement, part: string): Table | undefined;
|
|
1436
|
+
export declare function parseTableChild(frame: XElement, part: string): Table | undefined;
|
|
1437
1437
|
//#endregion
|
|
1438
1438
|
//#region src/resolve/typeface.d.ts
|
|
1439
1439
|
/** The four slots a `CT_TextCharacterProperties` can name. */
|
|
@@ -1444,16 +1444,16 @@ type ScriptSlot = 'latin' | 'ea' | 'cs' | 'sym';
|
|
|
1444
1444
|
* `undefined` means the reference resolved to a collection entry the theme
|
|
1445
1445
|
* leaves empty, which is not the same as the theme naming nothing.
|
|
1446
1446
|
*/
|
|
1447
|
-
declare function resolveTypeface(typeface: string, scheme: FontScheme): string | undefined;
|
|
1447
|
+
export declare function resolveTypeface(typeface: string, scheme: FontScheme): string | undefined;
|
|
1448
1448
|
/** The same, for a whole `CT_TextFont`. */
|
|
1449
|
-
declare function resolveTypefaceOf(font: Typeface, scheme: FontScheme): string | undefined;
|
|
1449
|
+
export declare function resolveTypefaceOf(font: Typeface, scheme: FontScheme): string | undefined;
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Every distinct typeface a set of runs asks for, theme references followed.
|
|
1452
1452
|
*
|
|
1453
1453
|
* This is what `fontReport` is given: a report keyed on `+mn-lt` would name a
|
|
1454
1454
|
* token no user recognises and would collapse two themes into one row.
|
|
1455
1455
|
*/
|
|
1456
|
-
declare function requestedTypefaces(fonts: Iterable<Typeface | undefined>, scheme: FontScheme): readonly string[];
|
|
1456
|
+
export declare function requestedTypefaces(fonts: Iterable<Typeface | undefined>, scheme: FontScheme): readonly string[];
|
|
1457
1457
|
//#endregion
|
|
1458
|
-
export {
|
|
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 };
|
|
1459
1459
|
//# 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-text-styles.ts","../src/resolve/text.ts","../src/resolve/body.ts","../src/parse/body.ts","../src/parse/table.ts","../src/resolve/typeface.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAkBY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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/resolve/text.ts","../src/resolve/body.ts","../src/parse/body.ts","../src/parse/table.ts","../src/resolve/typeface.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAkBY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAwDC,m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Q,UAAU,mBAAmB;;;;wBCqEzD,WAAW,SAAS,UAAU,eAAe;;wBAmB7C,gBAAgB,OAAO,UAAU,eAAe;;;;KChNpD;;;;;;;wBAQI,gBAAgB,kBAAkB,QAAQ;;wBAU1C,kBAAkB,MAAM,UAAU,QAAQ;;;;;;;wBAU1C,mBACd,OAAO,SAAS,uBAChB,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptx-studio/model",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The document model: sheets, the inheritance chain, and the resolver everything else reads",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@pptx-studio/
|
|
45
|
-
"@pptx-studio/
|
|
46
|
-
"@pptx-studio/
|
|
47
|
-
"@pptx-studio/
|
|
44
|
+
"@pptx-studio/geometry": "^0.1.2",
|
|
45
|
+
"@pptx-studio/opc": "^0.1.3",
|
|
46
|
+
"@pptx-studio/paint": "^0.4.1",
|
|
47
|
+
"@pptx-studio/xml": "^0.1.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arethetypeswrong/cli": "0.18.5",
|
|
51
51
|
"publint": "0.3.24",
|
|
52
|
-
"tsdown": "0.
|
|
52
|
+
"tsdown": "0.23.0",
|
|
53
53
|
"typescript": "6.0.3"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|