ooxml-ui 1.9.0 → 1.11.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/custom-elements.json +4 -1
- package/dist/{chunk-O7APCA5N.js → chunk-FUQYUUIQ.js} +2 -2
- package/dist/{chunk-W6AV3GHC.js → chunk-GI3WX6LZ.js} +1 -1
- package/dist/{chunk-SNV6YKPC.js → chunk-HZSYGNNB.js} +2 -1
- package/dist/{chunk-SKYBYVYH.js → chunk-JZP5L2AZ.js} +2 -2
- package/dist/{chunk-PH7IBZOZ.js → chunk-QVPO35YI.js} +2 -2
- package/dist/controls.js +1 -1
- package/dist/docx/print-border-width.d.ts +2 -0
- package/dist/docx/print-table.d.ts +1 -1
- package/dist/docx.js +96 -11
- package/dist/form/select.d.ts +3 -0
- package/dist/form/select.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/pptx/ai/index.cjs +7 -6
- package/dist/pptx/ai/index.mjs +4 -3
- package/dist/pptx/{chart-3d-view-scene-P6MAFEGL.mjs → chart-3d-view-scene-MYQRQDNF.mjs} +1 -0
- package/dist/pptx/{chart-3d-view-scene-V74F7ZOC.cjs → chart-3d-view-scene-WX23DR2E.cjs} +1 -0
- package/dist/pptx/{chat-history-idb-PGLJPVOI.cjs → chat-history-idb-FJWHIDOK.cjs} +3 -2
- package/dist/pptx/{chat-history-idb-XXPB3Q4U.mjs → chat-history-idb-XWRFLX2R.mjs} +2 -1
- package/dist/pptx/{chunk-MKVKISFW.mjs → chunk-3IN66FIL.mjs} +1 -1
- package/dist/pptx/{chunk-F7BBPOVJ.mjs → chunk-5AD3V3PA.mjs} +1 -0
- package/dist/pptx/{chunk-BPAA5FSB.mjs → chunk-6B3UUVRS.mjs} +1 -1
- package/dist/pptx/chunk-ANKJE2PT.mjs +147 -0
- package/dist/pptx/{chunk-BFZDO2DY.cjs → chunk-BPQVJLHW.cjs} +7423 -641
- package/dist/pptx/{chunk-PKDISDDZ.cjs → chunk-C22MU5CA.cjs} +2 -2
- package/dist/pptx/{chunk-526IHNIH.cjs → chunk-C5OJXCCB.cjs} +2 -2
- package/dist/pptx/{chunk-A5MANNJR.cjs → chunk-G2LGZNTI.cjs} +1 -1
- package/dist/pptx/{chunk-KBCKCW5M.mjs → chunk-J3T77ZMS.mjs} +7316 -613
- package/dist/pptx/{chunk-LVDF75JU.mjs → chunk-LLENQTWZ.mjs} +1 -1
- package/dist/pptx/chunk-MF3JURQN.cjs +22 -0
- package/dist/pptx/{chunk-Y4LTLCQP.cjs → chunk-OJFD3SHS.cjs} +26 -47
- package/dist/pptx/chunk-PBZWDEXQ.cjs +10 -0
- package/dist/pptx/chunk-PEDGPFLR.mjs +1 -0
- package/dist/pptx/{chunk-7KPDES3X.mjs → chunk-PMURSMHH.mjs} +6 -35
- package/dist/pptx/{chunk-ZAOYPCAM.mjs → chunk-QCP2XYJW.mjs} +2 -2
- package/dist/pptx/chunk-T34B6TZT.cjs +199 -0
- package/dist/pptx/chunk-U5DDQYSF.mjs +19 -0
- package/dist/pptx/{chunk-UEF4BFW4.cjs → chunk-XFQ2RD4I.cjs} +7 -7
- package/dist/pptx/{chunk-QVYJB7G2.cjs → chunk-Y7CDPPMZ.cjs} +1 -0
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +238 -227
- package/dist/pptx/dom/index.mjs +31 -20
- package/dist/pptx/dom/load-presentation.d.ts +1 -0
- package/dist/pptx/dom/load-presentation.d.ts.map +1 -1
- package/dist/pptx/export/canvas-color-fix.cjs +1 -0
- package/dist/pptx/export/canvas-color-fix.mjs +1 -0
- package/dist/pptx/export/handout-layout.cjs +1 -0
- package/dist/pptx/export/handout-layout.mjs +1 -0
- package/dist/pptx/export/handout-master-chrome.cjs +1 -0
- package/dist/pptx/export/handout-master-chrome.mjs +1 -0
- package/dist/pptx/export/html-escape.cjs +1 -0
- package/dist/pptx/export/html-escape.mjs +1 -0
- package/dist/pptx/export/html2canvas-clone.cjs +3 -2
- package/dist/pptx/export/html2canvas-clone.mjs +2 -1
- package/dist/pptx/export/pdf-page-size.cjs +1 -0
- package/dist/pptx/export/pdf-page-size.mjs +1 -0
- package/dist/pptx/export/print-document.cjs +1 -0
- package/dist/pptx/export/print-document.mjs +1 -0
- package/dist/pptx/export/video-plan.cjs +1 -0
- package/dist/pptx/export/video-plan.mjs +1 -0
- package/dist/pptx/i18n/index.cjs +7 -6
- package/dist/pptx/i18n/index.mjs +2 -1
- package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
- package/dist/pptx/index.cjs +2956 -2919
- package/dist/pptx/index.mjs +9 -8
- package/dist/pptx/loader/index.cjs +1 -0
- package/dist/pptx/loader/index.mjs +1 -0
- package/dist/pptx/render/animation-after-effect-authoring.d.ts +1 -38
- package/dist/pptx/render/animation-after-effect-authoring.d.ts.map +1 -1
- package/dist/pptx/render/animation-after-effect.d.ts +2 -2
- package/dist/pptx/render/animation-after-effect.d.ts.map +1 -1
- package/dist/pptx/render/animation-authoring.cjs +40 -39
- package/dist/pptx/render/animation-authoring.d.ts +2 -11
- package/dist/pptx/render/animation-authoring.d.ts.map +1 -1
- package/dist/pptx/render/animation-authoring.mjs +2 -1
- package/dist/pptx/render/animation-fill-repeat.d.ts +3 -53
- package/dist/pptx/render/animation-fill-repeat.d.ts.map +1 -1
- package/dist/pptx/render/animation-opacity-playback.d.ts +9 -0
- package/dist/pptx/render/animation-opacity-playback.d.ts.map +1 -0
- package/dist/pptx/render/animation-opacity-style.d.ts +6 -0
- package/dist/pptx/render/animation-opacity-style.d.ts.map +1 -0
- package/dist/pptx/render/animation-parallel-composition.d.ts.map +1 -1
- package/dist/pptx/render/animation-playback-engine.d.ts +1 -1
- package/dist/pptx/render/animation-playback-engine.d.ts.map +1 -1
- package/dist/pptx/render/animation-playback-seek.d.ts.map +1 -1
- package/dist/pptx/render/animation-playback-steps.d.ts.map +1 -1
- package/dist/pptx/render/animation-preset-labels.cjs +1 -0
- package/dist/pptx/render/animation-preset-labels.mjs +1 -0
- package/dist/pptx/render/animation-timeline-engine.d.ts +4 -0
- package/dist/pptx/render/animation-timeline-engine.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-group.d.ts +2 -0
- package/dist/pptx/render/animation-timeline-group.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-regular-step.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-rows.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-sequence-builder.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-step-effect.d.ts +2 -1
- package/dist/pptx/render/animation-timeline-step-effect.d.ts.map +1 -1
- package/dist/pptx/render/animation-timeline-step.d.ts +3 -1
- package/dist/pptx/render/animation-timeline-step.d.ts.map +1 -1
- package/dist/pptx/render/animation-visibility-keyframe.d.ts +8 -0
- package/dist/pptx/render/animation-visibility-keyframe.d.ts.map +1 -0
- package/dist/pptx/render/background-animation-layers.d.ts +12 -0
- package/dist/pptx/render/background-animation-layers.d.ts.map +1 -0
- package/dist/pptx/render/chart-combo-stock.cjs +1 -0
- package/dist/pptx/render/chart-combo-stock.mjs +1 -0
- package/dist/pptx/render/chart-overlays.cjs +1 -0
- package/dist/pptx/render/chart-overlays.mjs +1 -0
- package/dist/pptx/render/chart-surface-treemap.cjs +1 -0
- package/dist/pptx/render/chart-surface-treemap.mjs +1 -0
- package/dist/pptx/render/chart-view-model.cjs +1 -0
- package/dist/pptx/render/chart-view-model.mjs +1 -0
- package/dist/pptx/render/chart-waterfall-map.cjs +1 -0
- package/dist/pptx/render/chart-waterfall-map.mjs +1 -0
- package/dist/pptx/render/content-part-strokes.cjs +1 -0
- package/dist/pptx/render/content-part-strokes.mjs +1 -0
- package/dist/pptx/render/context-menu-target.cjs +1 -0
- package/dist/pptx/render/context-menu-target.mjs +1 -0
- package/dist/pptx/render/custom-fonts.cjs +1 -0
- package/dist/pptx/render/custom-fonts.mjs +1 -0
- package/dist/pptx/render/customization/customization-resolve-ribbon.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-resolve.d.ts +1 -0
- package/dist/pptx/render/customization/customization-resolve.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-types.d.ts +4 -0
- package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
- package/dist/pptx/render/customization/index.d.ts +1 -0
- package/dist/pptx/render/customization/index.d.ts.map +1 -1
- package/dist/pptx/render/customization/inspector-customization.d.ts +6 -0
- package/dist/pptx/render/customization/inspector-customization.d.ts.map +1 -0
- package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +6 -0
- package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
- package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +6 -0
- package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
- package/dist/pptx/render/customization/ribbon-control-visibility.d.ts +0 -20
- package/dist/pptx/render/customization/ribbon-control-visibility.d.ts.map +1 -1
- package/dist/pptx/render/element-hit-test.cjs +1 -0
- package/dist/pptx/render/element-hit-test.mjs +1 -0
- package/dist/pptx/render/field-context.d.ts +2 -0
- package/dist/pptx/render/field-context.d.ts.map +1 -1
- package/dist/pptx/render/font-catalog.cjs +1 -0
- package/dist/pptx/render/font-catalog.mjs +1 -0
- package/dist/pptx/render/font-family-update.d.ts +2 -0
- package/dist/pptx/render/font-family-update.d.ts.map +1 -0
- package/dist/pptx/render/format-painter.cjs +7 -6
- package/dist/pptx/render/format-painter.mjs +4 -3
- package/dist/pptx/render/hyperlink-security.cjs +1 -0
- package/dist/pptx/render/hyperlink-security.mjs +1 -0
- package/dist/pptx/render/image-file-insertion.cjs +1 -0
- package/dist/pptx/render/image-file-insertion.mjs +1 -0
- package/dist/pptx/render/index.d.ts +3 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/ink-rendering.cjs +1 -0
- package/dist/pptx/render/ink-rendering.mjs +1 -0
- package/dist/pptx/render/inline-selection-utils.d.ts +2 -1
- package/dist/pptx/render/inline-selection-utils.d.ts.map +1 -1
- package/dist/pptx/render/inspector-helpers.cjs +18 -13
- package/dist/pptx/render/inspector-helpers.d.ts +8 -0
- package/dist/pptx/render/inspector-helpers.d.ts.map +1 -1
- package/dist/pptx/render/inspector-helpers.mjs +3 -2
- package/dist/pptx/render/layout-gallery.cjs +1 -0
- package/dist/pptx/render/layout-gallery.mjs +1 -0
- package/dist/pptx/render/layout-preview.cjs +1 -0
- package/dist/pptx/render/layout-preview.mjs +1 -0
- package/dist/pptx/render/model3d-scene.cjs +1 -0
- package/dist/pptx/render/model3d-scene.mjs +1 -0
- package/dist/pptx/render/paragraph-geometry-overrides.d.ts +1 -33
- package/dist/pptx/render/paragraph-geometry-overrides.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-spacing.d.ts +2 -0
- package/dist/pptx/render/paragraph-spacing.d.ts.map +1 -1
- package/dist/pptx/render/picture-frame.d.ts +20 -0
- package/dist/pptx/render/picture-frame.d.ts.map +1 -1
- package/dist/pptx/render/presentation-print-settings.cjs +1 -0
- package/dist/pptx/render/presentation-print-settings.mjs +1 -0
- package/dist/pptx/render/remap-text.cjs +1 -0
- package/dist/pptx/render/remap-text.mjs +1 -0
- package/dist/pptx/render/ribbon-animations-state.cjs +7 -6
- package/dist/pptx/render/ribbon-animations-state.mjs +3 -2
- package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts +3 -3
- package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts +21 -6
- package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts +3 -1
- package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-home-crop.d.ts +37 -0
- package/dist/pptx/render/ribbon-home-crop.d.ts.map +1 -0
- package/dist/pptx/render/ribbon-home-families-objects.d.ts +5 -2
- package/dist/pptx/render/ribbon-home-families-objects.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-home-spec.d.ts +1 -1
- package/dist/pptx/render/ribbon-home-spec.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-home-state-extras.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-home-state.d.ts +1 -0
- package/dist/pptx/render/ribbon-home-state.d.ts.map +1 -1
- package/dist/pptx/render/selection-format-state.d.ts +3 -5
- package/dist/pptx/render/selection-format-state.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-case-transform.cjs +1 -0
- package/dist/pptx/render/text-case-transform.mjs +1 -0
- package/dist/pptx/render/text-field-substitution.d.ts +12 -0
- package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-style-scope.d.ts +1 -87
- package/dist/pptx/render/text-style-scope.d.ts.map +1 -1
- package/dist/pptx/render/text-style-update.d.ts.map +1 -1
- package/dist/pptx/render/update-text-segment-style.d.ts +1 -5
- package/dist/pptx/render/update-text-segment-style.d.ts.map +1 -1
- package/dist/pptx/render/viewer-root-options.d.ts +2 -0
- package/dist/pptx/render/viewer-root-options.d.ts.map +1 -1
- package/dist/pptx/theme/index.cjs +1 -0
- package/dist/pptx/theme/index.mjs +1 -0
- package/dist/pptx/{view-scene-GHBN7QMR.mjs → view-scene-BSTOVMHA.mjs} +1 -0
- package/dist/pptx/{view-scene-4ZFUCP6S.cjs → view-scene-CKYHS2OP.cjs} +1 -0
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/ribbon-home-controls.d.ts.map +1 -1
- package/dist/pptx/web-components/ribbon-home-styles.d.ts +1 -1
- package/dist/pptx/web-components/ribbon-home-styles.d.ts.map +1 -1
- package/dist/pptx/web-components/ribbon-home.d.ts +2 -0
- package/dist/pptx/web-components/ribbon-home.d.ts.map +1 -1
- package/dist/pptx/web-components/title-bar.d.ts.map +1 -1
- package/dist/{presentation-preview-HF3GZ2VD.js → presentation-preview-VIIU7E2S.js} +1 -1
- package/dist/teams.js +3 -3
- package/dist/visio/viewer-field-choice.d.ts +7 -0
- package/dist/visio.js +94 -9
- package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
- package/dist/xlsx/dialogs/pivot-page-filter.d.ts +9 -0
- package/dist/xlsx/dialogs/pivot-values.d.ts +10 -0
- package/dist/xlsx.js +240 -20
- package/package.json +5 -5
- package/dist/pptx/chunk-CENGE3TZ.mjs +0 -10
- package/dist/pptx/chunk-HWW2UVUP.cjs +0 -363
- package/dist/pptx/chunk-OGJRSAGH.cjs +0 -12
- package/dist/pptx/chunk-SABFKDRM.mjs +0 -286
|
@@ -90,7 +90,7 @@ function createLocalStorageBackend(namespace) {
|
|
|
90
90
|
}
|
|
91
91
|
async function resolveBackend(dbName, namespace) {
|
|
92
92
|
try {
|
|
93
|
-
const { openChatDb, createIdbBackend } = await import('./chat-history-idb-
|
|
93
|
+
const { openChatDb, createIdbBackend } = await import('./chat-history-idb-XWRFLX2R.mjs');
|
|
94
94
|
const db = await openChatDb(dbName);
|
|
95
95
|
return createIdbBackend(db);
|
|
96
96
|
} catch {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
|
|
21
|
+
exports.__export = __export;
|
|
22
|
+
exports.__reExport = __reExport;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var pptx = require('ooxml-core/pptx');
|
|
4
|
+
|
|
3
5
|
// src/pptx/render/animation-direction-options.ts
|
|
4
6
|
var DIRECTION_VALUES = [
|
|
5
7
|
"fromTop",
|
|
@@ -51,8 +53,6 @@ function directionValuesFor(slideAnimations, elementId) {
|
|
|
51
53
|
const entrance = directionValuesForPreset(entry.entrance);
|
|
52
54
|
return entrance.length > 0 ? entrance : directionValuesForPreset(entry.exit);
|
|
53
55
|
}
|
|
54
|
-
|
|
55
|
-
// src/pptx/render/animation-authoring.ts
|
|
56
56
|
var ENTRANCE_PRESET_VALUES = [
|
|
57
57
|
"appear",
|
|
58
58
|
"fadeIn",
|
|
@@ -115,42 +115,12 @@ var SEQUENCE_VALUES = [
|
|
|
115
115
|
"byWord",
|
|
116
116
|
"byLetter"
|
|
117
117
|
];
|
|
118
|
-
var DEFAULT_DURATION_MS = 500;
|
|
119
|
-
var DEFAULT_TRIGGER = "onClick";
|
|
120
|
-
function animationFor(slideAnimations, elementId) {
|
|
121
|
-
return slideAnimations.find((a) => a.elementId === elementId);
|
|
122
|
-
}
|
|
123
|
-
function hasAnimation(slideAnimations, elementId) {
|
|
124
|
-
const entry = animationFor(slideAnimations, elementId);
|
|
125
|
-
return Boolean(entry && (entry.entrance || entry.exit || entry.emphasis || entry.motionPath));
|
|
126
|
-
}
|
|
127
118
|
function showDirectionPicker(slideAnimations, elementId) {
|
|
128
119
|
return directionValuesFor(slideAnimations, elementId).length > 0;
|
|
129
120
|
}
|
|
130
|
-
function upsert(anims, elementId, updater) {
|
|
131
|
-
const idx = anims.findIndex((a) => a.elementId === elementId);
|
|
132
|
-
if (idx >= 0) {
|
|
133
|
-
const updated2 = updater({ ...anims[idx] });
|
|
134
|
-
if (updated2 === null) {
|
|
135
|
-
return anims.filter((a) => a.elementId !== elementId);
|
|
136
|
-
}
|
|
137
|
-
return anims.map((a, i) => i === idx ? updated2 : a);
|
|
138
|
-
}
|
|
139
|
-
const created = {
|
|
140
|
-
elementId,
|
|
141
|
-
durationMs: DEFAULT_DURATION_MS,
|
|
142
|
-
order: anims.length,
|
|
143
|
-
trigger: DEFAULT_TRIGGER
|
|
144
|
-
};
|
|
145
|
-
const updated = updater(created);
|
|
146
|
-
if (updated === null) {
|
|
147
|
-
return [...anims];
|
|
148
|
-
}
|
|
149
|
-
return [...anims, updated];
|
|
150
|
-
}
|
|
151
121
|
function setEffect(anims, elementId, group, preset) {
|
|
152
122
|
const value = preset === "none" ? void 0 : preset;
|
|
153
|
-
return upsert(anims, elementId, (cur) => {
|
|
123
|
+
return pptx.upsert(anims, elementId, (cur) => {
|
|
154
124
|
const next = { ...cur, [group]: value };
|
|
155
125
|
if (!next.entrance && !next.exit && !next.emphasis && !next.motionPath) {
|
|
156
126
|
return null;
|
|
@@ -168,7 +138,7 @@ function setAnimationEmphasis(anims, elementId, preset) {
|
|
|
168
138
|
return setEffect(anims, elementId, "emphasis", preset);
|
|
169
139
|
}
|
|
170
140
|
function setTrigger(anims, elementId, trigger) {
|
|
171
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, ...triggerChangePatch(cur, trigger) }));
|
|
141
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, ...triggerChangePatch(cur, trigger) }));
|
|
172
142
|
}
|
|
173
143
|
function triggerChangePatch(current, trigger) {
|
|
174
144
|
const keepsTarget = trigger === current?.trigger && (trigger === "onShapeClick" || trigger === "onMediaBookmark");
|
|
@@ -179,32 +149,32 @@ function triggerChangePatch(current, trigger) {
|
|
|
179
149
|
} : { trigger, triggerShapeId: void 0, triggerBookmark: void 0 };
|
|
180
150
|
}
|
|
181
151
|
function setTriggerShapeId(anims, elementId, triggerShapeId) {
|
|
182
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, triggerShapeId }));
|
|
152
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, triggerShapeId }));
|
|
183
153
|
}
|
|
184
154
|
function setDuration(anims, elementId, durationMs) {
|
|
185
155
|
const clamped = Math.max(100, Math.min(1e4, durationMs));
|
|
186
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, durationMs: clamped }));
|
|
156
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, durationMs: clamped }));
|
|
187
157
|
}
|
|
188
158
|
function setDelay(anims, elementId, delayMs) {
|
|
189
159
|
const clamped = Math.max(0, Math.min(1e4, delayMs));
|
|
190
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, delayMs: clamped }));
|
|
160
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, delayMs: clamped }));
|
|
191
161
|
}
|
|
192
162
|
function setTimingCurve(anims, elementId, timingCurve) {
|
|
193
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, timingCurve }));
|
|
163
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, timingCurve }));
|
|
194
164
|
}
|
|
195
165
|
function setDirection(anims, elementId, direction) {
|
|
196
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, direction }));
|
|
166
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, direction }));
|
|
197
167
|
}
|
|
198
168
|
function setSequence(anims, elementId, sequence) {
|
|
199
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, sequence }));
|
|
169
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, sequence }));
|
|
200
170
|
}
|
|
201
171
|
function setRepeatCount(anims, elementId, repeatCount) {
|
|
202
172
|
const clamped = Math.max(1, Math.min(100, repeatCount));
|
|
203
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, repeatCount: clamped }));
|
|
173
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, repeatCount: clamped }));
|
|
204
174
|
}
|
|
205
175
|
function setRepeatMode(anims, elementId, repeatMode) {
|
|
206
176
|
const value = repeatMode === "none" ? void 0 : repeatMode;
|
|
207
|
-
return upsert(anims, elementId, (cur) => ({ ...cur, repeatMode: value }));
|
|
177
|
+
return pptx.upsert(anims, elementId, (cur) => ({ ...cur, repeatMode: value }));
|
|
208
178
|
}
|
|
209
179
|
function removeAnimation(anims, elementId) {
|
|
210
180
|
const idx = anims.findIndex((a) => a.elementId === elementId);
|
|
@@ -240,9 +210,9 @@ function applyAnimationPreset(animations, elementId, group, preset) {
|
|
|
240
210
|
{
|
|
241
211
|
elementId,
|
|
242
212
|
[group]: preset,
|
|
243
|
-
durationMs:
|
|
213
|
+
durationMs: pptx.DEFAULT_ANIMATION_DURATION_MS,
|
|
244
214
|
order: animations.length,
|
|
245
|
-
trigger:
|
|
215
|
+
trigger: pptx.DEFAULT_ANIMATION_TRIGGER
|
|
246
216
|
}
|
|
247
217
|
];
|
|
248
218
|
}
|
|
@@ -284,6 +254,18 @@ function reindexOrder(anims) {
|
|
|
284
254
|
return anims.map((a, i) => ({ ...a, order: i }));
|
|
285
255
|
}
|
|
286
256
|
|
|
257
|
+
Object.defineProperty(exports, "animationFor", {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function () { return pptx.animationFor; }
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "hasAnimation", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return pptx.hasAnimation; }
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "upsert", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return pptx.upsert; }
|
|
268
|
+
});
|
|
287
269
|
exports.ANIMATION_DIRECTION_LABEL_KEYS = ANIMATION_DIRECTION_LABEL_KEYS;
|
|
288
270
|
exports.DIRECTIONAL_PRESETS = DIRECTIONAL_PRESETS;
|
|
289
271
|
exports.DIRECTION_VALUES = DIRECTION_VALUES;
|
|
@@ -295,13 +277,11 @@ exports.SEQUENCE_VALUES = SEQUENCE_VALUES;
|
|
|
295
277
|
exports.TIMING_CURVE_VALUES = TIMING_CURVE_VALUES;
|
|
296
278
|
exports.TRIGGER_OPTIONS = TRIGGER_OPTIONS;
|
|
297
279
|
exports.TRIGGER_VALUES = TRIGGER_VALUES;
|
|
298
|
-
exports.animationFor = animationFor;
|
|
299
280
|
exports.applyAnimationPreset = applyAnimationPreset;
|
|
300
281
|
exports.buildAnimationTimelineBars = buildAnimationTimelineBars;
|
|
301
282
|
exports.directionValuesFor = directionValuesFor;
|
|
302
283
|
exports.directionValuesForPreset = directionValuesForPreset;
|
|
303
284
|
exports.effectiveDirection = effectiveDirection;
|
|
304
|
-
exports.hasAnimation = hasAnimation;
|
|
305
285
|
exports.removeAnimation = removeAnimation;
|
|
306
286
|
exports.removeElementAnimation = removeElementAnimation;
|
|
307
287
|
exports.reorderAnimationDown = reorderAnimationDown;
|
|
@@ -321,4 +301,3 @@ exports.setTrigger = setTrigger;
|
|
|
321
301
|
exports.setTriggerShapeId = setTriggerShapeId;
|
|
322
302
|
exports.showDirectionPicker = showDirectionPicker;
|
|
323
303
|
exports.triggerChangePatch = triggerChangePatch;
|
|
324
|
-
exports.upsert = upsert;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var updateTextSegmentStyle = require('ooxml-core/pptx/editor/render/update-text-segment-style');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "updateTextSegmentStyle", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return updateTextSegmentStyle.updateTextSegmentStyle; }
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { updateTextSegmentStyle } from 'ooxml-core/pptx/editor/render/update-text-segment-style';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { upsert, DEFAULT_ANIMATION_TRIGGER, DEFAULT_ANIMATION_DURATION_MS } from 'ooxml-core/pptx';
|
|
2
|
+
export { animationFor, hasAnimation, upsert } from 'ooxml-core/pptx';
|
|
3
|
+
|
|
1
4
|
// src/pptx/render/animation-direction-options.ts
|
|
2
5
|
var DIRECTION_VALUES = [
|
|
3
6
|
"fromTop",
|
|
@@ -49,8 +52,6 @@ function directionValuesFor(slideAnimations, elementId) {
|
|
|
49
52
|
const entrance = directionValuesForPreset(entry.entrance);
|
|
50
53
|
return entrance.length > 0 ? entrance : directionValuesForPreset(entry.exit);
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
// src/pptx/render/animation-authoring.ts
|
|
54
55
|
var ENTRANCE_PRESET_VALUES = [
|
|
55
56
|
"appear",
|
|
56
57
|
"fadeIn",
|
|
@@ -113,39 +114,9 @@ var SEQUENCE_VALUES = [
|
|
|
113
114
|
"byWord",
|
|
114
115
|
"byLetter"
|
|
115
116
|
];
|
|
116
|
-
var DEFAULT_DURATION_MS = 500;
|
|
117
|
-
var DEFAULT_TRIGGER = "onClick";
|
|
118
|
-
function animationFor(slideAnimations, elementId) {
|
|
119
|
-
return slideAnimations.find((a) => a.elementId === elementId);
|
|
120
|
-
}
|
|
121
|
-
function hasAnimation(slideAnimations, elementId) {
|
|
122
|
-
const entry = animationFor(slideAnimations, elementId);
|
|
123
|
-
return Boolean(entry && (entry.entrance || entry.exit || entry.emphasis || entry.motionPath));
|
|
124
|
-
}
|
|
125
117
|
function showDirectionPicker(slideAnimations, elementId) {
|
|
126
118
|
return directionValuesFor(slideAnimations, elementId).length > 0;
|
|
127
119
|
}
|
|
128
|
-
function upsert(anims, elementId, updater) {
|
|
129
|
-
const idx = anims.findIndex((a) => a.elementId === elementId);
|
|
130
|
-
if (idx >= 0) {
|
|
131
|
-
const updated2 = updater({ ...anims[idx] });
|
|
132
|
-
if (updated2 === null) {
|
|
133
|
-
return anims.filter((a) => a.elementId !== elementId);
|
|
134
|
-
}
|
|
135
|
-
return anims.map((a, i) => i === idx ? updated2 : a);
|
|
136
|
-
}
|
|
137
|
-
const created = {
|
|
138
|
-
elementId,
|
|
139
|
-
durationMs: DEFAULT_DURATION_MS,
|
|
140
|
-
order: anims.length,
|
|
141
|
-
trigger: DEFAULT_TRIGGER
|
|
142
|
-
};
|
|
143
|
-
const updated = updater(created);
|
|
144
|
-
if (updated === null) {
|
|
145
|
-
return [...anims];
|
|
146
|
-
}
|
|
147
|
-
return [...anims, updated];
|
|
148
|
-
}
|
|
149
120
|
function setEffect(anims, elementId, group, preset) {
|
|
150
121
|
const value = preset === "none" ? void 0 : preset;
|
|
151
122
|
return upsert(anims, elementId, (cur) => {
|
|
@@ -238,9 +209,9 @@ function applyAnimationPreset(animations, elementId, group, preset) {
|
|
|
238
209
|
{
|
|
239
210
|
elementId,
|
|
240
211
|
[group]: preset,
|
|
241
|
-
durationMs:
|
|
212
|
+
durationMs: DEFAULT_ANIMATION_DURATION_MS,
|
|
242
213
|
order: animations.length,
|
|
243
|
-
trigger:
|
|
214
|
+
trigger: DEFAULT_ANIMATION_TRIGGER
|
|
244
215
|
}
|
|
245
216
|
];
|
|
246
217
|
}
|
|
@@ -282,4 +253,4 @@ function reindexOrder(anims) {
|
|
|
282
253
|
return anims.map((a, i) => ({ ...a, order: i }));
|
|
283
254
|
}
|
|
284
255
|
|
|
285
|
-
export { ANIMATION_DIRECTION_LABEL_KEYS, DIRECTIONAL_PRESETS, DIRECTION_VALUES, EMPHASIS_PRESET_VALUES, ENTRANCE_PRESET_VALUES, EXIT_PRESET_VALUES, REPEAT_MODE_VALUES, SEQUENCE_VALUES, TIMING_CURVE_VALUES, TRIGGER_OPTIONS, TRIGGER_VALUES,
|
|
256
|
+
export { ANIMATION_DIRECTION_LABEL_KEYS, DIRECTIONAL_PRESETS, DIRECTION_VALUES, EMPHASIS_PRESET_VALUES, ENTRANCE_PRESET_VALUES, EXIT_PRESET_VALUES, REPEAT_MODE_VALUES, SEQUENCE_VALUES, TIMING_CURVE_VALUES, TRIGGER_OPTIONS, TRIGGER_VALUES, applyAnimationPreset, buildAnimationTimelineBars, directionValuesFor, directionValuesForPreset, effectiveDirection, removeAnimation, removeElementAnimation, reorderAnimationDown, reorderAnimationTo, reorderAnimationUp, setAnimationEmphasis, setAnimationEntrance, setAnimationExit, setDelay, setDirection, setDuration, setRepeatCount, setRepeatMode, setSequence, setTimingCurve, setTrigger, setTriggerShapeId, showDirectionPicker, triggerChangePatch };
|
|
@@ -112,8 +112,8 @@ async function loadChart3DThree() {
|
|
|
112
112
|
|
|
113
113
|
// src/pptx/three-view/scene-registry.ts
|
|
114
114
|
var loaders = {
|
|
115
|
-
chart: async () => (await import('./chart-3d-view-scene-
|
|
116
|
-
smartart: async () => (await import('./view-scene-
|
|
115
|
+
chart: async () => (await import('./chart-3d-view-scene-MYQRQDNF.mjs')).mountChart3DView,
|
|
116
|
+
smartart: async () => (await import('./view-scene-BSTOVMHA.mjs')).mountSmartArt3DView
|
|
117
117
|
};
|
|
118
118
|
async function loadThreeViewScene(kind) {
|
|
119
119
|
return loaders[kind]();
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWB25PCHQ_cjs = require('./chunk-WB25PCHQ.cjs');
|
|
4
|
+
var chunkPBZWDEXQ_cjs = require('./chunk-PBZWDEXQ.cjs');
|
|
5
|
+
var chunkMF3JURQN_cjs = require('./chunk-MF3JURQN.cjs');
|
|
6
|
+
var pptx = require('ooxml-core/pptx');
|
|
7
|
+
var textRunsStylePatch = require('ooxml-core/pptx/editor/render/text-runs-style-patch');
|
|
8
|
+
var fontFamilyUpdate = require('ooxml-core/pptx/editor/render/font-family-update');
|
|
9
|
+
var textContentStyle = require('ooxml-core/pptx/editor/render/text-content-style');
|
|
10
|
+
var text_style_scope_star = require('ooxml-core/pptx/editor/render/text-style-scope');
|
|
11
|
+
|
|
12
|
+
function _interopNamespace(e) {
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
14
|
+
var n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
n.default = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var text_style_scope_star__namespace = /*#__PURE__*/_interopNamespace(text_style_scope_star);
|
|
31
|
+
|
|
32
|
+
function contentSegmentsInSelection(segments, selection) {
|
|
33
|
+
if (!segments) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
return segments.filter((segment, index) => {
|
|
37
|
+
if (!textContentStyle.isContentSegment(segment)) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (!selection) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
if (index < selection.startSegIdx || index > selection.endSegIdx) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (selection.startSegIdx === selection.endSegIdx && selection.startOffset === selection.endOffset) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
const start = index === selection.startSegIdx ? selection.startOffset : 0;
|
|
50
|
+
const end = index === selection.endSegIdx ? selection.endOffset : segment.text.length;
|
|
51
|
+
return end > start;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function flagState(values) {
|
|
55
|
+
if (values.every((value) => value)) {
|
|
56
|
+
return "on";
|
|
57
|
+
}
|
|
58
|
+
return values.some((value) => value) ? "mixed" : "off";
|
|
59
|
+
}
|
|
60
|
+
function getSelectionTextStyleFlags(segments, selection, elementTextStyle) {
|
|
61
|
+
const runs = contentSegmentsInSelection(segments, selection);
|
|
62
|
+
const flags = {};
|
|
63
|
+
for (const flag of textContentStyle.TEXT_DECORATION_FLAGS) {
|
|
64
|
+
const body = elementTextStyle?.[flag] ?? false;
|
|
65
|
+
flags[flag] = runs.length === 0 ? flagState([body]) : flagState(runs.map((run) => run.style?.[flag] ?? body));
|
|
66
|
+
}
|
|
67
|
+
return flags;
|
|
68
|
+
}
|
|
69
|
+
function nextToggleValue(state) {
|
|
70
|
+
return state !== "on";
|
|
71
|
+
}
|
|
72
|
+
function textStyleFlagsOf(element, selection = null, segments) {
|
|
73
|
+
if (!element || !pptx.hasTextProperties(element)) {
|
|
74
|
+
return { bold: "off", italic: "off", underline: "off", strikethrough: "off" };
|
|
75
|
+
}
|
|
76
|
+
return getSelectionTextStyleFlags(segments ?? element.textSegments, selection, element.textStyle);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// src/pptx/render/text-style-scope.ts
|
|
80
|
+
var text_style_scope_exports = {};
|
|
81
|
+
chunkMF3JURQN_cjs.__reExport(text_style_scope_exports, text_style_scope_star__namespace);
|
|
82
|
+
|
|
83
|
+
// src/pptx/render/inspector-helpers.ts
|
|
84
|
+
var DEFAULT_FILL = "#ffffff";
|
|
85
|
+
var DEFAULT_STROKE = "#000000";
|
|
86
|
+
var DEFAULT_TEXT_COLOR = "#000000";
|
|
87
|
+
var DEFAULT_FONT_SIZE = 18;
|
|
88
|
+
function fillColorOf(el) {
|
|
89
|
+
if (pptx.hasShapeProperties(el)) {
|
|
90
|
+
return el.shapeStyle?.fillColor ?? DEFAULT_FILL;
|
|
91
|
+
}
|
|
92
|
+
return DEFAULT_FILL;
|
|
93
|
+
}
|
|
94
|
+
function strokeColorOf(el) {
|
|
95
|
+
if (pptx.hasShapeProperties(el)) {
|
|
96
|
+
return el.shapeStyle?.strokeColor ?? DEFAULT_STROKE;
|
|
97
|
+
}
|
|
98
|
+
return DEFAULT_STROKE;
|
|
99
|
+
}
|
|
100
|
+
function textColorOf(el) {
|
|
101
|
+
if (pptx.hasTextProperties(el)) {
|
|
102
|
+
return el.textStyle?.color ?? DEFAULT_TEXT_COLOR;
|
|
103
|
+
}
|
|
104
|
+
return DEFAULT_TEXT_COLOR;
|
|
105
|
+
}
|
|
106
|
+
function fontSizeOf(el, presentationDefault) {
|
|
107
|
+
if (pptx.hasTextProperties(el) && el.textStyle?.fontSize !== void 0) {
|
|
108
|
+
return chunkWB25PCHQ_cjs.textFontSizePxToPt(el.textStyle.fontSize);
|
|
109
|
+
}
|
|
110
|
+
const deckDefault = presentationDefault?.levelStyles?.[0]?.fontSize;
|
|
111
|
+
return deckDefault === void 0 ? DEFAULT_FONT_SIZE : chunkWB25PCHQ_cjs.textFontSizePxToPt(deckDefault);
|
|
112
|
+
}
|
|
113
|
+
function isBold(el) {
|
|
114
|
+
return textStyleFlagsOf(el).bold === "on";
|
|
115
|
+
}
|
|
116
|
+
function isItalic(el) {
|
|
117
|
+
return textStyleFlagsOf(el).italic === "on";
|
|
118
|
+
}
|
|
119
|
+
function isUnderline(el) {
|
|
120
|
+
return textStyleFlagsOf(el).underline === "on";
|
|
121
|
+
}
|
|
122
|
+
function shapeStylePatch(el, changes) {
|
|
123
|
+
const base = pptx.hasShapeProperties(el) ? el.shapeStyle ?? {} : {};
|
|
124
|
+
return {
|
|
125
|
+
shapeStyle: {
|
|
126
|
+
...base,
|
|
127
|
+
...changes
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function textStylePatch(el, changes) {
|
|
132
|
+
const base = pptx.hasTextProperties(el) ? el.textStyle ?? {} : {};
|
|
133
|
+
const exclusive = (0, text_style_scope_exports.withExclusiveLineSpacing)(changes);
|
|
134
|
+
const paragraphs = (0, text_style_scope_exports.paragraphOverridePatch)(el, exclusive);
|
|
135
|
+
const segments = paragraphs.textSegments ?? (pptx.hasTextProperties(el) ? el.textSegments : void 0);
|
|
136
|
+
return {
|
|
137
|
+
...paragraphs,
|
|
138
|
+
...segments?.some((segment) => segment.paragraphInsertionStyle) ? {
|
|
139
|
+
textSegments: segments.map(
|
|
140
|
+
(segment) => chunkPBZWDEXQ_cjs.updateTextSegmentStyle(segment, exclusive, {
|
|
141
|
+
updateBodyStyle: false,
|
|
142
|
+
inherited: base
|
|
143
|
+
})
|
|
144
|
+
)
|
|
145
|
+
} : {},
|
|
146
|
+
textStyle: fontFamilyUpdate.mergeTextStyleUpdate(base, exclusive)
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function textRunsPatch(el, updates) {
|
|
150
|
+
const patch = textStylePatch(el, updates);
|
|
151
|
+
if (!pptx.hasTextProperties(el) || !el.textSegments) {
|
|
152
|
+
return patch;
|
|
153
|
+
}
|
|
154
|
+
const runs = textRunsStylePatch.textRunsStylePatch(el, updates);
|
|
155
|
+
return {
|
|
156
|
+
...patch,
|
|
157
|
+
textSegments: runs.textSegments
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function textFontSizePatch(el, fontSize) {
|
|
161
|
+
return textRunsPatch(el, { fontSize });
|
|
162
|
+
}
|
|
163
|
+
function textFontFamilyPatch(el, fontFamily) {
|
|
164
|
+
return textRunsPatch(el, { fontFamily });
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
Object.defineProperty(exports, "fontFamilyStyleUpdates", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return fontFamilyUpdate.fontFamilyStyleUpdates; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "mergeTextStyleUpdate", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return fontFamilyUpdate.mergeTextStyleUpdate; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "TEXT_DECORATION_FLAGS", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return textContentStyle.TEXT_DECORATION_FLAGS; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "isContentSegment", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return textContentStyle.isContentSegment; }
|
|
182
|
+
});
|
|
183
|
+
exports.DEFAULT_FONT_SIZE = DEFAULT_FONT_SIZE;
|
|
184
|
+
exports.contentSegmentsInSelection = contentSegmentsInSelection;
|
|
185
|
+
exports.fillColorOf = fillColorOf;
|
|
186
|
+
exports.fontSizeOf = fontSizeOf;
|
|
187
|
+
exports.getSelectionTextStyleFlags = getSelectionTextStyleFlags;
|
|
188
|
+
exports.isBold = isBold;
|
|
189
|
+
exports.isItalic = isItalic;
|
|
190
|
+
exports.isUnderline = isUnderline;
|
|
191
|
+
exports.nextToggleValue = nextToggleValue;
|
|
192
|
+
exports.shapeStylePatch = shapeStylePatch;
|
|
193
|
+
exports.strokeColorOf = strokeColorOf;
|
|
194
|
+
exports.textColorOf = textColorOf;
|
|
195
|
+
exports.textFontFamilyPatch = textFontFamilyPatch;
|
|
196
|
+
exports.textFontSizePatch = textFontSizePatch;
|
|
197
|
+
exports.textStyleFlagsOf = textStyleFlagsOf;
|
|
198
|
+
exports.textStylePatch = textStylePatch;
|
|
199
|
+
exports.text_style_scope_exports = text_style_scope_exports;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
|
|
19
|
+
export { __export, __reExport };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOJFD3SHS_cjs = require('./chunk-OJFD3SHS.cjs');
|
|
4
4
|
|
|
5
5
|
// src/pptx/render/motion-path-presets.ts
|
|
6
6
|
var K = 0.5523;
|
|
@@ -126,19 +126,19 @@ var ANIMATION_RIBBON_CATEGORIES = [
|
|
|
126
126
|
group: "entrance",
|
|
127
127
|
labelKey: "pptx.animation.entrance",
|
|
128
128
|
fallback: "Entrance",
|
|
129
|
-
presets:
|
|
129
|
+
presets: chunkOJFD3SHS_cjs.ENTRANCE_PRESET_VALUES
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
group: "emphasis",
|
|
133
133
|
labelKey: "pptx.animation.emphasis",
|
|
134
134
|
fallback: "Emphasis",
|
|
135
|
-
presets:
|
|
135
|
+
presets: chunkOJFD3SHS_cjs.EMPHASIS_PRESET_VALUES
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
group: "exit",
|
|
139
139
|
labelKey: "pptx.animation.exit",
|
|
140
140
|
fallback: "Exit",
|
|
141
|
-
presets:
|
|
141
|
+
presets: chunkOJFD3SHS_cjs.EXIT_PRESET_VALUES
|
|
142
142
|
}
|
|
143
143
|
];
|
|
144
144
|
function animationsLabel(state, key, fallback) {
|
|
@@ -149,9 +149,9 @@ function animationsGated(state) {
|
|
|
149
149
|
return !state.editable || !state.hasSelection;
|
|
150
150
|
}
|
|
151
151
|
var BUCKETS = {
|
|
152
|
-
entrance:
|
|
153
|
-
emphasis:
|
|
154
|
-
exit:
|
|
152
|
+
entrance: chunkOJFD3SHS_cjs.ENTRANCE_PRESET_VALUES,
|
|
153
|
+
emphasis: chunkOJFD3SHS_cjs.EMPHASIS_PRESET_VALUES,
|
|
154
|
+
exit: chunkOJFD3SHS_cjs.EXIT_PRESET_VALUES
|
|
155
155
|
};
|
|
156
156
|
function canRequestAnimations(state, intent) {
|
|
157
157
|
if (intent.kind === "command") {
|
|
@@ -243,6 +243,7 @@ var galleryTranslationsEn = {
|
|
|
243
243
|
"pptx.ribbon.tab.smartArtDesign": "SmartArt Design",
|
|
244
244
|
"pptx.ribbon.groupWordArtStyles": "WordArt Styles",
|
|
245
245
|
"pptx.ribbon.groupPictureStyles": "Picture Styles",
|
|
246
|
+
"pptx.ribbon.groupSize": "Size",
|
|
246
247
|
"pptx.ribbon.groupTableStyles": "Table Styles",
|
|
247
248
|
"pptx.ribbon.groupChartLayouts": "Chart Layouts",
|
|
248
249
|
"pptx.ribbon.groupChartStyles": "Chart Styles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-shape.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/text-shape.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-shape.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/text-shape.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAchD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,eA0HpC,CAAC"}
|