pptx-viewer-core 1.1.33 → 1.1.35
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/{SvgExporter-DszPzkAO.d.mts → SvgExporter-CYyO9c5A.d.mts} +1 -1
- package/dist/{SvgExporter-K7gytgbs.d.ts → SvgExporter-DdjrIx33.d.ts} +1 -1
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +0 -0
- package/dist/cli/index.mjs +0 -0
- package/dist/converter/index.d.mts +3 -3
- package/dist/converter/index.d.ts +3 -3
- package/dist/index.d.mts +134 -6
- package/dist/index.d.ts +134 -6
- package/dist/index.js +814 -341
- package/dist/index.mjs +809 -342
- package/dist/{presentation-DnczfOWz.d.mts → presentation-BRAUjTRt.d.mts} +115 -45
- package/dist/{presentation-DnczfOWz.d.ts → presentation-BRAUjTRt.d.ts} +115 -45
- package/dist/{text-operations-BpaAJ5gE.d.ts → text-operations-BJUOhA1w.d.ts} +1 -1
- package/dist/{text-operations-Q4Ckgnu_.d.mts → text-operations-CkW4BO91.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -2379,52 +2379,14 @@ interface PptxChartData {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
2381
|
/**
|
|
2382
|
-
* SmartArt types:
|
|
2383
|
-
* data-model
|
|
2384
|
-
* `
|
|
2382
|
+
* SmartArt node types: per-run text, per-node visual override, and the
|
|
2383
|
+
* data-model node itself. Split out of `smart-art.ts` to keep each type file
|
|
2384
|
+
* within the project's per-file line budget. Re-exported from `smart-art.ts`
|
|
2385
|
+
* (and thus the `types` barrel) for backward compatibility, so existing
|
|
2386
|
+
* imports of these symbols continue to work unchanged.
|
|
2385
2387
|
*
|
|
2386
|
-
* @module pptx-types/smart-art
|
|
2388
|
+
* @module pptx-types/smart-art-node
|
|
2387
2389
|
*/
|
|
2388
|
-
/**
|
|
2389
|
-
* Resolved SmartArt layout category.
|
|
2390
|
-
*
|
|
2391
|
-
* @example
|
|
2392
|
-
* ```ts
|
|
2393
|
-
* const cat: SmartArtLayoutType = "hierarchy";
|
|
2394
|
-
* // => "hierarchy" — one of: "list" | "process" | "cycle" | "hierarchy" | "relationship" | …
|
|
2395
|
-
* ```
|
|
2396
|
-
*/
|
|
2397
|
-
type SmartArtLayoutType = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship' | 'matrix' | 'pyramid' | 'funnel' | 'gear' | 'target' | 'timeline' | 'venn' | 'chevron' | 'bending' | 'unknown';
|
|
2398
|
-
/**
|
|
2399
|
-
* Named SmartArt layout presets for creation (subset of PowerPoint layouts).
|
|
2400
|
-
*
|
|
2401
|
-
* @example
|
|
2402
|
-
* ```ts
|
|
2403
|
-
* const layout: SmartArtLayout = "hierarchy";
|
|
2404
|
-
* // => "hierarchy" — one of: "basicBlockList" | "alternatingHexagons" | "hierarchy" | …
|
|
2405
|
-
* ```
|
|
2406
|
-
*/
|
|
2407
|
-
type SmartArtLayout = 'basicBlockList' | 'alternatingHexagons' | 'basicChevronProcess' | 'basicCycle' | 'basicPie' | 'basicRadial' | 'basicVenn' | 'continuousBlockProcess' | 'convergingRadial' | 'hierarchy' | 'horizontalBulletList' | 'linearVenn' | 'segmentedProcess' | 'stackedList' | 'tableList' | 'trapezoidList' | 'upwardArrow' | 'basicFunnel' | 'basicTarget' | 'interlockingGears' | 'basicTimeline' | 'basicMatrix' | 'basicPyramid' | 'invertedPyramid' | 'bendingProcess' | 'stepDownProcess' | 'alternatingFlow' | 'descendingProcess' | 'pictureAccentList' | 'verticalBlockList' | 'groupedList' | 'pyramidList' | 'horizontalPictureList' | 'accentProcess' | 'verticalChevronList';
|
|
2408
|
-
/**
|
|
2409
|
-
* SmartArt colour scheme presets.
|
|
2410
|
-
*
|
|
2411
|
-
* @example
|
|
2412
|
-
* ```ts
|
|
2413
|
-
* const scheme: SmartArtColorScheme = "colorful1";
|
|
2414
|
-
* // => "colorful1" — one of: "colorful1" | "colorful2" | "colorful3" | "monochromatic1" | "monochromatic2"
|
|
2415
|
-
* ```
|
|
2416
|
-
*/
|
|
2417
|
-
type SmartArtColorScheme = 'colorful1' | 'colorful2' | 'colorful3' | 'monochromatic1' | 'monochromatic2';
|
|
2418
|
-
/**
|
|
2419
|
-
* SmartArt visual style intensity.
|
|
2420
|
-
*
|
|
2421
|
-
* @example
|
|
2422
|
-
* ```ts
|
|
2423
|
-
* const style: SmartArtStyle = "moderate";
|
|
2424
|
-
* // => "moderate" — one of: "flat" | "moderate" | "intense"
|
|
2425
|
-
* ```
|
|
2426
|
-
*/
|
|
2427
|
-
type SmartArtStyle = 'flat' | 'moderate' | 'intense';
|
|
2428
2390
|
/**
|
|
2429
2391
|
* A single run of text inside a SmartArt node, capturing the run text and the
|
|
2430
2392
|
* raw `a:rPr` run-properties object verbatim so per-run formatting (bold,
|
|
@@ -2449,6 +2411,41 @@ interface PptxSmartArtTextRun {
|
|
|
2449
2411
|
*/
|
|
2450
2412
|
rPr?: Record<string, unknown>;
|
|
2451
2413
|
}
|
|
2414
|
+
/**
|
|
2415
|
+
* Per-node visual override for a SmartArt node.
|
|
2416
|
+
*
|
|
2417
|
+
* Captures the individual fill / line / font colour and the bold / italic
|
|
2418
|
+
* emphasis a user has set on one specific node, independent of the diagram's
|
|
2419
|
+
* colour scheme and quick style. All colours are hex strings (e.g. "#FF0000").
|
|
2420
|
+
* Every field is optional: only the overridden aspects are carried, so an
|
|
2421
|
+
* empty object means "no per-node override".
|
|
2422
|
+
*
|
|
2423
|
+
* The parser reads these from the data point's `spPr` solid fill / line colour
|
|
2424
|
+
* and the first run's `rPr` (b / i / solidFill) when present, and the save path
|
|
2425
|
+
* writes them back so the override survives a load -> edit -> save round-trip.
|
|
2426
|
+
*
|
|
2427
|
+
* @example
|
|
2428
|
+
* ```ts
|
|
2429
|
+
* const style: PptxSmartArtNodeStyle = {
|
|
2430
|
+
* fillColor: "#FF0000",
|
|
2431
|
+
* fontColor: "#FFFFFF",
|
|
2432
|
+
* bold: true,
|
|
2433
|
+
* };
|
|
2434
|
+
* // => satisfies PptxSmartArtNodeStyle
|
|
2435
|
+
* ```
|
|
2436
|
+
*/
|
|
2437
|
+
interface PptxSmartArtNodeStyle {
|
|
2438
|
+
/** Solid fill colour override (hex, e.g. "#4F81BD"). */
|
|
2439
|
+
fillColor?: string;
|
|
2440
|
+
/** Outline / line colour override (hex). */
|
|
2441
|
+
lineColor?: string;
|
|
2442
|
+
/** Text (font) colour override (hex). */
|
|
2443
|
+
fontColor?: string;
|
|
2444
|
+
/** Bold emphasis override for the node's runs. */
|
|
2445
|
+
bold?: boolean;
|
|
2446
|
+
/** Italic emphasis override for the node's runs. */
|
|
2447
|
+
italic?: boolean;
|
|
2448
|
+
}
|
|
2452
2449
|
/**
|
|
2453
2450
|
* A single node in the SmartArt data model.
|
|
2454
2451
|
*
|
|
@@ -2480,7 +2477,63 @@ interface PptxSmartArtNode {
|
|
|
2480
2477
|
* is not flattened. When {@link text} diverges, the runs are ignored.
|
|
2481
2478
|
*/
|
|
2482
2479
|
runs?: PptxSmartArtTextRun[];
|
|
2480
|
+
/**
|
|
2481
|
+
* Optional per-node visual override (fill / line / font colour, bold /
|
|
2482
|
+
* italic). Read at parse time from the point's `spPr` / first-run `rPr`, set
|
|
2483
|
+
* by the editing op, honoured by the render path, and written back on save so
|
|
2484
|
+
* it round-trips.
|
|
2485
|
+
*/
|
|
2486
|
+
style?: PptxSmartArtNodeStyle;
|
|
2483
2487
|
}
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* SmartArt types: layout categories, layout presets, colour schemes,
|
|
2491
|
+
* data-model nodes/connections, drawing shapes, chrome, and the composite
|
|
2492
|
+
* `PptxSmartArtData`.
|
|
2493
|
+
*
|
|
2494
|
+
* @module pptx-types/smart-art
|
|
2495
|
+
*/
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Resolved SmartArt layout category.
|
|
2499
|
+
*
|
|
2500
|
+
* @example
|
|
2501
|
+
* ```ts
|
|
2502
|
+
* const cat: SmartArtLayoutType = "hierarchy";
|
|
2503
|
+
* // => "hierarchy" — one of: "list" | "process" | "cycle" | "hierarchy" | "relationship" | …
|
|
2504
|
+
* ```
|
|
2505
|
+
*/
|
|
2506
|
+
type SmartArtLayoutType = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship' | 'matrix' | 'pyramid' | 'funnel' | 'gear' | 'target' | 'timeline' | 'venn' | 'chevron' | 'bending' | 'unknown';
|
|
2507
|
+
/**
|
|
2508
|
+
* Named SmartArt layout presets for creation (subset of PowerPoint layouts).
|
|
2509
|
+
*
|
|
2510
|
+
* @example
|
|
2511
|
+
* ```ts
|
|
2512
|
+
* const layout: SmartArtLayout = "hierarchy";
|
|
2513
|
+
* // => "hierarchy" — one of: "basicBlockList" | "alternatingHexagons" | "hierarchy" | …
|
|
2514
|
+
* ```
|
|
2515
|
+
*/
|
|
2516
|
+
type SmartArtLayout = 'basicBlockList' | 'alternatingHexagons' | 'basicChevronProcess' | 'basicCycle' | 'basicPie' | 'basicRadial' | 'basicVenn' | 'continuousBlockProcess' | 'convergingRadial' | 'hierarchy' | 'horizontalBulletList' | 'linearVenn' | 'segmentedProcess' | 'stackedList' | 'tableList' | 'trapezoidList' | 'upwardArrow' | 'basicFunnel' | 'basicTarget' | 'interlockingGears' | 'basicTimeline' | 'basicMatrix' | 'basicPyramid' | 'invertedPyramid' | 'bendingProcess' | 'stepDownProcess' | 'alternatingFlow' | 'descendingProcess' | 'pictureAccentList' | 'verticalBlockList' | 'groupedList' | 'pyramidList' | 'horizontalPictureList' | 'accentProcess' | 'verticalChevronList';
|
|
2517
|
+
/**
|
|
2518
|
+
* SmartArt colour scheme presets.
|
|
2519
|
+
*
|
|
2520
|
+
* @example
|
|
2521
|
+
* ```ts
|
|
2522
|
+
* const scheme: SmartArtColorScheme = "colorful1";
|
|
2523
|
+
* // => "colorful1" — one of: "colorful1" | "colorful2" | "colorful3" | "monochromatic1" | "monochromatic2"
|
|
2524
|
+
* ```
|
|
2525
|
+
*/
|
|
2526
|
+
type SmartArtColorScheme = 'colorful1' | 'colorful2' | 'colorful3' | 'monochromatic1' | 'monochromatic2';
|
|
2527
|
+
/**
|
|
2528
|
+
* SmartArt visual style intensity.
|
|
2529
|
+
*
|
|
2530
|
+
* @example
|
|
2531
|
+
* ```ts
|
|
2532
|
+
* const style: SmartArtStyle = "moderate";
|
|
2533
|
+
* // => "moderate" — one of: "flat" | "moderate" | "intense"
|
|
2534
|
+
* ```
|
|
2535
|
+
*/
|
|
2536
|
+
type SmartArtStyle = 'flat' | 'moderate' | 'intense';
|
|
2484
2537
|
/**
|
|
2485
2538
|
* A connection between two SmartArt data-model nodes.
|
|
2486
2539
|
*
|
|
@@ -4284,6 +4337,23 @@ interface OlePptxElement extends PptxElementBase {
|
|
|
4284
4337
|
oleImgW?: number;
|
|
4285
4338
|
/** Authored display height of the OLE object preview, in EMU (`@imgH`). */
|
|
4286
4339
|
oleImgH?: number;
|
|
4340
|
+
/**
|
|
4341
|
+
* The recovered embedded payload as a data-URL (e.g.
|
|
4342
|
+
* `data:application/vnd...;base64,...`), suitable for download or
|
|
4343
|
+
* open-in-new-tab. For a generic "Package" OLE object this is the unwrapped
|
|
4344
|
+
* inner file; for a plain embedded file (e.g. `.xlsx`) it is that file
|
|
4345
|
+
* directly. Undefined when the embedding is missing or unreadable.
|
|
4346
|
+
*
|
|
4347
|
+
* Stored as a data-URL string to mirror how images store decoded bytes
|
|
4348
|
+
* ({@link ImagePptxElement.imageData}) and to stay serialization-safe.
|
|
4349
|
+
*/
|
|
4350
|
+
oleEmbeddedData?: string;
|
|
4351
|
+
/** Original file name of the embedded payload when recoverable. */
|
|
4352
|
+
oleEmbeddedFileName?: string;
|
|
4353
|
+
/** MIME type of the embedded payload, derived from its extension/ProgID. */
|
|
4354
|
+
oleEmbeddedMimeType?: string;
|
|
4355
|
+
/** Size of the embedded payload in bytes. */
|
|
4356
|
+
oleEmbeddedByteSize?: number;
|
|
4287
4357
|
/** Unrecognised graphicFrame extLst extensions, captured verbatim for round-trip. */
|
|
4288
4358
|
extensionXml?: PptxGraphicFrameExtension[];
|
|
4289
4359
|
}
|
|
@@ -5714,4 +5784,4 @@ interface PptxEmbeddedFont {
|
|
|
5714
5784
|
originalPartBytes?: Uint8Array;
|
|
5715
5785
|
}
|
|
5716
5786
|
|
|
5717
|
-
export { type ShapeStyle as $, type PptxSlideMaster as A, type PptxSlideLayout as B, type ConnectorPptxElement as C, type PptxTagCollection as D, type PptxPhotoAlbum as E, type PptxKinsoku as F, type PptxModifyVerifier as G, type PptxViewProperties as H, type InkPptxElement as I, type ParsedTableStyleMap as J, type PptxEmbeddedFont as K, type PptxExportOptions as L, type PptxThemeFormatScheme as M, type TextSegment as N, type PptxComment as O, type PptxElement as P, type PptxSlideBackgroundPattern as Q, type PptxSlideTransition as R, type ShapePptxElement as S, type TextPptxElement as T, type PptxElementAnimation as U, type PptxNativeAnimation as V, type PptxCustomerData as W, type XmlObject as X, type PptxActiveXControl as Y, type ZoomPptxElement as Z, type AnimationCondition as _, type PptxElementWithShapeStyle as a, type
|
|
5787
|
+
export { type ShapeStyle as $, type PptxSlideMaster as A, type PptxSlideLayout as B, type ConnectorPptxElement as C, type PptxTagCollection as D, type PptxPhotoAlbum as E, type PptxKinsoku as F, type PptxModifyVerifier as G, type PptxViewProperties as H, type InkPptxElement as I, type ParsedTableStyleMap as J, type PptxEmbeddedFont as K, type PptxExportOptions as L, type PptxThemeFormatScheme as M, type TextSegment as N, type PptxComment as O, type PptxElement as P, type PptxSlideBackgroundPattern as Q, type PptxSlideTransition as R, type ShapePptxElement as S, type TextPptxElement as T, type PptxElementAnimation as U, type PptxNativeAnimation as V, type PptxCustomerData as W, type XmlObject as X, type PptxActiveXControl as Y, type ZoomPptxElement as Z, type AnimationCondition as _, type PptxElementWithShapeStyle as a, type PptxExternalData as a$, type TextStyle as a0, type ElementAction as a1, type PptxAction as a2, type OleObjectType as a3, type PptxSmartArtNode as a4, type SmartArtLayoutType as a5, type PptxSmartArtDrawingShape as a6, type PptxSmartArtNodeStyle as a7, type PptxChartDataTable as a8, type PptxChartLineStyle as a9, type TablePptxElement as aA, type ChartPptxElement as aB, type OlePptxElement as aC, type GroupPptxElement as aD, type PlaceholderTextLevelStyle as aE, type PptxChartOfPieOptions as aF, type PptxChartView3D as aG, type PptxChartChrome as aH, type PptxChartSeries as aI, type SmartArtPptxElement as aJ, type GeometryAdjustmentHandle as aK, type CustomGeometryRawData as aL, type AdjustHandleXY as aM, type AdjustHandlePolar as aN, type ConnectionSite as aO, type CustomGeometryTextRect as aP, type CustomGeometryPath as aQ, type BulletInfo as aR, type PptxShapeLocks as aS, type PptxTextStyleLevels as aT, type PptxThemeFillStyle as aU, type PptxThemeLineStyle as aV, type PptxThemeEffectStyle as aW, type PptxSmartArtTextRun as aX, type PptxSmartArtChrome as aY, type PptxSmartArtColorTransform as aZ, type PptxSmartArtQuickStyle as a_, type PptxChartErrBars as aa, type PptxChartTrendline as ab, type PptxChartMarker as ac, type PptxChartDataLabel as ad, type PptxChartDataPoint as ae, type PptxChartShapeProps as af, type PptxChart3DSurface as ag, type PptxChartAxisFormatting as ah, type PptxEmbeddedWorkbookData as ai, type PptxDrawingGuide as aj, type PptxTableCellStyle as ak, type PptxCustomXmlPart as al, type PptxCommentAuthor as am, type MediaPptxElement as an, type PptxTableData as ao, type PptxTheme as ap, type PptxThemeOption as aq, type PlaceholderDefaults as ar, type PptxMasterTextStyles as as, type PptxThemeObjectDefaults as at, type ParsedTableStyleFill as au, type ParsedTableBackground as av, type ParsedTableStyleText as aw, type PptxImageEffects as ax, type MediaBookmark as ay, type PptxChartStyle as az, type PptxElementWithText as b, type PptxTextAnimationTarget as b$, type CustomGeometryPoint as b0, type ImagePptxElement as b1, type PptxChartDataLabelOptions as b2, type PptxChartMarkerSymbol as b3, type ActionButtonPreset as b4, type AnimationConditionEvent as b5, type BevelPresetType as b6, type ConnectorConnectionPoint as b7, type ContentPartInkStroke as b8, type ContentPartPptxElement as b9, type PptxChartAxisNumFmt as bA, type PptxChartErrBarDir as bB, type PptxChartErrBarType as bC, type PptxChartErrValType as bD, type PptxChartTrendlineType as bE, type PptxColorAnimation as bF, type PptxCommonSlideViewProperties as bG, type PptxCropShape as bH, type PptxCustomPathProperties as bI, type PptxElementBase as bJ, type PptxElementType as bK, type PptxExportFormat as bL, type PptxGraphicFrameExtension as bM, type PptxHeaderFooterFlags as bN, type PptxImageProperties as bO, type PptxMediaType as bP, type PptxNativeAnimationKind as bQ, type PptxNormalViewProperties as bR, type PptxRestoredRegion as bS, type PptxShapeProperties as bT, type PptxSmartArtConnection as bU, type PptxSplitDirection as bV, type PptxSplitOrientation as bW, type PptxStripDirection as bX, type PptxTableCell as bY, type PptxTableRow as bZ, type PptxTag as b_, type CustomGeometrySegment as ba, type EffectDagBlend as bb, type EffectDagBlendMode as bc, type EffectDagContainer as bd, type EffectDagContainerType as be, type EffectDagNode as bf, type EffectDagRawLeaf as bg, type EffectDagRelOff as bh, type EffectDagXfrm as bi, type ElementActionType as bj, type MasterViewTab as bk, type MaterialPresetType as bl, type MediaCaptionTrack as bm, type MediaMetadata as bn, type Model3DPptxElement as bo, type ParsedTableStyleEntry as bp, type PicturePptxElement as bq, type Pptx3DScene as br, type Pptx3DShape as bs, type PptxAfterAnimationAction as bt, type PptxAnimationDirection as bu, type PptxAnimationIterate as bv, type PptxAnimationKeyframe as bw, type PptxAnimationRepeatMode as bx, type PptxAnimationSequence as by, type PptxAnimationTimingCurve as bz, type PptxImageLikeElement as c, type PptxTextBuildType as c0, type PptxTextProperties as c1, type PptxTextWarpPreset as c2, type PptxThemeFontGroup as c3, type PptxTransitionDirection4 as c4, type PptxTransitionDirection8 as c5, type PptxViewOrigin as c6, type PptxViewScale as c7, type ShadowEffect as c8, type SmartArtColorScheme as c9, type SmartArtLayout as ca, type SmartArtStyle as cb, THEME_COLOR_SCHEME_KEYS as cc, TRANSITION_VALID_DIRECTIONS as cd, type Text3DStyle as ce, type UnderlineStyle as cf, type UnknownPptxElement as cg, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
|
|
@@ -2379,52 +2379,14 @@ interface PptxChartData {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
2381
|
/**
|
|
2382
|
-
* SmartArt types:
|
|
2383
|
-
* data-model
|
|
2384
|
-
* `
|
|
2382
|
+
* SmartArt node types: per-run text, per-node visual override, and the
|
|
2383
|
+
* data-model node itself. Split out of `smart-art.ts` to keep each type file
|
|
2384
|
+
* within the project's per-file line budget. Re-exported from `smart-art.ts`
|
|
2385
|
+
* (and thus the `types` barrel) for backward compatibility, so existing
|
|
2386
|
+
* imports of these symbols continue to work unchanged.
|
|
2385
2387
|
*
|
|
2386
|
-
* @module pptx-types/smart-art
|
|
2388
|
+
* @module pptx-types/smart-art-node
|
|
2387
2389
|
*/
|
|
2388
|
-
/**
|
|
2389
|
-
* Resolved SmartArt layout category.
|
|
2390
|
-
*
|
|
2391
|
-
* @example
|
|
2392
|
-
* ```ts
|
|
2393
|
-
* const cat: SmartArtLayoutType = "hierarchy";
|
|
2394
|
-
* // => "hierarchy" — one of: "list" | "process" | "cycle" | "hierarchy" | "relationship" | …
|
|
2395
|
-
* ```
|
|
2396
|
-
*/
|
|
2397
|
-
type SmartArtLayoutType = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship' | 'matrix' | 'pyramid' | 'funnel' | 'gear' | 'target' | 'timeline' | 'venn' | 'chevron' | 'bending' | 'unknown';
|
|
2398
|
-
/**
|
|
2399
|
-
* Named SmartArt layout presets for creation (subset of PowerPoint layouts).
|
|
2400
|
-
*
|
|
2401
|
-
* @example
|
|
2402
|
-
* ```ts
|
|
2403
|
-
* const layout: SmartArtLayout = "hierarchy";
|
|
2404
|
-
* // => "hierarchy" — one of: "basicBlockList" | "alternatingHexagons" | "hierarchy" | …
|
|
2405
|
-
* ```
|
|
2406
|
-
*/
|
|
2407
|
-
type SmartArtLayout = 'basicBlockList' | 'alternatingHexagons' | 'basicChevronProcess' | 'basicCycle' | 'basicPie' | 'basicRadial' | 'basicVenn' | 'continuousBlockProcess' | 'convergingRadial' | 'hierarchy' | 'horizontalBulletList' | 'linearVenn' | 'segmentedProcess' | 'stackedList' | 'tableList' | 'trapezoidList' | 'upwardArrow' | 'basicFunnel' | 'basicTarget' | 'interlockingGears' | 'basicTimeline' | 'basicMatrix' | 'basicPyramid' | 'invertedPyramid' | 'bendingProcess' | 'stepDownProcess' | 'alternatingFlow' | 'descendingProcess' | 'pictureAccentList' | 'verticalBlockList' | 'groupedList' | 'pyramidList' | 'horizontalPictureList' | 'accentProcess' | 'verticalChevronList';
|
|
2408
|
-
/**
|
|
2409
|
-
* SmartArt colour scheme presets.
|
|
2410
|
-
*
|
|
2411
|
-
* @example
|
|
2412
|
-
* ```ts
|
|
2413
|
-
* const scheme: SmartArtColorScheme = "colorful1";
|
|
2414
|
-
* // => "colorful1" — one of: "colorful1" | "colorful2" | "colorful3" | "monochromatic1" | "monochromatic2"
|
|
2415
|
-
* ```
|
|
2416
|
-
*/
|
|
2417
|
-
type SmartArtColorScheme = 'colorful1' | 'colorful2' | 'colorful3' | 'monochromatic1' | 'monochromatic2';
|
|
2418
|
-
/**
|
|
2419
|
-
* SmartArt visual style intensity.
|
|
2420
|
-
*
|
|
2421
|
-
* @example
|
|
2422
|
-
* ```ts
|
|
2423
|
-
* const style: SmartArtStyle = "moderate";
|
|
2424
|
-
* // => "moderate" — one of: "flat" | "moderate" | "intense"
|
|
2425
|
-
* ```
|
|
2426
|
-
*/
|
|
2427
|
-
type SmartArtStyle = 'flat' | 'moderate' | 'intense';
|
|
2428
2390
|
/**
|
|
2429
2391
|
* A single run of text inside a SmartArt node, capturing the run text and the
|
|
2430
2392
|
* raw `a:rPr` run-properties object verbatim so per-run formatting (bold,
|
|
@@ -2449,6 +2411,41 @@ interface PptxSmartArtTextRun {
|
|
|
2449
2411
|
*/
|
|
2450
2412
|
rPr?: Record<string, unknown>;
|
|
2451
2413
|
}
|
|
2414
|
+
/**
|
|
2415
|
+
* Per-node visual override for a SmartArt node.
|
|
2416
|
+
*
|
|
2417
|
+
* Captures the individual fill / line / font colour and the bold / italic
|
|
2418
|
+
* emphasis a user has set on one specific node, independent of the diagram's
|
|
2419
|
+
* colour scheme and quick style. All colours are hex strings (e.g. "#FF0000").
|
|
2420
|
+
* Every field is optional: only the overridden aspects are carried, so an
|
|
2421
|
+
* empty object means "no per-node override".
|
|
2422
|
+
*
|
|
2423
|
+
* The parser reads these from the data point's `spPr` solid fill / line colour
|
|
2424
|
+
* and the first run's `rPr` (b / i / solidFill) when present, and the save path
|
|
2425
|
+
* writes them back so the override survives a load -> edit -> save round-trip.
|
|
2426
|
+
*
|
|
2427
|
+
* @example
|
|
2428
|
+
* ```ts
|
|
2429
|
+
* const style: PptxSmartArtNodeStyle = {
|
|
2430
|
+
* fillColor: "#FF0000",
|
|
2431
|
+
* fontColor: "#FFFFFF",
|
|
2432
|
+
* bold: true,
|
|
2433
|
+
* };
|
|
2434
|
+
* // => satisfies PptxSmartArtNodeStyle
|
|
2435
|
+
* ```
|
|
2436
|
+
*/
|
|
2437
|
+
interface PptxSmartArtNodeStyle {
|
|
2438
|
+
/** Solid fill colour override (hex, e.g. "#4F81BD"). */
|
|
2439
|
+
fillColor?: string;
|
|
2440
|
+
/** Outline / line colour override (hex). */
|
|
2441
|
+
lineColor?: string;
|
|
2442
|
+
/** Text (font) colour override (hex). */
|
|
2443
|
+
fontColor?: string;
|
|
2444
|
+
/** Bold emphasis override for the node's runs. */
|
|
2445
|
+
bold?: boolean;
|
|
2446
|
+
/** Italic emphasis override for the node's runs. */
|
|
2447
|
+
italic?: boolean;
|
|
2448
|
+
}
|
|
2452
2449
|
/**
|
|
2453
2450
|
* A single node in the SmartArt data model.
|
|
2454
2451
|
*
|
|
@@ -2480,7 +2477,63 @@ interface PptxSmartArtNode {
|
|
|
2480
2477
|
* is not flattened. When {@link text} diverges, the runs are ignored.
|
|
2481
2478
|
*/
|
|
2482
2479
|
runs?: PptxSmartArtTextRun[];
|
|
2480
|
+
/**
|
|
2481
|
+
* Optional per-node visual override (fill / line / font colour, bold /
|
|
2482
|
+
* italic). Read at parse time from the point's `spPr` / first-run `rPr`, set
|
|
2483
|
+
* by the editing op, honoured by the render path, and written back on save so
|
|
2484
|
+
* it round-trips.
|
|
2485
|
+
*/
|
|
2486
|
+
style?: PptxSmartArtNodeStyle;
|
|
2483
2487
|
}
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* SmartArt types: layout categories, layout presets, colour schemes,
|
|
2491
|
+
* data-model nodes/connections, drawing shapes, chrome, and the composite
|
|
2492
|
+
* `PptxSmartArtData`.
|
|
2493
|
+
*
|
|
2494
|
+
* @module pptx-types/smart-art
|
|
2495
|
+
*/
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Resolved SmartArt layout category.
|
|
2499
|
+
*
|
|
2500
|
+
* @example
|
|
2501
|
+
* ```ts
|
|
2502
|
+
* const cat: SmartArtLayoutType = "hierarchy";
|
|
2503
|
+
* // => "hierarchy" — one of: "list" | "process" | "cycle" | "hierarchy" | "relationship" | …
|
|
2504
|
+
* ```
|
|
2505
|
+
*/
|
|
2506
|
+
type SmartArtLayoutType = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship' | 'matrix' | 'pyramid' | 'funnel' | 'gear' | 'target' | 'timeline' | 'venn' | 'chevron' | 'bending' | 'unknown';
|
|
2507
|
+
/**
|
|
2508
|
+
* Named SmartArt layout presets for creation (subset of PowerPoint layouts).
|
|
2509
|
+
*
|
|
2510
|
+
* @example
|
|
2511
|
+
* ```ts
|
|
2512
|
+
* const layout: SmartArtLayout = "hierarchy";
|
|
2513
|
+
* // => "hierarchy" — one of: "basicBlockList" | "alternatingHexagons" | "hierarchy" | …
|
|
2514
|
+
* ```
|
|
2515
|
+
*/
|
|
2516
|
+
type SmartArtLayout = 'basicBlockList' | 'alternatingHexagons' | 'basicChevronProcess' | 'basicCycle' | 'basicPie' | 'basicRadial' | 'basicVenn' | 'continuousBlockProcess' | 'convergingRadial' | 'hierarchy' | 'horizontalBulletList' | 'linearVenn' | 'segmentedProcess' | 'stackedList' | 'tableList' | 'trapezoidList' | 'upwardArrow' | 'basicFunnel' | 'basicTarget' | 'interlockingGears' | 'basicTimeline' | 'basicMatrix' | 'basicPyramid' | 'invertedPyramid' | 'bendingProcess' | 'stepDownProcess' | 'alternatingFlow' | 'descendingProcess' | 'pictureAccentList' | 'verticalBlockList' | 'groupedList' | 'pyramidList' | 'horizontalPictureList' | 'accentProcess' | 'verticalChevronList';
|
|
2517
|
+
/**
|
|
2518
|
+
* SmartArt colour scheme presets.
|
|
2519
|
+
*
|
|
2520
|
+
* @example
|
|
2521
|
+
* ```ts
|
|
2522
|
+
* const scheme: SmartArtColorScheme = "colorful1";
|
|
2523
|
+
* // => "colorful1" — one of: "colorful1" | "colorful2" | "colorful3" | "monochromatic1" | "monochromatic2"
|
|
2524
|
+
* ```
|
|
2525
|
+
*/
|
|
2526
|
+
type SmartArtColorScheme = 'colorful1' | 'colorful2' | 'colorful3' | 'monochromatic1' | 'monochromatic2';
|
|
2527
|
+
/**
|
|
2528
|
+
* SmartArt visual style intensity.
|
|
2529
|
+
*
|
|
2530
|
+
* @example
|
|
2531
|
+
* ```ts
|
|
2532
|
+
* const style: SmartArtStyle = "moderate";
|
|
2533
|
+
* // => "moderate" — one of: "flat" | "moderate" | "intense"
|
|
2534
|
+
* ```
|
|
2535
|
+
*/
|
|
2536
|
+
type SmartArtStyle = 'flat' | 'moderate' | 'intense';
|
|
2484
2537
|
/**
|
|
2485
2538
|
* A connection between two SmartArt data-model nodes.
|
|
2486
2539
|
*
|
|
@@ -4284,6 +4337,23 @@ interface OlePptxElement extends PptxElementBase {
|
|
|
4284
4337
|
oleImgW?: number;
|
|
4285
4338
|
/** Authored display height of the OLE object preview, in EMU (`@imgH`). */
|
|
4286
4339
|
oleImgH?: number;
|
|
4340
|
+
/**
|
|
4341
|
+
* The recovered embedded payload as a data-URL (e.g.
|
|
4342
|
+
* `data:application/vnd...;base64,...`), suitable for download or
|
|
4343
|
+
* open-in-new-tab. For a generic "Package" OLE object this is the unwrapped
|
|
4344
|
+
* inner file; for a plain embedded file (e.g. `.xlsx`) it is that file
|
|
4345
|
+
* directly. Undefined when the embedding is missing or unreadable.
|
|
4346
|
+
*
|
|
4347
|
+
* Stored as a data-URL string to mirror how images store decoded bytes
|
|
4348
|
+
* ({@link ImagePptxElement.imageData}) and to stay serialization-safe.
|
|
4349
|
+
*/
|
|
4350
|
+
oleEmbeddedData?: string;
|
|
4351
|
+
/** Original file name of the embedded payload when recoverable. */
|
|
4352
|
+
oleEmbeddedFileName?: string;
|
|
4353
|
+
/** MIME type of the embedded payload, derived from its extension/ProgID. */
|
|
4354
|
+
oleEmbeddedMimeType?: string;
|
|
4355
|
+
/** Size of the embedded payload in bytes. */
|
|
4356
|
+
oleEmbeddedByteSize?: number;
|
|
4287
4357
|
/** Unrecognised graphicFrame extLst extensions, captured verbatim for round-trip. */
|
|
4288
4358
|
extensionXml?: PptxGraphicFrameExtension[];
|
|
4289
4359
|
}
|
|
@@ -5714,4 +5784,4 @@ interface PptxEmbeddedFont {
|
|
|
5714
5784
|
originalPartBytes?: Uint8Array;
|
|
5715
5785
|
}
|
|
5716
5786
|
|
|
5717
|
-
export { type ShapeStyle as $, type PptxSlideMaster as A, type PptxSlideLayout as B, type ConnectorPptxElement as C, type PptxTagCollection as D, type PptxPhotoAlbum as E, type PptxKinsoku as F, type PptxModifyVerifier as G, type PptxViewProperties as H, type InkPptxElement as I, type ParsedTableStyleMap as J, type PptxEmbeddedFont as K, type PptxExportOptions as L, type PptxThemeFormatScheme as M, type TextSegment as N, type PptxComment as O, type PptxElement as P, type PptxSlideBackgroundPattern as Q, type PptxSlideTransition as R, type ShapePptxElement as S, type TextPptxElement as T, type PptxElementAnimation as U, type PptxNativeAnimation as V, type PptxCustomerData as W, type XmlObject as X, type PptxActiveXControl as Y, type ZoomPptxElement as Z, type AnimationCondition as _, type PptxElementWithShapeStyle as a, type
|
|
5787
|
+
export { type ShapeStyle as $, type PptxSlideMaster as A, type PptxSlideLayout as B, type ConnectorPptxElement as C, type PptxTagCollection as D, type PptxPhotoAlbum as E, type PptxKinsoku as F, type PptxModifyVerifier as G, type PptxViewProperties as H, type InkPptxElement as I, type ParsedTableStyleMap as J, type PptxEmbeddedFont as K, type PptxExportOptions as L, type PptxThemeFormatScheme as M, type TextSegment as N, type PptxComment as O, type PptxElement as P, type PptxSlideBackgroundPattern as Q, type PptxSlideTransition as R, type ShapePptxElement as S, type TextPptxElement as T, type PptxElementAnimation as U, type PptxNativeAnimation as V, type PptxCustomerData as W, type XmlObject as X, type PptxActiveXControl as Y, type ZoomPptxElement as Z, type AnimationCondition as _, type PptxElementWithShapeStyle as a, type PptxExternalData as a$, type TextStyle as a0, type ElementAction as a1, type PptxAction as a2, type OleObjectType as a3, type PptxSmartArtNode as a4, type SmartArtLayoutType as a5, type PptxSmartArtDrawingShape as a6, type PptxSmartArtNodeStyle as a7, type PptxChartDataTable as a8, type PptxChartLineStyle as a9, type TablePptxElement as aA, type ChartPptxElement as aB, type OlePptxElement as aC, type GroupPptxElement as aD, type PlaceholderTextLevelStyle as aE, type PptxChartOfPieOptions as aF, type PptxChartView3D as aG, type PptxChartChrome as aH, type PptxChartSeries as aI, type SmartArtPptxElement as aJ, type GeometryAdjustmentHandle as aK, type CustomGeometryRawData as aL, type AdjustHandleXY as aM, type AdjustHandlePolar as aN, type ConnectionSite as aO, type CustomGeometryTextRect as aP, type CustomGeometryPath as aQ, type BulletInfo as aR, type PptxShapeLocks as aS, type PptxTextStyleLevels as aT, type PptxThemeFillStyle as aU, type PptxThemeLineStyle as aV, type PptxThemeEffectStyle as aW, type PptxSmartArtTextRun as aX, type PptxSmartArtChrome as aY, type PptxSmartArtColorTransform as aZ, type PptxSmartArtQuickStyle as a_, type PptxChartErrBars as aa, type PptxChartTrendline as ab, type PptxChartMarker as ac, type PptxChartDataLabel as ad, type PptxChartDataPoint as ae, type PptxChartShapeProps as af, type PptxChart3DSurface as ag, type PptxChartAxisFormatting as ah, type PptxEmbeddedWorkbookData as ai, type PptxDrawingGuide as aj, type PptxTableCellStyle as ak, type PptxCustomXmlPart as al, type PptxCommentAuthor as am, type MediaPptxElement as an, type PptxTableData as ao, type PptxTheme as ap, type PptxThemeOption as aq, type PlaceholderDefaults as ar, type PptxMasterTextStyles as as, type PptxThemeObjectDefaults as at, type ParsedTableStyleFill as au, type ParsedTableBackground as av, type ParsedTableStyleText as aw, type PptxImageEffects as ax, type MediaBookmark as ay, type PptxChartStyle as az, type PptxElementWithText as b, type PptxTextAnimationTarget as b$, type CustomGeometryPoint as b0, type ImagePptxElement as b1, type PptxChartDataLabelOptions as b2, type PptxChartMarkerSymbol as b3, type ActionButtonPreset as b4, type AnimationConditionEvent as b5, type BevelPresetType as b6, type ConnectorConnectionPoint as b7, type ContentPartInkStroke as b8, type ContentPartPptxElement as b9, type PptxChartAxisNumFmt as bA, type PptxChartErrBarDir as bB, type PptxChartErrBarType as bC, type PptxChartErrValType as bD, type PptxChartTrendlineType as bE, type PptxColorAnimation as bF, type PptxCommonSlideViewProperties as bG, type PptxCropShape as bH, type PptxCustomPathProperties as bI, type PptxElementBase as bJ, type PptxElementType as bK, type PptxExportFormat as bL, type PptxGraphicFrameExtension as bM, type PptxHeaderFooterFlags as bN, type PptxImageProperties as bO, type PptxMediaType as bP, type PptxNativeAnimationKind as bQ, type PptxNormalViewProperties as bR, type PptxRestoredRegion as bS, type PptxShapeProperties as bT, type PptxSmartArtConnection as bU, type PptxSplitDirection as bV, type PptxSplitOrientation as bW, type PptxStripDirection as bX, type PptxTableCell as bY, type PptxTableRow as bZ, type PptxTag as b_, type CustomGeometrySegment as ba, type EffectDagBlend as bb, type EffectDagBlendMode as bc, type EffectDagContainer as bd, type EffectDagContainerType as be, type EffectDagNode as bf, type EffectDagRawLeaf as bg, type EffectDagRelOff as bh, type EffectDagXfrm as bi, type ElementActionType as bj, type MasterViewTab as bk, type MaterialPresetType as bl, type MediaCaptionTrack as bm, type MediaMetadata as bn, type Model3DPptxElement as bo, type ParsedTableStyleEntry as bp, type PicturePptxElement as bq, type Pptx3DScene as br, type Pptx3DShape as bs, type PptxAfterAnimationAction as bt, type PptxAnimationDirection as bu, type PptxAnimationIterate as bv, type PptxAnimationKeyframe as bw, type PptxAnimationRepeatMode as bx, type PptxAnimationSequence as by, type PptxAnimationTimingCurve as bz, type PptxImageLikeElement as c, type PptxTextBuildType as c0, type PptxTextProperties as c1, type PptxTextWarpPreset as c2, type PptxThemeFontGroup as c3, type PptxTransitionDirection4 as c4, type PptxTransitionDirection8 as c5, type PptxViewOrigin as c6, type PptxViewScale as c7, type ShadowEffect as c8, type SmartArtColorScheme as c9, type SmartArtLayout as ca, type SmartArtStyle as cb, THEME_COLOR_SCHEME_KEYS as cc, TRANSITION_VALID_DIRECTIONS as cd, type Text3DStyle as ce, type UnderlineStyle as cf, type UnknownPptxElement as cg, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
|