ooxml-core 0.20.0 → 0.21.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.
Files changed (40) hide show
  1. package/README.md +21 -43
  2. package/dist/chart/axis-nice.d.ts +97 -0
  3. package/dist/chart/axis-nice.d.ts.map +1 -0
  4. package/dist/chart/histogram-binning.d.ts +40 -0
  5. package/dist/chart/histogram-binning.d.ts.map +1 -0
  6. package/dist/chart/index.cjs +167 -0
  7. package/dist/chart/index.d.ts +2 -0
  8. package/dist/chart/index.d.ts.map +1 -1
  9. package/dist/chart/index.mjs +162 -1
  10. package/dist/index.cjs +167 -0
  11. package/dist/index.mjs +167 -0
  12. package/dist/pptx/automation/index.cjs +1572 -863
  13. package/dist/pptx/automation/index.d.ts +4 -3
  14. package/dist/pptx/automation/index.d.ts.map +1 -1
  15. package/dist/pptx/automation/index.mjs +1572 -863
  16. package/dist/pptx/chunks/color-ref-BM66NGFP.d.ts +42 -0
  17. package/dist/pptx/chunks/color-ref-BM66NGFP.d.ts.map +1 -0
  18. package/dist/pptx/chunks/{index-D0yGoLyw.d.ts → index-CcQTCBnT.d.ts} +63 -479
  19. package/dist/pptx/chunks/index-CcQTCBnT.d.ts.map +1 -0
  20. package/dist/pptx/chunks/{index-BtBj3VG1.d.ts → index-DHoPgFcH.d.ts} +529 -11
  21. package/dist/pptx/chunks/index-DHoPgFcH.d.ts.map +1 -0
  22. package/dist/pptx/chunks/{text-operations-GuisjlbR.d.ts → text-operations-BzdehTeY.d.ts} +50 -51
  23. package/dist/pptx/chunks/text-operations-BzdehTeY.d.ts.map +1 -0
  24. package/dist/pptx/cli/index.cjs +1204 -489
  25. package/dist/pptx/cli/index.d.ts +1 -1
  26. package/dist/pptx/cli/index.mjs +1204 -489
  27. package/dist/pptx/converter/index.cjs +8 -5
  28. package/dist/pptx/converter/index.d.ts +1 -1
  29. package/dist/pptx/converter/index.mjs +8 -5
  30. package/dist/pptx/index.cjs +1699 -989
  31. package/dist/pptx/index.d.ts +5 -4
  32. package/dist/pptx/index.mjs +1698 -990
  33. package/dist/pptx/ui/index.cjs +510 -0
  34. package/dist/pptx/ui/index.d.ts +80 -0
  35. package/dist/pptx/ui/index.d.ts.map +1 -0
  36. package/dist/pptx/ui/index.mjs +499 -0
  37. package/package.json +15 -4
  38. package/dist/pptx/chunks/index-BtBj3VG1.d.ts.map +0 -1
  39. package/dist/pptx/chunks/index-D0yGoLyw.d.ts.map +0 -1
  40. package/dist/pptx/chunks/text-operations-GuisjlbR.d.ts.map +0 -1
@@ -0,0 +1,42 @@
1
+ //#region src/pptx/core/types/color-ref.d.ts
2
+ /**
3
+ * Theme colour references: the typed counterpart of `<a:schemeClr>`.
4
+ *
5
+ * A colour picked from the theme palette is remembered as a scheme slot plus
6
+ * PowerPoint's luminance variants rather than as the sRGB it currently
7
+ * resolves to, so a later theme change re-colours the shape (and a saved file
8
+ * keeps `<a:schemeClr>` instead of a canonical `<a:srgbClr>`).
9
+ *
10
+ * @module types/color-ref
11
+ */
12
+ /**
13
+ * The scheme slot names `a:schemeClr/@val` accepts (ECMA-376 `ST_SchemeColorIndex`).
14
+ * `bg1`/`tx1`/`bg2`/`tx2` are the colour-map aliases a slide resolves through
15
+ * `p:clrMap`; `phClr` is the placeholder colour used inside a theme's style
16
+ * matrix and is never chosen from a picker.
17
+ */
18
+ type PptxThemeColorSchemeName = 'dk1' | 'lt1' | 'dk2' | 'lt2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hlink' | 'folHlink' | 'bg1' | 'tx1' | 'bg2' | 'tx2' | 'phClr';
19
+ /** The ten palette columns PowerPoint's "Theme Colors" grid shows, in order. */
20
+ declare const THEME_COLOR_PALETTE_COLUMNS: readonly PptxThemeColorSchemeName[];
21
+ /**
22
+ * A theme colour choice. Every transform is a 0..1 fraction of the OOXML
23
+ * percentage (`lumMod val="20000"` is `lumMod: 0.2`), matching how the parser
24
+ * reads them, and is applied in the order `a:schemeClr` children are written:
25
+ * `tint`, `shade`, `lumMod`, `lumOff`, `alpha`.
26
+ */
27
+ interface PptxThemeColorRef {
28
+ scheme: PptxThemeColorSchemeName;
29
+ /** `a:lumMod`: multiply HSL luminance (PowerPoint's "Lighter/Darker" rows). */
30
+ lumMod?: number;
31
+ /** `a:lumOff`: add to HSL luminance after `lumMod` ("Lighter N%" rows). */
32
+ lumOff?: number;
33
+ /** `a:tint`: blend towards white. */
34
+ tint?: number;
35
+ /** `a:shade`: blend towards black. */
36
+ shade?: number;
37
+ /** `a:alpha`: opacity fraction (1 = opaque). */
38
+ alpha?: number;
39
+ }
40
+ //#endregion
41
+ export { PptxThemeColorSchemeName as n, THEME_COLOR_PALETTE_COLUMNS as r, PptxThemeColorRef as t };
42
+ //# sourceMappingURL=color-ref-BM66NGFP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-ref-BM66NGFP.d.ts","names":[],"sources":["../../../src/pptx/core/types/color-ref.ts"],"mappings":";;;;;;;;;;;;;;;;;KAiBY;;cAoBC,sCAAsC;;;;;;;UAmBlC;EAChB,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA"}