deckjsx 0.7.0 → 0.8.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.
@@ -0,0 +1,1257 @@
1
+ import { $ as Diagnostics, K as SourceOrigin, L as SemanticNode, M as GraphNodeId, O as AssetEntity, Ut as CssVisibility, X as Diagnostic, Y as StyleEntityId, an as StyleDeclarationValue, bt as BorderStyle, fn as VerticalAlign, ht as TemplateAreaKind, i as DeckOptions, j as Brand, nn as StrokeLineCap, on as TextFit, rn as StrokeLineJoin, tn as StrokeDashType } from "./index-dx2ZSBgF.mjs";
2
+
3
+ //#region src/assets.d.ts
4
+ type AssetMediaType = string;
5
+ type AssetSource = {
6
+ readonly kind: "data";
7
+ readonly data: string;
8
+ } | {
9
+ readonly kind: "bytes";
10
+ readonly bytes: Uint8Array;
11
+ readonly mediaType?: AssetMediaType;
12
+ readonly extension?: string;
13
+ } | {
14
+ readonly kind: "url";
15
+ readonly url: string;
16
+ } | {
17
+ readonly kind: "path";
18
+ readonly path: string;
19
+ };
20
+ type AssetProbeResult = {
21
+ readonly mediaType?: AssetMediaType;
22
+ readonly extension?: string;
23
+ readonly width?: number;
24
+ readonly height?: number;
25
+ readonly byteLength?: number;
26
+ readonly hash?: string;
27
+ readonly diagnostics?: readonly Diagnostic[];
28
+ };
29
+ type AssetLoadResult = AssetProbeResult & {
30
+ readonly bytes: Uint8Array;
31
+ };
32
+ type AssetLoaderContext = {
33
+ readonly source: AssetSource;
34
+ readonly scope?: string;
35
+ };
36
+ type AssetLoader = {
37
+ readonly name?: string;
38
+ probe?(context: AssetLoaderContext): Promise<AssetProbeResult | undefined>;
39
+ load?(context: AssetLoaderContext): Promise<AssetLoadResult | undefined>;
40
+ };
41
+ //#endregion
42
+ //#region src/layout/projected.d.ts
43
+ type SizeIR = {
44
+ widthEmu: number;
45
+ heightEmu: number;
46
+ };
47
+ type FrameIR = SizeIR & {
48
+ xEmu: number;
49
+ yEmu: number;
50
+ };
51
+ type ProjectedLayoutClip = {
52
+ readonly strategy: "intersectParentOverflow";
53
+ readonly originalFrame: FrameIR;
54
+ readonly clipFrame: FrameIR;
55
+ readonly visibleFrame: FrameIR;
56
+ };
57
+ type ProjectedUnsupportedSemanticFeature = "blend" | "background" | "border" | "clipping" | "filter" | "isolation" | "outline" | "opacity" | "shadow" | "stroke" | "transform";
58
+ type ProjectedUnsupportedFallbackStrategy = "axisAlignedClipWithoutTransformedMask" | "cascadeOpacityToChildren" | "dropBlendMode" | "dropFilterEffect" | "dropIsolationGroup" | "preserveAuthoredValueOnly" | "preserveOpacityWithoutCompositedSubtree" | "preserveTransformWithoutStackingContext" | "sourceRectBeforeTransform";
59
+ type ProjectedUnsupportedFallback = {
60
+ readonly strategy: ProjectedUnsupportedFallbackStrategy;
61
+ readonly preserves: readonly string[];
62
+ readonly missing: readonly string[];
63
+ };
64
+ type ProjectedUnsupportedSemantic = {
65
+ readonly feature: ProjectedUnsupportedSemanticFeature;
66
+ readonly property: string;
67
+ readonly value: string;
68
+ readonly reason: string;
69
+ readonly fallback?: ProjectedUnsupportedFallback;
70
+ };
71
+ type ShadowIR = {
72
+ type: "outer" | "inner";
73
+ color: string;
74
+ opacity: number;
75
+ blurPt: number;
76
+ offsetPt: number;
77
+ angle: number;
78
+ };
79
+ type HyperlinkIR = {
80
+ url: string;
81
+ tooltip?: string;
82
+ };
83
+ type ObjectPositionIR = {
84
+ x: number;
85
+ y: number;
86
+ };
87
+ type ImageCropIR = {
88
+ top: number;
89
+ right: number;
90
+ bottom: number;
91
+ left: number;
92
+ };
93
+ type SolidFillIR = {
94
+ kind: "solid";
95
+ color: string;
96
+ transparency?: number;
97
+ frame?: FrameIR;
98
+ };
99
+ type LinearGradientStopIR = {
100
+ color: string;
101
+ transparency?: number;
102
+ position: number;
103
+ };
104
+ type LinearGradientFillIR = {
105
+ kind: "linear-gradient";
106
+ angle: number;
107
+ stops: ReadonlyArray<LinearGradientStopIR>;
108
+ frame?: FrameIR;
109
+ };
110
+ type RadialGradientFillIR = {
111
+ kind: "radial-gradient";
112
+ shape: "circle" | "ellipse";
113
+ center: {
114
+ x: number;
115
+ y: number;
116
+ };
117
+ radius: {
118
+ x: number;
119
+ y: number;
120
+ };
121
+ stops: ReadonlyArray<LinearGradientStopIR>;
122
+ frame?: FrameIR;
123
+ };
124
+ type BackgroundImageLayerIR = {
125
+ kind: "background-image";
126
+ frame: FrameIR;
127
+ sourceFrame: FrameIR;
128
+ source: ImageSourceIR;
129
+ fit: "contain" | "cover" | "stretch" | "size";
130
+ size?: {
131
+ widthEmu?: number;
132
+ heightEmu?: number;
133
+ };
134
+ repeat: "no-repeat" | "repeat-x" | "repeat-y" | "repeat";
135
+ objectPosition?: ObjectPositionIR;
136
+ transparency?: number;
137
+ };
138
+ type FillIR = SolidFillIR | LinearGradientFillIR | RadialGradientFillIR;
139
+ type StrokeIR = {
140
+ color: string;
141
+ widthPt: number;
142
+ style?: BorderStyle;
143
+ dashType?: StrokeDashType;
144
+ lineCap?: StrokeLineCap;
145
+ lineJoin?: StrokeLineJoin;
146
+ transparency?: number;
147
+ };
148
+ type EdgeStrokeIR = {
149
+ top?: StrokeIR;
150
+ right?: StrokeIR;
151
+ bottom?: StrokeIR;
152
+ left?: StrokeIR;
153
+ };
154
+ type TextRunIR = {
155
+ text: string;
156
+ style?: TextStyleIR;
157
+ };
158
+ type TextTabStopIR = {
159
+ positionIn: number;
160
+ alignment?: "l" | "r" | "ctr" | "dec";
161
+ };
162
+ type TextBulletListIR = {
163
+ type: "bullet";
164
+ characterCode: string;
165
+ indentPt?: number;
166
+ };
167
+ type TextNumberListIR = {
168
+ type: "number";
169
+ style: "arabicPeriod" | "alphaLcPeriod" | "alphaUcPeriod" | "romanLcPeriod" | "romanUcPeriod";
170
+ startAt?: number;
171
+ indentPt?: number;
172
+ };
173
+ type TextNoListIR = {
174
+ type: "none";
175
+ };
176
+ type TextListIR = TextBulletListIR | TextNumberListIR | TextNoListIR;
177
+ type TextStyleIR = {
178
+ fontFamily?: string;
179
+ fontSizePt?: number;
180
+ fontWeight?: number | "normal" | "bold";
181
+ italic?: boolean;
182
+ underline?: boolean;
183
+ underlineStyle?: "dash" | "dbl" | "dotted" | "none" | "sng" | "wavy";
184
+ underlineColor?: string;
185
+ strike?: boolean;
186
+ rtlMode?: boolean;
187
+ textDirection?: "horz" | "vert" | "vert270";
188
+ superscript?: boolean;
189
+ subscript?: boolean;
190
+ color?: string;
191
+ textAlign?: "left" | "center" | "right" | "justify";
192
+ verticalAlign?: VerticalAlign;
193
+ paddingPt?: [number, number, number, number];
194
+ lineSpacing?: number;
195
+ lineSpacingMultiple?: number;
196
+ paragraphSpacingBefore?: number;
197
+ paragraphSpacingAfter?: number;
198
+ textIndentPt?: number;
199
+ tabStops?: ReadonlyArray<TextTabStopIR>;
200
+ charSpacing?: number;
201
+ list?: TextListIR;
202
+ fit?: TextFit;
203
+ wrap?: boolean;
204
+ };
205
+ type ImageSourceIR = {
206
+ kind: "path";
207
+ path: string;
208
+ } | {
209
+ kind: "data";
210
+ data: string;
211
+ } | {
212
+ kind: "url";
213
+ url: string;
214
+ };
215
+ //#endregion
216
+ //#region src/pipeline.d.ts
217
+ type ProjectionFormat = "pptx";
218
+ type OutputFormat = ProjectionFormat | "pdf";
219
+ type StageName = "compile" | "project" | "render";
220
+ type StageArtifactStatus = "available" | "partial" | "missing";
221
+ type InspectionDetailLevel = "details" | "none" | "summary";
222
+ type ProjectOptions = {
223
+ readonly inspection?: InspectionDetailLevel;
224
+ };
225
+ type StageSummary<TArtifact extends StageArtifactStatus = StageArtifactStatus> = {
226
+ readonly ok: boolean;
227
+ readonly diagnostics: Diagnostics;
228
+ readonly artifact: TArtifact;
229
+ };
230
+ type CompileStageSummary<TArtifact extends StageArtifactStatus = StageArtifactStatus> = StageSummary<TArtifact> & {
231
+ readonly stage: "compile";
232
+ };
233
+ type ProjectStageSummary<TArtifact extends StageArtifactStatus = StageArtifactStatus> = StageSummary<TArtifact> & {
234
+ readonly stage: "project";
235
+ };
236
+ type RenderStageSummary<TArtifact extends StageArtifactStatus = StageArtifactStatus> = StageSummary<TArtifact> & {
237
+ readonly stage: "render";
238
+ };
239
+ type CompileStages<TCompileArtifact extends StageArtifactStatus = StageArtifactStatus> = {
240
+ readonly compile: CompileStageSummary<TCompileArtifact>;
241
+ };
242
+ type ProjectStages<TCompileArtifact extends StageArtifactStatus = StageArtifactStatus, TProjectArtifact extends StageArtifactStatus = StageArtifactStatus> = CompileStages<TCompileArtifact> & {
243
+ readonly project: ProjectStageSummary<TProjectArtifact>;
244
+ };
245
+ type RenderStages<TCompileArtifact extends StageArtifactStatus = StageArtifactStatus, TProjectArtifact extends StageArtifactStatus = StageArtifactStatus, TRenderArtifact extends StageArtifactStatus = StageArtifactStatus> = ProjectStages<TCompileArtifact, TProjectArtifact> & {
246
+ readonly render: RenderStageSummary<TRenderArtifact>;
247
+ };
248
+ type RenderedArtifact<TFormat extends OutputFormat = OutputFormat> = {
249
+ readonly format: TFormat;
250
+ readonly mediaType: string;
251
+ readonly extension: string;
252
+ readonly bytes: Uint8Array;
253
+ };
254
+ type RenderAssemblyExpectedEntrySummary = {
255
+ readonly path: string;
256
+ readonly packagePartId?: string;
257
+ readonly orderKey?: string;
258
+ readonly requirement: "conditional" | "optional" | "required";
259
+ readonly required: boolean;
260
+ readonly requirementCondition?: string;
261
+ readonly requirementDependencies?: readonly string[];
262
+ readonly requirementReason?: string;
263
+ readonly compression: "default" | "store";
264
+ };
265
+ type RenderAssemblyFinalEntrySummary = {
266
+ readonly status: "failed" | "missing" | "rebuilt" | "reused";
267
+ readonly byteLength?: number;
268
+ readonly reason?: string;
269
+ readonly reasonDetails?: RenderAssemblyReasonDetails;
270
+ readonly message?: string;
271
+ };
272
+ type RenderAssemblyFingerprintDelta = {
273
+ readonly previous?: string;
274
+ readonly current?: string;
275
+ };
276
+ type RenderAssemblyBuildSummary = {
277
+ readonly partFingerprint: string;
278
+ readonly writerFingerprint: string;
279
+ readonly emitterFingerprint?: string;
280
+ readonly dependencyFingerprintCount: number;
281
+ readonly dependencyFingerprints?: readonly {
282
+ readonly packagePartId: string;
283
+ readonly fingerprint: string;
284
+ }[];
285
+ readonly mediaByteFingerprint?: string;
286
+ readonly mediaByteFingerprintSource?: "byteHash" | "loadedAssetHash" | "projectedMetadataHash";
287
+ readonly diagnosticCodes: readonly string[];
288
+ };
289
+ type RenderAssemblyReasonDetails = {
290
+ readonly kind: "buildArtifactFingerprintMatched";
291
+ readonly matchedBuild: RenderAssemblyBuildSummary;
292
+ } | {
293
+ readonly kind: "dependencyFingerprintChanged";
294
+ readonly dependencyFingerprints: {
295
+ readonly previous: RenderAssemblyBuildSummary["dependencyFingerprints"];
296
+ readonly current: RenderAssemblyBuildSummary["dependencyFingerprints"];
297
+ };
298
+ } | {
299
+ readonly kind: "emitterFingerprintChanged";
300
+ readonly emitterFingerprint: RenderAssemblyFingerprintDelta;
301
+ } | {
302
+ readonly kind: "mediaBytesChanged";
303
+ readonly mediaByteFingerprint: RenderAssemblyFingerprintDelta;
304
+ readonly mediaByteFingerprintSource?: {
305
+ readonly previous?: RenderAssemblyBuildSummary["mediaByteFingerprintSource"];
306
+ readonly current?: RenderAssemblyBuildSummary["mediaByteFingerprintSource"];
307
+ };
308
+ } | {
309
+ readonly kind: "missingArtifact";
310
+ readonly currentBuild?: RenderAssemblyBuildSummary;
311
+ } | {
312
+ readonly kind: "orderKeyChanged";
313
+ readonly orderKey: RenderAssemblyFingerprintDelta;
314
+ } | {
315
+ readonly kind: "packagePartIdChanged";
316
+ readonly packagePartId: RenderAssemblyFingerprintDelta;
317
+ } | {
318
+ readonly kind: "partEmitterFailed" | "mediaEmitterFailed";
319
+ readonly message?: string;
320
+ } | {
321
+ readonly kind: "partEmitterReturnedNoBytes" | "mediaBytesMissing";
322
+ } | {
323
+ readonly kind: "partFingerprintChanged";
324
+ readonly partFingerprint: RenderAssemblyFingerprintDelta;
325
+ } | {
326
+ readonly kind: "pathChanged";
327
+ readonly path: RenderAssemblyFingerprintDelta;
328
+ } | {
329
+ readonly kind: "writerFingerprintChanged";
330
+ readonly writerFingerprint: RenderAssemblyFingerprintDelta;
331
+ } | {
332
+ readonly kind: "custom";
333
+ readonly reason: string;
334
+ };
335
+ type RenderAssemblyPlanEntrySummary = RenderAssemblyExpectedEntrySummary & RenderAssemblyFinalEntrySummary & {
336
+ readonly expected: RenderAssemblyExpectedEntrySummary;
337
+ readonly final: RenderAssemblyFinalEntrySummary;
338
+ readonly build?: RenderAssemblyBuildSummary;
339
+ readonly previousBuild?: RenderAssemblyBuildSummary;
340
+ };
341
+ type RenderAssemblyPlanSummary = {
342
+ readonly entries: readonly RenderAssemblyPlanEntrySummary[];
343
+ readonly entryCount: number;
344
+ readonly rebuiltCount: number;
345
+ readonly reusedCount: number;
346
+ readonly missingCount: number;
347
+ readonly failedCount: number;
348
+ };
349
+ type RenderOutputSideEffectStatus = "failed" | "notRequested" | "skipped" | "unavailable" | "written";
350
+ type RenderOutputSideEffectReason = "artifactMissing" | "noOutputRequested" | "outputWriteFailed" | "runtimeOutputUnavailable";
351
+ type RenderOutputSideEffectSummary = {
352
+ readonly requested: boolean;
353
+ readonly status: RenderOutputSideEffectStatus;
354
+ readonly path?: string;
355
+ readonly reason?: RenderOutputSideEffectReason;
356
+ readonly message?: string;
357
+ readonly runtime?: {
358
+ readonly kind: "node";
359
+ readonly available: boolean;
360
+ readonly reason?: string;
361
+ };
362
+ };
363
+ type RenderInspectionSummary = {
364
+ readonly assembly?: RenderAssemblyPlanSummary;
365
+ readonly output?: RenderOutputSideEffectSummary;
366
+ };
367
+ type WrittenOutput = {
368
+ readonly path: string;
369
+ };
370
+ //#endregion
371
+ //#region src/projection/pptx/model.d.ts
372
+ type PackagePartId = Brand<string, "PackagePartId">;
373
+ type PptxElementId = Brand<string, "PptxElementId">;
374
+ type PptxSerializedIdentity = Brand<string, "PptxSerializedIdentity">;
375
+ type PptxPackagePartCategory = "authored-content" | "manifest" | "support";
376
+ type PptxPackagePartKind = "content-types" | "document-properties" | "media" | "notes-master" | "notes-slide" | "presentation" | "presentation-properties" | "relationships" | "slide" | "slide-layout" | "slide-master" | "theme" | "view-properties";
377
+ type PptxElementKind = "group" | "image" | "shape" | "text";
378
+ type PptxElementOrigin = {
379
+ readonly graphNodeIds?: readonly GraphNodeId[];
380
+ readonly styleEntityIds?: readonly StyleEntityId[];
381
+ readonly assetEntityIds?: readonly AssetEntity["id"][];
382
+ readonly source?: SourceOrigin;
383
+ };
384
+ type PptxSerializedIdentities = {
385
+ readonly hyperlinkRelationshipId?: PptxSerializedIdentity;
386
+ readonly relationshipId?: PptxSerializedIdentity;
387
+ readonly shapeObjectId?: PptxSerializedIdentity;
388
+ };
389
+ type PptxMeasurement = {
390
+ readonly frame?: FrameIR;
391
+ readonly overflow?: "clip" | "fit" | "visible";
392
+ };
393
+ type PptxVisibility = CssVisibility;
394
+ type PptxShadow = ShadowIR & {
395
+ readonly opacity: number;
396
+ };
397
+ type PptxLayoutAnchor = {
398
+ readonly template: string;
399
+ readonly area: string;
400
+ readonly kind: TemplateAreaKind;
401
+ readonly frame: FrameIR;
402
+ };
403
+ type PptxClip = ProjectedLayoutClip;
404
+ type PptxTextBodyStyle = TextStyleIR & {
405
+ readonly fit: NonNullable<TextStyleIR["fit"]>;
406
+ readonly textDirection: NonNullable<TextStyleIR["textDirection"]>;
407
+ readonly verticalAlign: NonNullable<TextStyleIR["verticalAlign"]>;
408
+ readonly wrap: boolean;
409
+ };
410
+ type PptxBackgroundImageLayer = Omit<BackgroundImageLayerIR, "objectPosition"> & {
411
+ readonly objectPosition: ObjectPositionIR;
412
+ readonly paintOrder: PptxPaintOrderInput;
413
+ readonly serialized: PptxSerializedIdentities;
414
+ };
415
+ type PptxBackgroundFillLayer = FillIR & {
416
+ readonly paintOrder: PptxPaintOrderInput;
417
+ readonly serialized: PptxSerializedIdentities;
418
+ };
419
+ type PptxBackgroundLayer = PptxBackgroundImageLayer | PptxBackgroundFillLayer;
420
+ type PptxUnsupportedSemanticFeature = ProjectedUnsupportedSemanticFeature;
421
+ type PptxUnsupportedFallbackStrategy = ProjectedUnsupportedFallbackStrategy;
422
+ type PptxUnsupportedFallback = ProjectedUnsupportedFallback;
423
+ type PptxUnsupportedSemantic = ProjectedUnsupportedSemantic;
424
+ type PptxBaseElement = {
425
+ readonly id: PptxElementId;
426
+ readonly kind: PptxElementKind;
427
+ readonly packagePartId: PackagePartId;
428
+ readonly serialized: PptxSerializedIdentities;
429
+ readonly origin: PptxElementOrigin;
430
+ readonly frame: FrameIR;
431
+ readonly opacity?: number;
432
+ readonly rotation?: number;
433
+ readonly zIndex?: number;
434
+ readonly paintOrder: PptxPaintOrderInput;
435
+ readonly visibility?: PptxVisibility;
436
+ readonly flipH?: boolean;
437
+ readonly flipV?: boolean;
438
+ readonly clip?: PptxClip;
439
+ readonly measurement?: PptxMeasurement;
440
+ readonly layoutAnchor?: PptxLayoutAnchor;
441
+ readonly unsupportedSemantics?: readonly PptxUnsupportedSemantic[];
442
+ };
443
+ type PptxGroupElement = PptxBaseElement & {
444
+ readonly kind: "group";
445
+ readonly children: readonly PptxElement[];
446
+ readonly fill?: FillIR;
447
+ readonly backgroundLayers?: readonly PptxBackgroundLayer[];
448
+ readonly stroke?: StrokeIR;
449
+ readonly edgeStrokes?: EdgeStrokeIR;
450
+ readonly outline?: StrokeIR;
451
+ readonly generatedStrokes?: readonly PptxGeneratedStrokeLayer[];
452
+ readonly shadow?: PptxShadow;
453
+ readonly radiusEmu?: number;
454
+ };
455
+ type PptxTextElement = PptxBaseElement & {
456
+ readonly kind: "text";
457
+ readonly content: {
458
+ readonly text: string;
459
+ readonly runs?: readonly TextRunIR[];
460
+ };
461
+ readonly style: PptxTextBodyStyle;
462
+ readonly fill?: FillIR;
463
+ readonly backgroundLayers?: readonly PptxBackgroundLayer[];
464
+ readonly stroke?: StrokeIR;
465
+ readonly edgeStrokes?: EdgeStrokeIR;
466
+ readonly outline?: StrokeIR;
467
+ readonly generatedStrokes?: readonly PptxGeneratedStrokeLayer[];
468
+ readonly shadow?: PptxShadow;
469
+ readonly hyperlink?: HyperlinkIR;
470
+ readonly radiusEmu?: number;
471
+ };
472
+ type PptxPictureElement = PptxBaseElement & {
473
+ readonly kind: "image";
474
+ readonly mediaPartId?: PackagePartId;
475
+ readonly sourceFrame: FrameIR;
476
+ readonly source: ImageSourceIR;
477
+ readonly fit: "contain" | "cover" | "stretch";
478
+ readonly objectPosition: ObjectPositionIR;
479
+ readonly crop?: ImageCropIR;
480
+ readonly transparency?: number;
481
+ readonly rounding?: boolean;
482
+ readonly shadow?: PptxShadow;
483
+ readonly hyperlink?: HyperlinkIR;
484
+ };
485
+ type PptxShapeElement = PptxBaseElement & {
486
+ readonly kind: "shape";
487
+ readonly shape: "rect" | "ellipse" | "line";
488
+ readonly fill?: FillIR;
489
+ readonly backgroundLayers?: readonly PptxBackgroundLayer[];
490
+ readonly stroke?: StrokeIR;
491
+ readonly edgeStrokes?: EdgeStrokeIR;
492
+ readonly outline?: StrokeIR;
493
+ readonly generatedStrokes?: readonly PptxGeneratedStrokeLayer[];
494
+ readonly shadow?: PptxShadow;
495
+ readonly hyperlink?: HyperlinkIR;
496
+ readonly radiusEmu?: number;
497
+ };
498
+ type PptxElement = PptxGroupElement | PptxPictureElement | PptxShapeElement | PptxTextElement;
499
+ type PptxEmissionTarget = "slide" | "slideLayout" | "slideMaster";
500
+ type PptxPaintOrderInput = {
501
+ readonly zIndex?: number;
502
+ readonly siblingOrder: number;
503
+ readonly generatedLayerRole?: "authored" | "background" | "border" | "outline" | "template";
504
+ };
505
+ type PptxGeneratedStrokeLayer = {
506
+ readonly kind: "stroke";
507
+ readonly role: "border" | "outline";
508
+ readonly edge?: "top" | "right" | "bottom" | "left";
509
+ readonly id: PptxElementId;
510
+ readonly serialized: PptxSerializedIdentities;
511
+ readonly frame: FrameIR;
512
+ readonly stroke: StrokeIR;
513
+ readonly shape: "line" | "rect";
514
+ readonly paintOrder: PptxPaintOrderInput;
515
+ };
516
+ type PptxDrawingNode = PptxElement & {
517
+ readonly emissionTarget: PptxEmissionTarget;
518
+ readonly paintOrderIndex: number;
519
+ readonly paintOrder: PptxPaintOrderInput;
520
+ };
521
+ type PptxSlideDrawing = {
522
+ readonly children: readonly PptxDrawingNode[];
523
+ };
524
+ type PptxRelationship = {
525
+ readonly id: PptxSerializedIdentity;
526
+ readonly target: string;
527
+ readonly targetMode?: "external";
528
+ readonly targetPartId?: PackagePartId;
529
+ readonly targetPath: string;
530
+ readonly type: string;
531
+ };
532
+ type PptxPackagePartBase<TCategory extends PptxPackagePartCategory = PptxPackagePartCategory, TKind extends PptxPackagePartKind = PptxPackagePartKind, TPayload extends PptxPackagePartPayload = PptxPackagePartPayload> = {
533
+ readonly id: PackagePartId;
534
+ readonly category: TCategory;
535
+ readonly kind: TKind;
536
+ readonly requirement?: PptxPackagePartRequirement;
537
+ readonly orderKey?: PptxPackagePartOrderKey;
538
+ readonly fingerprint?: string;
539
+ readonly dependencyFingerprints?: readonly PptxPackagePartDependencyFingerprint[];
540
+ readonly path: string;
541
+ readonly relationships?: readonly PptxRelationship[];
542
+ readonly origin?: {
543
+ readonly graphNodeIds?: readonly GraphNodeId[];
544
+ readonly source?: SourceOrigin;
545
+ };
546
+ readonly payload?: TPayload;
547
+ };
548
+ type PptxPackagePartOrderGroup = "contentTypes" | "documentProperties" | "media" | "other" | "presentation" | "presentationProperties" | "presentationRelationships" | "rootRelationships" | "slide" | "slideLayout" | "slideLayoutRelationships" | "slideMaster" | "slideMasterRelationships" | "slideRelationships" | "theme" | "viewProperties";
549
+ type PptxPackagePartOrderKey = {
550
+ readonly group: PptxPackagePartOrderGroup;
551
+ readonly groupOrder: number;
552
+ readonly sequence: number;
553
+ readonly path: string;
554
+ readonly value: string;
555
+ };
556
+ type PptxPackagePartRequirementStatus = "conditional" | "optional" | "required";
557
+ type PptxPackagePartRequirementCondition = "explicit" | "hasRelationships" | "minimalPackage" | "referencedByRelationship";
558
+ type PptxPackagePartRequirement = {
559
+ readonly status: PptxPackagePartRequirementStatus;
560
+ readonly required: boolean;
561
+ readonly reason: string;
562
+ readonly condition?: PptxPackagePartRequirementCondition;
563
+ readonly dependencies?: readonly PackagePartId[];
564
+ };
565
+ type PptxPackagePartDependencyFingerprint = {
566
+ readonly packagePartId: PackagePartId;
567
+ readonly fingerprint: string;
568
+ };
569
+ type PptxMediaMetadata = {
570
+ readonly mediaType?: string;
571
+ readonly extension?: string;
572
+ readonly widthPx?: number;
573
+ readonly heightPx?: number;
574
+ readonly byteLength?: number;
575
+ readonly hash?: string;
576
+ };
577
+ type PptxMediaPartPayload = {
578
+ readonly source: ImageSourceIR;
579
+ readonly sources: readonly ImageSourceIR[];
580
+ readonly elementId?: PptxElementId;
581
+ readonly elementIds?: readonly PptxElementId[];
582
+ readonly assetEntityId?: AssetEntity["id"];
583
+ readonly assetEntityIds?: readonly AssetEntity["id"][];
584
+ readonly allocationKey?: string;
585
+ readonly metadata?: PptxMediaMetadata;
586
+ };
587
+ type PptxMediaPart = PptxPackagePartBase<"authored-content", "media", PptxMediaPartPayload> & {
588
+ readonly payload: PptxMediaPartPayload;
589
+ };
590
+ type PptxThemeProjectionPayload = {
591
+ readonly id: string;
592
+ readonly purpose: "default";
593
+ readonly source: "deckjsx-default";
594
+ readonly trace: PptxThemeProjectionTrace;
595
+ };
596
+ type PptxThemeProjectionTrace = {
597
+ readonly wholeThemeMappings: readonly PptxThemeWholeThemeMapping[];
598
+ readonly valueGroupFingerprints: readonly PptxThemeValueGroupFingerprint[];
599
+ readonly supportMappings: readonly PptxThemeSupportMapping[];
600
+ readonly defaultStyleDecisions: readonly PptxThemeDefaultStyleDecision[];
601
+ readonly concreteDrawingProperties: readonly PptxThemeConcreteDrawingPropertyMapping[];
602
+ readonly unprojected: readonly PptxThemeUnprojectedMapping[];
603
+ readonly effectiveInheritance: readonly PptxThemeEffectiveInheritanceTrace[];
604
+ readonly referenceSerialization: readonly PptxThemeReferenceSerializationChoice[];
605
+ };
606
+ type PptxThemeValueGroup = "colorScheme" | "fontScheme" | "formatScheme" | "themeDefaults";
607
+ type PptxThemeWholeThemeMapping = {
608
+ readonly source: "deckjsx-default";
609
+ readonly projectedAs: "themePart";
610
+ readonly purpose: "default";
611
+ readonly themePartId?: PackagePartId;
612
+ readonly groups: readonly PptxThemeValueGroup[];
613
+ readonly fingerprint: string;
614
+ };
615
+ type PptxThemeValueGroupFingerprint = {
616
+ readonly group: PptxThemeValueGroup;
617
+ readonly source: "deckjsx-default" | "themeDefault";
618
+ readonly projectedAs: "themeSupport" | "themeProjectionTrace";
619
+ readonly fingerprint: string;
620
+ readonly itemCount: number;
621
+ };
622
+ type PptxThemeSupportMapping = {
623
+ readonly source: "deckjsx-default";
624
+ readonly projectedAs: "themeSupport";
625
+ readonly groups: readonly ("colorScheme" | "fontScheme" | "formatScheme")[];
626
+ };
627
+ type PptxThemeDefaultStyleDecisionKind = "projectConcreteDrawingProperty" | "projectDrawingMetadata" | "projectFilteredState" | "projectLayoutInput" | "preserveAsStyleInput" | "preserveUnsupportedSemantic";
628
+ type PptxThemeDefaultStyleProjectionTarget = "concreteDrawingProperty" | "drawingMetadata" | "filteredProjectionInput" | "layoutInput" | "styleInput" | "unsupportedSemanticFallback";
629
+ type PptxThemeDefaultStyleDecision = {
630
+ readonly source: "themeDefault";
631
+ readonly graphNodeId: GraphNodeId;
632
+ readonly authoredTag?: string;
633
+ readonly origin?: SourceOrigin;
634
+ readonly defaultKey: string;
635
+ readonly property: string;
636
+ readonly resolvedValue: StyleDeclarationValue;
637
+ readonly decision: PptxThemeDefaultStyleDecisionKind;
638
+ readonly projectedAs: PptxThemeDefaultStyleProjectionTarget;
639
+ readonly reason: string;
640
+ };
641
+ type PptxThemeConcreteDrawingPropertyMapping = {
642
+ readonly graphNodeId: GraphNodeId;
643
+ readonly authoredTag?: string;
644
+ readonly source?: SourceOrigin;
645
+ readonly defaultKey: string;
646
+ readonly property: string;
647
+ readonly projectedAs: "concreteDrawingProperty";
648
+ readonly resolvedValue: StyleDeclarationValue;
649
+ };
650
+ type PptxThemeUnprojectedMapping = {
651
+ readonly source: "themeDefault";
652
+ readonly graphNodeId: GraphNodeId;
653
+ readonly authoredTag?: string;
654
+ readonly origin?: SourceOrigin;
655
+ readonly defaultKey: string;
656
+ readonly property: string;
657
+ readonly projectedAs: "unprojected";
658
+ readonly resolvedValue: StyleDeclarationValue;
659
+ readonly reason: string;
660
+ };
661
+ type PptxThemeEffectiveInheritanceStep = "themePart" | "slideMaster" | "slideLayout" | "slide" | "drawing";
662
+ type PptxThemeEffectiveInheritanceTrace = {
663
+ readonly source: "themeDefault";
664
+ readonly graphNodeId: GraphNodeId;
665
+ readonly authoredTag?: string;
666
+ readonly origin?: SourceOrigin;
667
+ readonly defaultKey: string;
668
+ readonly property: string;
669
+ readonly projectedAs: "concreteDrawingProperty" | "unprojected";
670
+ readonly resolvedValue: StyleDeclarationValue;
671
+ readonly themePartId?: PackagePartId;
672
+ readonly slideMasterPartId?: PackagePartId;
673
+ readonly slideLayoutPartId?: PackagePartId;
674
+ readonly slidePartId?: PackagePartId;
675
+ readonly inheritedThrough: readonly PptxThemeEffectiveInheritanceStep[];
676
+ readonly reason: string;
677
+ };
678
+ type PptxThemeReferenceSerializationDecision = "deferThemeReferenceSerialization" | "emitConcreteValue" | "noThemeReferenceCandidate";
679
+ type PptxThemeReferenceSerializationKind = "concreteDrawingValue" | "latinTypeface" | "srgbClr";
680
+ type PptxThemeReferenceCandidate = {
681
+ readonly kind: "schemeColor";
682
+ readonly value: string;
683
+ readonly themePartId?: PackagePartId;
684
+ } | {
685
+ readonly kind: "fontScheme";
686
+ readonly value: "majorLatin" | "minorLatin";
687
+ readonly themePartId?: PackagePartId;
688
+ };
689
+ type PptxThemeReferenceSerializationChoice = {
690
+ readonly source: "themeDefault";
691
+ readonly graphNodeId: GraphNodeId;
692
+ readonly authoredTag?: string;
693
+ readonly origin?: SourceOrigin;
694
+ readonly defaultKey: string;
695
+ readonly property: string;
696
+ readonly resolvedValue: StyleDeclarationValue;
697
+ readonly currentSerialization: PptxThemeReferenceSerializationKind;
698
+ readonly decision: PptxThemeReferenceSerializationDecision;
699
+ readonly candidate?: PptxThemeReferenceCandidate;
700
+ readonly reason: string;
701
+ };
702
+ type PptxThemePartPayload = {
703
+ readonly kind: "theme";
704
+ readonly name: string;
705
+ readonly editable: true;
706
+ readonly projection: PptxThemeProjectionPayload;
707
+ readonly colorScheme: {
708
+ readonly name: string;
709
+ readonly colors: Readonly<Record<string, string>>;
710
+ };
711
+ readonly fontScheme: {
712
+ readonly name: string;
713
+ readonly majorLatin: string;
714
+ readonly minorLatin: string;
715
+ };
716
+ readonly formatScheme: {
717
+ readonly name: string;
718
+ };
719
+ };
720
+ type PptxPresentationSlideMasterId = {
721
+ readonly slideMasterPartId: PackagePartId;
722
+ readonly id: string;
723
+ };
724
+ type PptxSlideMasterLayoutId = {
725
+ readonly slideLayoutPartId: PackagePartId;
726
+ readonly id: string;
727
+ };
728
+ type PptxSlideMasterPartPayload = {
729
+ readonly kind: "slide-master";
730
+ readonly name: string;
731
+ readonly editable: true;
732
+ readonly themePartId: PackagePartId;
733
+ readonly slideLayoutPartIds: readonly PackagePartId[];
734
+ readonly slideLayoutIds: readonly PptxSlideMasterLayoutId[];
735
+ readonly colorMap: Readonly<Record<string, string>>;
736
+ readonly textStyles: {
737
+ readonly title: "empty";
738
+ readonly body: "empty";
739
+ readonly other: "empty";
740
+ };
741
+ };
742
+ type PptxSlideLayoutPartPayload = {
743
+ readonly kind: "slide-layout";
744
+ readonly name: string;
745
+ readonly editable: true;
746
+ readonly layoutType: "blank";
747
+ readonly preserve: true;
748
+ readonly slideMasterPartId: PackagePartId;
749
+ readonly placeholderStrategy: "none";
750
+ readonly template?: {
751
+ readonly sourceKey: string;
752
+ readonly name: string;
753
+ };
754
+ readonly layoutAnchors?: readonly PptxSlideLayoutAnchor[];
755
+ };
756
+ type PptxSlideLayoutAnchor = {
757
+ readonly template: string;
758
+ readonly area: string;
759
+ readonly kind: TemplateAreaKind;
760
+ readonly frame: FrameIR;
761
+ readonly placeholderStrategy: "none";
762
+ };
763
+ type PptxEmptySupportPartPayload = {
764
+ readonly kind: "presentation-properties";
765
+ readonly editable: true;
766
+ readonly settings: Record<string, never>;
767
+ } | {
768
+ readonly kind: "view-properties";
769
+ readonly editable: true;
770
+ readonly settings: Record<string, never>;
771
+ };
772
+ type PptxNotesPlaceholderPayload = {
773
+ readonly kind: "notes-master";
774
+ readonly status: "placeholder";
775
+ readonly editable: true;
776
+ readonly role: "notes-master";
777
+ readonly source: "deckjsx-placeholder";
778
+ readonly settings: Record<string, never>;
779
+ } | {
780
+ readonly kind: "notes-slide";
781
+ readonly status: "placeholder";
782
+ readonly editable: true;
783
+ readonly role: "notes-slide";
784
+ readonly source: "deckjsx-placeholder";
785
+ readonly settings: Record<string, never>;
786
+ };
787
+ type PptxSupportPartPayload = {
788
+ readonly kind: "presentation";
789
+ readonly size: PptxPackageModel["size"];
790
+ readonly slideMasterIds: readonly PptxPresentationSlideMasterId[];
791
+ readonly slidePartIds: readonly PackagePartId[];
792
+ } | {
793
+ readonly kind: "document-properties";
794
+ readonly propertyKind: "core";
795
+ readonly editable: true;
796
+ readonly source: "deckjsx-meta";
797
+ readonly meta: NonNullable<DeckOptions["meta"]>;
798
+ } | {
799
+ readonly kind: "document-properties";
800
+ readonly propertyKind: "extended";
801
+ readonly editable: true;
802
+ readonly source: "deckjsx-projection";
803
+ readonly application: "deckjsx";
804
+ readonly slideCount: number;
805
+ } | PptxEmptySupportPartPayload | PptxNotesPlaceholderPayload | PptxSlideLayoutPartPayload | PptxSlideMasterPartPayload | PptxThemePartPayload;
806
+ type PptxSupportPartOf<TPayload extends PptxSupportPartPayload> = PptxPackagePartBase<"support", TPayload["kind"], TPayload> & {
807
+ readonly kind: TPayload["kind"];
808
+ readonly payload: TPayload;
809
+ };
810
+ type PptxPresentationPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
811
+ readonly kind: "presentation";
812
+ }>>;
813
+ type PptxCoreDocumentPropertiesPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
814
+ readonly kind: "document-properties";
815
+ readonly propertyKind: "core";
816
+ }>>;
817
+ type PptxExtendedDocumentPropertiesPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
818
+ readonly kind: "document-properties";
819
+ readonly propertyKind: "extended";
820
+ }>>;
821
+ type PptxPresentationPropertiesPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
822
+ readonly kind: "presentation-properties";
823
+ }>>;
824
+ type PptxViewPropertiesPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
825
+ readonly kind: "view-properties";
826
+ }>>;
827
+ type PptxNotesMasterPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
828
+ readonly kind: "notes-master";
829
+ }>>;
830
+ type PptxNotesSlidePart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
831
+ readonly kind: "notes-slide";
832
+ }>>;
833
+ type PptxSlideLayoutPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
834
+ readonly kind: "slide-layout";
835
+ }>>;
836
+ type PptxSlideMasterPart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
837
+ readonly kind: "slide-master";
838
+ }>>;
839
+ type PptxThemePart = PptxSupportPartOf<Extract<PptxSupportPartPayload, {
840
+ readonly kind: "theme";
841
+ }>>;
842
+ type PptxSupportPart = PptxCoreDocumentPropertiesPart | PptxExtendedDocumentPropertiesPart | PptxNotesMasterPart | PptxNotesSlidePart | PptxPresentationPart | PptxPresentationPropertiesPart | PptxSlideLayoutPart | PptxSlideMasterPart | PptxThemePart | PptxViewPropertiesPart;
843
+ type PptxContentTypeDefault = {
844
+ readonly extension: string;
845
+ readonly contentType: string;
846
+ };
847
+ type PptxContentTypeOverride = {
848
+ readonly partName: string;
849
+ readonly contentType: string;
850
+ };
851
+ type PptxContentTypesPayload = {
852
+ readonly defaults: readonly PptxContentTypeDefault[];
853
+ readonly overrides: readonly PptxContentTypeOverride[];
854
+ };
855
+ type PptxRelationshipsPayload = {
856
+ readonly relationships: readonly PptxRelationship[];
857
+ };
858
+ type PptxContentTypesPart = PptxPackagePartBase<PptxPackagePartCategory, "content-types", PptxContentTypesPayload> & {
859
+ readonly payload: PptxContentTypesPayload;
860
+ };
861
+ type PptxRelationshipsPart = PptxPackagePartBase<PptxPackagePartCategory, "relationships", PptxRelationshipsPayload> & {
862
+ readonly payload: PptxRelationshipsPayload;
863
+ };
864
+ type PptxSlidePartPayload = {
865
+ readonly slideId: string;
866
+ readonly name?: string;
867
+ readonly background?: FillIR;
868
+ readonly backgroundLayers?: readonly PptxBackgroundLayer[];
869
+ readonly drawing: PptxSlideDrawing;
870
+ };
871
+ type PptxSlidePart = PptxPackagePartBase<"authored-content", "slide", PptxSlidePartPayload> & {
872
+ readonly payload: PptxSlidePartPayload;
873
+ };
874
+ type PptxPackagePartPayload = {
875
+ readonly kind?: string;
876
+ readonly defaults?: readonly PptxContentTypeDefault[];
877
+ readonly overrides?: readonly PptxContentTypeOverride[];
878
+ readonly relationships?: readonly PptxRelationship[];
879
+ readonly source?: ImageSourceIR | string;
880
+ readonly sources?: readonly ImageSourceIR[];
881
+ readonly elementId?: PptxElementId;
882
+ readonly elementIds?: readonly PptxElementId[];
883
+ readonly assetEntityId?: AssetEntity["id"];
884
+ readonly assetEntityIds?: readonly AssetEntity["id"][];
885
+ readonly allocationKey?: string;
886
+ readonly metadata?: PptxMediaMetadata;
887
+ readonly slideId?: string;
888
+ readonly name?: string;
889
+ readonly background?: FillIR;
890
+ readonly backgroundLayers?: readonly PptxBackgroundLayer[];
891
+ readonly drawing?: PptxSlideDrawing;
892
+ readonly size?: Partial<PptxPackageModel["size"]>;
893
+ readonly slideMasterIds?: readonly PptxPresentationSlideMasterId[];
894
+ readonly slidePartIds?: readonly PackagePartId[];
895
+ readonly propertyKind?: "core" | "extended";
896
+ readonly editable?: boolean;
897
+ readonly meta?: NonNullable<DeckOptions["meta"]>;
898
+ readonly application?: "deckjsx";
899
+ readonly slideCount?: number;
900
+ readonly settings?: Readonly<Record<string, boolean | number | string>>;
901
+ readonly status?: string;
902
+ readonly role?: string;
903
+ readonly projection?: PptxThemeProjectionPayload;
904
+ readonly colorScheme?: PptxThemePartPayload["colorScheme"];
905
+ readonly fontScheme?: PptxThemePartPayload["fontScheme"];
906
+ readonly formatScheme?: PptxThemePartPayload["formatScheme"];
907
+ readonly themePartId?: PackagePartId;
908
+ readonly slideLayoutPartIds?: readonly PackagePartId[];
909
+ readonly slideLayoutIds?: readonly PptxSlideMasterLayoutId[];
910
+ readonly colorMap?: Readonly<Record<string, string>>;
911
+ readonly textStyles?: PptxSlideMasterPartPayload["textStyles"];
912
+ readonly layoutType?: "blank";
913
+ readonly preserve?: true;
914
+ readonly slideMasterPartId?: PackagePartId;
915
+ readonly placeholderStrategy?: "none";
916
+ readonly template?: PptxSlideLayoutPartPayload["template"];
917
+ readonly layoutAnchors?: readonly PptxSlideLayoutAnchor[];
918
+ };
919
+ type PptxKnownPackagePart = PptxContentTypesPart | PptxMediaPart | PptxRelationshipsPart | PptxSlidePart | PptxSupportPart;
920
+ type PptxPackagePartCandidate = PptxPackagePartBase;
921
+ type PptxPackagePart = PptxPackagePartBase & {
922
+ readonly payload: PptxPackagePartPayload;
923
+ };
924
+ declare function isPptxPackagePart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxPackagePart;
925
+ declare function isPptxContentTypesPart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxContentTypesPart;
926
+ declare function isPptxMediaPart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxMediaPart;
927
+ declare function isPptxRelationshipsPart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxRelationshipsPart;
928
+ declare function isPptxSlidePart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxSlidePart;
929
+ declare function isPptxSupportPart<TPart extends PptxPackagePartCandidate>(part: TPart): part is TPart & PptxSupportPart;
930
+ type ProjectInspectionBackgroundLayerSummary = {
931
+ readonly kind: "solid";
932
+ readonly frame?: FrameIR;
933
+ readonly color: string;
934
+ readonly transparency?: number;
935
+ } | {
936
+ readonly kind: "linear-gradient";
937
+ readonly frame?: FrameIR;
938
+ readonly angle: number;
939
+ readonly stops: readonly {
940
+ readonly color: string;
941
+ readonly transparency?: number;
942
+ readonly position: number;
943
+ }[];
944
+ } | {
945
+ readonly kind: "radial-gradient";
946
+ readonly frame?: FrameIR;
947
+ readonly shape: "circle" | "ellipse";
948
+ readonly center: {
949
+ readonly x: number;
950
+ readonly y: number;
951
+ };
952
+ readonly radius: {
953
+ readonly x: number;
954
+ readonly y: number;
955
+ };
956
+ readonly stops: readonly {
957
+ readonly color: string;
958
+ readonly transparency?: number;
959
+ readonly position: number;
960
+ }[];
961
+ } | {
962
+ readonly kind: "background-image";
963
+ readonly frame: FrameIR;
964
+ readonly sourceFrame: FrameIR;
965
+ readonly sourceKind: ImageSourceIR["kind"];
966
+ readonly fit: "contain" | "cover" | "size" | "stretch";
967
+ readonly size?: {
968
+ readonly widthEmu?: number;
969
+ readonly heightEmu?: number;
970
+ };
971
+ readonly repeat: "no-repeat" | "repeat" | "repeat-x" | "repeat-y";
972
+ readonly objectPosition: ObjectPositionIR;
973
+ readonly transparency?: number;
974
+ };
975
+ type ProjectInspectionElementSummary = {
976
+ readonly id: PptxElementId;
977
+ readonly kind: PptxElementKind;
978
+ readonly packagePartId: PackagePartId;
979
+ readonly frame?: FrameIR;
980
+ readonly emissionTarget?: PptxEmissionTarget;
981
+ readonly paintOrderIndex?: number;
982
+ readonly paintOrder?: PptxPaintOrderInput;
983
+ readonly zIndex?: number;
984
+ readonly opacity?: number;
985
+ readonly rotation?: number;
986
+ readonly flipH?: boolean;
987
+ readonly flipV?: boolean;
988
+ readonly visibility?: PptxVisibility;
989
+ readonly measurement?: PptxMeasurement;
990
+ readonly clip?: PptxClip;
991
+ readonly backgroundLayers?: readonly ProjectInspectionBackgroundLayerSummary[];
992
+ readonly edgeStrokes?: EdgeStrokeIR;
993
+ readonly outline?: StrokeIR;
994
+ readonly generatedStrokes?: readonly PptxGeneratedStrokeLayer[];
995
+ readonly textPreview?: string;
996
+ readonly layoutAnchor?: PptxLayoutAnchor;
997
+ readonly origin: PptxElementOrigin;
998
+ readonly resolvedValues?: ProjectInspectionResolvedValues;
999
+ };
1000
+ type ProjectInspectionResolvedValues = {
1001
+ readonly frame?: FrameIR;
1002
+ readonly opacity?: number;
1003
+ readonly rotation?: number;
1004
+ readonly flipH?: boolean;
1005
+ readonly flipV?: boolean;
1006
+ readonly zIndex?: number;
1007
+ readonly measurement?: PptxMeasurement;
1008
+ readonly clip?: PptxClip;
1009
+ readonly backgroundLayers?: readonly ProjectInspectionBackgroundLayerSummary[];
1010
+ readonly edgeStrokes?: EdgeStrokeIR;
1011
+ readonly outline?: StrokeIR;
1012
+ readonly generatedStrokes?: readonly PptxGeneratedStrokeLayer[];
1013
+ readonly fill?: FillIR;
1014
+ readonly stroke?: StrokeIR;
1015
+ readonly textStyle?: TextStyleIR;
1016
+ readonly imageSource?: ImageSourceIR;
1017
+ readonly imageObjectPosition?: ObjectPositionIR;
1018
+ readonly unsupportedSemantics?: readonly PptxUnsupportedSemantic[];
1019
+ };
1020
+ type ProjectInspectionPartSummary = {
1021
+ readonly id: PackagePartId;
1022
+ readonly category: PptxPackagePartCategory;
1023
+ readonly kind: PptxPackagePartKind;
1024
+ readonly path: string;
1025
+ readonly hasStructuredPayload?: boolean;
1026
+ readonly payloadKind?: string;
1027
+ readonly requirement?: PptxPackagePartRequirement;
1028
+ readonly orderKey?: PptxPackagePartOrderKey;
1029
+ readonly fingerprint?: string;
1030
+ readonly dependencyFingerprintCount?: number;
1031
+ readonly relationshipCount?: number;
1032
+ readonly contentTypeCount?: number;
1033
+ };
1034
+ type ProjectInspectionRelationshipSummary = {
1035
+ readonly ownerPartId: PackagePartId;
1036
+ readonly ownerPath: string;
1037
+ readonly id: PptxSerializedIdentity;
1038
+ readonly type: string;
1039
+ readonly target: string;
1040
+ readonly targetPath: string;
1041
+ readonly targetMode?: "external";
1042
+ readonly targetPartId?: PackagePartId;
1043
+ };
1044
+ type ProjectInspectionPackageDependencyReason = "contentTypeOverride" | "dependencyFingerprint" | "requirementDependency" | "relationshipTarget";
1045
+ type ProjectInspectionPackageDependencySummary = {
1046
+ readonly ownerPartId: PackagePartId;
1047
+ readonly ownerPath: string;
1048
+ readonly targetPartId: PackagePartId;
1049
+ readonly targetPath?: string;
1050
+ readonly reason: ProjectInspectionPackageDependencyReason;
1051
+ readonly relationshipId?: PptxSerializedIdentity;
1052
+ readonly relationshipType?: string;
1053
+ readonly contentType?: string;
1054
+ readonly fingerprint?: string;
1055
+ readonly requirementStatus?: PptxPackagePartRequirementStatus;
1056
+ readonly requirementCondition?: PptxPackagePartRequirementCondition;
1057
+ };
1058
+ type ProjectInspectionSummary = {
1059
+ readonly format: ProjectionFormat;
1060
+ readonly parts: readonly ProjectInspectionPartSummary[];
1061
+ readonly relationships: readonly ProjectInspectionRelationshipSummary[];
1062
+ readonly packageDependencies: readonly ProjectInspectionPackageDependencySummary[];
1063
+ readonly media: readonly ProjectInspectionMediaSummary[];
1064
+ readonly filtered: readonly ProjectInspectionFilteredRecord[];
1065
+ readonly unsupportedSemantics: readonly ProjectInspectionUnsupportedSemanticRecord[];
1066
+ readonly slides: readonly {
1067
+ readonly partId: PackagePartId;
1068
+ readonly slideId: string;
1069
+ readonly name?: string;
1070
+ readonly backgroundLayers?: readonly ProjectInspectionBackgroundLayerSummary[];
1071
+ readonly elements: readonly ProjectInspectionElementSummary[];
1072
+ }[];
1073
+ readonly pptx: {
1074
+ readonly packageParts: readonly ProjectInspectionPartSummary[];
1075
+ readonly relationshipCount: number;
1076
+ readonly packageDependencyCount: number;
1077
+ };
1078
+ readonly diagnostics: readonly ProjectInspectionDiagnosticSummary[];
1079
+ readonly adapterLimitations: readonly ProjectInspectionAdapterLimitation[];
1080
+ readonly details?: ProjectInspectionDetails;
1081
+ };
1082
+ type ProjectInspectionDiagnosticSummary = {
1083
+ readonly severity: Diagnostics["items"][number]["severity"];
1084
+ readonly code: string;
1085
+ readonly title: string;
1086
+ };
1087
+ type ProjectInspectionAdapterLimitation = {
1088
+ readonly adapter: string;
1089
+ readonly code: string;
1090
+ readonly message: string;
1091
+ };
1092
+ type ProjectInspectionMediaSummary = {
1093
+ readonly partId?: PackagePartId;
1094
+ readonly partPath?: string;
1095
+ readonly elementId?: PptxElementId;
1096
+ readonly sourceKind: ImageSourceIR["kind"];
1097
+ readonly metadata?: PptxMediaMetadata;
1098
+ readonly origin: PptxElementOrigin;
1099
+ };
1100
+ type ProjectInspectionFilteredReason = "displayNone";
1101
+ type ProjectInspectionFilteredRecord = {
1102
+ readonly reason: ProjectInspectionFilteredReason;
1103
+ readonly kind: SemanticNode["kind"];
1104
+ readonly graphNodeId: GraphNodeId;
1105
+ readonly slidePartId?: PackagePartId;
1106
+ readonly slideId?: string;
1107
+ readonly textPreview?: string;
1108
+ readonly origin: PptxElementOrigin;
1109
+ };
1110
+ type ProjectInspectionUnsupportedSemanticRecord = PptxUnsupportedSemantic & {
1111
+ readonly elementId: PptxElementId;
1112
+ readonly kind: PptxElementKind;
1113
+ readonly packagePartId: PackagePartId;
1114
+ readonly slidePartId: PackagePartId;
1115
+ readonly slideId: string;
1116
+ readonly origin: PptxElementOrigin;
1117
+ readonly emissionTarget?: PptxEmissionTarget;
1118
+ readonly paintOrderIndex?: number;
1119
+ readonly paintOrder?: PptxPaintOrderInput;
1120
+ };
1121
+ type ProjectInspectionComposedPaintOrderEntry = {
1122
+ readonly source: "backgroundLayer" | "drawingNode" | "generatedStroke";
1123
+ readonly order: number;
1124
+ readonly slidePartId: PackagePartId;
1125
+ readonly slideId: string;
1126
+ readonly packagePartId?: PackagePartId;
1127
+ readonly elementId?: PptxElementId;
1128
+ readonly kind?: PptxElementKind;
1129
+ readonly generatedStroke?: PptxGeneratedStrokeLayer;
1130
+ readonly generatedLayerIndex?: number;
1131
+ readonly backgroundLayerIndex?: number;
1132
+ readonly parentElementId?: PptxElementId;
1133
+ readonly depth?: number;
1134
+ readonly siblingPath?: readonly number[];
1135
+ readonly frame?: FrameIR;
1136
+ readonly backgroundLayer?: ProjectInspectionBackgroundLayerSummary;
1137
+ readonly emissionTarget?: PptxEmissionTarget;
1138
+ readonly paintOrderIndex?: number;
1139
+ readonly paintOrder?: PptxPaintOrderInput;
1140
+ readonly visibility?: PptxVisibility;
1141
+ readonly layoutAnchor?: PptxLayoutAnchor;
1142
+ readonly origin?: PptxElementOrigin;
1143
+ };
1144
+ type ProjectInspectionComposedPaintOrderSlideView = {
1145
+ readonly slidePartId: PackagePartId;
1146
+ readonly slideId: string;
1147
+ readonly name?: string;
1148
+ readonly entries: readonly ProjectInspectionComposedPaintOrderEntry[];
1149
+ };
1150
+ type ProjectInspectionEffectiveProjectedStyleEntry = {
1151
+ readonly slidePartId: PackagePartId;
1152
+ readonly slideId: string;
1153
+ readonly packagePartId: PackagePartId;
1154
+ readonly elementId: PptxElementId;
1155
+ readonly kind: PptxElementKind;
1156
+ readonly parentElementId?: PptxElementId;
1157
+ readonly depth: number;
1158
+ readonly siblingPath: readonly number[];
1159
+ readonly emissionTarget?: PptxEmissionTarget;
1160
+ readonly paintOrderIndex?: number;
1161
+ readonly paintOrder?: PptxPaintOrderInput;
1162
+ readonly layoutAnchor?: PptxLayoutAnchor;
1163
+ readonly origin: PptxElementOrigin;
1164
+ readonly values: ProjectInspectionResolvedValues;
1165
+ };
1166
+ type ProjectInspectionEffectiveProjectedStyleSlideView = {
1167
+ readonly slidePartId: PackagePartId;
1168
+ readonly slideId: string;
1169
+ readonly name?: string;
1170
+ readonly entries: readonly ProjectInspectionEffectiveProjectedStyleEntry[];
1171
+ };
1172
+ type ProjectInspectionPackageDependencyInvalidationEntry = {
1173
+ readonly partId: PackagePartId;
1174
+ readonly path: string;
1175
+ readonly category: PptxPackagePartCategory;
1176
+ readonly kind: PptxPackagePartKind;
1177
+ readonly requirement?: PptxPackagePartRequirement;
1178
+ readonly orderKey?: PptxPackagePartOrderKey;
1179
+ readonly fingerprint?: string;
1180
+ readonly dependencyFingerprintCount?: number;
1181
+ readonly dependencies: readonly ProjectInspectionPackageDependencySummary[];
1182
+ readonly dependents: readonly ProjectInspectionPackageDependencySummary[];
1183
+ readonly dependencyReasons: readonly ProjectInspectionPackageDependencyReason[];
1184
+ readonly dependentReasons: readonly ProjectInspectionPackageDependencyReason[];
1185
+ };
1186
+ type ProjectInspectionPackageDependencyInvalidationView = {
1187
+ readonly entries: readonly ProjectInspectionPackageDependencyInvalidationEntry[];
1188
+ };
1189
+ type ProjectInspectionPaintFallbackAggregationEntry = {
1190
+ readonly feature: PptxUnsupportedSemanticFeature;
1191
+ readonly property: string;
1192
+ readonly fallbackStrategy?: PptxUnsupportedFallbackStrategy;
1193
+ readonly count: number;
1194
+ readonly slidePartIds: readonly PackagePartId[];
1195
+ readonly slideIds: readonly string[];
1196
+ readonly elementIds: readonly PptxElementId[];
1197
+ readonly kinds: readonly PptxElementKind[];
1198
+ readonly values: readonly string[];
1199
+ readonly preserves: readonly string[];
1200
+ readonly missing: readonly string[];
1201
+ readonly reasons: readonly string[];
1202
+ readonly recordIndexes: readonly number[];
1203
+ };
1204
+ type ProjectInspectionPaintFallbackAggregationView = {
1205
+ readonly entries: readonly ProjectInspectionPaintFallbackAggregationEntry[];
1206
+ };
1207
+ type ProjectInspectionThemeProjectionEntry = {
1208
+ readonly partId: PackagePartId;
1209
+ readonly path: string;
1210
+ readonly name: string;
1211
+ readonly projectionId: string;
1212
+ readonly purpose: PptxThemeProjectionPayload["purpose"];
1213
+ readonly source: PptxThemeProjectionPayload["source"];
1214
+ readonly colorSchemeName: string;
1215
+ readonly fontSchemeName: string;
1216
+ readonly formatSchemeName: string;
1217
+ readonly wholeThemeMappings: readonly PptxThemeWholeThemeMapping[];
1218
+ readonly valueGroupFingerprints: readonly PptxThemeValueGroupFingerprint[];
1219
+ readonly supportMappings: readonly PptxThemeSupportMapping[];
1220
+ readonly defaultStyleDecisionCount: number;
1221
+ readonly concreteDrawingPropertyCount: number;
1222
+ readonly unprojectedCount: number;
1223
+ readonly effectiveInheritanceCount: number;
1224
+ readonly referenceSerializationCount: number;
1225
+ readonly defaultStyleDecisions: readonly PptxThemeDefaultStyleDecision[];
1226
+ readonly concreteDrawingProperties: readonly PptxThemeConcreteDrawingPropertyMapping[];
1227
+ readonly unprojected: readonly PptxThemeUnprojectedMapping[];
1228
+ readonly effectiveInheritance: readonly PptxThemeEffectiveInheritanceTrace[];
1229
+ readonly referenceSerialization: readonly PptxThemeReferenceSerializationChoice[];
1230
+ };
1231
+ type ProjectInspectionThemeProjectionView = {
1232
+ readonly entries: readonly ProjectInspectionThemeProjectionEntry[];
1233
+ };
1234
+ type ProjectInspectionDetails = {
1235
+ readonly composedPaintOrder: readonly ProjectInspectionComposedPaintOrderSlideView[];
1236
+ readonly effectiveProjectedStyles: readonly ProjectInspectionEffectiveProjectedStyleSlideView[];
1237
+ readonly packageDependencyInvalidation: ProjectInspectionPackageDependencyInvalidationView;
1238
+ readonly paintFallbackAggregation: ProjectInspectionPaintFallbackAggregationView;
1239
+ readonly themeProjections: ProjectInspectionThemeProjectionView;
1240
+ };
1241
+ type PptxPackageModel = {
1242
+ readonly format: "pptx";
1243
+ readonly size: {
1244
+ readonly widthEmu: number;
1245
+ readonly heightEmu: number;
1246
+ };
1247
+ readonly meta?: DeckOptions["meta"];
1248
+ readonly parts: readonly PptxPackagePart[];
1249
+ readonly slides: readonly PptxSlidePart[];
1250
+ };
1251
+ type PptxPackageModelCandidate = Omit<PptxPackageModel, "parts" | "slides"> & {
1252
+ readonly parts: readonly PptxPackagePartCandidate[];
1253
+ readonly slides: readonly PptxPackagePartCandidate[];
1254
+ };
1255
+ declare function isPptxPackageModel(projection: PptxPackageModelCandidate): projection is PptxPackageModel;
1256
+ //#endregion
1257
+ export { PptxSupportPartPayload as $, isPptxRelationshipsPart as $t, PptxPackagePartKind as A, AssetSource as An, ProjectInspectionEffectiveProjectedStyleEntry as At, PptxRelationshipsPart as B, ProjectInspectionPaintFallbackAggregationEntry as Bt, PptxNotesPlaceholderPayload as C, StageSummary as Cn, PptxVisibility as Ct, PptxPackagePartCandidate as D, AssetLoaderContext as Dn, ProjectInspectionComposedPaintOrderSlideView as Dt, PptxPackagePart as E, AssetLoader as En, ProjectInspectionComposedPaintOrderEntry as Et, PptxPackagePartRequirementStatus as F, ProjectInspectionMediaSummary as Ft, PptxShapeElement as G, ProjectInspectionSummary as Gt, PptxSerializedIdentities as H, ProjectInspectionPartSummary as Ht, PptxPaintOrderInput as I, ProjectInspectionPackageDependencyInvalidationEntry as It, PptxSlideLayoutPartPayload as J, ProjectInspectionUnsupportedSemanticRecord as Jt, PptxSlideDrawing as K, ProjectInspectionThemeProjectionEntry as Kt, PptxPictureElement as L, ProjectInspectionPackageDependencyInvalidationView as Lt, PptxPackagePartOrderKey as M, ProjectInspectionElementSummary as Mt, PptxPackagePartRequirement as N, ProjectInspectionFilteredReason as Nt, PptxPackagePartCategory as O, AssetMediaType as On, ProjectInspectionDetails as Ot, PptxPackagePartRequirementCondition as P, ProjectInspectionFilteredRecord as Pt, PptxSupportPart as Q, isPptxPackagePart as Qt, PptxPresentationSlideMasterId as R, ProjectInspectionPackageDependencyReason as Rt, PptxMediaPartPayload as S, StageName as Sn, PptxUnsupportedSemanticFeature as St, PptxPackageModelCandidate as T, AssetLoadResult as Tn, ProjectInspectionBackgroundLayerSummary as Tt, PptxSerializedIdentity as U, ProjectInspectionRelationshipSummary as Ut, PptxRelationshipsPayload as V, ProjectInspectionPaintFallbackAggregationView as Vt, PptxShadow as W, ProjectInspectionResolvedValues as Wt, PptxSlideMasterPartPayload as X, isPptxMediaPart as Xt, PptxSlideMasterLayoutId as Y, isPptxContentTypesPart as Yt, PptxSlidePart as Z, isPptxPackageModel as Zt, PptxKnownPackagePart as _, RenderOutputSideEffectStatus as _n, PptxThemeValueGroupFingerprint as _t, PptxContentTypeOverride as a, ProjectOptions as an, PptxThemeEffectiveInheritanceStep as at, PptxMediaMetadata as b, RenderedArtifact as bn, PptxUnsupportedFallbackStrategy as bt, PptxDrawingNode as c, RenderAssemblyBuildSummary as cn, PptxThemeProjectionPayload as ct, PptxElementKind as d, RenderAssemblyFingerprintDelta as dn, PptxThemeReferenceSerializationChoice as dt, isPptxSlidePart as en, PptxTextElement as et, PptxElementOrigin as f, RenderAssemblyPlanEntrySummary as fn, PptxThemeReferenceSerializationDecision as ft, PptxGroupElement as g, RenderOutputSideEffectReason as gn, PptxThemeValueGroup as gt, PptxGeneratedStrokeLayer as h, RenderInspectionSummary as hn, PptxThemeUnprojectedMapping as ht, PptxContentTypeDefault as i, OutputFormat as in, PptxThemeDefaultStyleProjectionTarget as it, PptxPackagePartOrderGroup as j, ProjectInspectionEffectiveProjectedStyleSlideView as jt, PptxPackagePartDependencyFingerprint as k, AssetProbeResult as kn, ProjectInspectionDiagnosticSummary as kt, PptxElement as l, RenderAssemblyExpectedEntrySummary as ln, PptxThemeProjectionTrace as lt, PptxEmptySupportPartPayload as m, RenderAssemblyReasonDetails as mn, PptxThemeSupportMapping as mt, PptxBackgroundLayer as n, CompileStages as nn, PptxThemeDefaultStyleDecision as nt, PptxContentTypesPart as o, ProjectStages as on, PptxThemeEffectiveInheritanceTrace as ot, PptxEmissionTarget as p, RenderAssemblyPlanSummary as pn, PptxThemeReferenceSerializationKind as pt, PptxSlideLayoutAnchor as q, ProjectInspectionThemeProjectionView as qt, PptxClip as r, InspectionDetailLevel as rn, PptxThemeDefaultStyleDecisionKind as rt, PptxContentTypesPayload as s, ProjectionFormat as sn, PptxThemePartPayload as st, PackagePartId as t, isPptxSupportPart as tn, PptxThemeConcreteDrawingPropertyMapping as tt, PptxElementId as u, RenderAssemblyFinalEntrySummary as un, PptxThemeReferenceCandidate as ut, PptxLayoutAnchor as v, RenderOutputSideEffectSummary as vn, PptxThemeWholeThemeMapping as vt, PptxPackageModel as w, WrittenOutput as wn, ProjectInspectionAdapterLimitation as wt, PptxMediaPart as x, StageArtifactStatus as xn, PptxUnsupportedSemantic as xt, PptxMeasurement as y, RenderStages as yn, PptxUnsupportedFallback as yt, PptxRelationship as z, ProjectInspectionPackageDependencySummary as zt };