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,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQOO36KG4_cjs = require('../../../chunk-QOO36KG4.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "fontFamilyStyleUpdates", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkQOO36KG4_cjs.fontFamilyStyleUpdates; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "mergeTextStyleUpdate", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkQOO36KG4_cjs.mergeTextStyleUpdate; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/font-family-update.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Expand a style update for `style`: when it sets a concrete `fontFamily`,
|
|
5
|
+
* carry the change to the script faces that were the same face as the old
|
|
6
|
+
* effective Latin one (the run's own, else `inherited`'s) and drop the theme tokens of the faces it replaces. Any other
|
|
7
|
+
* update comes back unchanged, and a script face the update names itself is
|
|
8
|
+
* kept as given.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fontFamilyStyleUpdates(style: TextStyle | undefined, updates: Partial<TextStyle>, inherited?: TextStyle): Partial<TextStyle>;
|
|
11
|
+
/**
|
|
12
|
+
* Merge `updates` over `style`, applying {@link fontFamilyStyleUpdates}.
|
|
13
|
+
* `inherited` is the style a run without its own Latin face inherits from.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeTextStyleUpdate(style: TextStyle | undefined, updates: Partial<TextStyle>, inherited?: TextStyle): TextStyle;
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=font-family-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-family-update.d.ts","names":[],"sources":["../../../../pptx/editor/render/font-family-update.ts"],"mappings":";;;;;;;;;wBAgDgB,uBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV,QAAQ;;;;;wBAmCK,qBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { fontFamilyStyleUpdates, mergeTextStyleUpdate } from '../../../chunk-R2KZXD6U.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// pptx/editor/render/paragraph-geometry-overrides.ts
|
|
4
|
+
function resolveParagraphGeometryOverrides(paraProps, bodyStyle) {
|
|
5
|
+
return {
|
|
6
|
+
eaLineBreak: paraProps?.eaLineBreak ?? bodyStyle?.eaLineBreak,
|
|
7
|
+
latinLineBreak: paraProps?.latinLineBreak ?? bodyStyle?.latinLineBreak,
|
|
8
|
+
hangingPunctuation: paraProps?.hangingPunctuation ?? bodyStyle?.hangingPunctuation,
|
|
9
|
+
fontAlignment: paraProps?.fontAlignment ?? bodyStyle?.fontAlignment,
|
|
10
|
+
defaultTabSize: paraProps?.defaultTabSize ?? bodyStyle?.defaultTabSize
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.resolveParagraphGeometryOverrides = resolveParagraphGeometryOverrides;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/paragraph-geometry-overrides.d.ts
|
|
3
|
+
/** The geometry keys a paragraph may override independently of the body. */
|
|
4
|
+
export type ParagraphGeometryOverrides = Pick<TextStyle, 'eaLineBreak' | 'latinLineBreak' | 'hangingPunctuation' | 'fontAlignment' | 'defaultTabSize'>;
|
|
5
|
+
/**
|
|
6
|
+
* Resolve this paragraph's own kinsoku / font-alignment / tab-default
|
|
7
|
+
* geometry, falling back to the text body's resolved value for any field the
|
|
8
|
+
* paragraph does not author itself.
|
|
9
|
+
*
|
|
10
|
+
* @param paraProps This paragraph's own `a:pPr` geometry snapshot
|
|
11
|
+
* (`TextSegment.paragraphProperties`, from its first
|
|
12
|
+
* segment), or `undefined` for a paragraph that authors none.
|
|
13
|
+
* @param bodyStyle The element's resolved text style, used as the fallback.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveParagraphGeometryOverrides(paraProps: TextStyle | undefined, bodyStyle: TextStyle | undefined): ParagraphGeometryOverrides;
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=paragraph-geometry-overrides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph-geometry-overrides.d.ts","names":[],"sources":["../../../../pptx/editor/render/paragraph-geometry-overrides.ts"],"mappings":";;;YAuBY,6BAA6B,KACxC;;;;;;;;;;;wBAce,kCACf,WAAW,uBACX,WAAW,wBACT"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// pptx/editor/render/paragraph-geometry-overrides.ts
|
|
2
|
+
function resolveParagraphGeometryOverrides(paraProps, bodyStyle) {
|
|
3
|
+
return {
|
|
4
|
+
eaLineBreak: paraProps?.eaLineBreak ?? bodyStyle?.eaLineBreak,
|
|
5
|
+
latinLineBreak: paraProps?.latinLineBreak ?? bodyStyle?.latinLineBreak,
|
|
6
|
+
hangingPunctuation: paraProps?.hangingPunctuation ?? bodyStyle?.hangingPunctuation,
|
|
7
|
+
fontAlignment: paraProps?.fontAlignment ?? bodyStyle?.fontAlignment,
|
|
8
|
+
defaultTabSize: paraProps?.defaultTabSize ?? bodyStyle?.defaultTabSize
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { resolveParagraphGeometryOverrides };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../chunk-
|
|
4
|
-
var
|
|
3
|
+
require('../../../chunk-2UVH6RHI.cjs');
|
|
4
|
+
var chunk7QZGRB3T_cjs = require('../../../chunk-7QZGRB3T.cjs');
|
|
5
|
+
require('../../../chunk-XZPZHXV4.cjs');
|
|
5
6
|
|
|
6
7
|
// pptx/core/builders/sdk/slide-operations.ts
|
|
7
8
|
var cloneIdCounter = 0;
|
|
@@ -18,7 +19,7 @@ function reassignElementId(element) {
|
|
|
18
19
|
return newElement;
|
|
19
20
|
}
|
|
20
21
|
function duplicateSlide(slide, newSlideNumber) {
|
|
21
|
-
const cloned =
|
|
22
|
+
const cloned = chunk7QZGRB3T_cjs.cloneSlide(slide);
|
|
22
23
|
cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
|
|
23
24
|
cloned.id = `slide${newSlideNumber}`;
|
|
24
25
|
cloned.rId = `rId${newSlideNumber + 1}`;
|
|
@@ -48,7 +49,7 @@ function duplicateSlide(slide, newSlideNumber) {
|
|
|
48
49
|
function captureSlideClipboard(slides, ids) {
|
|
49
50
|
return ids.flatMap((id) => {
|
|
50
51
|
const slide = slides.find((candidate) => candidate.id === id);
|
|
51
|
-
return slide ? [
|
|
52
|
+
return slide ? [chunk7QZGRB3T_cjs.cloneSlide(slide)] : [];
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
@@ -59,14 +60,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
|
59
60
|
})),
|
|
60
61
|
sourceIds: clipboard.map((slide) => slide.id),
|
|
61
62
|
insertAt,
|
|
62
|
-
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(
|
|
63
|
+
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunk7QZGRB3T_cjs.cloneElement))
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function insertSlidePaste(slides, request) {
|
|
66
67
|
const index = Math.max(0, Math.min(slides.length, request.insertAt));
|
|
67
68
|
const next = [
|
|
68
69
|
...slides.slice(0, index),
|
|
69
|
-
...request.copies.map(
|
|
70
|
+
...request.copies.map(chunk7QZGRB3T_cjs.cloneSlide),
|
|
70
71
|
...slides.slice(index)
|
|
71
72
|
];
|
|
72
73
|
return next.map(
|
|
@@ -76,12 +77,12 @@ function insertSlidePaste(slides, request) {
|
|
|
76
77
|
function applySlidePasteTemplates(mapping, request) {
|
|
77
78
|
const next = { ...mapping };
|
|
78
79
|
request.copies.forEach((copy, index) => {
|
|
79
|
-
next[copy.id] = (request.templateElements[index] ?? []).map(
|
|
80
|
+
next[copy.id] = (request.templateElements[index] ?? []).map(chunk7QZGRB3T_cjs.cloneElement);
|
|
80
81
|
});
|
|
81
82
|
return next;
|
|
82
83
|
}
|
|
83
84
|
function captureSlideClipboardTemplates(mapping, ids) {
|
|
84
|
-
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(
|
|
85
|
+
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunk7QZGRB3T_cjs.cloneElement)]));
|
|
85
86
|
}
|
|
86
87
|
function makeSlideId(idGenerator) {
|
|
87
88
|
if (idGenerator) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import '../../../chunk-
|
|
2
|
-
import { cloneSlide, cloneElement } from '../../../chunk-
|
|
1
|
+
import '../../../chunk-YB5SRNFS.mjs';
|
|
2
|
+
import { cloneSlide, cloneElement } from '../../../chunk-UAY26XOI.mjs';
|
|
3
|
+
import '../../../chunk-GXHKNSZX.mjs';
|
|
3
4
|
|
|
4
5
|
// pptx/core/builders/sdk/slide-operations.ts
|
|
5
6
|
var cloneIdCounter = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkFRUB573B_cjs = require('../../../chunk-FRUB573B.cjs');
|
|
4
3
|
var chunkXROY25LN_cjs = require('../../../chunk-XROY25LN.cjs');
|
|
4
|
+
var chunkFRUB573B_cjs = require('../../../chunk-FRUB573B.cjs');
|
|
5
5
|
var pptx = require('ooxml-core/pptx');
|
|
6
6
|
|
|
7
7
|
function withTableData(element, transform, edit) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-3IT6ZD7K.mjs';
|
|
2
1
|
import { setCellText } from '../../../chunk-3UMDVJRN.mjs';
|
|
2
|
+
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-3IT6ZD7K.mjs';
|
|
3
3
|
import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
|
|
4
4
|
|
|
5
5
|
function withTableData(element, transform, edit) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHDQXPSHY_cjs = require('../../../chunk-HDQXPSHY.cjs');
|
|
4
|
+
require('../../../chunk-R6Z5C4DA.cjs');
|
|
5
|
+
require('../../../chunk-AT2NLO2F.cjs');
|
|
6
|
+
require('../../../chunk-57KYGHFF.cjs');
|
|
7
|
+
require('../../../chunk-V33BRBWQ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "TEXT_DECORATION_FLAGS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkHDQXPSHY_cjs.TEXT_DECORATION_FLAGS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "isContentSegment", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkHDQXPSHY_cjs.isContentSegment; }
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { r as TextSegment } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/text-content-style.d.ts
|
|
3
|
+
/** The boolean run decorations the ribbon toggles. */
|
|
4
|
+
export type TextDecorationFlag = 'bold' | 'italic' | 'underline' | 'strikethrough';
|
|
5
|
+
export declare const TEXT_DECORATION_FLAGS: readonly TextDecorationFlag[];
|
|
6
|
+
/** A run that carries text: not a paragraph break, not a display-only bullet marker. */
|
|
7
|
+
export declare function isContentSegment(segment: TextSegment): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
//# sourceMappingURL=text-content-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":";;;YAIY;qBAEC,gCAAgC;;wBAQ7B,iBAAiB,SAAS"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkANZ4Q6I3_cjs = require('../../../chunk-ANZ4Q6I3.cjs');
|
|
4
|
+
var chunkQOO36KG4_cjs = require('../../../chunk-QOO36KG4.cjs');
|
|
5
|
+
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
6
|
+
|
|
7
|
+
// pptx/editor/render/text-runs-style-patch.ts
|
|
8
|
+
function textRunsStylePatch(element, updates) {
|
|
9
|
+
if (!chunkXZPZHXV4_cjs.hasTextProperties(element)) return {};
|
|
10
|
+
const textStyle = chunkQOO36KG4_cjs.mergeTextStyleUpdate(element.textStyle, updates);
|
|
11
|
+
const textSegments = element.textSegments?.map(
|
|
12
|
+
(segment) => chunkANZ4Q6I3_cjs.updateTextSegmentStyle(segment, updates, { inherited: element.textStyle })
|
|
13
|
+
);
|
|
14
|
+
return { textStyle, ...textSegments ? { textSegments } : {} };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.textRunsStylePatch = textRunsStylePatch;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-DD3UGOMd.js";
|
|
3
|
+
//#region pptx/editor/render/text-runs-style-patch.d.ts
|
|
4
|
+
/** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
|
|
5
|
+
export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=text-runs-style-patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-runs-style-patch.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-runs-style-patch.ts"],"mappings":";;;;wBAMgB,mBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK,QAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { updateTextSegmentStyle } from '../../../chunk-EGTRL3QJ.mjs';
|
|
2
|
+
import { mergeTextStyleUpdate } from '../../../chunk-R2KZXD6U.mjs';
|
|
3
|
+
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
4
|
+
|
|
5
|
+
// pptx/editor/render/text-runs-style-patch.ts
|
|
6
|
+
function textRunsStylePatch(element, updates) {
|
|
7
|
+
if (!hasTextProperties(element)) return {};
|
|
8
|
+
const textStyle = mergeTextStyleUpdate(element.textStyle, updates);
|
|
9
|
+
const textSegments = element.textSegments?.map(
|
|
10
|
+
(segment) => updateTextSegmentStyle(segment, updates, { inherited: element.textStyle })
|
|
11
|
+
);
|
|
12
|
+
return { textStyle, ...textSegments ? { textSegments } : {} };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { textRunsStylePatch };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHDQXPSHY_cjs = require('../../../chunk-HDQXPSHY.cjs');
|
|
4
|
+
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
5
|
+
require('../../../chunk-R6Z5C4DA.cjs');
|
|
6
|
+
require('../../../chunk-AT2NLO2F.cjs');
|
|
7
|
+
require('../../../chunk-57KYGHFF.cjs');
|
|
8
|
+
require('../../../chunk-V33BRBWQ.cjs');
|
|
9
|
+
|
|
10
|
+
// pptx/editor/render/text-style-scope.ts
|
|
11
|
+
var BODY_TEXT_STYLE_KEYS = /* @__PURE__ */ new Set([
|
|
12
|
+
// autofit (`a:normAutofit` / `a:spAutoFit`)
|
|
13
|
+
"autoFit",
|
|
14
|
+
"autoFitMode",
|
|
15
|
+
"autoFitFontScale",
|
|
16
|
+
"autoFitLineSpacingReduction",
|
|
17
|
+
// `a:bodyPr` anchoring, direction, rotation
|
|
18
|
+
"vAlign",
|
|
19
|
+
"anchorCenter",
|
|
20
|
+
"textDirection",
|
|
21
|
+
"textBodyRotation",
|
|
22
|
+
"upright",
|
|
23
|
+
// `a:bodyPr` columns, overflow, wrap
|
|
24
|
+
"columnCount",
|
|
25
|
+
"columnSpacing",
|
|
26
|
+
"rtlColumns",
|
|
27
|
+
"hOverflow",
|
|
28
|
+
"vertOverflow",
|
|
29
|
+
"textWrap",
|
|
30
|
+
// `a:bodyPr` insets
|
|
31
|
+
"bodyInsetLeft",
|
|
32
|
+
"bodyInsetTop",
|
|
33
|
+
"bodyInsetRight",
|
|
34
|
+
"bodyInsetBottom",
|
|
35
|
+
// paragraph geometry the block applies body-wide
|
|
36
|
+
"paragraphMarginLeft",
|
|
37
|
+
"paragraphMarginRight",
|
|
38
|
+
"paragraphIndent",
|
|
39
|
+
"paragraphSpacingBefore",
|
|
40
|
+
"paragraphSpacingAfter",
|
|
41
|
+
"lineSpacing",
|
|
42
|
+
"lineSpacingExactPt",
|
|
43
|
+
"tabStops",
|
|
44
|
+
"defaultTabSize",
|
|
45
|
+
"eaLineBreak",
|
|
46
|
+
"latinLineBreak",
|
|
47
|
+
"fontAlignment",
|
|
48
|
+
"hangingPunctuation",
|
|
49
|
+
// `a:bodyPr` flags
|
|
50
|
+
"spaceFirstLastParagraph",
|
|
51
|
+
"fromWordArt",
|
|
52
|
+
"forceAntiAlias",
|
|
53
|
+
"compatibleLineSpacing",
|
|
54
|
+
// warp and 3D scene on the body
|
|
55
|
+
"textWarpPreset",
|
|
56
|
+
"textWarpAdj",
|
|
57
|
+
"textWarpAdj2",
|
|
58
|
+
"text3d",
|
|
59
|
+
"textBodyScene3d",
|
|
60
|
+
"textBodyScene3dXml",
|
|
61
|
+
"flatText",
|
|
62
|
+
"bodyPropertiesExtLstXml"
|
|
63
|
+
]);
|
|
64
|
+
function isBodyTextStyleKey(key) {
|
|
65
|
+
return BODY_TEXT_STYLE_KEYS.has(key);
|
|
66
|
+
}
|
|
67
|
+
function splitTextStyleUpdate(updates) {
|
|
68
|
+
const body = {};
|
|
69
|
+
const run = {};
|
|
70
|
+
for (const [key, value] of Object.entries(updates)) {
|
|
71
|
+
(isBodyTextStyleKey(key) ? body : run)[key] = value;
|
|
72
|
+
}
|
|
73
|
+
return { body, run };
|
|
74
|
+
}
|
|
75
|
+
function reconcileDecorationFlags(segments, textStyle, flags) {
|
|
76
|
+
const nextStyle = { ...textStyle ?? {} };
|
|
77
|
+
let nextSegments = [...segments];
|
|
78
|
+
for (const flag of flags) {
|
|
79
|
+
const body = nextStyle[flag] ?? false;
|
|
80
|
+
const content = nextSegments.filter(chunkHDQXPSHY_cjs.isContentSegment);
|
|
81
|
+
if (content.length === 0) {
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (content.every((segment) => segment.style?.[flag] ?? body)) {
|
|
85
|
+
nextStyle[flag] = true;
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (!body) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
delete nextStyle[flag];
|
|
92
|
+
nextSegments = nextSegments.map(
|
|
93
|
+
(segment) => chunkHDQXPSHY_cjs.isContentSegment(segment) && segment.style?.[flag] === void 0 ? { ...segment, style: { ...segment.style, [flag]: true } } : segment
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
return { textStyle: nextStyle, textSegments: nextSegments };
|
|
97
|
+
}
|
|
98
|
+
var LINE_SPACING_TWIN = {
|
|
99
|
+
lineSpacing: "lineSpacingExactPt",
|
|
100
|
+
lineSpacingExactPt: "lineSpacing"
|
|
101
|
+
};
|
|
102
|
+
function withExclusiveLineSpacing(updates) {
|
|
103
|
+
const next = { ...updates };
|
|
104
|
+
for (const key of Object.keys(updates)) {
|
|
105
|
+
const twin = LINE_SPACING_TWIN[key];
|
|
106
|
+
if (twin && updates[key] !== void 0 && !(twin in updates)) {
|
|
107
|
+
next[twin] = void 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return next;
|
|
111
|
+
}
|
|
112
|
+
function overrideParagraphProperties(segments, updates, inheritedSpacing) {
|
|
113
|
+
const keys = Object.keys(updates).filter(isBodyTextStyleKey);
|
|
114
|
+
return segments.map((segment, index) => {
|
|
115
|
+
const own = segment.paragraphProperties;
|
|
116
|
+
const previous = segments[index - 1];
|
|
117
|
+
const inherited = index === 0 || previous?.isParagraphBreak || previous?.text === "\n" && !previous.isLineBreak ? inheritedSpacing?.[segment.paragraphLevel ?? 0] : void 0;
|
|
118
|
+
const pinned = keys.filter(
|
|
119
|
+
(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)
|
|
120
|
+
);
|
|
121
|
+
const declared = keys.filter((key) => {
|
|
122
|
+
const twin = LINE_SPACING_TWIN[key];
|
|
123
|
+
return own && (key in own || twin !== void 0 && twin in own) || pinned.includes(key) || twin !== void 0 && pinned.includes(twin);
|
|
124
|
+
});
|
|
125
|
+
if (declared.length === 0) {
|
|
126
|
+
return segment;
|
|
127
|
+
}
|
|
128
|
+
const next = { ...own };
|
|
129
|
+
for (const key of declared) {
|
|
130
|
+
if (updates[key] === void 0) {
|
|
131
|
+
delete next[key];
|
|
132
|
+
} else {
|
|
133
|
+
Object.assign(next, { [key]: updates[key] });
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return { ...segment, paragraphProperties: next };
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function overrideParagraphIndents(element, updates) {
|
|
140
|
+
const { paragraphMarginLeft, paragraphIndent } = updates;
|
|
141
|
+
if (!chunkXZPZHXV4_cjs.hasTextProperties(element) || !element.paragraphIndents || paragraphMarginLeft === void 0 && paragraphIndent === void 0) {
|
|
142
|
+
return {};
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
paragraphIndents: element.paragraphIndents.map((entry) => ({
|
|
146
|
+
...entry,
|
|
147
|
+
...paragraphMarginLeft === void 0 ? {} : { marginLeft: paragraphMarginLeft },
|
|
148
|
+
...paragraphIndent === void 0 ? {} : { indent: paragraphIndent }
|
|
149
|
+
}))
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function paragraphOverridePatch(element, updates) {
|
|
153
|
+
const current = chunkXZPZHXV4_cjs.hasTextProperties(element) ? element.textSegments : void 0;
|
|
154
|
+
const overridden = current && overrideParagraphProperties(
|
|
155
|
+
current,
|
|
156
|
+
updates,
|
|
157
|
+
chunkXZPZHXV4_cjs.hasTextProperties(element) ? element.textStyle?.inheritedParagraphSpacing : void 0
|
|
158
|
+
);
|
|
159
|
+
const changed = overridden?.some((segment, index) => segment !== current?.[index]);
|
|
160
|
+
return {
|
|
161
|
+
...changed ? { textSegments: overridden } : {},
|
|
162
|
+
...overrideParagraphIndents(element, updates)
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
exports.BODY_TEXT_STYLE_KEYS = BODY_TEXT_STYLE_KEYS;
|
|
167
|
+
exports.isBodyTextStyleKey = isBodyTextStyleKey;
|
|
168
|
+
exports.overrideParagraphIndents = overrideParagraphIndents;
|
|
169
|
+
exports.overrideParagraphProperties = overrideParagraphProperties;
|
|
170
|
+
exports.paragraphOverridePatch = paragraphOverridePatch;
|
|
171
|
+
exports.reconcileDecorationFlags = reconcileDecorationFlags;
|
|
172
|
+
exports.splitTextStyleUpdate = splitTextStyleUpdate;
|
|
173
|
+
exports.withExclusiveLineSpacing = withExclusiveLineSpacing;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { i as TextStyle, r as TextSegment } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
import { m as PptxElement } from "../../chunks/elements-DD3UGOMd.js";
|
|
3
|
+
import { TextDecorationFlag } from "./text-content-style.js";
|
|
4
|
+
//#region pptx/editor/render/text-style-scope.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
|
|
7
|
+
* warp / 3D scene, autofit, and the paragraph geometry the block builder
|
|
8
|
+
* folds in as the body-wide fallback (indent, margins, spacing).
|
|
9
|
+
*/
|
|
10
|
+
export declare const BODY_TEXT_STYLE_KEYS: ReadonlySet<keyof TextStyle>;
|
|
11
|
+
/** Whether `key` is read from the element body rather than a run. */
|
|
12
|
+
export declare function isBodyTextStyleKey(key: string): boolean;
|
|
13
|
+
/** An update partitioned by the level the renderer reads each key from. */
|
|
14
|
+
export interface TextStyleUpdateSplit {
|
|
15
|
+
/** Keys to merge into `element.textStyle` regardless of any selection. */
|
|
16
|
+
body: Partial<TextStyle>;
|
|
17
|
+
/** Keys to scope to the selected runs (or every run without a selection). */
|
|
18
|
+
run: Partial<TextStyle>;
|
|
19
|
+
}
|
|
20
|
+
/** Partition `updates` into its body-level and run-level halves. Keys set to `undefined` (clears) are kept. */
|
|
21
|
+
export declare function splitTextStyleUpdate(updates: Partial<TextStyle>): TextStyleUpdateSplit;
|
|
22
|
+
/**
|
|
23
|
+
* Recompute the body-level value of each `flag` from the runs after a
|
|
24
|
+
* run-scoped edit: `true` only when every content run is effectively on;
|
|
25
|
+
* otherwise the body flag is dropped, and any run that was only inheriting it
|
|
26
|
+
* gets it written explicitly so its own look does not change.
|
|
27
|
+
*/
|
|
28
|
+
export declare function reconcileDecorationFlags(segments: readonly TextSegment[], textStyle: TextStyle | undefined, flags: readonly TextDecorationFlag[]): {
|
|
29
|
+
textStyle: TextStyle;
|
|
30
|
+
textSegments: TextSegment[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Clear the other line-spacing mode when an update sets one. Without this a
|
|
34
|
+
* multiplier applied over an authored `a:spcPts` keeps the exact size, which
|
|
35
|
+
* the renderer prefers, so the edit shows nothing.
|
|
36
|
+
*/
|
|
37
|
+
export declare function withExclusiveLineSpacing(updates: Partial<TextStyle>): Partial<TextStyle>;
|
|
38
|
+
/**
|
|
39
|
+
* Apply a body-wide paragraph update over each paragraph's own `a:pPr`.
|
|
40
|
+
*
|
|
41
|
+
* A paragraph's authored properties (`segment.paragraphProperties`) win over
|
|
42
|
+
* `element.textStyle` both on screen and on save, so an element-wide line
|
|
43
|
+
* spacing or indent change is invisible on any paragraph that declares its
|
|
44
|
+
* own. Body-level keys the paragraph already declares (or whose line-spacing
|
|
45
|
+
* twin it declares) are rewritten; run-level keys keep their old behaviour.
|
|
46
|
+
* When parsed inheritance is available, an explicit line-spacing edit overrides
|
|
47
|
+
* a conflicting inherited value on the paragraph's first segment. Equal body
|
|
48
|
+
* values still represent an edit, so comparing against the body baseline cannot
|
|
49
|
+
* determine authoring intent. The inheritance snapshot itself stays unchanged.
|
|
50
|
+
* Pass `updates` through {@link withExclusiveLineSpacing} first.
|
|
51
|
+
*/
|
|
52
|
+
export declare function overrideParagraphProperties(segments: readonly TextSegment[], updates: Partial<TextStyle>, inheritedSpacing?: TextStyle['inheritedParagraphSpacing']): TextSegment[];
|
|
53
|
+
/** The parts of a text element below its body style that a paragraph update rewrites. */
|
|
54
|
+
export interface ParagraphLevelPatch {
|
|
55
|
+
textSegments?: TextSegment[];
|
|
56
|
+
paragraphIndents?: {
|
|
57
|
+
marginLeft?: number;
|
|
58
|
+
indent?: number;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The per-paragraph indents with an element-wide indent applied. The renderer
|
|
63
|
+
* reads these instead of `textStyle` once a body has any
|
|
64
|
+
* (`text-block-style.ts`), so without this an indent change only shows after
|
|
65
|
+
* a save and reload. Empty when there is nothing to rewrite.
|
|
66
|
+
*/
|
|
67
|
+
export declare function overrideParagraphIndents(element: PptxElement, updates: Partial<TextStyle>): Pick<ParagraphLevelPatch, 'paragraphIndents'>;
|
|
68
|
+
/**
|
|
69
|
+
* The paragraph-level half of an element-wide text-style patch: the segments
|
|
70
|
+
* whose own `a:pPr` had to change and the rewritten indents. Empty when
|
|
71
|
+
* nothing below the body changes, so a plain body edit does not resend every
|
|
72
|
+
* segment. Pass `updates` through {@link withExclusiveLineSpacing} first.
|
|
73
|
+
*/
|
|
74
|
+
export declare function paragraphOverridePatch(element: PptxElement, updates: Partial<TextStyle>): ParagraphLevelPatch;
|
|
75
|
+
//#endregion
|
|
76
|
+
//# sourceMappingURL=text-style-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-style-scope.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-style-scope.ts"],"mappings":";;;;;;;;;qBA8Ba,sBAAsB,kBAAkB;;wBAuDrC,mBAAmB;;iBAKlB;;EAEhB,MAAM,QAAQ;;EAEd,KAAK,QAAQ;;;wBAIE,qBAAqB,SAAS,QAAQ,aAAa;;;;;;;wBAenD,yBACf,mBAAmB,eACnB,WAAW,uBACX,gBAAgB;EACZ,WAAW;EAAW,cAAc;;;;;;;wBAqCzB,yBAAyB,SAAS,QAAQ,aAAa,QAAQ;;;;;;;;;;;;;;;wBAyB/D,4BACf,mBAAmB,eACnB,SAAS,QAAQ,YACjB,mBAAmB,yCACjB;;iBA6Cc;EAChB,eAAe;EACf;IAAqB;IAAqB;;;;;;;;;wBAS3B,yBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK;;;;;;;wBAwBQ,uBACf,SAAS,aACT,SAAS,QAAQ,aACf"}
|