@json-to-office/core-pptx 6.1.0 → 6.2.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/dist/index.js +532 -20
- package/dist/index.js.map +1 -1
- package/dist/quality/facts.d.ts +47 -1
- package/dist/quality/facts.d.ts.map +1 -1
- package/dist/quality/rules.d.ts +95 -1
- package/dist/quality/rules.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/quality/facts.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export interface PptxCanvasFact extends QualityFact {
|
|
|
7
7
|
kind: 'pptx/canvas';
|
|
8
8
|
widthIn?: number;
|
|
9
9
|
heightIn?: number;
|
|
10
|
+
/** The canvas the deck actually renders on, after the renderer's defaults. */
|
|
11
|
+
widthPt: number;
|
|
12
|
+
heightPt: number;
|
|
13
|
+
/** The theme's safe area for this canvas, where it declares one. */
|
|
14
|
+
safeAreaPt?: number;
|
|
10
15
|
}
|
|
11
16
|
export interface PptxTextFact extends QualityFact {
|
|
12
17
|
kind: 'pptx/text';
|
|
@@ -32,6 +37,13 @@ export interface PptxTextFact extends QualityFact {
|
|
|
32
37
|
autoFit: boolean;
|
|
33
38
|
/** Effective bold, from the run or its named style. */
|
|
34
39
|
bold: boolean;
|
|
40
|
+
/** Pointer to the authored size value; absent when the size is inherited. */
|
|
41
|
+
sizePath?: string;
|
|
42
|
+
/**
|
|
43
|
+
* A block compiled this node, so its pointer is the slot the author wrote
|
|
44
|
+
* rather than a size they can patch.
|
|
45
|
+
*/
|
|
46
|
+
generated: boolean;
|
|
35
47
|
/** Resolved run colour, bare hex, when the document states one. */
|
|
36
48
|
colorHex?: string;
|
|
37
49
|
/**
|
|
@@ -44,6 +56,29 @@ export interface PptxTextFact extends QualityFact {
|
|
|
44
56
|
export interface PptxSlideFact extends QualityFact {
|
|
45
57
|
kind: 'pptx/slide';
|
|
46
58
|
bodyWords: number;
|
|
59
|
+
/** Boxes that carry content: text, tables, charts, images — chrome aside. */
|
|
60
|
+
contentBoxes: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A run of bullets in one box: what the audience is asked to read at once.
|
|
64
|
+
* `items` counts the bulleted paragraphs, `longestWords` the wordiest.
|
|
65
|
+
*/
|
|
66
|
+
export interface PptxBulletsFact extends QualityFact {
|
|
67
|
+
kind: 'pptx/bullets';
|
|
68
|
+
slidePath: string;
|
|
69
|
+
items: number;
|
|
70
|
+
longestWords: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* A drawn image and what is known about the asset behind it. `naturalRatio`
|
|
74
|
+
* is present only when the asset could be read from the document itself — a
|
|
75
|
+
* base64 data URI; a `path` is resolved at generation, not here.
|
|
76
|
+
*/
|
|
77
|
+
export interface PptxImageFact extends QualityFact {
|
|
78
|
+
kind: 'pptx/image';
|
|
79
|
+
alt?: string;
|
|
80
|
+
drawnRatio?: number;
|
|
81
|
+
naturalRatio?: number;
|
|
47
82
|
}
|
|
48
83
|
/** A box drawn on a slide, in draw order — the input to the overlap rule. */
|
|
49
84
|
export interface PptxBoxFact extends QualityFact {
|
|
@@ -66,6 +101,15 @@ export interface PptxThemeFact extends QualityFact {
|
|
|
66
101
|
/** Token name to `#RRGGBB`, for every palette entry that resolves. */
|
|
67
102
|
paletteHexes: Readonly<Record<string, string>>;
|
|
68
103
|
fontFamilies: readonly string[];
|
|
104
|
+
/**
|
|
105
|
+
* Every size the theme paints, ascending: each named style, each type role
|
|
106
|
+
* projected onto one, the deck's default size and, where the theme declares
|
|
107
|
+
* a type scale for this canvas, every step of it. A size an author writes
|
|
108
|
+
* by hand is on the theme's scale when it is in this list.
|
|
109
|
+
*/
|
|
110
|
+
typeScalePt: readonly number[];
|
|
111
|
+
/** Style name (`title`, `body`, a type role) to the size it paints. */
|
|
112
|
+
roleSizesPt: Readonly<Record<string, number>>;
|
|
69
113
|
}
|
|
70
114
|
/** A colour written as a literal rather than as a theme token. */
|
|
71
115
|
export interface PptxColorFact extends QualityFact {
|
|
@@ -126,6 +170,8 @@ export interface PptxBlockSlotFact extends QualityFact {
|
|
|
126
170
|
export interface PptxChromeSlotFact extends QualityFact {
|
|
127
171
|
kind: 'pptx/chrome-slot';
|
|
128
172
|
block: string;
|
|
173
|
+
/** The slide the invocation sits on. */
|
|
174
|
+
slidePath: string;
|
|
129
175
|
/** Authored pointer of the invocation. */
|
|
130
176
|
invocation: string;
|
|
131
177
|
slot: string;
|
|
@@ -136,7 +182,7 @@ export interface PptxChromeSlotFact extends QualityFact {
|
|
|
136
182
|
estimatedLines?: number;
|
|
137
183
|
fontSizePt?: number;
|
|
138
184
|
}
|
|
139
|
-
export type PptxQualityFact = PptxCanvasFact | PptxBlockSlotFact | PptxChromeSlotFact | PptxTextFact | PptxSlideFact | PptxPlaceholderFact | PptxBoxFact | PptxThemeFact | PptxColorFact | PptxFontFact | PptxChartFact | PptxTableFact;
|
|
185
|
+
export type PptxQualityFact = PptxCanvasFact | PptxBlockSlotFact | PptxChromeSlotFact | PptxTextFact | PptxSlideFact | PptxPlaceholderFact | PptxBoxFact | PptxThemeFact | PptxBulletsFact | PptxImageFact | PptxColorFact | PptxFontFact | PptxChartFact | PptxTableFact;
|
|
140
186
|
export interface PptxQualityModel {
|
|
141
187
|
authored: PresentationComponentDefinition;
|
|
142
188
|
/** The document after the export-mode pre-pass and block expansion. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facts.d.ts","sourceRoot":"","sources":["../../src/quality/facts.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"facts.d.ts","sourceRoot":"","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,CAAC;IAC1C,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,qBAAqB,CAAC;CAClC;AAED,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,SAAS,EAAE,cAAc,CAAC;IAC1B,gDAAgD;IAChD,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,EAAE,+BAA+B,CAAC;CAC3C;AAED,MAAM,WAAW,yBAAyB;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA8iCD,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,+BAA+B,EACzC,OAAO,GAAE,yBAA8B,GACtC,gBAAgB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CA0SrD"}
|
package/dist/quality/rules.d.ts
CHANGED
|
@@ -53,6 +53,61 @@ export declare const pptxRequiredChromeRule: QualityRule<PptxQualityModel, PptxQ
|
|
|
53
53
|
* and only a consulting profile asks every slide to lead with a claim.
|
|
54
54
|
*/
|
|
55
55
|
export declare const pptxActionTitleRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
56
|
+
/**
|
|
57
|
+
* An authored size the theme never paints: not a named style, not a type role
|
|
58
|
+
* projected onto one, not the deck default, not a step of its scale. The
|
|
59
|
+
* theme owns the list, so a custom theme is judged by its own values, and a
|
|
60
|
+
* size a block compiled from its definition is never reported — the author
|
|
61
|
+
* has no pointer to patch there. Off until a profile turns it on: a title
|
|
62
|
+
* slide sets a display size by hand, and only an archetype decides that a
|
|
63
|
+
* deck must keep to the scale.
|
|
64
|
+
*/
|
|
65
|
+
export declare const pptxTypeScaleRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
66
|
+
/**
|
|
67
|
+
* How many distinct sizes a deck paints, blocks included: the count of what
|
|
68
|
+
* reaches the slides rather than of what the author typed. Off until a
|
|
69
|
+
* profile turns it on and sets `maximumSizes` — a theme sets no ceiling of
|
|
70
|
+
* its own, the ceiling is an archetype convention.
|
|
71
|
+
*/
|
|
72
|
+
export declare const pptxSizeCountRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
73
|
+
/**
|
|
74
|
+
* One style at two sizes across the deck: a title, a body preset or a type
|
|
75
|
+
* role painted at more than one size. The theme's size for the style is the
|
|
76
|
+
* expected value, and every authored departure from it is reported and
|
|
77
|
+
* repaired to it. A style that is consistently overridden is not drift. Off
|
|
78
|
+
* until a profile turns it on, for the same reason as `pptx/type-scale`,
|
|
79
|
+
* which yields to this rule on any pointer it reports.
|
|
80
|
+
*/
|
|
81
|
+
export declare const pptxRoleDriftRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
82
|
+
/**
|
|
83
|
+
* Titles of one kind that do not start where the deck's other titles of that
|
|
84
|
+
* kind start. A theme says nothing about where a title sits — a block
|
|
85
|
+
* definition or the author places it — so the prevailing edge among the
|
|
86
|
+
* deck's own titles is the expected value, and the profile is what asks them
|
|
87
|
+
* to agree. Off until one turns it on.
|
|
88
|
+
*/
|
|
89
|
+
export declare const pptxTitleDriftRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
90
|
+
/**
|
|
91
|
+
* Bullets an audience is asked to read at once. Past five, a slide is a
|
|
92
|
+
* document; past twelve words, a bullet is a sentence. Both bounds are the
|
|
93
|
+
* profile's — a technical deck lists ten build steps on purpose.
|
|
94
|
+
*/
|
|
95
|
+
export declare const pptxBulletRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
96
|
+
/**
|
|
97
|
+
* Content outside the theme's safe area. Chrome lives in the margin band by
|
|
98
|
+
* design — a tracker at the top edge, a page number at the foot — and so
|
|
99
|
+
* does a deliberate bleed, which touches an edge and spans the whole of the
|
|
100
|
+
* other axis. Everything else belongs inside the margin the theme drew.
|
|
101
|
+
*/
|
|
102
|
+
export declare const pptxSafeAreaRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
103
|
+
/**
|
|
104
|
+
* A slide carrying content that nothing names. The title may be a block's
|
|
105
|
+
* `actionTitle` slot or a box in one of the theme's title styles; a slide
|
|
106
|
+
* with nothing but chrome on it is a divider, not an untitled slide.
|
|
107
|
+
*/
|
|
108
|
+
export declare const pptxSlideTitleRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
109
|
+
/** An image drawn at an aspect the asset does not have. */
|
|
110
|
+
export declare const pptxImageAspectRule: QualityRule<PptxQualityModel, PptxQualityFact>;
|
|
56
111
|
export declare const PPTX_QUALITY_RULES: QualityRulePack<PptxQualityModel, PptxQualityFact>;
|
|
57
112
|
export declare const PPTX_QUALITY_PROFILES: {
|
|
58
113
|
readonly 'executive-presentation': {
|
|
@@ -70,6 +125,15 @@ export declare const PPTX_QUALITY_PROFILES: {
|
|
|
70
125
|
readonly maximumBodyWords: 70;
|
|
71
126
|
};
|
|
72
127
|
};
|
|
128
|
+
readonly 'pptx/bullet-density': {
|
|
129
|
+
readonly parameters: {
|
|
130
|
+
readonly maximumBullets: 5;
|
|
131
|
+
readonly maximumWordsPerBullet: 12;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly 'pptx/slide-title': {
|
|
135
|
+
readonly enabled: true;
|
|
136
|
+
};
|
|
73
137
|
};
|
|
74
138
|
};
|
|
75
139
|
readonly 'technical-presentation': {
|
|
@@ -80,7 +144,7 @@ export declare const PPTX_QUALITY_PROFILES: {
|
|
|
80
144
|
readonly 'consulting-deck': {
|
|
81
145
|
readonly id: "consulting-deck";
|
|
82
146
|
readonly formats: readonly ["pptx"];
|
|
83
|
-
readonly description: "Consulting readout: every content slide leads with a two-line action title, every chart carries a takeaway and a source.";
|
|
147
|
+
readonly description: "Consulting readout: every content slide leads with a two-line action title, every chart carries a takeaway and a source, content stays inside the theme’s safe area, bullets stay under five and under twelve words, every size is on the theme scale with at most eight in play, and titles of one kind hold one line.";
|
|
84
148
|
readonly rules: {
|
|
85
149
|
readonly 'pptx/required-chrome': {
|
|
86
150
|
readonly parameters: {
|
|
@@ -97,6 +161,36 @@ export declare const PPTX_QUALITY_PROFILES: {
|
|
|
97
161
|
readonly maximumBodyWords: 90;
|
|
98
162
|
};
|
|
99
163
|
};
|
|
164
|
+
readonly 'pptx/type-scale': {
|
|
165
|
+
readonly enabled: true;
|
|
166
|
+
};
|
|
167
|
+
readonly 'pptx/size-count': {
|
|
168
|
+
readonly enabled: true;
|
|
169
|
+
readonly parameters: {
|
|
170
|
+
readonly maximumSizes: 8;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly 'pptx/role-drift': {
|
|
174
|
+
readonly enabled: true;
|
|
175
|
+
};
|
|
176
|
+
readonly 'pptx/title-drift': {
|
|
177
|
+
readonly enabled: true;
|
|
178
|
+
readonly parameters: {
|
|
179
|
+
readonly titleStyles: readonly ["title", "display"];
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly 'pptx/bullet-density': {
|
|
183
|
+
readonly parameters: {
|
|
184
|
+
readonly maximumBullets: 5;
|
|
185
|
+
readonly maximumWordsPerBullet: 12;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly 'pptx/safe-area': {
|
|
189
|
+
readonly enabled: true;
|
|
190
|
+
};
|
|
191
|
+
readonly 'pptx/slide-title': {
|
|
192
|
+
readonly enabled: true;
|
|
193
|
+
};
|
|
100
194
|
};
|
|
101
195
|
};
|
|
102
196
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/quality/rules.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/quality/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAkBL,aAA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