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
package/dist/pptx/index.cjs
CHANGED
|
@@ -85552,57 +85552,6 @@ var init_native_animation_media_walk = __esm({
|
|
|
85552
85552
|
}
|
|
85553
85553
|
});
|
|
85554
85554
|
|
|
85555
|
-
// pptx/core/services/animation-effect-filter-parsing.ts
|
|
85556
|
-
function parseFilterToken(raw) {
|
|
85557
|
-
const trimmed2 = raw.trim();
|
|
85558
|
-
if (!trimmed2) {
|
|
85559
|
-
return void 0;
|
|
85560
|
-
}
|
|
85561
|
-
const match = FILTER_TOKEN_RE.exec(trimmed2);
|
|
85562
|
-
if (!match) {
|
|
85563
|
-
return void 0;
|
|
85564
|
-
}
|
|
85565
|
-
const family = match[1].toLowerCase();
|
|
85566
|
-
const subtypeToken = match[2];
|
|
85567
|
-
const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
|
|
85568
|
-
return { family, subtype };
|
|
85569
|
-
}
|
|
85570
|
-
function parseAnimEffectFilter(childTnList) {
|
|
85571
|
-
if (!childTnList) {
|
|
85572
|
-
return void 0;
|
|
85573
|
-
}
|
|
85574
|
-
const rawAnimEffect = childTnList["p:animEffect"];
|
|
85575
|
-
const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
|
|
85576
|
-
if (!animEffect || typeof animEffect !== "object") {
|
|
85577
|
-
return void 0;
|
|
85578
|
-
}
|
|
85579
|
-
const node = animEffect;
|
|
85580
|
-
const filterAttr = node["@_filter"];
|
|
85581
|
-
if (filterAttr === void 0 || filterAttr === null) {
|
|
85582
|
-
return void 0;
|
|
85583
|
-
}
|
|
85584
|
-
const raw = String(filterAttr);
|
|
85585
|
-
const firstToken = raw.split(";")[0] ?? "";
|
|
85586
|
-
const parsed = parseFilterToken(firstToken);
|
|
85587
|
-
if (!parsed) {
|
|
85588
|
-
return void 0;
|
|
85589
|
-
}
|
|
85590
|
-
const transitionAttr = node["@_transition"];
|
|
85591
|
-
const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
|
|
85592
|
-
return {
|
|
85593
|
-
family: parsed.family,
|
|
85594
|
-
subtype: parsed.subtype,
|
|
85595
|
-
transition,
|
|
85596
|
-
raw
|
|
85597
|
-
};
|
|
85598
|
-
}
|
|
85599
|
-
var FILTER_TOKEN_RE;
|
|
85600
|
-
var init_animation_effect_filter_parsing = __esm({
|
|
85601
|
-
"pptx/core/services/animation-effect-filter-parsing.ts"() {
|
|
85602
|
-
FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
|
|
85603
|
-
}
|
|
85604
|
-
});
|
|
85605
|
-
|
|
85606
85555
|
// pptx/core/services/native-animation-cbhvr-attrs.ts
|
|
85607
85556
|
function extractCBhvrAttrs(cBhvr) {
|
|
85608
85557
|
if (!cBhvr) {
|
|
@@ -85679,59 +85628,6 @@ var init_native_animation_cbhvr_attrs = __esm({
|
|
|
85679
85628
|
}
|
|
85680
85629
|
});
|
|
85681
85630
|
|
|
85682
|
-
// pptx/core/services/native-animation-attribute-components.ts
|
|
85683
|
-
function extractBounceEndFraction(raw) {
|
|
85684
|
-
if (raw === void 0) {
|
|
85685
|
-
return void 0;
|
|
85686
|
-
}
|
|
85687
|
-
const parsed = Number(raw);
|
|
85688
|
-
if (!Number.isFinite(parsed)) {
|
|
85689
|
-
return void 0;
|
|
85690
|
-
}
|
|
85691
|
-
return Math.max(0, Math.min(1, parsed / 1e5));
|
|
85692
|
-
}
|
|
85693
|
-
function extractAttributeAnimations(childTnList) {
|
|
85694
|
-
if (!childTnList) {
|
|
85695
|
-
return void 0;
|
|
85696
|
-
}
|
|
85697
|
-
const components = [];
|
|
85698
|
-
for (const node of ensureArray11(childTnList["p:anim"])) {
|
|
85699
|
-
const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
|
|
85700
|
-
const keyframes = extractKeyframes(node);
|
|
85701
|
-
const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
|
|
85702
|
-
const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
|
|
85703
|
-
const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
|
|
85704
|
-
const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
|
|
85705
|
-
if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
|
|
85706
|
-
continue;
|
|
85707
|
-
}
|
|
85708
|
-
const behavior = node["p:cBhvr"];
|
|
85709
|
-
const cTn = behavior?.["p:cTn"];
|
|
85710
|
-
const calcMode = normalizeCalcMode(node["@_calcmode"]);
|
|
85711
|
-
const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
|
|
85712
|
-
components.push({
|
|
85713
|
-
attrName,
|
|
85714
|
-
keyframes: keyframes ?? [],
|
|
85715
|
-
durationMs: readTimingAttr(cTn?.["@_dur"]),
|
|
85716
|
-
delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
|
|
85717
|
-
...calcMode ? { calcMode } : {},
|
|
85718
|
-
...from !== void 0 ? { from } : {},
|
|
85719
|
-
...to !== void 0 ? { to } : {},
|
|
85720
|
-
...by !== void 0 ? { by } : {},
|
|
85721
|
-
...bounceEnd !== void 0 ? { bounceEnd } : {}
|
|
85722
|
-
});
|
|
85723
|
-
}
|
|
85724
|
-
return components.length > 0 ? components : void 0;
|
|
85725
|
-
}
|
|
85726
|
-
var init_native_animation_attribute_components = __esm({
|
|
85727
|
-
"pptx/core/services/native-animation-attribute-components.ts"() {
|
|
85728
|
-
init_native_animation_attr_name();
|
|
85729
|
-
init_native_animation_cbhvr_attrs();
|
|
85730
|
-
init_native_animation_extended_helpers();
|
|
85731
|
-
init_native_animation_helpers();
|
|
85732
|
-
}
|
|
85733
|
-
});
|
|
85734
|
-
|
|
85735
85631
|
// pptx/core/services/native-animation-behaviors.ts
|
|
85736
85632
|
function attrText(raw) {
|
|
85737
85633
|
if (raw === void 0 || raw === null) {
|
|
@@ -85933,6 +85829,221 @@ var init_native_animation_behaviors = __esm({
|
|
|
85933
85829
|
}
|
|
85934
85830
|
});
|
|
85935
85831
|
|
|
85832
|
+
// pptx/core/services/native-animation-visibility-timing.ts
|
|
85833
|
+
function hasNativeVisibilitySet(node) {
|
|
85834
|
+
if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0") return false;
|
|
85835
|
+
const children16 = node["p:childTnLst"];
|
|
85836
|
+
if (!isXmlObject5(children16)) return false;
|
|
85837
|
+
return ensureArray11(children16["p:set"]).some((set2) => {
|
|
85838
|
+
const common = set2["p:cBhvr"];
|
|
85839
|
+
const list2 = isXmlObject5(common) ? common["p:attrNameLst"] : void 0;
|
|
85840
|
+
const names = isXmlObject5(list2) ? list2["p:attrName"] : void 0;
|
|
85841
|
+
return (Array.isArray(names) ? names : [names]).some(
|
|
85842
|
+
(name) => String(isXmlObject5(name) ? name["#text"] : name).trim().toLowerCase() === "style.visibility"
|
|
85843
|
+
);
|
|
85844
|
+
});
|
|
85845
|
+
}
|
|
85846
|
+
function simpleStarts(node, clickGate = false) {
|
|
85847
|
+
const list2 = node["p:stCondLst"];
|
|
85848
|
+
if (list2 === void 0) return true;
|
|
85849
|
+
if (!isXmlObject5(list2) || Object.keys(list2).some((key2) => key2 !== "p:cond")) return false;
|
|
85850
|
+
const conditions = ensureArray11(list2["p:cond"]);
|
|
85851
|
+
return conditions.length === 1 && conditions.every(
|
|
85852
|
+
(condition) => Object.keys(condition).every((key2) => key2 === "@_delay") && (condition["@_delay"] === void 0 || /^\d+$/u.test(String(condition["@_delay"])) && Number.isSafeInteger(Number(condition["@_delay"])) && Number(condition["@_delay"]) <= 2147483647 || clickGate && condition["@_delay"] === "indefinite")
|
|
85853
|
+
);
|
|
85854
|
+
}
|
|
85855
|
+
function unsupportedVisibilityContainerTiming(node) {
|
|
85856
|
+
if (node["@_presetClass"] !== void 0) return false;
|
|
85857
|
+
const structuralRoot = ["tmRoot", "mainSeq"].includes(String(node["@_nodeType"] ?? ""));
|
|
85858
|
+
return !neutralTiming(node) || !simpleStarts(node, true) || ensureArray11(isXmlObject5(node["p:stCondLst"]) ? node["p:stCondLst"]["p:cond"] : void 0).some(
|
|
85859
|
+
(condition) => /^\d+$/u.test(String(condition["@_delay"])) && Number(condition["@_delay"]) > 0
|
|
85860
|
+
) || node["@_dur"] !== void 0 && !(structuralRoot && node["@_dur"] === "indefinite") || node["@_fill"] !== void 0 && node["@_fill"] !== "hold" || node["p:subTnLst"] !== void 0;
|
|
85861
|
+
}
|
|
85862
|
+
function extractVisibilitySetTiming(node) {
|
|
85863
|
+
if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0" || String(node["@_presetSubtype"] ?? "0") !== "0" || node["@_dur"] !== void 0 || node["@_fill"] !== "hold" || !neutralTiming(node) || !simpleStarts(node))
|
|
85864
|
+
return void 0;
|
|
85865
|
+
const children16 = node["p:childTnLst"];
|
|
85866
|
+
if (!isXmlObject5(children16) || Object.keys(children16).length !== 1 || !children16["p:set"])
|
|
85867
|
+
return void 0;
|
|
85868
|
+
const sets = ensureArray11(children16["p:set"]);
|
|
85869
|
+
if (sets.length !== 1) return void 0;
|
|
85870
|
+
if (Object.keys(sets[0]).some((key2) => !["p:cBhvr", "p:to"].includes(key2))) return void 0;
|
|
85871
|
+
const to = sets[0]["p:to"];
|
|
85872
|
+
if (!isXmlObject5(to) || Object.keys(to).length !== 1 || !isXmlObject5(to["p:strVal"]) || Object.keys(to["p:strVal"]).some((key2) => key2 !== "@_val") || to["p:strVal"]["@_val"] !== "visible")
|
|
85873
|
+
return void 0;
|
|
85874
|
+
const common = sets[0]["p:cBhvr"];
|
|
85875
|
+
if (!isXmlObject5(common) || Object.keys(common).some(
|
|
85876
|
+
(key2) => !["p:cTn", "p:tgtEl", "p:attrNameLst", "@_additive"].includes(key2)
|
|
85877
|
+
) || common["@_additive"] !== void 0 && !["base", "repl", "none"].includes(String(common["@_additive"])))
|
|
85878
|
+
return void 0;
|
|
85879
|
+
const target = common["p:tgtEl"];
|
|
85880
|
+
if (!isXmlObject5(target) || Object.keys(target).length !== 1 || !isXmlObject5(target["p:spTgt"]) || Object.keys(target["p:spTgt"]).some((key2) => key2 !== "@_spid") || !/^\d+$/u.test(String(target["p:spTgt"]["@_spid"])))
|
|
85881
|
+
return void 0;
|
|
85882
|
+
const child30 = common["p:cTn"];
|
|
85883
|
+
if (!isXmlObject5(child30) || !neutralTiming(child30) || !simpleStarts(child30) || String(child30["@_dur"]) !== "1" || child30["@_fill"] !== "hold")
|
|
85884
|
+
return void 0;
|
|
85885
|
+
const behavior = extractBehaviors(children16)?.[0];
|
|
85886
|
+
if (!behavior || behavior.kind !== "set" || behavior.value !== "visible" || behavior.attrNames.length !== 1 || behavior.attrNames[0] !== "style.visibility" || behavior.timing.unsupportedSetTiming)
|
|
85887
|
+
return void 0;
|
|
85888
|
+
try {
|
|
85889
|
+
assertAfterAnimationClearSupported(node);
|
|
85890
|
+
} catch {
|
|
85891
|
+
return void 0;
|
|
85892
|
+
}
|
|
85893
|
+
const sub = node["p:subTnLst"];
|
|
85894
|
+
if (sub !== void 0) {
|
|
85895
|
+
if (!isXmlObject5(sub)) return void 0;
|
|
85896
|
+
for (const [key2, raw] of Object.entries(sub)) {
|
|
85897
|
+
for (const value of ensureArray11(raw)) {
|
|
85898
|
+
if (!extractAfterAnimationFromSubTnLst({ "p:subTnLst": { [key2]: value } }))
|
|
85899
|
+
return void 0;
|
|
85900
|
+
}
|
|
85901
|
+
}
|
|
85902
|
+
}
|
|
85903
|
+
const delayMs = behavior.timing.delayMs ?? 0;
|
|
85904
|
+
if (!Number.isSafeInteger(delayMs) || delayMs < 0 || delayMs >= 2147483647) return void 0;
|
|
85905
|
+
return { delayMs, durationMs: 1 };
|
|
85906
|
+
}
|
|
85907
|
+
function resolveVisibilitySetTiming(anim) {
|
|
85908
|
+
const timing = anim.visibilitySetTiming;
|
|
85909
|
+
if (!timing || anim.presetClass !== "entr" || anim.presetId !== 0 || (anim.presetSubtype ?? 0) !== 0 || anim.fill !== "hold" || anim.seqConcurrent !== true || anim.seqNextAction !== "seek" || !["onClick", "withPrevious"].includes(anim.trigger ?? "") || anim.textTarget || !anim.target || anim.target.type !== "shape" || anim.target.backgroundOnly || anim.target.subShapeId || anim.target.graphicElement || anim.target.oleChartElement || anim.autoReverse || (anim.accel ?? 0) !== 0 || (anim.decel ?? 0) !== 0 || (anim.startConditions?.length ?? 0) > 1 || anim.startConditions?.some(
|
|
85910
|
+
(condition) => Object.entries(condition).some(([key2, value]) => value !== void 0 && key2 !== "delay") || condition.delay !== void 0 && (!Number.isSafeInteger(condition.delay) || condition.delay < 0)
|
|
85911
|
+
) || (anim.repeatCount ?? 1) !== 1 || anim.repeatDurMs !== void 0 || (anim.speedPct ?? 100) !== 100 || anim.unsupportedOpacitySetTiming || anim.unsupportedVisibilitySet || anim.endConditions?.length || anim.rawEndCondLst !== void 0 || anim.cTnAttributes?.["@_tmFilter"] !== void 0 || anim.cTnAttributes?.["@_endSync"] !== void 0 || Object.keys(anim.cTnAttributes ?? {}).some((key2) => key2 !== "p:subTnLst") || !Number.isSafeInteger(timing.delayMs) || timing.delayMs < 0 || timing.delayMs >= 2147483647 || timing.durationMs !== 1 || anim.durationMs !== timing.delayMs + 1)
|
|
85912
|
+
return void 0;
|
|
85913
|
+
const behavior = anim.behaviors?.[0];
|
|
85914
|
+
if (anim.behaviors?.length !== 1 || !behavior || behavior.kind !== "set" || behavior.value !== "visible" || behavior.attrNames.length !== 1 || behavior.attrNames[0] !== "style.visibility" || behavior.timing.unsupportedSetTiming || behavior.timing.autoReverse || (behavior.timing.repeatCount ?? 1) !== 1 || behavior.timing.tmFilter !== void 0 || (behavior.timing.accel ?? 0) !== 0 || (behavior.timing.decel ?? 0) !== 0 || behavior.additive !== void 0 && !["base", "repl", "none"].includes(behavior.additive) || behavior.timing.fill !== "hold" || behavior.timing.durationMs !== 1 || (behavior.timing.delayMs ?? 0) !== timing.delayMs)
|
|
85915
|
+
return void 0;
|
|
85916
|
+
return timing;
|
|
85917
|
+
}
|
|
85918
|
+
var neutralTiming;
|
|
85919
|
+
var init_native_animation_visibility_timing = __esm({
|
|
85920
|
+
"pptx/core/services/native-animation-visibility-timing.ts"() {
|
|
85921
|
+
init_native_animation_behaviors();
|
|
85922
|
+
init_animation_after_effect_write();
|
|
85923
|
+
init_native_animation_after_effect();
|
|
85924
|
+
init_native_animation_helpers();
|
|
85925
|
+
neutralTiming = (node) => [
|
|
85926
|
+
"@_repeatDur",
|
|
85927
|
+
"@_tmFilter",
|
|
85928
|
+
"@_endSync",
|
|
85929
|
+
"@_evtFilter",
|
|
85930
|
+
"@_display",
|
|
85931
|
+
"@_masterRel",
|
|
85932
|
+
"@_syncBehavior",
|
|
85933
|
+
"@_nodePh",
|
|
85934
|
+
"@_progress",
|
|
85935
|
+
"@_p14:presetBounceEnd",
|
|
85936
|
+
"p:endCondLst",
|
|
85937
|
+
"p:endSync",
|
|
85938
|
+
"p:iterate"
|
|
85939
|
+
].every((key2) => node[key2] === void 0) && (node["@_repeatCount"] === void 0 || String(node["@_repeatCount"]) === "1000") && (node["@_autoRev"] === void 0 || ["0", "false"].includes(String(node["@_autoRev"]))) && (node["@_spd"] === void 0 || String(node["@_spd"]) === "100000") && (node["@_accel"] === void 0 || String(node["@_accel"]) === "0") && (node["@_decel"] === void 0 || String(node["@_decel"]) === "0");
|
|
85940
|
+
}
|
|
85941
|
+
});
|
|
85942
|
+
|
|
85943
|
+
// pptx/core/services/animation-effect-filter-parsing.ts
|
|
85944
|
+
function parseFilterToken(raw) {
|
|
85945
|
+
const trimmed2 = raw.trim();
|
|
85946
|
+
if (!trimmed2) {
|
|
85947
|
+
return void 0;
|
|
85948
|
+
}
|
|
85949
|
+
const match = FILTER_TOKEN_RE.exec(trimmed2);
|
|
85950
|
+
if (!match) {
|
|
85951
|
+
return void 0;
|
|
85952
|
+
}
|
|
85953
|
+
const family = match[1].toLowerCase();
|
|
85954
|
+
const subtypeToken = match[2];
|
|
85955
|
+
const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
|
|
85956
|
+
return { family, subtype };
|
|
85957
|
+
}
|
|
85958
|
+
function parseAnimEffectFilter(childTnList) {
|
|
85959
|
+
if (!childTnList) {
|
|
85960
|
+
return void 0;
|
|
85961
|
+
}
|
|
85962
|
+
const rawAnimEffect = childTnList["p:animEffect"];
|
|
85963
|
+
const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
|
|
85964
|
+
if (!animEffect || typeof animEffect !== "object") {
|
|
85965
|
+
return void 0;
|
|
85966
|
+
}
|
|
85967
|
+
const node = animEffect;
|
|
85968
|
+
const filterAttr = node["@_filter"];
|
|
85969
|
+
if (filterAttr === void 0 || filterAttr === null) {
|
|
85970
|
+
return void 0;
|
|
85971
|
+
}
|
|
85972
|
+
const raw = String(filterAttr);
|
|
85973
|
+
const firstToken = raw.split(";")[0] ?? "";
|
|
85974
|
+
const parsed = parseFilterToken(firstToken);
|
|
85975
|
+
if (!parsed) {
|
|
85976
|
+
return void 0;
|
|
85977
|
+
}
|
|
85978
|
+
const transitionAttr = node["@_transition"];
|
|
85979
|
+
const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
|
|
85980
|
+
return {
|
|
85981
|
+
family: parsed.family,
|
|
85982
|
+
subtype: parsed.subtype,
|
|
85983
|
+
transition,
|
|
85984
|
+
raw
|
|
85985
|
+
};
|
|
85986
|
+
}
|
|
85987
|
+
var FILTER_TOKEN_RE;
|
|
85988
|
+
var init_animation_effect_filter_parsing = __esm({
|
|
85989
|
+
"pptx/core/services/animation-effect-filter-parsing.ts"() {
|
|
85990
|
+
FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
|
|
85991
|
+
}
|
|
85992
|
+
});
|
|
85993
|
+
|
|
85994
|
+
// pptx/core/services/native-animation-attribute-components.ts
|
|
85995
|
+
function extractBounceEndFraction(raw) {
|
|
85996
|
+
if (raw === void 0) {
|
|
85997
|
+
return void 0;
|
|
85998
|
+
}
|
|
85999
|
+
const parsed = Number(raw);
|
|
86000
|
+
if (!Number.isFinite(parsed)) {
|
|
86001
|
+
return void 0;
|
|
86002
|
+
}
|
|
86003
|
+
return Math.max(0, Math.min(1, parsed / 1e5));
|
|
86004
|
+
}
|
|
86005
|
+
function extractAttributeAnimations(childTnList) {
|
|
86006
|
+
if (!childTnList) {
|
|
86007
|
+
return void 0;
|
|
86008
|
+
}
|
|
86009
|
+
const components = [];
|
|
86010
|
+
for (const node of ensureArray11(childTnList["p:anim"])) {
|
|
86011
|
+
const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
|
|
86012
|
+
const keyframes = extractKeyframes(node);
|
|
86013
|
+
const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
|
|
86014
|
+
const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
|
|
86015
|
+
const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
|
|
86016
|
+
const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
|
|
86017
|
+
if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
|
|
86018
|
+
continue;
|
|
86019
|
+
}
|
|
86020
|
+
const behavior = node["p:cBhvr"];
|
|
86021
|
+
const cTn = behavior?.["p:cTn"];
|
|
86022
|
+
const calcMode = normalizeCalcMode(node["@_calcmode"]);
|
|
86023
|
+
const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
|
|
86024
|
+
components.push({
|
|
86025
|
+
attrName,
|
|
86026
|
+
keyframes: keyframes ?? [],
|
|
86027
|
+
durationMs: readTimingAttr(cTn?.["@_dur"]),
|
|
86028
|
+
delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
|
|
86029
|
+
...calcMode ? { calcMode } : {},
|
|
86030
|
+
...from !== void 0 ? { from } : {},
|
|
86031
|
+
...to !== void 0 ? { to } : {},
|
|
86032
|
+
...by !== void 0 ? { by } : {},
|
|
86033
|
+
...bounceEnd !== void 0 ? { bounceEnd } : {}
|
|
86034
|
+
});
|
|
86035
|
+
}
|
|
86036
|
+
return components.length > 0 ? components : void 0;
|
|
86037
|
+
}
|
|
86038
|
+
var init_native_animation_attribute_components = __esm({
|
|
86039
|
+
"pptx/core/services/native-animation-attribute-components.ts"() {
|
|
86040
|
+
init_native_animation_attr_name();
|
|
86041
|
+
init_native_animation_cbhvr_attrs();
|
|
86042
|
+
init_native_animation_extended_helpers();
|
|
86043
|
+
init_native_animation_helpers();
|
|
86044
|
+
}
|
|
86045
|
+
});
|
|
86046
|
+
|
|
85936
86047
|
// pptx/core/services/native-animation-child-timing.ts
|
|
85937
86048
|
function isEnabled(value) {
|
|
85938
86049
|
return value === true || value === 1 || value === "1" || value === "true";
|
|
@@ -86062,12 +86173,13 @@ function resolveNodeTrigger(cTn, currentTrigger) {
|
|
|
86062
86173
|
}
|
|
86063
86174
|
return trigger;
|
|
86064
86175
|
}
|
|
86065
|
-
function buildTimingNodeAnimation(cTn, trigger, group) {
|
|
86176
|
+
function buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor = false) {
|
|
86066
86177
|
const presetClass = cTn["@_presetClass"];
|
|
86067
|
-
const presetId = cTn["@_presetID"] ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
|
|
86178
|
+
const presetId = cTn["@_presetID"] !== void 0 ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
|
|
86068
86179
|
const presetSubtype = cTn["@_presetSubtype"] !== void 0 ? Number.parseInt(String(cTn["@_presetSubtype"]), 10) : void 0;
|
|
86069
86180
|
const childAutoReverseTiming = extractChildAutoReverseTiming(cTn, ensureArray11);
|
|
86070
|
-
const
|
|
86181
|
+
const visibilitySetTiming = !unsupportedVisibilityAncestor && group.seqConcurrent === true && group.seqNextAction === "seek" && ["onClick", "withPrevious"].includes(trigger) ? extractVisibilitySetTiming(cTn) : void 0;
|
|
86182
|
+
const durationMs = readTimingAttr(cTn["@_dur"]) ?? childAutoReverseTiming?.durationMs ?? extractChildBehaviourDurationMs(cTn, ensureArray11) ?? (visibilitySetTiming ? visibilitySetTiming.delayMs + visibilitySetTiming.durationMs : void 0);
|
|
86071
86183
|
const delayMs = readTimingAttr(cTn["@_delay"]) ?? extractStartConditionDelayMs(cTn);
|
|
86072
86184
|
const accel = parseTimingPercentFraction(cTn["@_accel"]);
|
|
86073
86185
|
const decel = parseTimingPercentFraction(cTn["@_decel"]);
|
|
@@ -86118,6 +86230,8 @@ function buildTimingNodeAnimation(cTn, trigger, group) {
|
|
|
86118
86230
|
presetId,
|
|
86119
86231
|
presetSubtype,
|
|
86120
86232
|
durationMs,
|
|
86233
|
+
visibilitySetTiming,
|
|
86234
|
+
unsupportedVisibilitySet: hasNativeVisibilitySet(cTn) && !visibilitySetTiming || void 0,
|
|
86121
86235
|
delayMs,
|
|
86122
86236
|
accel,
|
|
86123
86237
|
decel,
|
|
@@ -86213,22 +86327,24 @@ var init_native_animation_timing_node_extract = __esm({
|
|
|
86213
86327
|
init_native_animation_child_timing();
|
|
86214
86328
|
init_native_animation_extended_helpers();
|
|
86215
86329
|
init_native_animation_helpers();
|
|
86330
|
+
init_native_animation_visibility_timing();
|
|
86216
86331
|
init_native_animation_set_components();
|
|
86217
86332
|
}
|
|
86218
86333
|
});
|
|
86219
86334
|
|
|
86220
86335
|
// pptx/core/services/native-animation-timing-walk.ts
|
|
86221
|
-
function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
86336
|
+
function walkTimingTree(node, animations, currentTrigger, group, ctx, unsupportedVisibilityAncestor = false) {
|
|
86222
86337
|
if (!node) {
|
|
86223
86338
|
return;
|
|
86224
86339
|
}
|
|
86225
86340
|
const cTn = node["p:cTn"];
|
|
86226
86341
|
if (cTn) {
|
|
86227
86342
|
const trigger = resolveNodeTrigger(cTn, currentTrigger);
|
|
86228
|
-
const animation = buildTimingNodeAnimation(cTn, trigger, group);
|
|
86343
|
+
const animation = buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor);
|
|
86229
86344
|
if (animation) {
|
|
86230
86345
|
animations.push(animation);
|
|
86231
86346
|
}
|
|
86347
|
+
const unsupportedChildVisibility = unsupportedVisibilityAncestor || unsupportedVisibilityContainerTiming(cTn);
|
|
86232
86348
|
const childTnList = cTn["p:childTnLst"];
|
|
86233
86349
|
if (childTnList) {
|
|
86234
86350
|
const isClickLevel = isMainSequence(cTn);
|
|
@@ -86248,7 +86364,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
86248
86364
|
id: String(mainSequenceId)
|
|
86249
86365
|
} : void 0
|
|
86250
86366
|
}),
|
|
86251
|
-
ctx
|
|
86367
|
+
ctx,
|
|
86368
|
+
unsupportedChildVisibility
|
|
86252
86369
|
);
|
|
86253
86370
|
}
|
|
86254
86371
|
for (const sequence of sequences) {
|
|
@@ -86256,11 +86373,18 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
86256
86373
|
continue;
|
|
86257
86374
|
}
|
|
86258
86375
|
const seqAttrs = extractSeqAttrs(sequence);
|
|
86259
|
-
walkTimingTree(
|
|
86376
|
+
walkTimingTree(
|
|
86377
|
+
sequence,
|
|
86378
|
+
animations,
|
|
86379
|
+
trigger,
|
|
86380
|
+
{ ...group, ...seqAttrs },
|
|
86381
|
+
ctx,
|
|
86382
|
+
unsupportedChildVisibility
|
|
86383
|
+
);
|
|
86260
86384
|
}
|
|
86261
86385
|
for (const excl of exclusives) {
|
|
86262
86386
|
const exclAnims = [];
|
|
86263
|
-
walkTimingTree(excl, exclAnims, trigger, group, ctx);
|
|
86387
|
+
walkTimingTree(excl, exclAnims, trigger, group, ctx, true);
|
|
86264
86388
|
const exclGroupId = ctx.allocateExclGroupId();
|
|
86265
86389
|
for (const a of exclAnims) {
|
|
86266
86390
|
a.exclusive = true;
|
|
@@ -86280,7 +86404,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
86280
86404
|
childGroupContext(group, parallel["p:cTn"], {
|
|
86281
86405
|
isClickLevelGroup: false
|
|
86282
86406
|
}),
|
|
86283
|
-
ctx
|
|
86407
|
+
ctx,
|
|
86408
|
+
unsupportedVisibilityAncestor
|
|
86284
86409
|
);
|
|
86285
86410
|
}
|
|
86286
86411
|
for (const sequence of directSequences) {
|
|
@@ -86288,7 +86413,14 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
86288
86413
|
continue;
|
|
86289
86414
|
}
|
|
86290
86415
|
const seqAttrs = extractSeqAttrs(sequence);
|
|
86291
|
-
walkTimingTree(
|
|
86416
|
+
walkTimingTree(
|
|
86417
|
+
sequence,
|
|
86418
|
+
animations,
|
|
86419
|
+
currentTrigger,
|
|
86420
|
+
{ ...group, ...seqAttrs },
|
|
86421
|
+
ctx,
|
|
86422
|
+
unsupportedVisibilityAncestor
|
|
86423
|
+
);
|
|
86292
86424
|
}
|
|
86293
86425
|
}
|
|
86294
86426
|
var init_native_animation_timing_walk = __esm({
|
|
@@ -86296,6 +86428,7 @@ var init_native_animation_timing_walk = __esm({
|
|
|
86296
86428
|
init_animation_group_context();
|
|
86297
86429
|
init_animation_timing_attrs();
|
|
86298
86430
|
init_native_animation_helpers();
|
|
86431
|
+
init_native_animation_visibility_timing();
|
|
86299
86432
|
init_native_animation_interactive_predicate();
|
|
86300
86433
|
init_native_animation_timing_node_extract();
|
|
86301
86434
|
}
|
|
@@ -105652,6 +105785,51 @@ var init_animation_opacity_set = __esm({
|
|
|
105652
105785
|
}
|
|
105653
105786
|
});
|
|
105654
105787
|
|
|
105788
|
+
// pptx/core/services/animation-effect-timing.ts
|
|
105789
|
+
function applySpeedToDuration(speedPct, baseDurationMs) {
|
|
105790
|
+
if (speedPct === void 0 || !Number.isFinite(speedPct) || speedPct <= 0) {
|
|
105791
|
+
return baseDurationMs;
|
|
105792
|
+
}
|
|
105793
|
+
return Math.max(1, Math.round(baseDurationMs / (speedPct / 100)));
|
|
105794
|
+
}
|
|
105795
|
+
function resolveIterationCount(repeatCount, repeatDurMs, adjustedDurationMs) {
|
|
105796
|
+
if (repeatCount !== void 0) {
|
|
105797
|
+
return repeatCount;
|
|
105798
|
+
}
|
|
105799
|
+
if (repeatDurMs === void 0) {
|
|
105800
|
+
return 1;
|
|
105801
|
+
}
|
|
105802
|
+
if (repeatDurMs === Infinity) {
|
|
105803
|
+
return Infinity;
|
|
105804
|
+
}
|
|
105805
|
+
if (adjustedDurationMs <= 0) {
|
|
105806
|
+
return 1;
|
|
105807
|
+
}
|
|
105808
|
+
return Math.max(1, Math.round(repeatDurMs / adjustedDurationMs));
|
|
105809
|
+
}
|
|
105810
|
+
function shouldHoldEndState(anim) {
|
|
105811
|
+
if (anim.presetClass !== "emph" && anim.presetClass !== "path") {
|
|
105812
|
+
return false;
|
|
105813
|
+
}
|
|
105814
|
+
return anim.fill === "hold" || anim.fill === "freeze" || anim.fill === "transition";
|
|
105815
|
+
}
|
|
105816
|
+
function resolveEffectTiming(anim, baseDurationMs) {
|
|
105817
|
+
const durationMs = applySpeedToDuration(anim.speedPct, baseDurationMs);
|
|
105818
|
+
const authoredIterations = resolveIterationCount(anim.repeatCount, anim.repeatDurMs, durationMs);
|
|
105819
|
+
const iterationCount = anim.autoReverse && anim.repeatDurMs === void 0 ? authoredIterations * 2 : authoredIterations;
|
|
105820
|
+
const activeDurationMs = Number.isFinite(iterationCount) ? durationMs * iterationCount : durationMs;
|
|
105821
|
+
return {
|
|
105822
|
+
durationMs,
|
|
105823
|
+
iterationCount,
|
|
105824
|
+
activeDurationMs,
|
|
105825
|
+
holdEndState: shouldHoldEndState(anim)
|
|
105826
|
+
};
|
|
105827
|
+
}
|
|
105828
|
+
var init_animation_effect_timing = __esm({
|
|
105829
|
+
"pptx/core/services/animation-effect-timing.ts"() {
|
|
105830
|
+
}
|
|
105831
|
+
});
|
|
105832
|
+
|
|
105655
105833
|
// pptx/core/services/index.ts
|
|
105656
105834
|
var init_services = __esm({
|
|
105657
105835
|
"pptx/core/services/index.ts"() {
|
|
@@ -105682,6 +105860,8 @@ var init_services = __esm({
|
|
|
105682
105860
|
init_animation_target_build_helpers();
|
|
105683
105861
|
init_animation_effect_filter_parsing();
|
|
105684
105862
|
init_animation_opacity_set();
|
|
105863
|
+
init_animation_effect_timing();
|
|
105864
|
+
init_native_animation_visibility_timing();
|
|
105685
105865
|
}
|
|
105686
105866
|
});
|
|
105687
105867
|
|
|
@@ -147441,6 +147621,36 @@ var init_PptxHandlerRuntimeShapeTextParsing = __esm({
|
|
|
147441
147621
|
)
|
|
147442
147622
|
);
|
|
147443
147623
|
const pPr = this.mergeXmlObjects(lstStyleParagraphDefaults, directPPr);
|
|
147624
|
+
if (!textStyle.inheritedParagraphSpacing) {
|
|
147625
|
+
textStyle.inheritedParagraphSpacing = {};
|
|
147626
|
+
for (let spacingLevel = 0; spacingLevel < 9; spacingLevel++) {
|
|
147627
|
+
const key2 = `a:lvl${spacingLevel + 1}pPr`;
|
|
147628
|
+
const defaults = this.mergeXmlObjects(
|
|
147629
|
+
this.mergeXmlObjects(
|
|
147630
|
+
inheritedLstStyle?.["a:defPPr"],
|
|
147631
|
+
inheritedLstStyle?.[key2]
|
|
147632
|
+
),
|
|
147633
|
+
this.mergeXmlObjects(
|
|
147634
|
+
ownLstStyle?.["a:defPPr"],
|
|
147635
|
+
ownLstStyle?.[key2]
|
|
147636
|
+
)
|
|
147637
|
+
);
|
|
147638
|
+
const inherited = this.mergeXmlObjects(
|
|
147639
|
+
defaults,
|
|
147640
|
+
inheritedParagraph?.["a:pPr"]
|
|
147641
|
+
);
|
|
147642
|
+
const spacing = this.extractParagraphOwnProperties({ "a:pPr": inherited }, textStyle.fontSize) ?? {};
|
|
147643
|
+
const phLevel = ctx.effectiveLevelStyles?.[spacingLevel];
|
|
147644
|
+
const phBase = ctx.effectiveLevelStyles?.[-1];
|
|
147645
|
+
if (phLevel) this.applyPlaceholderLevelDefaults(spacing, phLevel);
|
|
147646
|
+
if (phBase) this.applyPlaceholderLevelDefaults(spacing, phBase);
|
|
147647
|
+
textStyle.inheritedParagraphSpacing[spacingLevel] = {
|
|
147648
|
+
paragraphSpacingBefore: spacing.paragraphSpacingBefore ?? 0,
|
|
147649
|
+
paragraphSpacingAfter: spacing.paragraphSpacingAfter ?? 0,
|
|
147650
|
+
...spacing.lineSpacingExactPt !== void 0 ? { lineSpacingExactPt: spacing.lineSpacingExactPt } : { lineSpacing: spacing.lineSpacing ?? 1 }
|
|
147651
|
+
};
|
|
147652
|
+
}
|
|
147653
|
+
}
|
|
147444
147654
|
const paragraphRtl = this.parseOptionalBooleanAttr(pPr?.["@_rtl"]);
|
|
147445
147655
|
if (paragraphRtl !== void 0 && textStyle.rtl === void 0) {
|
|
147446
147656
|
textStyle.rtl = paragraphRtl;
|
|
@@ -178952,6 +179162,7 @@ exports.applySmartArtLayoutDefinition = applySmartArtLayoutDefinition;
|
|
|
178952
179162
|
exports.applySmartArtQuickStyle3d = applySmartArtQuickStyle3d;
|
|
178953
179163
|
exports.applySmartArtRoleColors = applySmartArtRoleColors;
|
|
178954
179164
|
exports.applySoundToEffectCTn = applySoundToEffectCTn;
|
|
179165
|
+
exports.applySpeedToDuration = applySpeedToDuration;
|
|
178955
179166
|
exports.applyTableCellTextAndStyle = applyTableCellTextAndStyle;
|
|
178956
179167
|
exports.applyTemplate = applyTemplate;
|
|
178957
179168
|
exports.applyThemeOverrideToSlide = applyThemeOverrideToSlide;
|
|
@@ -179448,7 +179659,9 @@ exports.resolveCustomGeometryToken = resolveCustomGeometryToken;
|
|
|
179448
179659
|
exports.resolveCustomShowSlideIndices = resolveCustomShowSlideIndices;
|
|
179449
179660
|
exports.resolveDirectionSubtype = resolveDirectionSubtype;
|
|
179450
179661
|
exports.resolveDisplayedChartTypeName = resolveDisplayedChartTypeName;
|
|
179662
|
+
exports.resolveEffectTiming = resolveEffectTiming;
|
|
179451
179663
|
exports.resolveFlowDirection = resolveFlowDirection;
|
|
179664
|
+
exports.resolveIterationCount = resolveIterationCount;
|
|
179452
179665
|
exports.resolveLayoutDisplayName = resolveLayoutDisplayName;
|
|
179453
179666
|
exports.resolveModel3DMimeType = resolveModel3DMimeType;
|
|
179454
179667
|
exports.resolveModifyVerifierAlgorithmName = resolveModifyVerifierAlgorithmName;
|
|
@@ -179462,6 +179675,7 @@ exports.resolveSmartArtNodeCoherent3DOff = resolveSmartArtNodeCoherent3DOff;
|
|
|
179462
179675
|
exports.resolveSmartArtNodeStyleRoles = resolveSmartArtNodeStyleRoles;
|
|
179463
179676
|
exports.resolveTableCellStyle = resolveTableCellStyle;
|
|
179464
179677
|
exports.resolveThemeColorRef = resolveThemeColorRef;
|
|
179678
|
+
exports.resolveVisibilitySetTiming = resolveVisibilitySetTiming;
|
|
179465
179679
|
exports.rgb = rgb;
|
|
179466
179680
|
exports.rgbToHsl = rgbToHsl;
|
|
179467
179681
|
exports.roleOf = roleOf;
|
|
@@ -179512,6 +179726,7 @@ exports.setOleObjectName = setOleObjectName;
|
|
|
179512
179726
|
exports.setPresentationRunText = setPresentationRunText;
|
|
179513
179727
|
exports.setSmartArtNodeStyle = setSmartArtNodeStyle;
|
|
179514
179728
|
exports.shadowOffsetToDistanceAndDirection = shadowOffsetToDistanceAndDirection;
|
|
179729
|
+
exports.shouldHoldEndState = shouldHoldEndState;
|
|
179515
179730
|
exports.shouldRenderFallbackLabel = shouldRenderFallbackLabel;
|
|
179516
179731
|
exports.shouldReturnToZoomSlide = shouldReturnToZoomSlide;
|
|
179517
179732
|
exports.smartArtQuickStyleHas3d = smartArtQuickStyleHas3d;
|