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.
- package/README.md +21 -43
- package/dist/chart/axis-nice.d.ts +97 -0
- package/dist/chart/axis-nice.d.ts.map +1 -0
- package/dist/chart/histogram-binning.d.ts +40 -0
- package/dist/chart/histogram-binning.d.ts.map +1 -0
- package/dist/chart/index.cjs +167 -0
- package/dist/chart/index.d.ts +2 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.mjs +162 -1
- package/dist/index.cjs +167 -0
- package/dist/index.mjs +167 -0
- package/dist/pptx/automation/index.cjs +1572 -863
- package/dist/pptx/automation/index.d.ts +4 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +1572 -863
- package/dist/pptx/chunks/color-ref-BM66NGFP.d.ts +42 -0
- package/dist/pptx/chunks/color-ref-BM66NGFP.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-D0yGoLyw.d.ts → index-CcQTCBnT.d.ts} +63 -479
- package/dist/pptx/chunks/index-CcQTCBnT.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BtBj3VG1.d.ts → index-DHoPgFcH.d.ts} +529 -11
- package/dist/pptx/chunks/index-DHoPgFcH.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-GuisjlbR.d.ts → text-operations-BzdehTeY.d.ts} +50 -51
- package/dist/pptx/chunks/text-operations-BzdehTeY.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +1204 -489
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +1204 -489
- package/dist/pptx/converter/index.cjs +8 -5
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +8 -5
- package/dist/pptx/index.cjs +1699 -989
- package/dist/pptx/index.d.ts +5 -4
- package/dist/pptx/index.mjs +1698 -990
- package/dist/pptx/ui/index.cjs +510 -0
- package/dist/pptx/ui/index.d.ts +80 -0
- package/dist/pptx/ui/index.d.ts.map +1 -0
- package/dist/pptx/ui/index.mjs +499 -0
- package/package.json +15 -4
- package/dist/pptx/chunks/index-BtBj3VG1.d.ts.map +0 -1
- package/dist/pptx/chunks/index-D0yGoLyw.d.ts.map +0 -1
- 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"}
|