ooxml-core 1.10.0 → 1.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/PptxHandler-DNZHAHUY.cjs +12 -0
- package/dist/PptxHandler-E44KDHMQ.mjs +3 -0
- package/dist/{PptxHandler-ADEFY476.mjs → PptxHandler-NROFYT2N.mjs} +2 -2
- package/dist/automation/index.cjs +3504 -2888
- package/dist/automation/index.mjs +3504 -2888
- package/dist/{chunk-3N6XMMTT.cjs → chunk-2UVH6RHI.cjs} +1138 -996
- package/dist/{chunk-ZOUGMAZG.mjs → chunk-7DSZI7S6.mjs} +1 -1
- package/dist/{chunk-S6DOCMQC.cjs → chunk-7QZGRB3T.cjs} +0 -10
- package/dist/chunk-ANZ4Q6I3.cjs +21 -0
- package/dist/{chunk-5NVJN4E6.mjs → chunk-EC2W2MDY.mjs} +1 -1
- package/dist/chunk-EGTRL3QJ.mjs +19 -0
- package/dist/chunk-GXHKNSZX.mjs +9 -0
- package/dist/{chunk-CCHYFCPD.mjs → chunk-HCXUI5UC.mjs} +296 -103
- package/dist/chunk-HDQXPSHY.cjs +17 -0
- package/dist/chunk-KTYBFGEY.mjs +14 -0
- package/dist/chunk-QOO36KG4.cjs +42 -0
- package/dist/chunk-R2KZXD6U.mjs +39 -0
- package/dist/{chunk-A6P7G3UK.mjs → chunk-U2DF3EGK.mjs} +1 -1
- package/dist/{chunk-R6KSBNKX.mjs → chunk-UAY26XOI.mjs} +1 -9
- package/dist/{chunk-WUE5ZHU3.mjs → chunk-W5ARCUJB.mjs} +3 -3
- package/dist/chunk-XZPZHXV4.cjs +12 -0
- package/dist/{chunk-ZE53K7DH.mjs → chunk-YB5SRNFS.mjs} +244 -102
- package/dist/docx/embedded.cjs +1 -1
- package/dist/docx/embedded.mjs +1 -1
- package/dist/docx/index.cjs +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +266 -61
- package/dist/docx/layout/index.d.ts +1 -0
- package/dist/docx/layout/index.d.ts.map +1 -1
- package/dist/docx/layout/index.mjs +266 -62
- package/dist/docx/layout/input.d.ts +5 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout-session.d.ts +10 -0
- package/dist/docx/layout/layout-session.d.ts.map +1 -0
- package/dist/docx/layout/nested-fragment-edges.d.ts +9 -0
- package/dist/docx/layout/nested-fragment-edges.d.ts.map +1 -0
- package/dist/docx/layout/paragraph-cache.d.ts +8 -0
- package/dist/docx/layout/paragraph-cache.d.ts.map +1 -0
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +7 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/table-border-layout.d.ts +1 -1
- package/dist/docx/layout/table-border-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-cell-layout.d.ts +1 -1
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-frames.d.ts.map +1 -1
- package/dist/docx/layout/table-layout.d.ts +1 -1
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-paragraph-keeps.d.ts +14 -0
- package/dist/docx/layout/table-paragraph-keeps.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +1 -1
- package/dist/docx/load/index.mjs +1 -1
- package/dist/docx/ui/index.cjs +83 -6
- package/dist/docx/ui/index.mjs +83 -7
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/word-count.d.ts +3 -0
- package/dist/docx/ui/word-count.d.ts.map +1 -1
- package/dist/geometry/element-transform.d.ts +90 -0
- package/dist/geometry/element-transform.d.ts.map +1 -0
- package/dist/geometry/index.cjs +90 -0
- package/dist/geometry/index.d.ts +1 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +83 -1
- package/dist/index.cjs +90 -0
- package/dist/index.mjs +90 -0
- package/dist/pptx/automation/index.cjs +266 -114
- package/dist/pptx/automation/index.d.ts +5 -4
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{text-operations-BqHmLaLA.d.ts → elements-DD3UGOMd.d.ts} +17 -3262
- package/dist/pptx/chunks/elements-DD3UGOMd.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-DUCGeZh7.d.ts → index-BZrFyNtU.d.ts} +53 -5
- package/dist/pptx/chunks/index-BZrFyNtU.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-Cuxtr76Y.d.ts → index-DdX02BSm.d.ts} +5 -3
- package/dist/pptx/chunks/index-DdX02BSm.d.ts.map +1 -0
- package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts +1512 -0
- package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +1 -0
- package/dist/pptx/chunks/text-D49FKllA.d.ts +1473 -0
- package/dist/pptx/chunks/text-D49FKllA.d.ts.map +1 -0
- package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts +3261 -0
- package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +266 -114
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.cjs +17 -16
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -1
- package/dist/pptx/editor/render/font-family-update.cjs +14 -0
- package/dist/pptx/editor/render/font-family-update.d.ts +17 -0
- package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -0
- package/dist/pptx/editor/render/font-family-update.mjs +1 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.cjs +14 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +17 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.mjs +12 -0
- package/dist/pptx/editor/render/slide-operations.cjs +9 -8
- package/dist/pptx/editor/render/slide-operations.mjs +3 -2
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.cjs +18 -0
- package/dist/pptx/editor/render/text-content-style.d.ts +9 -0
- package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-content-style.mjs +5 -0
- package/dist/pptx/editor/render/text-runs-style-patch.cjs +17 -0
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +7 -0
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-runs-style-patch.mjs +15 -0
- package/dist/pptx/editor/render/text-style-scope.cjs +173 -0
- package/dist/pptx/editor/render/text-style-scope.d.ts +76 -0
- package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-style-scope.mjs +164 -0
- package/dist/pptx/editor/render/theme-editor-model.cjs +1 -1
- package/dist/pptx/editor/render/theme-editor-model.mjs +1 -1
- package/dist/pptx/editor/render/update-text-segment-style.cjs +11 -0
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +14 -0
- package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/update-text-segment-style.mjs +2 -0
- package/dist/pptx/index.cjs +329 -114
- package/dist/pptx/index.d.ts +7 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/teams/index.cjs +112 -16
- package/dist/teams/index.mjs +112 -16
- package/dist/visio/edit-commands.d.ts +3 -3
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-text-field-commands.d.ts +15 -0
- package/dist/visio/edit-text-field-commands.d.ts.map +1 -1
- package/dist/visio/edit-text-field.d.ts +2 -2
- package/dist/visio/edit-text-field.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +696 -249
- package/dist/visio/index.d.ts +2 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +695 -250
- package/dist/visio/model.d.ts +18 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/paper-sizes.d.ts +5 -0
- package/dist/visio/paper-sizes.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/print-count.d.ts +20 -0
- package/dist/visio/print-count.d.ts.map +1 -0
- package/dist/visio/print-settings.d.ts +14 -0
- package/dist/visio/print-settings.d.ts.map +1 -0
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/style.d.ts +1 -1
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/text-field-display.d.ts +3 -0
- package/dist/visio/text-field-display.d.ts.map +1 -1
- package/dist/visio/text-field-editability.d.ts +6 -0
- package/dist/visio/text-field-editability.d.ts.map +1 -0
- package/dist/visio/text-field-independent.d.ts +4 -0
- package/dist/visio/text-field-independent.d.ts.map +1 -0
- package/dist/visio/text-field-source.d.ts +6 -0
- package/dist/visio/text-field-source.d.ts.map +1 -0
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +588 -215
- package/dist/visio/ui/index.mjs +588 -215
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/xlsx/edit/pivots.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +773 -514
- package/dist/xlsx/index.mjs +772 -515
- package/dist/xlsx/load/index.cjs +541 -292
- package/dist/xlsx/load/index.mjs +541 -292
- package/dist/xlsx/model-pivots.d.ts +8 -0
- package/dist/xlsx/model-pivots.d.ts.map +1 -1
- package/dist/xlsx/pivot/admission.d.ts.map +1 -1
- package/dist/xlsx/pivot/aggregate.d.ts.map +1 -1
- package/dist/xlsx/pivot/data.d.ts +2 -2
- package/dist/xlsx/pivot/data.d.ts.map +1 -1
- package/dist/xlsx/pivot/index.d.ts +2 -0
- package/dist/xlsx/pivot/index.d.ts.map +1 -1
- package/dist/xlsx/pivot/measures.d.ts +1 -1
- package/dist/xlsx/pivot/measures.d.ts.map +1 -1
- package/dist/xlsx/pivot/page-filter-admission.d.ts +5 -0
- package/dist/xlsx/pivot/page-filter-admission.d.ts.map +1 -0
- package/dist/xlsx/pivot/page-filter.d.ts +11 -0
- package/dist/xlsx/pivot/page-filter.d.ts.map +1 -0
- package/dist/xlsx/pivot/read.d.ts.map +1 -1
- package/dist/xlsx/pivot/table-xml.d.ts.map +1 -1
- package/dist/xlsx/pivot/values-axis.d.ts +4 -1
- package/dist/xlsx/pivot/values-axis.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/pivots.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +95 -12
- package/dist/xlsx/ui/index.mjs +95 -12
- package/dist/xlsx/ui/ribbon/parts.d.ts +1 -0
- package/dist/xlsx/ui/ribbon/parts.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/PptxHandler-5UURGJEV.mjs +0 -2
- package/dist/PptxHandler-U5XB2HUE.cjs +0 -11
- package/dist/pptx/chunks/index-Cuxtr76Y.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DUCGeZh7.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts +0 -2980
- package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-BqHmLaLA.d.ts.map +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { isContentSegment } from '../../../chunk-KTYBFGEY.mjs';
|
|
2
|
+
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
3
|
+
import '../../../chunk-LRKFBOAA.mjs';
|
|
4
|
+
import '../../../chunk-VPHSMBTD.mjs';
|
|
5
|
+
import '../../../chunk-BEGN4NBQ.mjs';
|
|
6
|
+
import '../../../chunk-WWOVZOGU.mjs';
|
|
7
|
+
|
|
8
|
+
// pptx/editor/render/text-style-scope.ts
|
|
9
|
+
var BODY_TEXT_STYLE_KEYS = /* @__PURE__ */ new Set([
|
|
10
|
+
// autofit (`a:normAutofit` / `a:spAutoFit`)
|
|
11
|
+
"autoFit",
|
|
12
|
+
"autoFitMode",
|
|
13
|
+
"autoFitFontScale",
|
|
14
|
+
"autoFitLineSpacingReduction",
|
|
15
|
+
// `a:bodyPr` anchoring, direction, rotation
|
|
16
|
+
"vAlign",
|
|
17
|
+
"anchorCenter",
|
|
18
|
+
"textDirection",
|
|
19
|
+
"textBodyRotation",
|
|
20
|
+
"upright",
|
|
21
|
+
// `a:bodyPr` columns, overflow, wrap
|
|
22
|
+
"columnCount",
|
|
23
|
+
"columnSpacing",
|
|
24
|
+
"rtlColumns",
|
|
25
|
+
"hOverflow",
|
|
26
|
+
"vertOverflow",
|
|
27
|
+
"textWrap",
|
|
28
|
+
// `a:bodyPr` insets
|
|
29
|
+
"bodyInsetLeft",
|
|
30
|
+
"bodyInsetTop",
|
|
31
|
+
"bodyInsetRight",
|
|
32
|
+
"bodyInsetBottom",
|
|
33
|
+
// paragraph geometry the block applies body-wide
|
|
34
|
+
"paragraphMarginLeft",
|
|
35
|
+
"paragraphMarginRight",
|
|
36
|
+
"paragraphIndent",
|
|
37
|
+
"paragraphSpacingBefore",
|
|
38
|
+
"paragraphSpacingAfter",
|
|
39
|
+
"lineSpacing",
|
|
40
|
+
"lineSpacingExactPt",
|
|
41
|
+
"tabStops",
|
|
42
|
+
"defaultTabSize",
|
|
43
|
+
"eaLineBreak",
|
|
44
|
+
"latinLineBreak",
|
|
45
|
+
"fontAlignment",
|
|
46
|
+
"hangingPunctuation",
|
|
47
|
+
// `a:bodyPr` flags
|
|
48
|
+
"spaceFirstLastParagraph",
|
|
49
|
+
"fromWordArt",
|
|
50
|
+
"forceAntiAlias",
|
|
51
|
+
"compatibleLineSpacing",
|
|
52
|
+
// warp and 3D scene on the body
|
|
53
|
+
"textWarpPreset",
|
|
54
|
+
"textWarpAdj",
|
|
55
|
+
"textWarpAdj2",
|
|
56
|
+
"text3d",
|
|
57
|
+
"textBodyScene3d",
|
|
58
|
+
"textBodyScene3dXml",
|
|
59
|
+
"flatText",
|
|
60
|
+
"bodyPropertiesExtLstXml"
|
|
61
|
+
]);
|
|
62
|
+
function isBodyTextStyleKey(key) {
|
|
63
|
+
return BODY_TEXT_STYLE_KEYS.has(key);
|
|
64
|
+
}
|
|
65
|
+
function splitTextStyleUpdate(updates) {
|
|
66
|
+
const body = {};
|
|
67
|
+
const run = {};
|
|
68
|
+
for (const [key, value] of Object.entries(updates)) {
|
|
69
|
+
(isBodyTextStyleKey(key) ? body : run)[key] = value;
|
|
70
|
+
}
|
|
71
|
+
return { body, run };
|
|
72
|
+
}
|
|
73
|
+
function reconcileDecorationFlags(segments, textStyle, flags) {
|
|
74
|
+
const nextStyle = { ...textStyle ?? {} };
|
|
75
|
+
let nextSegments = [...segments];
|
|
76
|
+
for (const flag of flags) {
|
|
77
|
+
const body = nextStyle[flag] ?? false;
|
|
78
|
+
const content = nextSegments.filter(isContentSegment);
|
|
79
|
+
if (content.length === 0) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (content.every((segment) => segment.style?.[flag] ?? body)) {
|
|
83
|
+
nextStyle[flag] = true;
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (!body) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
delete nextStyle[flag];
|
|
90
|
+
nextSegments = nextSegments.map(
|
|
91
|
+
(segment) => isContentSegment(segment) && segment.style?.[flag] === void 0 ? { ...segment, style: { ...segment.style, [flag]: true } } : segment
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
return { textStyle: nextStyle, textSegments: nextSegments };
|
|
95
|
+
}
|
|
96
|
+
var LINE_SPACING_TWIN = {
|
|
97
|
+
lineSpacing: "lineSpacingExactPt",
|
|
98
|
+
lineSpacingExactPt: "lineSpacing"
|
|
99
|
+
};
|
|
100
|
+
function withExclusiveLineSpacing(updates) {
|
|
101
|
+
const next = { ...updates };
|
|
102
|
+
for (const key of Object.keys(updates)) {
|
|
103
|
+
const twin = LINE_SPACING_TWIN[key];
|
|
104
|
+
if (twin && updates[key] !== void 0 && !(twin in updates)) {
|
|
105
|
+
next[twin] = void 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return next;
|
|
109
|
+
}
|
|
110
|
+
function overrideParagraphProperties(segments, updates, inheritedSpacing) {
|
|
111
|
+
const keys = Object.keys(updates).filter(isBodyTextStyleKey);
|
|
112
|
+
return segments.map((segment, index) => {
|
|
113
|
+
const own = segment.paragraphProperties;
|
|
114
|
+
const previous = segments[index - 1];
|
|
115
|
+
const inherited = index === 0 || previous?.isParagraphBreak || previous?.text === "\n" && !previous.isLineBreak ? inheritedSpacing?.[segment.paragraphLevel ?? 0] : void 0;
|
|
116
|
+
const pinned = keys.filter(
|
|
117
|
+
(key) => (key === "lineSpacing" || key === "lineSpacingExactPt") && updates[key] !== void 0 && inherited && (inherited.lineSpacing !== void 0 || inherited.lineSpacingExactPt !== void 0) && (inherited[key] !== updates[key] || LINE_SPACING_TWIN[key] !== void 0 && inherited[LINE_SPACING_TWIN[key]] !== void 0)
|
|
118
|
+
);
|
|
119
|
+
const declared = keys.filter((key) => {
|
|
120
|
+
const twin = LINE_SPACING_TWIN[key];
|
|
121
|
+
return own && (key in own || twin !== void 0 && twin in own) || pinned.includes(key) || twin !== void 0 && pinned.includes(twin);
|
|
122
|
+
});
|
|
123
|
+
if (declared.length === 0) {
|
|
124
|
+
return segment;
|
|
125
|
+
}
|
|
126
|
+
const next = { ...own };
|
|
127
|
+
for (const key of declared) {
|
|
128
|
+
if (updates[key] === void 0) {
|
|
129
|
+
delete next[key];
|
|
130
|
+
} else {
|
|
131
|
+
Object.assign(next, { [key]: updates[key] });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return { ...segment, paragraphProperties: next };
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function overrideParagraphIndents(element, updates) {
|
|
138
|
+
const { paragraphMarginLeft, paragraphIndent } = updates;
|
|
139
|
+
if (!hasTextProperties(element) || !element.paragraphIndents || paragraphMarginLeft === void 0 && paragraphIndent === void 0) {
|
|
140
|
+
return {};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
paragraphIndents: element.paragraphIndents.map((entry) => ({
|
|
144
|
+
...entry,
|
|
145
|
+
...paragraphMarginLeft === void 0 ? {} : { marginLeft: paragraphMarginLeft },
|
|
146
|
+
...paragraphIndent === void 0 ? {} : { indent: paragraphIndent }
|
|
147
|
+
}))
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function paragraphOverridePatch(element, updates) {
|
|
151
|
+
const current = hasTextProperties(element) ? element.textSegments : void 0;
|
|
152
|
+
const overridden = current && overrideParagraphProperties(
|
|
153
|
+
current,
|
|
154
|
+
updates,
|
|
155
|
+
hasTextProperties(element) ? element.textStyle?.inheritedParagraphSpacing : void 0
|
|
156
|
+
);
|
|
157
|
+
const changed = overridden?.some((segment, index) => segment !== current?.[index]);
|
|
158
|
+
return {
|
|
159
|
+
...changed ? { textSegments: overridden } : {},
|
|
160
|
+
...overrideParagraphIndents(element, updates)
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { BODY_TEXT_STYLE_KEYS, isBodyTextStyleKey, overrideParagraphIndents, overrideParagraphProperties, paragraphOverridePatch, reconcileDecorationFlags, splitTextStyleUpdate, withExclusiveLineSpacing };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkLQ5OQSRU_cjs = require('../../../chunk-LQ5OQSRU.cjs');
|
|
4
3
|
var chunk2VW7LWJQ_cjs = require('../../../chunk-2VW7LWJQ.cjs');
|
|
4
|
+
var chunkLQ5OQSRU_cjs = require('../../../chunk-LQ5OQSRU.cjs');
|
|
5
5
|
var chunkZR7YDG22_cjs = require('../../../chunk-ZR7YDG22.cjs');
|
|
6
6
|
var pptx = require('ooxml-core/pptx');
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_THEME_COLOR_SCHEME } from '../../../chunk-LEUX4TXY.mjs';
|
|
2
1
|
import { THEME_COLOR_TINT_ROWS } from '../../../chunk-H3T5SE36.mjs';
|
|
2
|
+
import { DEFAULT_THEME_COLOR_SCHEME } from '../../../chunk-LEUX4TXY.mjs';
|
|
3
3
|
import { THEME_COLOR_SLOT_LABEL_KEYS } from '../../../chunk-SEN6Y2LT.mjs';
|
|
4
4
|
import { THEME_COLOR_SCHEME_KEYS } from 'ooxml-core/pptx';
|
|
5
5
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkANZ4Q6I3_cjs = require('../../../chunk-ANZ4Q6I3.cjs');
|
|
4
|
+
require('../../../chunk-QOO36KG4.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "updateTextSegmentStyle", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkANZ4Q6I3_cjs.updateTextSegmentStyle; }
|
|
11
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { i as TextStyle, r as TextSegment } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/update-text-segment-style.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Keep a runless paragraph's future body formatting in the same style edit.
|
|
5
|
+
* `options.inherited` is the text box style the run inherits unset fields
|
|
6
|
+
* from, so a font family pick can tell which script faces matched the old
|
|
7
|
+
* effective Latin face (see `font-family-update.ts`).
|
|
8
|
+
*/
|
|
9
|
+
export declare function updateTextSegmentStyle(segment: TextSegment, updates: Partial<TextStyle>, options?: {
|
|
10
|
+
updateBodyStyle?: boolean;
|
|
11
|
+
inherited?: TextStyle | undefined;
|
|
12
|
+
}): TextSegment;
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=update-text-segment-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-text-segment-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/update-text-segment-style.ts"],"mappings":";;;;;;;;wBAUgB,uBACf,SAAS,aACT,SAAS,QAAQ,YACjB;EAAW;EAA2B,YAAY;IAChD"}
|