@office-open/core 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-Kf_utasF.mjs → chart-DED4tXC9.mjs} +828 -283
- package/dist/chart-DED4tXC9.mjs.map +1 -0
- package/dist/data-type-CZMKVaaT.d.mts.map +1 -1
- package/dist/descriptor/index.d.mts +1 -1
- package/dist/descriptor/index.mjs +1 -1
- package/dist/{descriptor-BX8xW8na.mjs → descriptor-BqaNZrrZ.mjs} +38 -10
- package/dist/{descriptor-BX8xW8na.mjs.map → descriptor-BqaNZrrZ.mjs.map} +1 -1
- package/dist/drawing/index.d.mts +2 -2
- package/dist/drawing/index.mjs +2 -2
- package/dist/{drawing-FBzd2I0m.mjs → drawing-BCAyrCCw.mjs} +3056 -3130
- package/dist/drawing-BCAyrCCw.mjs.map +1 -0
- package/dist/{generators-CElPsAhd.mjs → ext-uri-BHBcIrW7.mjs} +599 -343
- package/dist/ext-uri-BHBcIrW7.mjs.map +1 -0
- package/dist/index-BAxlDUQ1.d.mts +590 -0
- package/dist/index-BAxlDUQ1.d.mts.map +1 -0
- package/dist/{index-DxwLMnBF.d.mts → index-BP541uS-.d.mts} +136 -31
- package/dist/index-BP541uS-.d.mts.map +1 -0
- package/dist/{index-CLX7gU9J.d.mts → index-BQLIofaF.d.mts} +3 -2
- package/dist/index-BQLIofaF.d.mts.map +1 -0
- package/dist/{index-k8WKLXnA.d.mts → index-CaNwM5_e.d.mts} +19 -20
- package/dist/index-CaNwM5_e.d.mts.map +1 -0
- package/dist/{index-CnjCK-lF.d.mts → index-DPkf_CtG.d.mts} +566 -597
- package/dist/index-DPkf_CtG.d.mts.map +1 -0
- package/dist/{index-BsTUn4K1.d.mts → index-DcukVskh.d.mts} +9 -6
- package/dist/index-DcukVskh.d.mts.map +1 -0
- package/dist/{index-Cgz88FU0.d.mts → index-Di6XPdGl.d.mts} +26 -12
- package/dist/index-Di6XPdGl.d.mts.map +1 -0
- package/dist/{index-C0ClOhmZ.d.mts → index-L6AXewfV.d.mts} +11 -8
- package/dist/index-L6AXewfV.d.mts.map +1 -0
- package/dist/index.d.mts +140 -29
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +849 -87
- package/dist/index.mjs.map +1 -1
- package/dist/{output-D_G_JR_8.d.mts → output-yyxdkG0C.d.mts} +2 -3
- package/dist/output-yyxdkG0C.d.mts.map +1 -0
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +2 -2
- package/dist/{patch-3KLx2yEP.mjs → patch-AkQY17CD.mjs} +71 -26
- package/dist/patch-AkQY17CD.mjs.map +1 -0
- package/dist/smartart/index.d.mts +2 -2
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-BxnkROOp.mjs → smartart-n1kYJ6Jg.mjs} +27 -26
- package/dist/smartart-n1kYJ6Jg.mjs.map +1 -0
- package/dist/{style-matrix-DAP6XrLv.mjs → style-matrix-B6jhPAT3.mjs} +4 -4
- package/dist/style-matrix-B6jhPAT3.mjs.map +1 -0
- package/dist/theme/index.d.mts +4 -4
- package/dist/theme/index.mjs +3 -2
- package/dist/{theme-OAuRcA9_.mjs → theme-BKnXRmvn.mjs} +37 -71
- package/dist/theme-BKnXRmvn.mjs.map +1 -0
- package/dist/{theme-options-BbWccl85.d.mts → theme-options-kO89NUEX.d.mts} +17 -17
- package/dist/theme-options-kO89NUEX.d.mts.map +1 -0
- package/dist/util/index.d.mts +3 -3
- package/dist/util/index.mjs +3 -3
- package/dist/{util-C94-JKtp.mjs → util-ptE16MEk.mjs} +69 -37
- package/dist/util-ptE16MEk.mjs.map +1 -0
- package/dist/{values-aVoirbWB.d.mts → values-BECDm4zr.d.mts} +15 -31
- package/dist/values-BECDm4zr.d.mts.map +1 -0
- package/dist/vector/index.d.mts +2 -2
- package/dist/vector/index.mjs +2 -2
- package/dist/{vector-TpjW6ZSc.mjs → vector-DhLGZjP5.mjs} +104 -147
- package/dist/vector-DhLGZjP5.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/chart-Kf_utasF.mjs.map +0 -1
- package/dist/drawing-FBzd2I0m.mjs.map +0 -1
- package/dist/generators-CElPsAhd.mjs.map +0 -1
- package/dist/index-BsTUn4K1.d.mts.map +0 -1
- package/dist/index-C0ClOhmZ.d.mts.map +0 -1
- package/dist/index-CLX7gU9J.d.mts.map +0 -1
- package/dist/index-Cgz88FU0.d.mts.map +0 -1
- package/dist/index-CnjCK-lF.d.mts.map +0 -1
- package/dist/index-DpPeyf5f.d.mts +0 -316
- package/dist/index-DpPeyf5f.d.mts.map +0 -1
- package/dist/index-DxwLMnBF.d.mts.map +0 -1
- package/dist/index-k8WKLXnA.d.mts.map +0 -1
- package/dist/output-D_G_JR_8.d.mts.map +0 -1
- package/dist/patch-3KLx2yEP.mjs.map +0 -1
- package/dist/smartart-BxnkROOp.mjs.map +0 -1
- package/dist/style-matrix-DAP6XrLv.mjs.map +0 -1
- package/dist/theme-OAuRcA9_.mjs.map +0 -1
- package/dist/theme-options-BbWccl85.d.mts.map +0 -1
- package/dist/util-C94-JKtp.mjs.map +0 -1
- package/dist/values-aVoirbWB.d.mts.map +0 -1
- package/dist/vector-TpjW6ZSc.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as stringifyShapeStyle, n as parseShapeStyle, r as stringifyFormatScheme, t as parseFormatScheme } from "./style-matrix-
|
|
1
|
+
import { S as bodyPropertiesDesc, Un as parseColorChoice, Xn as stringifyColorChoice, Zn as systemColorDesc, j as shapePropertiesDesc, u as textListStyleDesc } from "./drawing-BCAyrCCw.mjs";
|
|
2
|
+
import { i as stringifyShapeStyle, n as parseShapeStyle, r as stringifyFormatScheme, t as parseFormatScheme } from "./style-matrix-B6jhPAT3.mjs";
|
|
3
3
|
import { n as parseColorMapping, r as stringifyColorMapping } from "./color-mapping-CFF0vRSe.mjs";
|
|
4
4
|
import { escapeXml, findChild } from "@office-open/xml";
|
|
5
5
|
//#region src/theme/default-colors.ts
|
|
@@ -23,9 +23,10 @@ const DEFAULT_COLORS = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Color scheme (a:clrScheme / CT_ColorScheme) stringify + parse.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Every slot accepts a hex string (emits a:srgbClr) or a structured
|
|
27
|
+
* SystemColorOptions (emits a:sysClr verbatim). dk1/lt1 default to the
|
|
28
|
+
* conventional windowText/window sysClr form; parse reads both forms back
|
|
29
|
+
* losslessly, so a source's sysClr spelling survives round-trip.
|
|
29
30
|
*
|
|
30
31
|
* @module
|
|
31
32
|
*/
|
|
@@ -80,47 +81,39 @@ const COLOR_TAGS = [
|
|
|
80
81
|
key: "followedHyperlink"
|
|
81
82
|
}
|
|
82
83
|
];
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const sysClr = findChild(el, "a:sysClr");
|
|
89
|
-
if (sysClr) return String(sysClr.attributes?.["lastClr"] ?? "");
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Whether the color element carries the conventional default sysClr form
|
|
93
|
-
* (dk1 = windowText, lt1 = window). These parse to "not explicitly set" so
|
|
94
|
-
* stringify re-emits the same sysClr spelling and Office-default themes
|
|
95
|
-
* round-trip byte-identically instead of degrading sysClr to srgbClr.
|
|
96
|
-
*/
|
|
97
|
-
function isDefaultSysClr(el, val) {
|
|
98
|
-
const sysClr = findChild(el, "a:sysClr");
|
|
99
|
-
return sysClr !== void 0 && String(sysClr.attributes?.["val"] ?? "") === val;
|
|
100
|
-
}
|
|
101
|
-
/** dk1/lt1 emit sysClr by default, srgbClr when explicitly supplied. */
|
|
84
|
+
/** The conventional dk1/lt1 sysClr forms emitted when a slot is unset. */
|
|
85
|
+
const DEFAULT_SYS_CLR = {
|
|
86
|
+
dark1: "windowText",
|
|
87
|
+
light1: "window"
|
|
88
|
+
};
|
|
102
89
|
function stringifyColorTag(tag, key, opts) {
|
|
103
90
|
const userValue = opts?.[key];
|
|
91
|
+
if (userValue !== void 0) return `<${tag}>${typeof userValue === "string" ? `<a:srgbClr val="${userValue}"/>` : systemColorDesc.stringify(userValue, void 0) ?? ""}</${tag}>`;
|
|
104
92
|
const defaultValue = DEFAULT_COLORS[key];
|
|
105
|
-
|
|
106
|
-
if (
|
|
107
|
-
return `<${tag}><a:srgbClr val="${
|
|
93
|
+
const sysClr = DEFAULT_SYS_CLR[key];
|
|
94
|
+
if (sysClr) return `<${tag}><a:sysClr val="${sysClr}" lastClr="${defaultValue}"/></${tag}>`;
|
|
95
|
+
return `<${tag}><a:srgbClr val="${defaultValue}"/></${tag}>`;
|
|
108
96
|
}
|
|
109
97
|
/** Serialize a:clrScheme. Undefined options emit the full default scheme. */
|
|
110
98
|
function stringifyColorScheme(opts, fallbackName) {
|
|
111
99
|
return `<a:clrScheme name="${opts?.name ?? fallbackName}">${COLOR_TAGS.map(({ tag, key }) => stringifyColorTag(tag, key, opts)).join("")}</a:clrScheme>`;
|
|
112
100
|
}
|
|
113
101
|
/** Parse a:clrScheme into the subset of colors explicitly present. */
|
|
114
|
-
function parseColorScheme(el) {
|
|
102
|
+
function parseColorScheme(el, ctx) {
|
|
115
103
|
if (!el) return void 0;
|
|
116
104
|
const result = {};
|
|
117
105
|
const name = el.attributes?.["name"];
|
|
118
106
|
if (name) result.name = String(name);
|
|
119
107
|
for (const { tag, key } of COLOR_TAGS) {
|
|
120
108
|
const colorEl = findChild(el, tag);
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
109
|
+
if (!colorEl) continue;
|
|
110
|
+
const sysClr = findChild(colorEl, "a:sysClr");
|
|
111
|
+
if (sysClr) {
|
|
112
|
+
result[key] = systemColorDesc.parse(sysClr, ctx);
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
const val = findChild(colorEl, "a:srgbClr")?.attributes?.["val"];
|
|
116
|
+
if (val !== void 0) result[key] = String(val);
|
|
124
117
|
}
|
|
125
118
|
return result;
|
|
126
119
|
}
|
|
@@ -167,12 +160,12 @@ function stringifyExtraColorSchemes(opts, fallbackName) {
|
|
|
167
160
|
}).join("")}</a:extraClrSchemeLst>`;
|
|
168
161
|
}
|
|
169
162
|
/** Parse a:extraClrSchemeLst. */
|
|
170
|
-
function parseExtraColorSchemes(el) {
|
|
163
|
+
function parseExtraColorSchemes(el, ctx) {
|
|
171
164
|
if (!el) return void 0;
|
|
172
165
|
const result = [];
|
|
173
166
|
for (const child of el.elements ?? []) {
|
|
174
167
|
if (child.name !== "a:extraClrScheme") continue;
|
|
175
|
-
const colorScheme = parseColorScheme(findChild(child, "a:clrScheme"));
|
|
168
|
+
const colorScheme = parseColorScheme(findChild(child, "a:clrScheme"), ctx);
|
|
176
169
|
if (!colorScheme) continue;
|
|
177
170
|
const colorMapping = parseColorMapping(findChild(child, "a:clrMap"));
|
|
178
171
|
result.push(colorMapping ? {
|
|
@@ -187,7 +180,7 @@ function parseExtraColorSchemes(el) {
|
|
|
187
180
|
/**
|
|
188
181
|
* Font scheme (a:fontScheme / CT_FontScheme) stringify + parse.
|
|
189
182
|
*
|
|
190
|
-
* CT_FontCollection order: latin → ea → cs →
|
|
183
|
+
* CT_FontCollection order: latin → ea → cs → font[] (supplemental).
|
|
191
184
|
*
|
|
192
185
|
* @module
|
|
193
186
|
*/
|
|
@@ -210,7 +203,7 @@ function parseTextFont(el) {
|
|
|
210
203
|
return result;
|
|
211
204
|
}
|
|
212
205
|
function stringifyFontCollection(tag, opts) {
|
|
213
|
-
return `<${tag}>${stringifyTextFont("a:latin", opts?.latin)}${stringifyTextFont("a:ea", opts?.eastAsian)}${stringifyTextFont("a:cs", opts?.complexScript)}${
|
|
206
|
+
return `<${tag}>${stringifyTextFont("a:latin", opts?.latin)}${stringifyTextFont("a:ea", opts?.eastAsian)}${stringifyTextFont("a:cs", opts?.complexScript)}${(opts?.supplementalFonts ?? []).map((f) => `<a:font script="${escapeXml(f.script)}" typeface="${escapeXml(f.typeface)}"/>`).join("")}</${tag}>`;
|
|
214
207
|
}
|
|
215
208
|
function parseFontCollection(el) {
|
|
216
209
|
if (!el) return void 0;
|
|
@@ -221,8 +214,6 @@ function parseFontCollection(el) {
|
|
|
221
214
|
if (eastAsian) result.eastAsian = eastAsian;
|
|
222
215
|
const complexScript = parseTextFont(findChild(el, "a:cs"));
|
|
223
216
|
if (complexScript) result.complexScript = complexScript;
|
|
224
|
-
const symbol = parseTextFont(findChild(el, "a:sym"));
|
|
225
|
-
if (symbol) result.symbol = symbol;
|
|
226
217
|
const supplementalFonts = (el.elements ?? []).filter((c) => c.name === "a:font").map((c) => {
|
|
227
218
|
const script = c.attributes?.["script"];
|
|
228
219
|
const typeface = c.attributes?.["typeface"];
|
|
@@ -287,27 +278,17 @@ function parseFontScheme(el) {
|
|
|
287
278
|
* @module
|
|
288
279
|
*/
|
|
289
280
|
function stringifyDefaultShapeDefinition(tag, opts, ctx) {
|
|
290
|
-
|
|
291
|
-
return `<${tag}>${spPrInner ? `<a:spPr>${spPrInner}</a:spPr>` : ""}${opts.bodyProperties ? bodyPropertiesDesc.stringify(opts.bodyProperties, ctx) ?? "" : ""}${opts.listStyle ? textListStyleDesc.stringify(opts.listStyle, ctx) ?? "" : ""}${opts.shapeStyle ? stringifyShapeStyle(opts.shapeStyle, ctx) : ""}</${tag}>`;
|
|
281
|
+
return `<${tag}>${opts.shapeProperties !== void 0 ? `<a:spPr>${shapePropertiesDesc.stringify(opts.shapeProperties, ctx) ?? ""}</a:spPr>` : ""}${opts.bodyProperties !== void 0 ? bodyPropertiesDesc.stringify(opts.bodyProperties, ctx) || "<a:bodyPr/>" : ""}${opts.listStyle !== void 0 ? `<a:lstStyle>${textListStyleDesc.stringify(opts.listStyle, ctx) ?? ""}</a:lstStyle>` : ""}${opts.shapeStyle ? stringifyShapeStyle(opts.shapeStyle, ctx) : ""}</${tag}>`;
|
|
292
282
|
}
|
|
293
283
|
function parseDefaultShapeDefinition(el, ctx) {
|
|
294
284
|
if (!el) return void 0;
|
|
295
285
|
const result = {};
|
|
296
286
|
const spPr = findChild(el, "a:spPr");
|
|
297
|
-
if (spPr) {
|
|
298
|
-
const shapeProperties = shapePropertiesDesc.parse(spPr, ctx);
|
|
299
|
-
if (shapeProperties) result.shapeProperties = shapeProperties;
|
|
300
|
-
}
|
|
287
|
+
if (spPr) result.shapeProperties = shapePropertiesDesc.parse(spPr, ctx) ?? {};
|
|
301
288
|
const bodyPr = findChild(el, "a:bodyPr");
|
|
302
|
-
if (bodyPr) {
|
|
303
|
-
const bodyProperties = bodyPropertiesDesc.parse(bodyPr, ctx);
|
|
304
|
-
if (bodyProperties) result.bodyProperties = bodyProperties;
|
|
305
|
-
}
|
|
289
|
+
if (bodyPr) result.bodyProperties = bodyPropertiesDesc.parse(bodyPr, ctx) ?? {};
|
|
306
290
|
const lstStyle = findChild(el, "a:lstStyle");
|
|
307
|
-
if (lstStyle) {
|
|
308
|
-
const listStyle = textListStyleDesc.parse(lstStyle, ctx);
|
|
309
|
-
if (listStyle) result.listStyle = listStyle;
|
|
310
|
-
}
|
|
291
|
+
if (lstStyle) result.listStyle = textListStyleDesc.parse(lstStyle, ctx) ?? {};
|
|
311
292
|
const style = findChild(el, "a:style");
|
|
312
293
|
if (style) {
|
|
313
294
|
const shapeStyle = parseShapeStyle(style, ctx);
|
|
@@ -351,27 +332,12 @@ function buildThemeXml(options, ctx) {
|
|
|
351
332
|
//#endregion
|
|
352
333
|
//#region src/theme/default-theme.ts
|
|
353
334
|
const DEFAULT_XML = buildThemeXml();
|
|
354
|
-
const customCache = /* @__PURE__ */ new Map();
|
|
355
|
-
function isSimpleCustomization(opts) {
|
|
356
|
-
return !opts.formatScheme && !opts.objectDefaults && !opts.extraColorSchemes;
|
|
357
|
-
}
|
|
358
|
-
function simpleKey(o) {
|
|
359
|
-
return `${o.name ?? ""}|${JSON.stringify(o.colorScheme)}|${JSON.stringify(o.fontScheme)}`;
|
|
360
|
-
}
|
|
361
335
|
/**
|
|
362
336
|
* Generate theme XML string from options.
|
|
363
|
-
* Returns the
|
|
337
|
+
* Returns the pre-computed default when no options are provided.
|
|
364
338
|
*/
|
|
365
339
|
function createThemeXml(options, ctx) {
|
|
366
340
|
if (!options) return DEFAULT_XML;
|
|
367
|
-
if (isSimpleCustomization(options)) {
|
|
368
|
-
const key = simpleKey(options);
|
|
369
|
-
const cached = customCache.get(key);
|
|
370
|
-
if (cached) return cached;
|
|
371
|
-
const built = buildThemeXml(options);
|
|
372
|
-
customCache.set(key, built);
|
|
373
|
-
return built;
|
|
374
|
-
}
|
|
375
341
|
return buildThemeXml(options, ctx);
|
|
376
342
|
}
|
|
377
343
|
//#endregion
|
|
@@ -396,7 +362,7 @@ const themeDesc = {
|
|
|
396
362
|
if (name) result.name = String(name);
|
|
397
363
|
const themeElements = findChild(el, "a:themeElements");
|
|
398
364
|
if (themeElements) {
|
|
399
|
-
const colorScheme = parseColorScheme(findChild(themeElements, "a:clrScheme"));
|
|
365
|
+
const colorScheme = parseColorScheme(findChild(themeElements, "a:clrScheme"), ctx);
|
|
400
366
|
if (colorScheme) result.colorScheme = colorScheme;
|
|
401
367
|
const fontScheme = parseFontScheme(findChild(themeElements, "a:fontScheme"));
|
|
402
368
|
if (fontScheme) result.fontScheme = fontScheme;
|
|
@@ -405,7 +371,7 @@ const themeDesc = {
|
|
|
405
371
|
}
|
|
406
372
|
const objectDefaults = parseObjectDefaults(findChild(el, "a:objectDefaults"), ctx);
|
|
407
373
|
if (objectDefaults) result.objectDefaults = objectDefaults;
|
|
408
|
-
const extraColorSchemes = parseExtraColorSchemes(findChild(el, "a:extraClrSchemeLst"));
|
|
374
|
+
const extraColorSchemes = parseExtraColorSchemes(findChild(el, "a:extraClrSchemeLst"), ctx);
|
|
409
375
|
if (extraColorSchemes) result.extraColorSchemes = extraColorSchemes;
|
|
410
376
|
const customColors = parseCustomColors(findChild(el, "a:custClrLst"), ctx);
|
|
411
377
|
if (customColors) result.customColors = customColors;
|
|
@@ -436,7 +402,7 @@ const themeOverrideDesc = {
|
|
|
436
402
|
},
|
|
437
403
|
parse(el, ctx) {
|
|
438
404
|
const result = {};
|
|
439
|
-
const colorScheme = parseColorScheme(findChild(el, "a:clrScheme"));
|
|
405
|
+
const colorScheme = parseColorScheme(findChild(el, "a:clrScheme"), ctx);
|
|
440
406
|
if (colorScheme) result.colorScheme = colorScheme;
|
|
441
407
|
const fontScheme = parseFontScheme(findChild(el, "a:fontScheme"));
|
|
442
408
|
if (fontScheme) result.fontScheme = fontScheme;
|
|
@@ -457,4 +423,4 @@ const themeManagerDesc = {
|
|
|
457
423
|
//#endregion
|
|
458
424
|
export { buildThemeXml as a, createThemeXml as i, themeOverrideDesc as n, DEFAULT_COLORS as o, themeDesc as r, themeManagerDesc as t };
|
|
459
425
|
|
|
460
|
-
//# sourceMappingURL=theme-
|
|
426
|
+
//# sourceMappingURL=theme-BKnXRmvn.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-BKnXRmvn.mjs","names":[],"sources":["../src/theme/default-colors.ts","../src/theme/color-scheme.ts","../src/theme/custom-color.ts","../src/theme/extra-color-scheme.ts","../src/theme/font-scheme.ts","../src/theme/object-defaults.ts","../src/theme/build-theme-xml.ts","../src/theme/default-theme.ts","../src/theme/theme-descriptors.ts","../src/theme/theme-override.ts"],"sourcesContent":["/**\n * Default Office 2016+ theme colors.\n *\n * @module\n */\nimport type { ColorSchemeOptions } from \"./theme-options\";\n\n/** Office 2016+ default theme colors (hex without #). */\nexport const DEFAULT_COLORS: Record<Exclude<keyof ColorSchemeOptions, \"name\">, string> = {\n dark1: \"000000\",\n light1: \"FFFFFF\",\n dark2: \"44546A\",\n light2: \"E7E6E6\",\n accent1: \"4472C4\",\n accent2: \"ED7D31\",\n accent3: \"A5A5A5\",\n accent4: \"FFC000\",\n accent5: \"5B9BD5\",\n accent6: \"70AD47\",\n hyperlink: \"0563C1\",\n followedHyperlink: \"954F72\",\n};\n","/**\n * Color scheme (a:clrScheme / CT_ColorScheme) stringify + parse.\n *\n * Every slot accepts a hex string (emits a:srgbClr) or a structured\n * SystemColorOptions (emits a:sysClr verbatim). dk1/lt1 default to the\n * conventional windowText/window sysClr form; parse reads both forms back\n * losslessly, so a source's sysClr spelling survives round-trip.\n *\n * @module\n */\nimport { findChild } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext } from \"../descriptor\";\nimport { systemColorDesc } from \"../drawing\";\nimport type { SystemColorOptions } from \"../drawing\";\nimport { DEFAULT_COLORS } from \"./default-colors\";\nimport type { ColorSchemeOptions } from \"./theme-options\";\n\nexport type { SchemeColorValue } from \"./theme-options\";\n\n/** Color keys excluding the clrScheme/`@name` attribute. */\ntype ColorKey = Exclude<keyof ColorSchemeOptions, \"name\">;\n\n/** clrScheme child tag → ColorSchemeOptions key, in schema order. */\nconst COLOR_TAGS: ReadonlyArray<{ tag: string; key: ColorKey }> = [\n { tag: \"a:dk1\", key: \"dark1\" },\n { tag: \"a:lt1\", key: \"light1\" },\n { tag: \"a:dk2\", key: \"dark2\" },\n { tag: \"a:lt2\", key: \"light2\" },\n { tag: \"a:accent1\", key: \"accent1\" },\n { tag: \"a:accent2\", key: \"accent2\" },\n { tag: \"a:accent3\", key: \"accent3\" },\n { tag: \"a:accent4\", key: \"accent4\" },\n { tag: \"a:accent5\", key: \"accent5\" },\n { tag: \"a:accent6\", key: \"accent6\" },\n { tag: \"a:hlink\", key: \"hyperlink\" },\n { tag: \"a:folHlink\", key: \"followedHyperlink\" },\n];\n\n/** The conventional dk1/lt1 sysClr forms emitted when a slot is unset. */\nconst DEFAULT_SYS_CLR: Partial<Record<ColorKey, string>> = {\n dark1: \"windowText\",\n light1: \"window\",\n};\n\nfunction stringifyColorTag(\n tag: string,\n key: ColorKey,\n opts: ColorSchemeOptions | undefined,\n): string {\n const userValue = opts?.[key];\n if (userValue !== undefined) {\n const colorXml =\n typeof userValue === \"string\"\n ? `<a:srgbClr val=\"${userValue}\"/>`\n : (systemColorDesc.stringify(userValue, undefined as never) ?? \"\");\n return `<${tag}>${colorXml}</${tag}>`;\n }\n const defaultValue = DEFAULT_COLORS[key];\n const sysClr = DEFAULT_SYS_CLR[key];\n if (sysClr) {\n return `<${tag}><a:sysClr val=\"${sysClr}\" lastClr=\"${defaultValue}\"/></${tag}>`;\n }\n return `<${tag}><a:srgbClr val=\"${defaultValue}\"/></${tag}>`;\n}\n\n/** Serialize a:clrScheme. Undefined options emit the full default scheme. */\nexport function stringifyColorScheme(\n opts: ColorSchemeOptions | undefined,\n fallbackName: string,\n): string {\n const name = opts?.name ?? fallbackName;\n const tags = COLOR_TAGS.map(({ tag, key }) => stringifyColorTag(tag, key, opts)).join(\"\");\n return `<a:clrScheme name=\"${name}\">${tags}</a:clrScheme>`;\n}\n\n/** Parse a:clrScheme into the subset of colors explicitly present. */\nexport function parseColorScheme(\n el: XmlElement | undefined,\n ctx: ReadContext,\n): ColorSchemeOptions | undefined {\n if (!el) return undefined;\n const result: Partial<ColorSchemeOptions> = {};\n const name = el.attributes?.[\"name\"];\n if (name) result.name = String(name);\n for (const { tag, key } of COLOR_TAGS) {\n const colorEl = findChild(el, tag);\n if (!colorEl) continue;\n const sysClr = findChild(colorEl, \"a:sysClr\");\n if (sysClr) {\n result[key] = systemColorDesc.parse(sysClr, ctx) as SystemColorOptions;\n continue;\n }\n const srgb = findChild(colorEl, \"a:srgbClr\");\n const val = srgb?.attributes?.[\"val\"];\n if (val !== undefined) result[key] = String(val);\n }\n return result;\n}\n","/**\n * Custom colors (a:custClr / CT_CustomColor) stringify + parse.\n *\n * Each entry is a named color choice; the list wrapper (a:custClrLst /\n * CT_CustomColorList) sits after extraClrSchemeLst in a theme.\n *\n * @module\n */\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext, WriteContext } from \"../descriptor\";\nimport { parseColorChoice, stringifyColorChoice } from \"../drawing\";\nimport type { SolidFillOptions } from \"../drawing\";\nimport type { CustomColorOptions } from \"./theme-options\";\n\n/** Serialize a:custClrLst. Returns \"\" when no custom colors set (optional element). */\nexport function stringifyCustomColors(\n opts: CustomColorOptions[] | undefined,\n ctx: WriteContext,\n): string {\n if (!opts || opts.length === 0) return \"\";\n const items = opts\n .map((c) => {\n const name = c.name ? ` name=\"${c.name}\"` : \"\";\n return `<a:custClr${name}>${stringifyColorChoice(c.color, ctx)}</a:custClr>`;\n })\n .join(\"\");\n return `<a:custClrLst>${items}</a:custClrLst>`;\n}\n\n/** Parse a:custClrLst. */\nexport function parseCustomColors(\n el: XmlElement | undefined,\n ctx: ReadContext,\n): CustomColorOptions[] | undefined {\n if (!el) return undefined;\n const result: CustomColorOptions[] = [];\n for (const child of el.elements ?? []) {\n if (child.name !== \"a:custClr\") continue;\n const color: SolidFillOptions | undefined = parseColorChoice(child, ctx);\n if (!color) continue;\n const name = child.attributes?.[\"name\"];\n result.push(name !== undefined ? { name: String(name), color } : { color });\n }\n return result.length > 0 ? result : undefined;\n}\n","/**\n * Extra color scheme (a:extraClrScheme / CT_ExtraColorScheme) stringify + parse.\n *\n * Each entry pairs a color scheme with an optional color mapping. The list\n * wrapper (a:extraClrSchemeLst / CT_ColorSchemeList) holds zero or more entries.\n *\n * @module\n */\nimport { findChild } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext } from \"../descriptor\";\nimport { parseColorMapping, stringifyColorMapping } from \"./color-mapping\";\nimport { parseColorScheme, stringifyColorScheme } from \"./color-scheme\";\nimport type { ExtraColorSchemeOptions } from \"./theme-options\";\n\n/** Serialize a:extraClrSchemeLst. Returns an empty element when no schemes set. */\nexport function stringifyExtraColorSchemes(\n opts: ExtraColorSchemeOptions[] | undefined,\n fallbackName: string,\n): string {\n if (!opts || opts.length === 0) return \"<a:extraClrSchemeLst/>\";\n const items = opts\n .map((scheme) => {\n const clrScheme = stringifyColorScheme(\n scheme.colorScheme,\n scheme.colorScheme.name ?? fallbackName,\n );\n const clrMap = scheme.colorMapping ? stringifyColorMapping(scheme.colorMapping) : \"\";\n return `<a:extraClrScheme>${clrScheme}${clrMap}</a:extraClrScheme>`;\n })\n .join(\"\");\n return `<a:extraClrSchemeLst>${items}</a:extraClrSchemeLst>`;\n}\n\n/** Parse a:extraClrSchemeLst. */\nexport function parseExtraColorSchemes(\n el: XmlElement | undefined,\n ctx: ReadContext,\n): ExtraColorSchemeOptions[] | undefined {\n if (!el) return undefined;\n const result: ExtraColorSchemeOptions[] = [];\n for (const child of el.elements ?? []) {\n if (child.name !== \"a:extraClrScheme\") continue;\n const colorScheme = parseColorScheme(findChild(child, \"a:clrScheme\"), ctx);\n if (!colorScheme) continue;\n const colorMapping = parseColorMapping(findChild(child, \"a:clrMap\"));\n result.push(colorMapping ? { colorScheme, colorMapping } : { colorScheme });\n }\n return result.length > 0 ? result : undefined;\n}\n","/**\n * Font scheme (a:fontScheme / CT_FontScheme) stringify + parse.\n *\n * CT_FontCollection order: latin → ea → cs → font[] (supplemental).\n *\n * @module\n */\nimport { escapeXml } from \"@office-open/xml\";\nimport { findChild } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type {\n FontCollectionOptions,\n FontSchemeOptions,\n SupplementalFontOptions,\n TextFontOptions,\n} from \"./theme-options\";\n\n// ── TextFont (a:latin / a:ea / a:cs) ──\n\nfunction stringifyTextFont(tag: string, opts: TextFontOptions | undefined): string {\n if (!opts) return \"\";\n const attrs = [`typeface=\"${escapeXml(opts.typeface)}\"`];\n if (opts.panose !== undefined) attrs.push(`panose=\"${escapeXml(opts.panose)}\"`);\n if (opts.pitchFamily !== undefined) attrs.push(`pitchFamily=\"${opts.pitchFamily}\"`);\n if (opts.charset !== undefined) attrs.push(`charset=\"${opts.charset}\"`);\n return `<${tag} ${attrs.join(\" \")}/>`;\n}\n\nfunction parseTextFont(el: XmlElement | undefined): TextFontOptions | undefined {\n if (!el?.attributes) return undefined;\n const typeface = el.attributes[\"typeface\"];\n if (typeface === undefined) return undefined;\n const result: TextFontOptions = { typeface: String(typeface) };\n if (el.attributes[\"panose\"] !== undefined) result.panose = String(el.attributes[\"panose\"]);\n if (el.attributes[\"pitchFamily\"] !== undefined)\n result.pitchFamily = Number(el.attributes[\"pitchFamily\"]);\n if (el.attributes[\"charset\"] !== undefined) result.charset = Number(el.attributes[\"charset\"]);\n return result;\n}\n\n// ── Font collection (a:majorFont / a:minorFont) ──\n\nfunction stringifyFontCollection(tag: string, opts: FontCollectionOptions | undefined): string {\n const latin = stringifyTextFont(\"a:latin\", opts?.latin);\n const eastAsian = stringifyTextFont(\"a:ea\", opts?.eastAsian);\n const complexScript = stringifyTextFont(\"a:cs\", opts?.complexScript);\n const supplemental = (opts?.supplementalFonts ?? [])\n .map((f) => `<a:font script=\"${escapeXml(f.script)}\" typeface=\"${escapeXml(f.typeface)}\"/>`)\n .join(\"\");\n return `<${tag}>${latin}${eastAsian}${complexScript}${supplemental}</${tag}>`;\n}\n\nfunction parseFontCollection(el: XmlElement | undefined): FontCollectionOptions | undefined {\n if (!el) return undefined;\n const result: FontCollectionOptions = {};\n const latin = parseTextFont(findChild(el, \"a:latin\"));\n if (latin) result.latin = latin;\n const eastAsian = parseTextFont(findChild(el, \"a:ea\"));\n if (eastAsian) result.eastAsian = eastAsian;\n const complexScript = parseTextFont(findChild(el, \"a:cs\"));\n if (complexScript) result.complexScript = complexScript;\n const supplementalFonts = (el.elements ?? [])\n .filter((c) => c.name === \"a:font\")\n .map((c): SupplementalFontOptions | undefined => {\n const script = c.attributes?.[\"script\"];\n const typeface = c.attributes?.[\"typeface\"];\n if (script === undefined || typeface === undefined) return undefined;\n return { script: String(script), typeface: String(typeface) };\n })\n .filter((v): v is SupplementalFontOptions => v !== undefined);\n if (supplementalFonts.length > 0) result.supplementalFonts = supplementalFonts;\n return Object.keys(result).length > 0 ? result : undefined;\n}\n\n// ── Fresh defaults (Office theme major/minor fonts) ──\n\nexport const DEFAULT_MAJOR_FONT: FontCollectionOptions = {\n latin: { typeface: \"Calibri Light\", panose: \"020F0302020204030204\" },\n eastAsian: { typeface: \"\" },\n complexScript: { typeface: \"\" },\n};\n\nexport const DEFAULT_MINOR_FONT: FontCollectionOptions = {\n latin: { typeface: \"Calibri\", panose: \"020F0502020204030204\" },\n eastAsian: { typeface: \"\" },\n complexScript: { typeface: \"\" },\n};\n\n// ── Font scheme (a:fontScheme) ──\n\n/** Serialize a:fontScheme. Undefined options emit the Office default scheme. */\nexport function stringifyFontScheme(\n opts: FontSchemeOptions | undefined,\n fallbackName: string,\n): string {\n // Merge defaults so the XSD-required latin/ea/cs slots are always present,\n // even when the caller only customizes one font (e.g. latin typeface).\n const majorFont = stringifyFontCollection(\n \"a:majorFont\",\n opts?.majorFont ? { ...DEFAULT_MAJOR_FONT, ...opts.majorFont } : DEFAULT_MAJOR_FONT,\n );\n const minorFont = stringifyFontCollection(\n \"a:minorFont\",\n opts?.minorFont ? { ...DEFAULT_MINOR_FONT, ...opts.minorFont } : DEFAULT_MINOR_FONT,\n );\n const name = opts?.name ?? fallbackName;\n return `<a:fontScheme name=\"${name}\">${majorFont}${minorFont}</a:fontScheme>`;\n}\n\n/** Parse a:fontScheme. Returns undefined only when neither major nor minor font is present. */\nexport function parseFontScheme(el: XmlElement | undefined): FontSchemeOptions | undefined {\n if (!el) return undefined;\n const result: FontSchemeOptions = {};\n const name = el.attributes?.[\"name\"];\n if (name) result.name = String(name);\n const majorFont = parseFontCollection(findChild(el, \"a:majorFont\"));\n if (majorFont) result.majorFont = majorFont;\n const minorFont = parseFontCollection(findChild(el, \"a:minorFont\"));\n if (minorFont) result.minorFont = minorFont;\n return Object.keys(result).length > 0 ? result : undefined;\n}\n","/**\n * Object defaults (a:objectDefaults / CT_ObjectStyleDefaults) stringify + parse.\n *\n * Each default definition (spDef/lnDef/txDef) holds shape properties, body\n * properties, list style, and an optional shape style. Reuses core descriptors\n * so defaults round-trip through the same machinery as shapes.\n *\n * @module\n */\nimport { findChild } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext, WriteContext } from \"../descriptor\";\nimport { bodyPropertiesDesc, shapePropertiesDesc, textListStyleDesc } from \"../drawing\";\nimport { parseShapeStyle, stringifyShapeStyle } from \"./style-matrix\";\nimport type { DefaultShapeDefinitionOptions, ObjectDefaultsOptions } from \"./theme-options\";\n\nfunction stringifyDefaultShapeDefinition(\n tag: string,\n opts: DefaultShapeDefinitionOptions,\n ctx: WriteContext,\n): string {\n // spPr/bodyPr/lstStyle are minOccurs=1 in CT_DefaultShapeDefinition — a\n // present-but-empty section must still emit its (empty) element. The spPr\n // and lstStyle descriptors return inner content only, so the wrapper tags\n // are added here.\n const spPr =\n opts.shapeProperties !== undefined\n ? `<a:spPr>${shapePropertiesDesc.stringify(opts.shapeProperties, ctx) ?? \"\"}</a:spPr>`\n : \"\";\n const bodyPr =\n opts.bodyProperties !== undefined\n ? bodyPropertiesDesc.stringify(opts.bodyProperties, ctx) || \"<a:bodyPr/>\"\n : \"\";\n const lstStyle =\n opts.listStyle !== undefined\n ? `<a:lstStyle>${textListStyleDesc.stringify(opts.listStyle, ctx) ?? \"\"}</a:lstStyle>`\n : \"\";\n const style = opts.shapeStyle ? stringifyShapeStyle(opts.shapeStyle, ctx) : \"\";\n return `<${tag}>${spPr}${bodyPr}${lstStyle}${style}</${tag}>`;\n}\n\nfunction parseDefaultShapeDefinition(\n el: XmlElement | undefined,\n ctx: ReadContext,\n): DefaultShapeDefinitionOptions | undefined {\n if (!el) return undefined;\n const result: Partial<DefaultShapeDefinitionOptions> = {};\n // An empty element still marks the section present (the stringify leg\n // re-emits the empty marker), so `?? {}` — never drop on empty.\n const spPr = findChild(el, \"a:spPr\");\n if (spPr) result.shapeProperties = shapePropertiesDesc.parse(spPr, ctx) ?? {};\n const bodyPr = findChild(el, \"a:bodyPr\");\n if (bodyPr) result.bodyProperties = bodyPropertiesDesc.parse(bodyPr, ctx) ?? {};\n const lstStyle = findChild(el, \"a:lstStyle\");\n if (lstStyle) result.listStyle = textListStyleDesc.parse(lstStyle, ctx) ?? {};\n const style = findChild(el, \"a:style\");\n if (style) {\n const shapeStyle = parseShapeStyle(style, ctx);\n if (shapeStyle) result.shapeStyle = shapeStyle;\n }\n return Object.keys(result).length > 0 ? (result as DefaultShapeDefinitionOptions) : undefined;\n}\n\n/** Serialize a:objectDefaults. Returns an empty element when no defaults set. */\nexport function stringifyObjectDefaults(\n opts: ObjectDefaultsOptions | undefined,\n ctx: WriteContext,\n): string {\n if (!opts) return \"<a:objectDefaults/>\";\n const spDef = opts.shapeDefault\n ? stringifyDefaultShapeDefinition(\"a:spDef\", opts.shapeDefault, ctx)\n : \"\";\n const lnDef = opts.lineDefault\n ? stringifyDefaultShapeDefinition(\"a:lnDef\", opts.lineDefault, ctx)\n : \"\";\n const txDef = opts.textDefault\n ? stringifyDefaultShapeDefinition(\"a:txDef\", opts.textDefault, ctx)\n : \"\";\n if (!spDef && !lnDef && !txDef) return \"<a:objectDefaults/>\";\n return `<a:objectDefaults>${spDef}${lnDef}${txDef}</a:objectDefaults>`;\n}\n\n/** Parse a:objectDefaults. */\nexport function parseObjectDefaults(\n el: XmlElement | undefined,\n ctx: ReadContext,\n): ObjectDefaultsOptions | undefined {\n if (!el) return undefined;\n const result: Partial<ObjectDefaultsOptions> = {};\n const shapeDefault = parseDefaultShapeDefinition(findChild(el, \"a:spDef\"), ctx);\n if (shapeDefault) result.shapeDefault = shapeDefault;\n const lineDefault = parseDefaultShapeDefinition(findChild(el, \"a:lnDef\"), ctx);\n if (lineDefault) result.lineDefault = lineDefault;\n const textDefault = parseDefaultShapeDefinition(findChild(el, \"a:txDef\"), ctx);\n if (textDefault) result.textDefault = textDefault;\n return Object.keys(result).length > 0 ? (result as ObjectDefaultsOptions) : undefined;\n}\n","/**\n * Build theme XML string — structured driver over the CT_BaseStyles parts.\n *\n * Fresh output stays byte-identical to Office by reusing a pre-extracted\n * default fmtScheme fragment (O(1) fast path) unless the caller supplies a\n * structured formatScheme / objectDefaults / extraColorSchemes, in which case\n * the relevant descriptor serializes them.\n *\n * @module\n */\nimport type { WriteContext } from \"../descriptor\";\nimport { stringifyColorScheme } from \"./color-scheme\";\nimport { stringifyCustomColors } from \"./custom-color\";\nimport { stringifyExtraColorSchemes } from \"./extra-color-scheme\";\nimport { stringifyFontScheme } from \"./font-scheme\";\nimport { stringifyObjectDefaults } from \"./object-defaults\";\nimport { stringifyFormatScheme } from \"./style-matrix\";\nimport type { ThemeOptions } from \"./theme-options\";\n\n// Default Office fmtScheme — byte-identical to fresh output, keeps the common\n// path O(1) without running fill/line/effect descriptors.\nconst DEFAULT_FORMAT_SCHEME_XML =\n '<a:fmtScheme name=\"Office\"><a:fillStyleLst><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill>' +\n '<a:gradFill rotWithShape=\"1\"><a:gsLst><a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"110000\"/>' +\n '<a:satMod val=\"105000\"/><a:tint val=\"67000\"/></a:schemeClr></a:gs><a:gs pos=\"50000\"><a:schemeClr val=\"phClr\">' +\n '<a:lumMod val=\"105000\"/><a:satMod val=\"103000\"/><a:tint val=\"73000\"/></a:schemeClr></a:gs>' +\n '<a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"105000\"/><a:satMod val=\"109000\"/><a:tint val=\"81000\"/>' +\n '</a:schemeClr></a:gs></a:gsLst><a:lin ang=\"5400000\" scaled=\"0\"/></a:gradFill><a:gradFill rotWithShape=\"1\">' +\n '<a:gsLst><a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"102000\"/><a:satMod val=\"103000\"/><a:tint val=\"94000\"/>' +\n '</a:schemeClr></a:gs><a:gs pos=\"50000\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"100000\"/><a:satMod val=\"110000\"/>' +\n '<a:shade val=\"100000\"/></a:schemeClr></a:gs><a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"99000\"/>' +\n '<a:satMod val=\"120000\"/><a:shade val=\"78000\"/></a:schemeClr></a:gs></a:gsLst><a:lin ang=\"5400000\" scaled=\"0\"/>' +\n '</a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w=\"6350\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill>' +\n '<a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"solid\"/><a:miter lim=\"800000\"/></a:ln>' +\n '<a:ln w=\"12700\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill>' +\n '<a:prstDash val=\"solid\"/><a:miter lim=\"800000\"/></a:ln><a:ln w=\"19050\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\">' +\n '<a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"solid\"/><a:miter lim=\"800000\"/></a:ln>' +\n \"</a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/>\" +\n '</a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad=\"57150\" dist=\"19050\" dir=\"5400000\" algn=\"ctr\" ' +\n 'rotWithShape=\"0\"><a:srgbClr val=\"000000\"><a:alpha val=\"63000\"/></a:srgbClr></a:outerShdw></a:effectLst>' +\n '</a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill>' +\n '<a:solidFill><a:schemeClr val=\"phClr\"><a:tint val=\"95000\"/><a:satMod val=\"170000\"/></a:schemeClr></a:solidFill>' +\n '<a:gradFill rotWithShape=\"1\"><a:gsLst><a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:lumMod val=\"102000\"/>' +\n '<a:satMod val=\"150000\"/><a:tint val=\"93000\"/><a:shade val=\"98000\"/></a:schemeClr></a:gs><a:gs pos=\"50000\">' +\n '<a:schemeClr val=\"phClr\"><a:lumMod val=\"103000\"/><a:satMod val=\"130000\"/><a:tint val=\"98000\"/><a:shade val=\"90000\"/>' +\n '</a:schemeClr></a:gs><a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:satMod val=\"120000\"/><a:shade val=\"63000\"/>' +\n '</a:schemeClr></a:gs></a:gsLst><a:lin ang=\"5400000\" scaled=\"0\"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme>';\n\nfunction requireCtx(ctx: WriteContext | undefined, field: string): WriteContext {\n if (!ctx) throw new Error(`buildThemeXml: ${field} requires a WriteContext`);\n return ctx;\n}\n\nexport function buildThemeXml(options?: ThemeOptions, ctx?: WriteContext): string {\n const opts = options ?? {};\n const name = opts.name ?? \"Office Theme\";\n\n const clrScheme = stringifyColorScheme(opts.colorScheme, name);\n const fontScheme = stringifyFontScheme(opts.fontScheme, name);\n const fmtScheme = opts.formatScheme\n ? stringifyFormatScheme(opts.formatScheme, requireCtx(ctx, \"formatScheme\"))\n : DEFAULT_FORMAT_SCHEME_XML;\n const objectDefaults = opts.objectDefaults\n ? stringifyObjectDefaults(opts.objectDefaults, requireCtx(ctx, \"objectDefaults\"))\n : \"<a:objectDefaults/>\";\n const extraClrSchemeLst = stringifyExtraColorSchemes(opts.extraColorSchemes, name);\n const custClrLst = opts.customColors\n ? stringifyCustomColors(opts.customColors, requireCtx(ctx, \"customColors\"))\n : \"\";\n\n return (\n `<a:theme xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" name=\"${name}\">` +\n `<a:themeElements>${clrScheme}${fontScheme}${fmtScheme}</a:themeElements>` +\n `${objectDefaults}${extraClrSchemeLst}${custClrLst}</a:theme>`\n );\n}\n","/**\n * Theme XML generation — pure function.\n *\n * Fresh output (no options) returns a pre-computed default; anything else\n * rebuilds via buildThemeXml (simple customizations don't need a WriteContext).\n *\n * @module\n */\nimport type { WriteContext } from \"../descriptor\";\nimport { buildThemeXml } from \"./build-theme-xml\";\nimport type { ThemeOptions } from \"./theme-options\";\n\n// Pre-computed default theme XML — zero allocation for the common case.\nconst DEFAULT_XML = buildThemeXml();\n\n/**\n * Generate theme XML string from options.\n * Returns the pre-computed default when no options are provided.\n */\nexport function createThemeXml(options?: ThemeOptions, ctx?: WriteContext): string {\n if (!options) return DEFAULT_XML;\n return buildThemeXml(options, ctx);\n}\n","/**\n * Theme descriptor — bidirectional mapping between ThemeOptions and theme XML.\n *\n * stringify delegates to buildThemeXml (structured driver). parse reads the full\n * CT_BaseStyles surface: colorScheme, fontScheme, formatScheme, objectDefaults,\n * and extraClrSchemeLst — so every part round-trips.\n *\n * @module\n */\n\nimport { findChild } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { CustomDescriptor, ReadContext, WriteContext } from \"../descriptor\";\nimport { buildThemeXml } from \"./build-theme-xml\";\nimport { parseColorScheme } from \"./color-scheme\";\nimport { parseCustomColors } from \"./custom-color\";\nimport { parseExtraColorSchemes } from \"./extra-color-scheme\";\nimport { parseFontScheme } from \"./font-scheme\";\nimport { parseObjectDefaults } from \"./object-defaults\";\nimport { parseFormatScheme } from \"./style-matrix\";\nimport type { ThemeOptions } from \"./theme-options\";\n\nexport const themeDesc: CustomDescriptor<ThemeOptions, WriteContext, ThemeOptions> = {\n kind: \"custom\",\n\n stringify(opts: ThemeOptions, ctx: WriteContext): string | undefined {\n return buildThemeXml(opts, ctx);\n },\n\n parse(el: XmlElement, ctx: ReadContext): ThemeOptions {\n const result: Partial<ThemeOptions> = {};\n\n const name = el.attributes?.[\"name\"];\n if (name) result.name = String(name);\n\n const themeElements = findChild(el, \"a:themeElements\");\n if (themeElements) {\n const colorScheme = parseColorScheme(findChild(themeElements, \"a:clrScheme\"), ctx);\n if (colorScheme) result.colorScheme = colorScheme;\n const fontScheme = parseFontScheme(findChild(themeElements, \"a:fontScheme\"));\n if (fontScheme) result.fontScheme = fontScheme;\n const formatScheme = parseFormatScheme(findChild(themeElements, \"a:fmtScheme\"), ctx);\n if (formatScheme) result.formatScheme = formatScheme;\n }\n\n const objectDefaults = parseObjectDefaults(findChild(el, \"a:objectDefaults\"), ctx);\n if (objectDefaults) result.objectDefaults = objectDefaults;\n\n const extraColorSchemes = parseExtraColorSchemes(findChild(el, \"a:extraClrSchemeLst\"), ctx);\n if (extraColorSchemes) result.extraColorSchemes = extraColorSchemes;\n\n const customColors = parseCustomColors(findChild(el, \"a:custClrLst\"), ctx);\n if (customColors) result.customColors = customColors;\n\n return result as ThemeOptions;\n },\n};\n","/**\n * Theme override and theme manager descriptors.\n *\n * a:themeOverride (CT_BaseStylesOverride) is the root of a themeOverride{n}.xml\n * part — an optional subset of the base styles that a slide/layout/master can\n * reference to deviate from its owning theme. a:themeManager (CT_EmptyElement)\n * is the root of the legacy themeManager part; it carries no content.\n *\n * @module\n */\n\nimport { findChild } from \"@office-open/xml\";\n\nimport type { CustomDescriptor, WriteContext } from \"../descriptor\";\nimport { parseColorScheme, stringifyColorScheme } from \"./color-scheme\";\nimport { parseFontScheme, stringifyFontScheme } from \"./font-scheme\";\nimport { parseFormatScheme, stringifyFormatScheme } from \"./style-matrix\";\nimport type { ThemeOverrideOptions } from \"./theme-options\";\n\nconst THEME_NS = 'xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\"';\n\nexport const themeOverrideDesc: CustomDescriptor<\n ThemeOverrideOptions,\n WriteContext,\n ThemeOverrideOptions\n> = {\n kind: \"custom\",\n\n stringify(opts, ctx) {\n let content = \"\";\n if (opts.colorScheme) {\n content += stringifyColorScheme(opts.colorScheme, opts.colorScheme.name ?? \"Override\");\n }\n if (opts.fontScheme) {\n content += stringifyFontScheme(opts.fontScheme, opts.fontScheme.name ?? \"Override\");\n }\n if (opts.formatScheme) content += stringifyFormatScheme(opts.formatScheme, ctx);\n return `<a:themeOverride ${THEME_NS}>${content}</a:themeOverride>`;\n },\n\n parse(el, ctx) {\n const result: Partial<ThemeOverrideOptions> = {};\n const colorScheme = parseColorScheme(findChild(el, \"a:clrScheme\"), ctx);\n if (colorScheme) result.colorScheme = colorScheme;\n const fontScheme = parseFontScheme(findChild(el, \"a:fontScheme\"));\n if (fontScheme) result.fontScheme = fontScheme;\n const formatScheme = parseFormatScheme(findChild(el, \"a:fmtScheme\"), ctx);\n if (formatScheme) result.formatScheme = formatScheme;\n return result as ThemeOverrideOptions;\n },\n};\n\n/** Options for a themeManager part — CT_EmptyElement has no content or attributes. */\nexport type ThemeManagerOptions = Record<never, never>;\n\nexport const themeManagerDesc: CustomDescriptor<\n ThemeManagerOptions,\n WriteContext,\n ThemeManagerOptions\n> = {\n kind: \"custom\",\n\n stringify(_opts, _ctx) {\n return `<a:themeManager ${THEME_NS}/>`;\n },\n\n parse(_el, _ctx) {\n return {};\n },\n};\n"],"mappings":";;;;;;AAQA,MAAa,iBAA4E;CACvF,OAAO;CACP,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,WAAW;CACX,mBAAmB;AACrB;;;;;;;;;;;;;;ACIA,MAAM,aAA4D;CAChE;EAAE,KAAK;EAAS,KAAK;CAAQ;CAC7B;EAAE,KAAK;EAAS,KAAK;CAAS;CAC9B;EAAE,KAAK;EAAS,KAAK;CAAQ;CAC7B;EAAE,KAAK;EAAS,KAAK;CAAS;CAC9B;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAa,KAAK;CAAU;CACnC;EAAE,KAAK;EAAW,KAAK;CAAY;CACnC;EAAE,KAAK;EAAc,KAAK;CAAoB;AAChD;;AAGA,MAAM,kBAAqD;CACzD,OAAO;CACP,QAAQ;AACV;AAEA,SAAS,kBACP,KACA,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i as OutlineOptions, Xa as SystemColorOptions, bi as Scene3DOptions, fa as EffectListOptions, mr as TextListStyleOptions, qr as BodyPropertiesOptions, si as ShapePropertiesOptions, ui as Shape3DOptions } from "./index-DPkf_CtG.mjs";
|
|
3
3
|
//#region src/theme/theme-options.d.ts
|
|
4
4
|
interface TextFontOptions {
|
|
5
5
|
typeface: string;
|
|
6
|
-
panose?:
|
|
6
|
+
panose?: Panose;
|
|
7
7
|
pitchFamily?: number;
|
|
8
8
|
charset?: number;
|
|
9
9
|
}
|
|
@@ -15,7 +15,6 @@ interface FontCollectionOptions {
|
|
|
15
15
|
latin?: TextFontOptions;
|
|
16
16
|
eastAsian?: TextFontOptions;
|
|
17
17
|
complexScript?: TextFontOptions;
|
|
18
|
-
symbol?: TextFontOptions;
|
|
19
18
|
supplementalFonts?: SupplementalFontOptions[];
|
|
20
19
|
}
|
|
21
20
|
interface FontSchemeOptions {
|
|
@@ -23,19 +22,20 @@ interface FontSchemeOptions {
|
|
|
23
22
|
minorFont?: FontCollectionOptions;
|
|
24
23
|
name?: string;
|
|
25
24
|
}
|
|
25
|
+
type SchemeColorValue = string | SystemColorOptions;
|
|
26
26
|
interface ColorSchemeOptions {
|
|
27
|
-
dark1?:
|
|
28
|
-
light1?:
|
|
29
|
-
dark2?:
|
|
30
|
-
light2?:
|
|
31
|
-
accent1?:
|
|
32
|
-
accent2?:
|
|
33
|
-
accent3?:
|
|
34
|
-
accent4?:
|
|
35
|
-
accent5?:
|
|
36
|
-
accent6?:
|
|
37
|
-
hyperlink?:
|
|
38
|
-
followedHyperlink?:
|
|
27
|
+
dark1?: SchemeColorValue;
|
|
28
|
+
light1?: SchemeColorValue;
|
|
29
|
+
dark2?: SchemeColorValue;
|
|
30
|
+
light2?: SchemeColorValue;
|
|
31
|
+
accent1?: SchemeColorValue;
|
|
32
|
+
accent2?: SchemeColorValue;
|
|
33
|
+
accent3?: SchemeColorValue;
|
|
34
|
+
accent4?: SchemeColorValue;
|
|
35
|
+
accent5?: SchemeColorValue;
|
|
36
|
+
accent6?: SchemeColorValue;
|
|
37
|
+
hyperlink?: SchemeColorValue;
|
|
38
|
+
followedHyperlink?: SchemeColorValue;
|
|
39
39
|
name?: string;
|
|
40
40
|
}
|
|
41
41
|
interface FontReferenceOptions {
|
|
@@ -106,4 +106,4 @@ interface ThemeOptions {
|
|
|
106
106
|
type ThemeOverrideOptions = Pick<ThemeOptions, "colorScheme" | "fontScheme" | "formatScheme">;
|
|
107
107
|
//#endregion
|
|
108
108
|
export { ThemeOverrideOptions as _, DefaultShapeDefinitionOptions as a, ExtraColorSchemeOptions as c, FontSchemeOptions as d, FormatSchemeOptions as f, ThemeOptions as g, TextFontOptions as h, CustomColorOptions as i, FontCollectionOptions as l, SupplementalFontOptions as m, ColorSchemeIndex as n, DefaultShapeStyleOptions as o, ObjectDefaultsOptions as p, ColorSchemeOptions as r, EffectStyleOptions as s, ColorMappingOptions as t, FontReferenceOptions as u };
|
|
109
|
-
//# sourceMappingURL=theme-options-
|
|
109
|
+
//# sourceMappingURL=theme-options-kO89NUEX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-options-kO89NUEX.d.mts","names":[],"sources":["../src/theme/theme-options.ts"],"mappings":";;;UA4BiB;EACf;EACA,SAAS;EACT;EACA;;UAIe;EACf;EACA;;UAIe;EACf,QAAQ;EAER,YAAY;EAEZ,gBAAgB;EAChB,oBAAoB;;UAIL;EACf,YAAY;EACZ,YAAY;EACZ;;KAOU,4BAA4B;UAGvB;EACf,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,YAAY;EACZ,oBAAoB;EAEpB;;UAIe;EAEf;EACA,QAAQ;;UAIO;EACf,eAAe;EACf,eAAe;EACf,iBAAiB;EACjB,eAAe;;UAIA;EACf,UAAU;EACV,UAAU;EACV,UAAU;;UAIK;EAEf,YAAY;EAEZ,YAAY;EAEZ,cAAc;EAEd,sBAAsB;EACtB;;UAIe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,YAAY;EACZ,aAAa;;UAIE;EAEf,eAAe;EAEf,cAAc;EAEd,cAAc;;KAIJ;UAeK;EACf,aAAa;EACb,OAAO;EACP,aAAa;EACb,OAAO;EACP,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,WAAW;EACX,mBAAmB;;UAIJ;EACf,aAAa;EACb,eAAe,QAAQ;;UAIR;EAEf;EAEA,OAAO;;UAIQ;EACf;EACA,cAAc;EACd,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,oBAAoB;EACpB,eAAe;;KAIL,uBAAuB,KACjC"}
|
package/dist/util/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as toUint8Array, n as ToUint8ArrayOptions, r as isBase64DataURL, t as DataType } from "../data-type-CZMKVaaT.mjs";
|
|
2
|
-
import { C as
|
|
3
|
-
import { $ as
|
|
4
|
-
export { DataType, IdFormat, Percentage, PositivePercentage, PositiveUniversalMeasure, RelativeMeasure, SmartArtRelOptions, ThemeColor, ThemeFont, ToUint8ArrayOptions, UniqueNumericIdCreator, UniversalMeasure, XmlifyedFileEntry, addBinaryFile, addSmartArtRelationships, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertEmuToTwip, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertPixelsToEmu, convertPointsToEmu, convertPointsToTwip, convertToEmu, convertToInch, convertToPt, convertToTwip, convertTwipToEmu, convertTwipToPoints, convertUniversalMeasureToEmu, convertUniversalMeasureToInch, convertUniversalMeasureToPt, convertUniversalMeasureToTwip, dateTimeValue, decimalNumber, derivePasswordHash, eighthPointMeasureValue, emitAngle, emitPercent, findAndReplaceImagePlaceholders, formatId, getAudioRefs, getMediaRefs, getOleRefs, getReferencedMedia, getVideoRefs, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, invertMap, isBase64DataURL, longHexNumber, mapOptional, measurementOrPercentValue, parseAngle, parseOnOff, parsePercent, parseUniversalMeasure, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, randomBytes, replaceAllPlaceholders, replaceAudioPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceOlePlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, stripColorHashPrefix, toUint8Array, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev };
|
|
2
|
+
import { A as positiveUniversalMeasureValue, C as hexColorValue, D as parseOnOff, E as measurementOrPercentValue, F as twipsMeasureValue, I as uCharHexNumber, L as universalMeasureValue, M as signedHpsMeasureValue, N as signedTwipsMeasureValue, O as percentageValue, P as stripColorHashPrefix, R as unsignedDecimalNumber, S as hexBinary, T as longHexNumber, _ as UniversalMeasure, a as HexColor, b as decimalNumber, c as Panose, d as PositiveUniversalMeasure, f as RelativeMeasure, g as UcharHexNumber, h as ThemeFont, i as Guid, j as shortHexNumber, k as pointMeasureValue, l as Percentage, m as ThemeColor, n as Base64, o as HexColorOrAuto, p as ShortHexNumber, r as DateTime, s as LongHexNumber, t as ArgbHexColor, u as PositivePercentage, v as UnsignedShortHex, w as hpsMeasureValue, x as eighthPointMeasureValue, y as dateTimeValue } from "../values-BECDm4zr.mjs";
|
|
3
|
+
import { $ as xsdLegendPosition, $t as convertToPt, A as xsdAnimValueType, At as ImageFileType, B as xsdCompoundLine, Bt as randomBytes, C as replacePlaceholders, Ct as xsdTextCaps, D as xsdAnimCalcMode, Dt as xsdTrendlineType, E as invertMap, Et as xsdTotalsRowFunction, F as xsdAxisOrientation, Ft as uniqueNumericIdCreator, G as xsdDiagramDirection, Gt as convertInchesToEmu, H as xsdDashStyle, Ht as convertEmuToPixels, I as xsdAxisPosition, It as uniqueUuid, J as xsdFontAlignment, Jt as convertPixelsToEmu, K as xsdEffectContainer, Kt as convertInchesToTwip, L as xsdBlendMode, Lt as extUriMatches, M as xsdAxisCrossBetween, Mt as UniqueNumericIdCreator, N as xsdAxisCrosses, Nt as hashedId, O as xsdAnimClass, Ot as xsdUnderlineStyle, P as xsdAxisLabelAlignment, Pt as uniqueId, Q as xsdJcAlignment, Qt as convertToInch, R as xsdChartBuild, Rt as derivePasswordHash, S as replaceOlePlaceholders, St as xsdTextBuild, T as replaceVideoPlaceholders, Tt as xsdTextVerticalType, U as xsdDataLabelPosition, Ut as convertEmuToPoints, V as xsdConsolidateFunction, Vt as convertEmuToInches, W as xsdDiagramBuild, Wt as convertEmuToTwip, X as xsdHueDirection, Xt as convertPointsToTwip, Y as xsdHierBranch, Yt as convertPointsToEmu, Z as xsdIterateType, Zt as convertToEmu, _ as replaceImageLinkPlaceholders, _t as xsdSplitType, a as findAndReplaceImagePlaceholders, an as convertUniversalMeasureToPt, at as xsdOnOffStyle, b as replaceNumberingPlaceholders, bt as xsdTextAlign, c as getMediaRefs, cn as emitPercent, ct as xsdPattern, d as getVideoRefs, dn as parsePercent, dt as xsdPresetShadow, en as convertToTwip, et as xsdLightRigDirection, f as hasPlaceholders, fn as parsePercentAttr, ft as xsdRectAlignment, g as replaceHyperlinkPlaceholders, gn as compileMapping, gt as xsdSlideLayoutType, h as replaceChartPlaceholders, hn as addBinaryFile, ht as xsdSizeRepresents, i as collectPlaceholderKeys, in as convertUniversalMeasureToInch, it as xsdMathStyle, j as xsdAnimationDgmBuild, jt as imageTypeFromPath, k as xsdAnimLevel, kt as xsdVerticalMergeRev, l as getOleRefs, ln as mapOptional, lt as xsdPenAlignment, m as replaceAudioPlaceholders, mn as XmlifyedFileEntry, mt as xsdShadingPattern, n as SmartArtRelOptions, nn as convertTwipToPoints, nt as xsdLineEndSize, o as formatId, on as convertUniversalMeasureToTwip, ot as xsdOrient, p as replaceAllPlaceholders, pn as parseUniversalMeasure, pt as xsdResizeHandles, q as xsdErrorValueType, qt as convertMillimetersToTwip, r as addSmartArtRelationships, rn as convertUniversalMeasureToEmu, rt as xsdMaterialType, s as getAudioRefs, sn as emitAngle, st as xsdPathFillMode, t as IdFormat, tn as convertTwipToEmu, tt as xsdLineCap, u as getReferencedMedia, un as parseAngle, ut as xsdPlaceholderType, v as replaceImagePlaceholders, vt as xsdStrikeStyle, w as replaceSmartArtPlaceholders, wt as xsdTextTabAlignment, x as replaceOleLinkPlaceholders, xt as xsdTextAnchor, y as replaceMediaPlaceholders, yt as xsdTableWidthType, z as xsdComments, zt as hashPasswordAgile } from "../index-BAxlDUQ1.mjs";
|
|
4
|
+
export { ArgbHexColor, Base64, DataType, DateTime, Guid, HexColor, HexColorOrAuto, IdFormat, ImageFileType, LongHexNumber, Panose, Percentage, PositivePercentage, PositiveUniversalMeasure, RelativeMeasure, ShortHexNumber, SmartArtRelOptions, ThemeColor, ThemeFont, ToUint8ArrayOptions, UcharHexNumber, UniqueNumericIdCreator, UniversalMeasure, UnsignedShortHex, XmlifyedFileEntry, addBinaryFile, addSmartArtRelationships, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertEmuToTwip, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertPixelsToEmu, convertPointsToEmu, convertPointsToTwip, convertToEmu, convertToInch, convertToPt, convertToTwip, convertTwipToEmu, convertTwipToPoints, convertUniversalMeasureToEmu, convertUniversalMeasureToInch, convertUniversalMeasureToPt, convertUniversalMeasureToTwip, dateTimeValue, decimalNumber, derivePasswordHash, eighthPointMeasureValue, emitAngle, emitPercent, extUriMatches, findAndReplaceImagePlaceholders, formatId, getAudioRefs, getMediaRefs, getOleRefs, getReferencedMedia, getVideoRefs, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, imageTypeFromPath, invertMap, isBase64DataURL, longHexNumber, mapOptional, measurementOrPercentValue, parseAngle, parseOnOff, parsePercent, parsePercentAttr, parseUniversalMeasure, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, randomBytes, replaceAllPlaceholders, replaceAudioPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImageLinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceOleLinkPlaceholders, replaceOlePlaceholders, replacePlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, stripColorHashPrefix, toUint8Array, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, xsdAnimCalcMode, xsdAnimClass, xsdAnimLevel, xsdAnimValueType, xsdAnimationDgmBuild, xsdAxisCrossBetween, xsdAxisCrosses, xsdAxisLabelAlignment, xsdAxisOrientation, xsdAxisPosition, xsdBlendMode, xsdChartBuild, xsdComments, xsdCompoundLine, xsdConsolidateFunction, xsdDashStyle, xsdDataLabelPosition, xsdDiagramBuild, xsdDiagramDirection, xsdEffectContainer, xsdErrorValueType, xsdFontAlignment, xsdHierBranch, xsdHueDirection, xsdIterateType, xsdJcAlignment, xsdLegendPosition, xsdLightRigDirection, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdMathStyle, xsdOnOffStyle, xsdOrient, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPlaceholderType, xsdPresetShadow, xsdRectAlignment, xsdResizeHandles, xsdShadingPattern, xsdSizeRepresents, xsdSlideLayoutType, xsdSplitType, xsdStrikeStyle, xsdTableWidthType, xsdTextAlign, xsdTextAnchor, xsdTextBuild, xsdTextCaps, xsdTextTabAlignment, xsdTextVerticalType, xsdTotalsRowFunction, xsdTrendlineType, xsdUnderlineStyle, xsdVerticalMergeRev };
|
package/dist/util/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as randomBytes, S as
|
|
2
|
-
import { A as
|
|
3
|
-
export {
|
|
1
|
+
import { C as replaceVideoPlaceholders, D as addBinaryFile, E as randomBytes, O as compileMapping, S as replaceSmartArtPlaceholders, T as hashPasswordAgile, _ as replaceMediaPlaceholders, a as getAudioRefs, b as replaceOlePlaceholders, c as getReferencedMedia, d as replaceAllPlaceholders, f as replaceAudioPlaceholders, g as replaceImagePlaceholders, h as replaceImageLinkPlaceholders, i as formatId, l as getVideoRefs, m as replaceHyperlinkPlaceholders, n as collectPlaceholderKeys, o as getMediaRefs, p as replaceChartPlaceholders, r as findAndReplaceImagePlaceholders, s as getOleRefs, t as addSmartArtRelationships, u as hasPlaceholders, v as replaceNumberingPlaceholders, w as derivePasswordHash, x as replacePlaceholders, y as replaceOleLinkPlaceholders } from "../util-ptE16MEk.mjs";
|
|
2
|
+
import { $ as xsdDiagramDirection, $t as pointMeasureValue, A as parseAngle, At as xsdTextBuild, B as xsdAxisCrossBetween, C as convertUniversalMeasureToEmu, Ct as xsdSizeRepresents, D as emitAngle, Dt as xsdTableWidthType, E as convertUniversalMeasureToTwip, Et as xsdStrikeStyle, F as xsdAnimCalcMode, Ft as xsdTrendlineType, G as xsdBlendMode, Gt as eighthPointMeasureValue, H as xsdAxisLabelAlignment, I as xsdAnimClass, It as xsdUnderlineStyle, J as xsdCompoundLine, Jt as hpsMeasureValue, K as xsdChartBuild, Kt as hexBinary, L as xsdAnimLevel, Lt as xsdVerticalMergeRev, M as parsePercentAttr, Mt as xsdTextTabAlignment, N as parseUniversalMeasure, Nt as xsdTextVerticalType, O as emitPercent, Ot as xsdTextAlign, P as invertMap, Pt as xsdTotalsRowFunction, Q as xsdDiagramBuild, Qt as percentageValue, R as xsdAnimValueType, Rt as isBase64DataURL, S as convertTwipToPoints, St as xsdShadingPattern, T as convertUniversalMeasureToPt, Tt as xsdSplitType, U as xsdAxisOrientation, Ut as dateTimeValue, V as xsdAxisCrosses, W as xsdAxisPosition, Wt as decimalNumber, X as xsdDashStyle, Xt as measurementOrPercentValue, Y as xsdConsolidateFunction, Yt as longHexNumber, Z as xsdDataLabelPosition, Zt as parseOnOff, _ as convertToEmu, _t as xsdPenAlignment, a as uniqueNumericIdCreator, an as twipsMeasureValue, at as xsdIterateType, b as convertToTwip, bt as xsdRectAlignment, c as convertEmuToPixels, cn as unsignedDecimalNumber, ct as xsdLightRigDirection, d as convertInchesToEmu, dt as xsdMaterialType, en as positiveUniversalMeasureValue, et as xsdEffectContainer, f as convertInchesToTwip, ft as xsdMathStyle, g as convertPointsToTwip, gt as xsdPattern, h as convertPointsToEmu, ht as xsdPathFillMode, i as uniqueId, in as stripColorHashPrefix, it as xsdHueDirection, j as parsePercent, jt as xsdTextCaps, k as mapOptional, kt as xsdTextAnchor, l as convertEmuToPoints, lt as xsdLineCap, m as convertPixelsToEmu, mt as xsdOrient, n as imageTypeFromPath, nn as signedHpsMeasureValue, nt as xsdFontAlignment, o as uniqueUuid, on as uCharHexNumber, ot as xsdJcAlignment, p as convertMillimetersToTwip, pt as xsdOnOffStyle, q as xsdComments, qt as hexColorValue, r as hashedId, rn as signedTwipsMeasureValue, rt as xsdHierBranch, s as convertEmuToInches, sn as universalMeasureValue, st as xsdLegendPosition, t as extUriMatches, tn as shortHexNumber, tt as xsdErrorValueType, u as convertEmuToTwip, ut as xsdLineEndSize, v as convertToInch, vt as xsdPlaceholderType, w as convertUniversalMeasureToInch, wt as xsdSlideLayoutType, x as convertTwipToEmu, xt as xsdResizeHandles, y as convertToPt, yt as xsdPresetShadow, z as xsdAnimationDgmBuild, zt as toUint8Array } from "../ext-uri-BHBcIrW7.mjs";
|
|
3
|
+
export { addBinaryFile, addSmartArtRelationships, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertEmuToTwip, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertPixelsToEmu, convertPointsToEmu, convertPointsToTwip, convertToEmu, convertToInch, convertToPt, convertToTwip, convertTwipToEmu, convertTwipToPoints, convertUniversalMeasureToEmu, convertUniversalMeasureToInch, convertUniversalMeasureToPt, convertUniversalMeasureToTwip, dateTimeValue, decimalNumber, derivePasswordHash, eighthPointMeasureValue, emitAngle, emitPercent, extUriMatches, findAndReplaceImagePlaceholders, formatId, getAudioRefs, getMediaRefs, getOleRefs, getReferencedMedia, getVideoRefs, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, imageTypeFromPath, invertMap, isBase64DataURL, longHexNumber, mapOptional, measurementOrPercentValue, parseAngle, parseOnOff, parsePercent, parsePercentAttr, parseUniversalMeasure, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, randomBytes, replaceAllPlaceholders, replaceAudioPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImageLinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceOleLinkPlaceholders, replaceOlePlaceholders, replacePlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, stripColorHashPrefix, toUint8Array, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, xsdAnimCalcMode, xsdAnimClass, xsdAnimLevel, xsdAnimValueType, xsdAnimationDgmBuild, xsdAxisCrossBetween, xsdAxisCrosses, xsdAxisLabelAlignment, xsdAxisOrientation, xsdAxisPosition, xsdBlendMode, xsdChartBuild, xsdComments, xsdCompoundLine, xsdConsolidateFunction, xsdDashStyle, xsdDataLabelPosition, xsdDiagramBuild, xsdDiagramDirection, xsdEffectContainer, xsdErrorValueType, xsdFontAlignment, xsdHierBranch, xsdHueDirection, xsdIterateType, xsdJcAlignment, xsdLegendPosition, xsdLightRigDirection, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdMathStyle, xsdOnOffStyle, xsdOrient, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPlaceholderType, xsdPresetShadow, xsdRectAlignment, xsdResizeHandles, xsdShadingPattern, xsdSizeRepresents, xsdSlideLayoutType, xsdSplitType, xsdStrikeStyle, xsdTableWidthType, xsdTextAlign, xsdTextAnchor, xsdTextBuild, xsdTextCaps, xsdTextTabAlignment, xsdTextVerticalType, xsdTotalsRowFunction, xsdTrendlineType, xsdUnderlineStyle, xsdVerticalMergeRev };
|