ooxml-core 1.10.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/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 +3293 -2867
- package/dist/automation/index.mjs +3293 -2867
- 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/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +125 -56
- package/dist/docx/layout/index.mjs +125 -56
- 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/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/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 +382 -210
- package/dist/visio/index.d.ts +1 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +382 -210
- package/dist/visio/model.d.ts +6 -0
- package/dist/visio/model.d.ts.map +1 -1
- 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 +394 -211
- package/dist/visio/ui/index.mjs +394 -211
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-
|
|
1
|
+
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-EC2W2MDY.mjs';
|
|
2
2
|
|
|
3
3
|
// pptx/converter/media-context.ts
|
|
4
4
|
var MIME_TO_EXT = {
|
|
@@ -73,14 +73,6 @@ function cloneXmlObject(value) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// pptx/core/types/type-guards.ts
|
|
77
|
-
function hasTextProperties(element) {
|
|
78
|
-
return element.type === "text" || element.type === "shape" || element.type === "connector";
|
|
79
|
-
}
|
|
80
|
-
function hasShapeProperties(element) {
|
|
81
|
-
return element.type === "text" || element.type === "shape" || element.type === "connector" || element.type === "image" || element.type === "picture";
|
|
82
|
-
}
|
|
83
|
-
|
|
84
76
|
// pptx/core/types/theme.ts
|
|
85
77
|
var THEME_COLOR_SCHEME_KEYS = [
|
|
86
78
|
"dk1",
|
|
@@ -44276,8 +44268,6 @@ exports.formatAutoNumberMarker = formatAutoNumberMarker;
|
|
|
44276
44268
|
exports.generateFontGuid = generateFontGuid;
|
|
44277
44269
|
exports.getSignaturePathsToStrip = getSignaturePathsToStrip;
|
|
44278
44270
|
exports.getTblFromRawXml = getTblFromRawXml;
|
|
44279
|
-
exports.hasShapeProperties = hasShapeProperties;
|
|
44280
|
-
exports.hasTextProperties = hasTextProperties;
|
|
44281
44271
|
exports.hash = hash;
|
|
44282
44272
|
exports.hslToRgb = hslToRgb;
|
|
44283
44273
|
exports.inferOleExtensionFromTarget = inferOleExtensionFromTarget;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQOO36KG4_cjs = require('./chunk-QOO36KG4.cjs');
|
|
4
|
+
|
|
5
|
+
// pptx/editor/render/update-text-segment-style.ts
|
|
6
|
+
function updateTextSegmentStyle(segment, updates, options = {}) {
|
|
7
|
+
const { inherited } = options;
|
|
8
|
+
return {
|
|
9
|
+
...segment,
|
|
10
|
+
...options.updateBodyStyle === false ? {} : { style: chunkQOO36KG4_cjs.mergeTextStyleUpdate(segment.style, updates, inherited) },
|
|
11
|
+
...segment.paragraphInsertionStyle ? {
|
|
12
|
+
paragraphInsertionStyle: chunkQOO36KG4_cjs.mergeTextStyleUpdate(
|
|
13
|
+
segment.paragraphInsertionStyle,
|
|
14
|
+
updates,
|
|
15
|
+
inherited
|
|
16
|
+
)
|
|
17
|
+
} : {}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.updateTextSegmentStyle = updateTextSegmentStyle;
|
|
@@ -21714,7 +21714,7 @@ function findTextBearingElementById(elements2, elementId) {
|
|
|
21714
21714
|
}
|
|
21715
21715
|
async function loadNestedDeck(pptxBytes) {
|
|
21716
21716
|
try {
|
|
21717
|
-
const { PptxHandler } = await import('./PptxHandler-
|
|
21717
|
+
const { PptxHandler } = await import('./PptxHandler-NROFYT2N.mjs');
|
|
21718
21718
|
const handler = new PptxHandler();
|
|
21719
21719
|
const data = await handler.load(pptxBytes.buffer.slice(0));
|
|
21720
21720
|
return { handler, slides: data.slides };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { mergeTextStyleUpdate } from './chunk-R2KZXD6U.mjs';
|
|
2
|
+
|
|
3
|
+
// pptx/editor/render/update-text-segment-style.ts
|
|
4
|
+
function updateTextSegmentStyle(segment, updates, options = {}) {
|
|
5
|
+
const { inherited } = options;
|
|
6
|
+
return {
|
|
7
|
+
...segment,
|
|
8
|
+
...options.updateBodyStyle === false ? {} : { style: mergeTextStyleUpdate(segment.style, updates, inherited) },
|
|
9
|
+
...segment.paragraphInsertionStyle ? {
|
|
10
|
+
paragraphInsertionStyle: mergeTextStyleUpdate(
|
|
11
|
+
segment.paragraphInsertionStyle,
|
|
12
|
+
updates,
|
|
13
|
+
inherited
|
|
14
|
+
)
|
|
15
|
+
} : {}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { updateTextSegmentStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// pptx/core/types/type-guards.ts
|
|
2
|
+
function hasTextProperties(element) {
|
|
3
|
+
return element.type === "text" || element.type === "shape" || element.type === "connector";
|
|
4
|
+
}
|
|
5
|
+
function hasShapeProperties(element) {
|
|
6
|
+
return element.type === "text" || element.type === "shape" || element.type === "connector" || element.type === "image" || element.type === "picture";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { hasShapeProperties, hasTextProperties };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-
|
|
1
|
+
import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-EC2W2MDY.mjs';
|
|
2
2
|
import { DIGITAL_SIGNATURE_ORIGIN_REL_TYPE } from './chunk-KBIJI6P5.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-3GXV5MPC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-54S5A5PZ.mjs';
|
|
@@ -16571,52 +16571,6 @@ function collectMediaNodes(node, animations) {
|
|
|
16571
16571
|
}
|
|
16572
16572
|
}
|
|
16573
16573
|
|
|
16574
|
-
// pptx/core/services/animation-effect-filter-parsing.ts
|
|
16575
|
-
var FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
|
|
16576
|
-
function parseFilterToken(raw) {
|
|
16577
|
-
const trimmed2 = raw.trim();
|
|
16578
|
-
if (!trimmed2) {
|
|
16579
|
-
return void 0;
|
|
16580
|
-
}
|
|
16581
|
-
const match = FILTER_TOKEN_RE.exec(trimmed2);
|
|
16582
|
-
if (!match) {
|
|
16583
|
-
return void 0;
|
|
16584
|
-
}
|
|
16585
|
-
const family = match[1].toLowerCase();
|
|
16586
|
-
const subtypeToken = match[2];
|
|
16587
|
-
const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
|
|
16588
|
-
return { family, subtype };
|
|
16589
|
-
}
|
|
16590
|
-
function parseAnimEffectFilter(childTnList) {
|
|
16591
|
-
if (!childTnList) {
|
|
16592
|
-
return void 0;
|
|
16593
|
-
}
|
|
16594
|
-
const rawAnimEffect = childTnList["p:animEffect"];
|
|
16595
|
-
const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
|
|
16596
|
-
if (!animEffect || typeof animEffect !== "object") {
|
|
16597
|
-
return void 0;
|
|
16598
|
-
}
|
|
16599
|
-
const node = animEffect;
|
|
16600
|
-
const filterAttr = node["@_filter"];
|
|
16601
|
-
if (filterAttr === void 0 || filterAttr === null) {
|
|
16602
|
-
return void 0;
|
|
16603
|
-
}
|
|
16604
|
-
const raw = String(filterAttr);
|
|
16605
|
-
const firstToken = raw.split(";")[0] ?? "";
|
|
16606
|
-
const parsed = parseFilterToken(firstToken);
|
|
16607
|
-
if (!parsed) {
|
|
16608
|
-
return void 0;
|
|
16609
|
-
}
|
|
16610
|
-
const transitionAttr = node["@_transition"];
|
|
16611
|
-
const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
|
|
16612
|
-
return {
|
|
16613
|
-
family: parsed.family,
|
|
16614
|
-
subtype: parsed.subtype,
|
|
16615
|
-
transition,
|
|
16616
|
-
raw
|
|
16617
|
-
};
|
|
16618
|
-
}
|
|
16619
|
-
|
|
16620
16574
|
// pptx/core/services/native-animation-cbhvr-attrs.ts
|
|
16621
16575
|
var ADDITIVE_VALUES = /* @__PURE__ */ new Set(["base", "sum", "repl", "mult", "none"]);
|
|
16622
16576
|
var ACCUMULATE_VALUES = /* @__PURE__ */ new Set(["none", "always"]);
|
|
@@ -16687,51 +16641,6 @@ function extractChildCalcMode(childTnList) {
|
|
|
16687
16641
|
return void 0;
|
|
16688
16642
|
}
|
|
16689
16643
|
|
|
16690
|
-
// pptx/core/services/native-animation-attribute-components.ts
|
|
16691
|
-
function extractBounceEndFraction(raw) {
|
|
16692
|
-
if (raw === void 0) {
|
|
16693
|
-
return void 0;
|
|
16694
|
-
}
|
|
16695
|
-
const parsed = Number(raw);
|
|
16696
|
-
if (!Number.isFinite(parsed)) {
|
|
16697
|
-
return void 0;
|
|
16698
|
-
}
|
|
16699
|
-
return Math.max(0, Math.min(1, parsed / 1e5));
|
|
16700
|
-
}
|
|
16701
|
-
function extractAttributeAnimations(childTnList) {
|
|
16702
|
-
if (!childTnList) {
|
|
16703
|
-
return void 0;
|
|
16704
|
-
}
|
|
16705
|
-
const components = [];
|
|
16706
|
-
for (const node of ensureArray3(childTnList["p:anim"])) {
|
|
16707
|
-
const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
|
|
16708
|
-
const keyframes = extractKeyframes(node);
|
|
16709
|
-
const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
|
|
16710
|
-
const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
|
|
16711
|
-
const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
|
|
16712
|
-
const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
|
|
16713
|
-
if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
|
|
16714
|
-
continue;
|
|
16715
|
-
}
|
|
16716
|
-
const behavior = node["p:cBhvr"];
|
|
16717
|
-
const cTn = behavior?.["p:cTn"];
|
|
16718
|
-
const calcMode = normalizeCalcMode(node["@_calcmode"]);
|
|
16719
|
-
const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
|
|
16720
|
-
components.push({
|
|
16721
|
-
attrName,
|
|
16722
|
-
keyframes: keyframes ?? [],
|
|
16723
|
-
durationMs: readTimingAttr(cTn?.["@_dur"]),
|
|
16724
|
-
delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
|
|
16725
|
-
...calcMode ? { calcMode } : {},
|
|
16726
|
-
...from !== void 0 ? { from } : {},
|
|
16727
|
-
...to !== void 0 ? { to } : {},
|
|
16728
|
-
...by !== void 0 ? { by } : {},
|
|
16729
|
-
...bounceEnd !== void 0 ? { bounceEnd } : {}
|
|
16730
|
-
});
|
|
16731
|
-
}
|
|
16732
|
-
return components.length > 0 ? components : void 0;
|
|
16733
|
-
}
|
|
16734
|
-
|
|
16735
16644
|
// pptx/core/services/native-animation-behaviors.ts
|
|
16736
16645
|
var BEHAVIOR_TAGS = [
|
|
16737
16646
|
"p:set",
|
|
@@ -16925,6 +16834,199 @@ function extractBehaviors(childTnList) {
|
|
|
16925
16834
|
return behaviors.length > 0 ? behaviors : void 0;
|
|
16926
16835
|
}
|
|
16927
16836
|
|
|
16837
|
+
// pptx/core/services/native-animation-visibility-timing.ts
|
|
16838
|
+
var neutralTiming = (node) => [
|
|
16839
|
+
"@_repeatDur",
|
|
16840
|
+
"@_tmFilter",
|
|
16841
|
+
"@_endSync",
|
|
16842
|
+
"@_evtFilter",
|
|
16843
|
+
"@_display",
|
|
16844
|
+
"@_masterRel",
|
|
16845
|
+
"@_syncBehavior",
|
|
16846
|
+
"@_nodePh",
|
|
16847
|
+
"@_progress",
|
|
16848
|
+
"@_p14:presetBounceEnd",
|
|
16849
|
+
"p:endCondLst",
|
|
16850
|
+
"p:endSync",
|
|
16851
|
+
"p:iterate"
|
|
16852
|
+
].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");
|
|
16853
|
+
function hasNativeVisibilitySet(node) {
|
|
16854
|
+
if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0") return false;
|
|
16855
|
+
const children5 = node["p:childTnLst"];
|
|
16856
|
+
if (!isXmlObject3(children5)) return false;
|
|
16857
|
+
return ensureArray3(children5["p:set"]).some((set) => {
|
|
16858
|
+
const common = set["p:cBhvr"];
|
|
16859
|
+
const list = isXmlObject3(common) ? common["p:attrNameLst"] : void 0;
|
|
16860
|
+
const names = isXmlObject3(list) ? list["p:attrName"] : void 0;
|
|
16861
|
+
return (Array.isArray(names) ? names : [names]).some(
|
|
16862
|
+
(name) => String(isXmlObject3(name) ? name["#text"] : name).trim().toLowerCase() === "style.visibility"
|
|
16863
|
+
);
|
|
16864
|
+
});
|
|
16865
|
+
}
|
|
16866
|
+
function simpleStarts(node, clickGate = false) {
|
|
16867
|
+
const list = node["p:stCondLst"];
|
|
16868
|
+
if (list === void 0) return true;
|
|
16869
|
+
if (!isXmlObject3(list) || Object.keys(list).some((key2) => key2 !== "p:cond")) return false;
|
|
16870
|
+
const conditions = ensureArray3(list["p:cond"]);
|
|
16871
|
+
return conditions.length === 1 && conditions.every(
|
|
16872
|
+
(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")
|
|
16873
|
+
);
|
|
16874
|
+
}
|
|
16875
|
+
function unsupportedVisibilityContainerTiming(node) {
|
|
16876
|
+
if (node["@_presetClass"] !== void 0) return false;
|
|
16877
|
+
const structuralRoot = ["tmRoot", "mainSeq"].includes(String(node["@_nodeType"] ?? ""));
|
|
16878
|
+
return !neutralTiming(node) || !simpleStarts(node, true) || ensureArray3(isXmlObject3(node["p:stCondLst"]) ? node["p:stCondLst"]["p:cond"] : void 0).some(
|
|
16879
|
+
(condition) => /^\d+$/u.test(String(condition["@_delay"])) && Number(condition["@_delay"]) > 0
|
|
16880
|
+
) || node["@_dur"] !== void 0 && !(structuralRoot && node["@_dur"] === "indefinite") || node["@_fill"] !== void 0 && node["@_fill"] !== "hold" || node["p:subTnLst"] !== void 0;
|
|
16881
|
+
}
|
|
16882
|
+
function extractVisibilitySetTiming(node) {
|
|
16883
|
+
if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0" || String(node["@_presetSubtype"] ?? "0") !== "0" || node["@_dur"] !== void 0 || node["@_fill"] !== "hold" || !neutralTiming(node) || !simpleStarts(node))
|
|
16884
|
+
return void 0;
|
|
16885
|
+
const children5 = node["p:childTnLst"];
|
|
16886
|
+
if (!isXmlObject3(children5) || Object.keys(children5).length !== 1 || !children5["p:set"])
|
|
16887
|
+
return void 0;
|
|
16888
|
+
const sets = ensureArray3(children5["p:set"]);
|
|
16889
|
+
if (sets.length !== 1) return void 0;
|
|
16890
|
+
if (Object.keys(sets[0]).some((key2) => !["p:cBhvr", "p:to"].includes(key2))) return void 0;
|
|
16891
|
+
const to = sets[0]["p:to"];
|
|
16892
|
+
if (!isXmlObject3(to) || Object.keys(to).length !== 1 || !isXmlObject3(to["p:strVal"]) || Object.keys(to["p:strVal"]).some((key2) => key2 !== "@_val") || to["p:strVal"]["@_val"] !== "visible")
|
|
16893
|
+
return void 0;
|
|
16894
|
+
const common = sets[0]["p:cBhvr"];
|
|
16895
|
+
if (!isXmlObject3(common) || Object.keys(common).some(
|
|
16896
|
+
(key2) => !["p:cTn", "p:tgtEl", "p:attrNameLst", "@_additive"].includes(key2)
|
|
16897
|
+
) || common["@_additive"] !== void 0 && !["base", "repl", "none"].includes(String(common["@_additive"])))
|
|
16898
|
+
return void 0;
|
|
16899
|
+
const target = common["p:tgtEl"];
|
|
16900
|
+
if (!isXmlObject3(target) || Object.keys(target).length !== 1 || !isXmlObject3(target["p:spTgt"]) || Object.keys(target["p:spTgt"]).some((key2) => key2 !== "@_spid") || !/^\d+$/u.test(String(target["p:spTgt"]["@_spid"])))
|
|
16901
|
+
return void 0;
|
|
16902
|
+
const child14 = common["p:cTn"];
|
|
16903
|
+
if (!isXmlObject3(child14) || !neutralTiming(child14) || !simpleStarts(child14) || String(child14["@_dur"]) !== "1" || child14["@_fill"] !== "hold")
|
|
16904
|
+
return void 0;
|
|
16905
|
+
const behavior = extractBehaviors(children5)?.[0];
|
|
16906
|
+
if (!behavior || behavior.kind !== "set" || behavior.value !== "visible" || behavior.attrNames.length !== 1 || behavior.attrNames[0] !== "style.visibility" || behavior.timing.unsupportedSetTiming)
|
|
16907
|
+
return void 0;
|
|
16908
|
+
try {
|
|
16909
|
+
assertAfterAnimationClearSupported(node);
|
|
16910
|
+
} catch {
|
|
16911
|
+
return void 0;
|
|
16912
|
+
}
|
|
16913
|
+
const sub = node["p:subTnLst"];
|
|
16914
|
+
if (sub !== void 0) {
|
|
16915
|
+
if (!isXmlObject3(sub)) return void 0;
|
|
16916
|
+
for (const [key2, raw] of Object.entries(sub)) {
|
|
16917
|
+
for (const value of ensureArray3(raw)) {
|
|
16918
|
+
if (!extractAfterAnimationFromSubTnLst({ "p:subTnLst": { [key2]: value } }))
|
|
16919
|
+
return void 0;
|
|
16920
|
+
}
|
|
16921
|
+
}
|
|
16922
|
+
}
|
|
16923
|
+
const delayMs = behavior.timing.delayMs ?? 0;
|
|
16924
|
+
if (!Number.isSafeInteger(delayMs) || delayMs < 0 || delayMs >= 2147483647) return void 0;
|
|
16925
|
+
return { delayMs, durationMs: 1 };
|
|
16926
|
+
}
|
|
16927
|
+
function resolveVisibilitySetTiming(anim) {
|
|
16928
|
+
const timing = anim.visibilitySetTiming;
|
|
16929
|
+
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(
|
|
16930
|
+
(condition) => Object.entries(condition).some(([key2, value]) => value !== void 0 && key2 !== "delay") || condition.delay !== void 0 && (!Number.isSafeInteger(condition.delay) || condition.delay < 0)
|
|
16931
|
+
) || (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)
|
|
16932
|
+
return void 0;
|
|
16933
|
+
const behavior = anim.behaviors?.[0];
|
|
16934
|
+
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)
|
|
16935
|
+
return void 0;
|
|
16936
|
+
return timing;
|
|
16937
|
+
}
|
|
16938
|
+
|
|
16939
|
+
// pptx/core/services/animation-effect-filter-parsing.ts
|
|
16940
|
+
var FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
|
|
16941
|
+
function parseFilterToken(raw) {
|
|
16942
|
+
const trimmed2 = raw.trim();
|
|
16943
|
+
if (!trimmed2) {
|
|
16944
|
+
return void 0;
|
|
16945
|
+
}
|
|
16946
|
+
const match = FILTER_TOKEN_RE.exec(trimmed2);
|
|
16947
|
+
if (!match) {
|
|
16948
|
+
return void 0;
|
|
16949
|
+
}
|
|
16950
|
+
const family = match[1].toLowerCase();
|
|
16951
|
+
const subtypeToken = match[2];
|
|
16952
|
+
const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
|
|
16953
|
+
return { family, subtype };
|
|
16954
|
+
}
|
|
16955
|
+
function parseAnimEffectFilter(childTnList) {
|
|
16956
|
+
if (!childTnList) {
|
|
16957
|
+
return void 0;
|
|
16958
|
+
}
|
|
16959
|
+
const rawAnimEffect = childTnList["p:animEffect"];
|
|
16960
|
+
const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
|
|
16961
|
+
if (!animEffect || typeof animEffect !== "object") {
|
|
16962
|
+
return void 0;
|
|
16963
|
+
}
|
|
16964
|
+
const node = animEffect;
|
|
16965
|
+
const filterAttr = node["@_filter"];
|
|
16966
|
+
if (filterAttr === void 0 || filterAttr === null) {
|
|
16967
|
+
return void 0;
|
|
16968
|
+
}
|
|
16969
|
+
const raw = String(filterAttr);
|
|
16970
|
+
const firstToken = raw.split(";")[0] ?? "";
|
|
16971
|
+
const parsed = parseFilterToken(firstToken);
|
|
16972
|
+
if (!parsed) {
|
|
16973
|
+
return void 0;
|
|
16974
|
+
}
|
|
16975
|
+
const transitionAttr = node["@_transition"];
|
|
16976
|
+
const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
|
|
16977
|
+
return {
|
|
16978
|
+
family: parsed.family,
|
|
16979
|
+
subtype: parsed.subtype,
|
|
16980
|
+
transition,
|
|
16981
|
+
raw
|
|
16982
|
+
};
|
|
16983
|
+
}
|
|
16984
|
+
|
|
16985
|
+
// pptx/core/services/native-animation-attribute-components.ts
|
|
16986
|
+
function extractBounceEndFraction(raw) {
|
|
16987
|
+
if (raw === void 0) {
|
|
16988
|
+
return void 0;
|
|
16989
|
+
}
|
|
16990
|
+
const parsed = Number(raw);
|
|
16991
|
+
if (!Number.isFinite(parsed)) {
|
|
16992
|
+
return void 0;
|
|
16993
|
+
}
|
|
16994
|
+
return Math.max(0, Math.min(1, parsed / 1e5));
|
|
16995
|
+
}
|
|
16996
|
+
function extractAttributeAnimations(childTnList) {
|
|
16997
|
+
if (!childTnList) {
|
|
16998
|
+
return void 0;
|
|
16999
|
+
}
|
|
17000
|
+
const components = [];
|
|
17001
|
+
for (const node of ensureArray3(childTnList["p:anim"])) {
|
|
17002
|
+
const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
|
|
17003
|
+
const keyframes = extractKeyframes(node);
|
|
17004
|
+
const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
|
|
17005
|
+
const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
|
|
17006
|
+
const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
|
|
17007
|
+
const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
|
|
17008
|
+
if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
|
|
17009
|
+
continue;
|
|
17010
|
+
}
|
|
17011
|
+
const behavior = node["p:cBhvr"];
|
|
17012
|
+
const cTn = behavior?.["p:cTn"];
|
|
17013
|
+
const calcMode = normalizeCalcMode(node["@_calcmode"]);
|
|
17014
|
+
const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
|
|
17015
|
+
components.push({
|
|
17016
|
+
attrName,
|
|
17017
|
+
keyframes: keyframes ?? [],
|
|
17018
|
+
durationMs: readTimingAttr(cTn?.["@_dur"]),
|
|
17019
|
+
delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
|
|
17020
|
+
...calcMode ? { calcMode } : {},
|
|
17021
|
+
...from !== void 0 ? { from } : {},
|
|
17022
|
+
...to !== void 0 ? { to } : {},
|
|
17023
|
+
...by !== void 0 ? { by } : {},
|
|
17024
|
+
...bounceEnd !== void 0 ? { bounceEnd } : {}
|
|
17025
|
+
});
|
|
17026
|
+
}
|
|
17027
|
+
return components.length > 0 ? components : void 0;
|
|
17028
|
+
}
|
|
17029
|
+
|
|
16928
17030
|
// pptx/core/services/native-animation-child-timing.ts
|
|
16929
17031
|
var PRIMARY_BEHAVIOUR_FAMILIES = [
|
|
16930
17032
|
["p:animMotion", "p:animRot", "p:animScale"],
|
|
@@ -17041,12 +17143,13 @@ function resolveNodeTrigger(cTn, currentTrigger) {
|
|
|
17041
17143
|
}
|
|
17042
17144
|
return trigger;
|
|
17043
17145
|
}
|
|
17044
|
-
function buildTimingNodeAnimation(cTn, trigger, group) {
|
|
17146
|
+
function buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor = false) {
|
|
17045
17147
|
const presetClass = cTn["@_presetClass"];
|
|
17046
|
-
const presetId = cTn["@_presetID"] ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
|
|
17148
|
+
const presetId = cTn["@_presetID"] !== void 0 ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
|
|
17047
17149
|
const presetSubtype = cTn["@_presetSubtype"] !== void 0 ? Number.parseInt(String(cTn["@_presetSubtype"]), 10) : void 0;
|
|
17048
17150
|
const childAutoReverseTiming = extractChildAutoReverseTiming(cTn, ensureArray3);
|
|
17049
|
-
const
|
|
17151
|
+
const visibilitySetTiming = !unsupportedVisibilityAncestor && group.seqConcurrent === true && group.seqNextAction === "seek" && ["onClick", "withPrevious"].includes(trigger) ? extractVisibilitySetTiming(cTn) : void 0;
|
|
17152
|
+
const durationMs = readTimingAttr(cTn["@_dur"]) ?? childAutoReverseTiming?.durationMs ?? extractChildBehaviourDurationMs(cTn, ensureArray3) ?? (visibilitySetTiming ? visibilitySetTiming.delayMs + visibilitySetTiming.durationMs : void 0);
|
|
17050
17153
|
const delayMs = readTimingAttr(cTn["@_delay"]) ?? extractStartConditionDelayMs(cTn);
|
|
17051
17154
|
const accel = parseTimingPercentFraction(cTn["@_accel"]);
|
|
17052
17155
|
const decel = parseTimingPercentFraction(cTn["@_decel"]);
|
|
@@ -17097,6 +17200,8 @@ function buildTimingNodeAnimation(cTn, trigger, group) {
|
|
|
17097
17200
|
presetId,
|
|
17098
17201
|
presetSubtype,
|
|
17099
17202
|
durationMs,
|
|
17203
|
+
visibilitySetTiming,
|
|
17204
|
+
unsupportedVisibilitySet: hasNativeVisibilitySet(cTn) && !visibilitySetTiming || void 0,
|
|
17100
17205
|
delayMs,
|
|
17101
17206
|
accel,
|
|
17102
17207
|
decel,
|
|
@@ -17181,17 +17286,18 @@ function extractTextTargetFromCTn(cTn) {
|
|
|
17181
17286
|
}
|
|
17182
17287
|
|
|
17183
17288
|
// pptx/core/services/native-animation-timing-walk.ts
|
|
17184
|
-
function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
17289
|
+
function walkTimingTree(node, animations, currentTrigger, group, ctx, unsupportedVisibilityAncestor = false) {
|
|
17185
17290
|
if (!node) {
|
|
17186
17291
|
return;
|
|
17187
17292
|
}
|
|
17188
17293
|
const cTn = node["p:cTn"];
|
|
17189
17294
|
if (cTn) {
|
|
17190
17295
|
const trigger = resolveNodeTrigger(cTn, currentTrigger);
|
|
17191
|
-
const animation = buildTimingNodeAnimation(cTn, trigger, group);
|
|
17296
|
+
const animation = buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor);
|
|
17192
17297
|
if (animation) {
|
|
17193
17298
|
animations.push(animation);
|
|
17194
17299
|
}
|
|
17300
|
+
const unsupportedChildVisibility = unsupportedVisibilityAncestor || unsupportedVisibilityContainerTiming(cTn);
|
|
17195
17301
|
const childTnList = cTn["p:childTnLst"];
|
|
17196
17302
|
if (childTnList) {
|
|
17197
17303
|
const isClickLevel = isMainSequence(cTn);
|
|
@@ -17211,7 +17317,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
17211
17317
|
id: String(mainSequenceId)
|
|
17212
17318
|
} : void 0
|
|
17213
17319
|
}),
|
|
17214
|
-
ctx
|
|
17320
|
+
ctx,
|
|
17321
|
+
unsupportedChildVisibility
|
|
17215
17322
|
);
|
|
17216
17323
|
}
|
|
17217
17324
|
for (const sequence of sequences) {
|
|
@@ -17219,11 +17326,18 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
17219
17326
|
continue;
|
|
17220
17327
|
}
|
|
17221
17328
|
const seqAttrs = extractSeqAttrs(sequence);
|
|
17222
|
-
walkTimingTree(
|
|
17329
|
+
walkTimingTree(
|
|
17330
|
+
sequence,
|
|
17331
|
+
animations,
|
|
17332
|
+
trigger,
|
|
17333
|
+
{ ...group, ...seqAttrs },
|
|
17334
|
+
ctx,
|
|
17335
|
+
unsupportedChildVisibility
|
|
17336
|
+
);
|
|
17223
17337
|
}
|
|
17224
17338
|
for (const excl of exclusives) {
|
|
17225
17339
|
const exclAnims = [];
|
|
17226
|
-
walkTimingTree(excl, exclAnims, trigger, group, ctx);
|
|
17340
|
+
walkTimingTree(excl, exclAnims, trigger, group, ctx, true);
|
|
17227
17341
|
const exclGroupId = ctx.allocateExclGroupId();
|
|
17228
17342
|
for (const a of exclAnims) {
|
|
17229
17343
|
a.exclusive = true;
|
|
@@ -17243,7 +17357,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
17243
17357
|
childGroupContext(group, parallel["p:cTn"], {
|
|
17244
17358
|
isClickLevelGroup: false
|
|
17245
17359
|
}),
|
|
17246
|
-
ctx
|
|
17360
|
+
ctx,
|
|
17361
|
+
unsupportedVisibilityAncestor
|
|
17247
17362
|
);
|
|
17248
17363
|
}
|
|
17249
17364
|
for (const sequence of directSequences) {
|
|
@@ -17251,7 +17366,14 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
|
|
|
17251
17366
|
continue;
|
|
17252
17367
|
}
|
|
17253
17368
|
const seqAttrs = extractSeqAttrs(sequence);
|
|
17254
|
-
walkTimingTree(
|
|
17369
|
+
walkTimingTree(
|
|
17370
|
+
sequence,
|
|
17371
|
+
animations,
|
|
17372
|
+
currentTrigger,
|
|
17373
|
+
{ ...group, ...seqAttrs },
|
|
17374
|
+
ctx,
|
|
17375
|
+
unsupportedVisibilityAncestor
|
|
17376
|
+
);
|
|
17255
17377
|
}
|
|
17256
17378
|
}
|
|
17257
17379
|
|
|
@@ -36346,6 +36468,47 @@ function resolveOpacitySet(anim) {
|
|
|
36346
36468
|
};
|
|
36347
36469
|
}
|
|
36348
36470
|
|
|
36471
|
+
// pptx/core/services/animation-effect-timing.ts
|
|
36472
|
+
function applySpeedToDuration(speedPct, baseDurationMs) {
|
|
36473
|
+
if (speedPct === void 0 || !Number.isFinite(speedPct) || speedPct <= 0) {
|
|
36474
|
+
return baseDurationMs;
|
|
36475
|
+
}
|
|
36476
|
+
return Math.max(1, Math.round(baseDurationMs / (speedPct / 100)));
|
|
36477
|
+
}
|
|
36478
|
+
function resolveIterationCount(repeatCount, repeatDurMs, adjustedDurationMs) {
|
|
36479
|
+
if (repeatCount !== void 0) {
|
|
36480
|
+
return repeatCount;
|
|
36481
|
+
}
|
|
36482
|
+
if (repeatDurMs === void 0) {
|
|
36483
|
+
return 1;
|
|
36484
|
+
}
|
|
36485
|
+
if (repeatDurMs === Infinity) {
|
|
36486
|
+
return Infinity;
|
|
36487
|
+
}
|
|
36488
|
+
if (adjustedDurationMs <= 0) {
|
|
36489
|
+
return 1;
|
|
36490
|
+
}
|
|
36491
|
+
return Math.max(1, Math.round(repeatDurMs / adjustedDurationMs));
|
|
36492
|
+
}
|
|
36493
|
+
function shouldHoldEndState(anim) {
|
|
36494
|
+
if (anim.presetClass !== "emph" && anim.presetClass !== "path") {
|
|
36495
|
+
return false;
|
|
36496
|
+
}
|
|
36497
|
+
return anim.fill === "hold" || anim.fill === "freeze" || anim.fill === "transition";
|
|
36498
|
+
}
|
|
36499
|
+
function resolveEffectTiming(anim, baseDurationMs) {
|
|
36500
|
+
const durationMs = applySpeedToDuration(anim.speedPct, baseDurationMs);
|
|
36501
|
+
const authoredIterations = resolveIterationCount(anim.repeatCount, anim.repeatDurMs, durationMs);
|
|
36502
|
+
const iterationCount = anim.autoReverse && anim.repeatDurMs === void 0 ? authoredIterations * 2 : authoredIterations;
|
|
36503
|
+
const activeDurationMs = Number.isFinite(iterationCount) ? durationMs * iterationCount : durationMs;
|
|
36504
|
+
return {
|
|
36505
|
+
durationMs,
|
|
36506
|
+
iterationCount,
|
|
36507
|
+
activeDurationMs,
|
|
36508
|
+
holdEndState: shouldHoldEndState(anim)
|
|
36509
|
+
};
|
|
36510
|
+
}
|
|
36511
|
+
|
|
36349
36512
|
// pptx/core/utils/xml-namespace-declarations.ts
|
|
36350
36513
|
var WELL_KNOWN_NAMESPACES = {
|
|
36351
36514
|
a: "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
@@ -74280,6 +74443,36 @@ var PptxHandlerRuntime65 = class _PptxHandlerRuntime extends PptxHandlerRuntime6
|
|
|
74280
74443
|
)
|
|
74281
74444
|
);
|
|
74282
74445
|
const pPr = this.mergeXmlObjects(lstStyleParagraphDefaults, directPPr);
|
|
74446
|
+
if (!textStyle.inheritedParagraphSpacing) {
|
|
74447
|
+
textStyle.inheritedParagraphSpacing = {};
|
|
74448
|
+
for (let spacingLevel = 0; spacingLevel < 9; spacingLevel++) {
|
|
74449
|
+
const key2 = `a:lvl${spacingLevel + 1}pPr`;
|
|
74450
|
+
const defaults = this.mergeXmlObjects(
|
|
74451
|
+
this.mergeXmlObjects(
|
|
74452
|
+
inheritedLstStyle?.["a:defPPr"],
|
|
74453
|
+
inheritedLstStyle?.[key2]
|
|
74454
|
+
),
|
|
74455
|
+
this.mergeXmlObjects(
|
|
74456
|
+
ownLstStyle?.["a:defPPr"],
|
|
74457
|
+
ownLstStyle?.[key2]
|
|
74458
|
+
)
|
|
74459
|
+
);
|
|
74460
|
+
const inherited = this.mergeXmlObjects(
|
|
74461
|
+
defaults,
|
|
74462
|
+
inheritedParagraph?.["a:pPr"]
|
|
74463
|
+
);
|
|
74464
|
+
const spacing = this.extractParagraphOwnProperties({ "a:pPr": inherited }, textStyle.fontSize) ?? {};
|
|
74465
|
+
const phLevel = ctx.effectiveLevelStyles?.[spacingLevel];
|
|
74466
|
+
const phBase = ctx.effectiveLevelStyles?.[-1];
|
|
74467
|
+
if (phLevel) this.applyPlaceholderLevelDefaults(spacing, phLevel);
|
|
74468
|
+
if (phBase) this.applyPlaceholderLevelDefaults(spacing, phBase);
|
|
74469
|
+
textStyle.inheritedParagraphSpacing[spacingLevel] = {
|
|
74470
|
+
paragraphSpacingBefore: spacing.paragraphSpacingBefore ?? 0,
|
|
74471
|
+
paragraphSpacingAfter: spacing.paragraphSpacingAfter ?? 0,
|
|
74472
|
+
...spacing.lineSpacingExactPt !== void 0 ? { lineSpacingExactPt: spacing.lineSpacingExactPt } : { lineSpacing: spacing.lineSpacing ?? 1 }
|
|
74473
|
+
};
|
|
74474
|
+
}
|
|
74475
|
+
}
|
|
74283
74476
|
const paragraphRtl = this.parseOptionalBooleanAttr(pPr?.["@_rtl"]);
|
|
74284
74477
|
if (paragraphRtl !== void 0 && textStyle.rtl === void 0) {
|
|
74285
74478
|
textStyle.rtl = paragraphRtl;
|
|
@@ -87214,4 +87407,4 @@ var PptxHandler = class extends PptxHandlerCore {
|
|
|
87214
87407
|
* `<p:extLst>` (optional)
|
|
87215
87408
|
*/
|
|
87216
87409
|
|
|
87217
|
-
export { AFTER_ANIMATION_VALUES, ConnectorXmlFactory, DEFAULT_AFTER_ANIMATION_DIM_COLOR, DEFAULT_ANIMATION_DURATION_MS, DEFAULT_ANIMATION_TRIGGER, DEFAULT_MAX_UNCOMPRESSED_BYTES, DEFAULT_POWERPOINT_TABLE_STYLE_ID, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, EncryptedPptError, MAX_ZIP_ENTRY_COUNT, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime102 as PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, PresentationBuilder, STANDARD_LAYOUTS, SlideBuilder, TABLE_STYLE_PART_SEQUENCE, TextShapeXmlFactory, ZipBombError, addChartCategory, addChartSeries, addTableStyleToMap, animationFor, applyAfterAnimationBehavior, applyAfterAnimationFromEditorList, applyConnectorShapeIds, applySoundToEffectCTn, applyTableCellTextAndStyle, assertChartGradientSupported, breakAutoNumberRun, buildBlankPresentationArchive, buildRelationshipsXml, buildSingleEffectNode, buildSlideReferenceRemap, buildXml, capturedPresetIds, capturedPresetNativeAnimation, capturedSubtypes, clonePartGraph, convertPptToPptx, createAutoNumberSequence, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createFreeformElement, createGroupElement, createImageElement, createMediaElement, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTableStyleEntry, createTextElement, deleteTableStyleFromMap, elements, ensureChartData, ensureDataPoint, extractAfterAnimationFromSubTnLst, extractGraphicBuilds, extractTableCellTextRuns, first, generateTableStyleGuid, getAfterAnimation, getAfterAnimationState, getCapturedPreset, getCapturedTree, hasAnimation, isEncryptedLegacyPpt, isLegacyPpt, isNativeAfterAnimationOnly, mergeNativeAfterAnimationIntoEditorAnimations, mergeNativeSoundIntoEditorAnimations, nextAutoNumber, nextRelationshipId, normalizeTableStyleGuid, ooxmlToPresetName, parseAnimEffectFilter, parseCondition, parseConditionList, parseFilterToken, parseRelationships, parseTimeTargetElement, parseXml, rebuildTableStructureInRawXml, reconcileAnimationTargets, relationshipsPartFor, relativePartTarget, remapEditorAnimationsToShapeIds, removeChartCategory, removeChartSeries, removeEmptyDataPoint, resetIdCounter, resolveConnectorShapeIds, resolveDirectionSubtype, resolveOoxmlPresetMapping, resolveOpacitySet, resolvePartPath, serializeCondition, serializeConditionList, serializeGraphicBuild, serializeTimeTargetElement, setAfterAnimation, setAfterAnimationColor, setChartAreaFormat, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartDataPointMarker, setChartGroupOptions, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, timingCurveToAccelDecel, toChartGradientFill, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, upsert, validateSeriesIndex };
|
|
87410
|
+
export { AFTER_ANIMATION_VALUES, ConnectorXmlFactory, DEFAULT_AFTER_ANIMATION_DIM_COLOR, DEFAULT_ANIMATION_DURATION_MS, DEFAULT_ANIMATION_TRIGGER, DEFAULT_MAX_UNCOMPRESSED_BYTES, DEFAULT_POWERPOINT_TABLE_STYLE_ID, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, EncryptedPptError, MAX_ZIP_ENTRY_COUNT, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime102 as PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, PresentationBuilder, STANDARD_LAYOUTS, SlideBuilder, TABLE_STYLE_PART_SEQUENCE, TextShapeXmlFactory, ZipBombError, addChartCategory, addChartSeries, addTableStyleToMap, animationFor, applyAfterAnimationBehavior, applyAfterAnimationFromEditorList, applyConnectorShapeIds, applySoundToEffectCTn, applySpeedToDuration, applyTableCellTextAndStyle, assertChartGradientSupported, breakAutoNumberRun, buildBlankPresentationArchive, buildRelationshipsXml, buildSingleEffectNode, buildSlideReferenceRemap, buildXml, capturedPresetIds, capturedPresetNativeAnimation, capturedSubtypes, clonePartGraph, convertPptToPptx, createAutoNumberSequence, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createFreeformElement, createGroupElement, createImageElement, createMediaElement, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTableStyleEntry, createTextElement, deleteTableStyleFromMap, elements, ensureChartData, ensureDataPoint, extractAfterAnimationFromSubTnLst, extractGraphicBuilds, extractTableCellTextRuns, first, generateTableStyleGuid, getAfterAnimation, getAfterAnimationState, getCapturedPreset, getCapturedTree, hasAnimation, isEncryptedLegacyPpt, isLegacyPpt, isNativeAfterAnimationOnly, mergeNativeAfterAnimationIntoEditorAnimations, mergeNativeSoundIntoEditorAnimations, nextAutoNumber, nextRelationshipId, normalizeTableStyleGuid, ooxmlToPresetName, parseAnimEffectFilter, parseCondition, parseConditionList, parseFilterToken, parseRelationships, parseTimeTargetElement, parseXml, rebuildTableStructureInRawXml, reconcileAnimationTargets, relationshipsPartFor, relativePartTarget, remapEditorAnimationsToShapeIds, removeChartCategory, removeChartSeries, removeEmptyDataPoint, resetIdCounter, resolveConnectorShapeIds, resolveDirectionSubtype, resolveEffectTiming, resolveIterationCount, resolveOoxmlPresetMapping, resolveOpacitySet, resolvePartPath, resolveVisibilitySetTiming, serializeCondition, serializeConditionList, serializeGraphicBuild, serializeTimeTargetElement, setAfterAnimation, setAfterAnimationColor, setChartAreaFormat, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartDataPointMarker, setChartGroupOptions, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, shouldHoldEndState, timingCurveToAccelDecel, toChartGradientFill, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, upsert, validateSeriesIndex };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkR6Z5C4DA_cjs = require('./chunk-R6Z5C4DA.cjs');
|
|
4
|
+
|
|
5
|
+
// pptx/editor/render/text-content-style.ts
|
|
6
|
+
var TEXT_DECORATION_FLAGS = [
|
|
7
|
+
"bold",
|
|
8
|
+
"italic",
|
|
9
|
+
"underline",
|
|
10
|
+
"strikethrough"
|
|
11
|
+
];
|
|
12
|
+
function isContentSegment(segment) {
|
|
13
|
+
return !segment.isParagraphBreak && segment.text !== "\n" && segment.text.length > 0 && !chunkR6Z5C4DA_cjs.isBulletMarkerSegment(segment);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.TEXT_DECORATION_FLAGS = TEXT_DECORATION_FLAGS;
|
|
17
|
+
exports.isContentSegment = isContentSegment;
|