ooxml-core 1.44.0 → 1.45.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-V23RDNEX.cjs → PptxHandler-3RDVJFQV.cjs} +2 -2
- package/dist/{PptxHandler-WB3KL2WH.mjs → PptxHandler-EI6DMHPM.mjs} +1 -1
- package/dist/{PptxHandler-3VAVJDFB.mjs → PptxHandler-FXLXIOLT.mjs} +2 -2
- package/dist/{PresentationBuilder-7LJMTRJ6.mjs → PresentationBuilder-3FKFRSSV.mjs} +2 -2
- package/dist/{PresentationBuilder-KHL6GONR.cjs → PresentationBuilder-CSKLG64K.cjs} +4 -4
- package/dist/{PresentationBuilder-PY2GB4IG.mjs → PresentationBuilder-DDYHRV26.mjs} +1 -1
- package/dist/automation/index.cjs +10 -1
- package/dist/automation/index.mjs +10 -1
- package/dist/chart/edit/fill.d.ts +6 -2
- package/dist/chart/edit/fill.d.ts.map +1 -1
- package/dist/chart/index.cjs +12 -3
- package/dist/chart/index.mjs +12 -3
- package/dist/{chunk-HLYOHD2Z.mjs → chunk-CVJX6NNO.mjs} +438 -108
- package/dist/{chunk-243ZYX2B.mjs → chunk-GGJUWJXB.mjs} +1 -1
- package/dist/{chunk-KCDLTVUI.mjs → chunk-GXYK3H4O.mjs} +1 -1
- package/dist/{chunk-WEAWSXUX.mjs → chunk-LCXBTJXE.mjs} +4 -4
- package/dist/{chunk-JHYU7HGG.mjs → chunk-RVYGAYCP.mjs} +1 -1
- package/dist/{chunk-4LEVL6ZW.mjs → chunk-U5BXJQZG.mjs} +457 -105
- package/dist/{chunk-RNZQ2OU4.cjs → chunk-YBSNMVSN.cjs} +437 -107
- package/dist/index.cjs +12 -3
- package/dist/index.mjs +12 -3
- package/dist/pptx/automation/index.cjs +529 -167
- package/dist/pptx/automation/index.d.ts +6 -6
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{elements-PBugbKtv.d.ts → elements-B4Z6N-Gz.d.ts} +4 -477
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts → index-6Ot1b-4U.d.ts} +6 -6
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts.map → index-6Ot1b-4U.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CGNb1TV9.d.ts → index-DGKI80Hj.d.ts} +61 -6
- package/dist/pptx/chunks/{index-CGNb1TV9.d.ts.map → index-DGKI80Hj.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts → index-jdZUtLGB.d.ts} +4 -4
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts.map → index-jdZUtLGB.d.ts.map} +1 -1
- package/dist/pptx/chunks/{table-C7ITXL3Y.d.ts → table-BfgZfw5R.d.ts} +488 -4
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts → text-operations-Mek86RBL.d.ts} +3 -3
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts.map → text-operations-Mek86RBL.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +525 -163
- 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.d.ts +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.d.ts +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +558 -168
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/xlsx/index.cjs +10 -1
- package/dist/xlsx/index.mjs +10 -1
- package/dist/xlsx/ui/index.cjs +10 -1
- package/dist/xlsx/ui/index.mjs +10 -1
- package/package.json +1 -1
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +0 -1
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, drawingLineXml, parseDrawingTextBody, parseXml, parseDrawingFill, parseDrawingLine, first, buildXml, setDrawingFillXml, fillElementOf, patchDrawingLine, elements, drawingFillXml, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, drawingColorXml, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, relationshipsPartFor, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, formatCellAddress, childrenNamed, childNamed, parseCellAddress, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, worksheetData, buildEffectDagTreeFromXml, appendInSchemaOrder, RUN_PROPERTIES_ORDER, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS, patchDrawingColorIn, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, escAttr, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, 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, escText,
|
|
1
|
+
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, drawingLineXml, parseDrawingTextBody, parseXml, parseDrawingFill, parseDrawingLine, first, buildXml, setDrawingFillXml, fillElementOf, patchDrawingLine, elements, drawingFillXml, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, drawingColorXml, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, relationshipsPartFor, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, formatCellAddress, childrenNamed, childNamed, parseCellAddress, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, worksheetData, buildEffectDagTreeFromXml, appendInSchemaOrder, RUN_PROPERTIES_ORDER, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS, patchDrawingColorIn, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, escAttr, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseDrawingColorIn, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-GXYK3H4O.mjs';
|
|
2
2
|
import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, openZip, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError } from './chunk-EYCM7RVL.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-2N7RZQLC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-VDUNZTJC.mjs';
|
|
@@ -494,7 +494,7 @@ function scan(xml) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
var escapeText = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
");
|
|
497
|
-
var qualifiedName = (xml,
|
|
497
|
+
var qualifiedName = (xml, span2) => /^<([^\s/>]+)/.exec(xml.slice(span2.start, span2.openEnd))?.[1] ?? "";
|
|
498
498
|
var PartPatch = class {
|
|
499
499
|
constructor(xml, rootElement) {
|
|
500
500
|
this.xml = xml;
|
|
@@ -521,9 +521,9 @@ var PartPatch = class {
|
|
|
521
521
|
this.edits.push({ start, end, text, seq: this.seq++ });
|
|
522
522
|
}
|
|
523
523
|
span(element2) {
|
|
524
|
-
const
|
|
525
|
-
if (!
|
|
526
|
-
return
|
|
524
|
+
const span2 = this.spans.get(element2);
|
|
525
|
+
if (!span2) throw new Error("Element is not a child of the patched root");
|
|
526
|
+
return span2;
|
|
527
527
|
}
|
|
528
528
|
/** The prefix bound to `ns` on the root, declaring `preferred` for it when none is. */
|
|
529
529
|
prefix(ns, preferred) {
|
|
@@ -543,20 +543,20 @@ var PartPatch = class {
|
|
|
543
543
|
}
|
|
544
544
|
/** Replaces the element's content, keeping its start tag (and attributes) as written. */
|
|
545
545
|
setContent(element2, content2) {
|
|
546
|
-
const
|
|
547
|
-
if (
|
|
548
|
-
this.add(
|
|
549
|
-
else this.add(
|
|
546
|
+
const span2 = this.span(element2);
|
|
547
|
+
if (span2.selfClosing)
|
|
548
|
+
this.add(span2.openEnd - 2, span2.openEnd, `>${content2}</${qualifiedName(this.xml, span2)}>`);
|
|
549
|
+
else this.add(span2.openEnd, span2.closeStart, content2);
|
|
550
550
|
}
|
|
551
551
|
/** Adds ` name="value"` text to the element's start tag. */
|
|
552
552
|
addAttribute(element2, attribute2) {
|
|
553
|
-
const
|
|
554
|
-
const at =
|
|
553
|
+
const span2 = this.span(element2);
|
|
554
|
+
const at = span2.openEnd - (span2.selfClosing ? 2 : 1);
|
|
555
555
|
this.add(at, at, attribute2);
|
|
556
556
|
}
|
|
557
557
|
remove(element2) {
|
|
558
|
-
const
|
|
559
|
-
this.add(
|
|
558
|
+
const span2 = this.span(element2);
|
|
559
|
+
this.add(span2.start, span2.end, "");
|
|
560
560
|
}
|
|
561
561
|
/** Inserts `markup` before `before`, or as the root's last child. */
|
|
562
562
|
insert(markup, before) {
|
|
@@ -7018,6 +7018,10 @@ function applyCellFillStyle(cellProperties, style, context, slidePath) {
|
|
|
7018
7018
|
}
|
|
7019
7019
|
return hasStyle;
|
|
7020
7020
|
}
|
|
7021
|
+
function presetDashValue(value) {
|
|
7022
|
+
const text = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
7023
|
+
return text ? text : void 0;
|
|
7024
|
+
}
|
|
7021
7025
|
function applyCellBorderStyle(cellProperties, style, context) {
|
|
7022
7026
|
if (!cellProperties) {
|
|
7023
7027
|
return false;
|
|
@@ -7055,13 +7059,13 @@ function applyCellBorderStyle(cellProperties, style, context) {
|
|
|
7055
7059
|
style[`${prefix}Color`] = color2;
|
|
7056
7060
|
hasStyle = true;
|
|
7057
7061
|
}
|
|
7058
|
-
const
|
|
7059
|
-
if (
|
|
7060
|
-
|
|
7061
|
-
if (
|
|
7062
|
-
style[`${prefix}
|
|
7063
|
-
hasStyle = true;
|
|
7062
|
+
const dash = parseDrawingLineDash(node, presetDashValue);
|
|
7063
|
+
if (dash.strokeDash) {
|
|
7064
|
+
style[`${prefix}Dash`] = dash.strokeDash;
|
|
7065
|
+
if (dash.strokeDash === "custom") {
|
|
7066
|
+
style[`${prefix}DashSegments`] = dash.customDashSegments;
|
|
7064
7067
|
}
|
|
7068
|
+
hasStyle = true;
|
|
7065
7069
|
}
|
|
7066
7070
|
}
|
|
7067
7071
|
const firstBorderColor = style.borderTopColor || style.borderBottomColor || style.borderLeftColor || style.borderRightColor;
|
|
@@ -40481,7 +40485,16 @@ function repaintSeriesForFamily(series, toLine) {
|
|
|
40481
40485
|
shape2.fill = structuredClone(shape2.line.fill);
|
|
40482
40486
|
}
|
|
40483
40487
|
function clearPointPaint(series, key2) {
|
|
40484
|
-
|
|
40488
|
+
const emptied2 = (part) => Object.keys(part).every((name) => name === "sourceXml");
|
|
40489
|
+
for (const point of series.dataPoints) {
|
|
40490
|
+
if (!point.spPr) continue;
|
|
40491
|
+
delete point.spPr[key2];
|
|
40492
|
+
if (point.spPr.line && emptied2(point.spPr.line)) delete point.spPr.line;
|
|
40493
|
+
if (emptied2(point.spPr)) delete point.spPr;
|
|
40494
|
+
}
|
|
40495
|
+
series.dataPoints = series.dataPoints.filter(
|
|
40496
|
+
(point) => Object.keys(point).some((name) => name !== "index")
|
|
40497
|
+
);
|
|
40485
40498
|
}
|
|
40486
40499
|
function setChartSeriesFill(space, index, fill3) {
|
|
40487
40500
|
return editChartSpace(space, (draft) => {
|
|
@@ -40490,7 +40503,7 @@ function setChartSeriesFill(space, index, fill3) {
|
|
|
40490
40503
|
clearPointPaint(series, "fill");
|
|
40491
40504
|
});
|
|
40492
40505
|
}
|
|
40493
|
-
function setChartSeriesColor(space, index, color2) {
|
|
40506
|
+
function setChartSeriesColor(space, index, color2, options2 = {}) {
|
|
40494
40507
|
return editChartSpace(space, (draft) => {
|
|
40495
40508
|
const { series } = chartSeriesEntryAt(draft, index);
|
|
40496
40509
|
const shape2 = series.spPr ??= {};
|
|
@@ -40500,7 +40513,7 @@ function setChartSeriesColor(space, index, color2) {
|
|
|
40500
40513
|
const fill3 = color2 ? { kind: "solid", color: withAlphaOf(color2, previous) } : void 0;
|
|
40501
40514
|
if (line) assignOrDelete(shape2.line ??= {}, "fill", fill3);
|
|
40502
40515
|
else assignOrDelete(shape2, "fill", fill3);
|
|
40503
|
-
clearPointPaint(series, line ? "line" : "fill");
|
|
40516
|
+
if (!options2.keepPointColors) clearPointPaint(series, line ? "line" : "fill");
|
|
40504
40517
|
});
|
|
40505
40518
|
}
|
|
40506
40519
|
|
|
@@ -50141,16 +50154,16 @@ function tableToShapeGroup(tableData, bounds) {
|
|
|
50141
50154
|
const y = bounds.y + rowIndex * rowHeightEmu;
|
|
50142
50155
|
let colIndex = 0;
|
|
50143
50156
|
for (const cell2 of row.cells) {
|
|
50144
|
-
const
|
|
50157
|
+
const span2 = Math.max(1, cell2.gridSpan ?? 1);
|
|
50145
50158
|
if (cell2.vMerge) {
|
|
50146
50159
|
vMergeActive[colIndex] = true;
|
|
50147
|
-
colIndex +=
|
|
50160
|
+
colIndex += span2;
|
|
50148
50161
|
continue;
|
|
50149
50162
|
}
|
|
50150
50163
|
vMergeActive[colIndex] = false;
|
|
50151
50164
|
if (!cell2.hMerge) {
|
|
50152
50165
|
const x = colStartX[colIndex] ?? bounds.x;
|
|
50153
|
-
const w = colEmuWidths.slice(colIndex, colIndex +
|
|
50166
|
+
const w = colEmuWidths.slice(colIndex, colIndex + span2).reduce((s, v) => s + v, 0);
|
|
50154
50167
|
children6.push({
|
|
50155
50168
|
kind: "shape",
|
|
50156
50169
|
spt: 1,
|
|
@@ -50164,7 +50177,7 @@ function tableToShapeGroup(tableData, bounds) {
|
|
|
50164
50177
|
text: { textType: 4, paragraphs: cellParagraphs(cell2.text) }
|
|
50165
50178
|
});
|
|
50166
50179
|
}
|
|
50167
|
-
colIndex +=
|
|
50180
|
+
colIndex += span2;
|
|
50168
50181
|
}
|
|
50169
50182
|
});
|
|
50170
50183
|
return { kind: "group", anchor: bounds, children: children6 };
|
|
@@ -59878,6 +59891,11 @@ function planNeutralChartChrome(before, probe, edits) {
|
|
|
59878
59891
|
}
|
|
59879
59892
|
|
|
59880
59893
|
// pptx/core/utils/chart-neutral-save-points.ts
|
|
59894
|
+
var emptied = (part) => Object.keys(part).every((key2) => key2 === "sourceXml");
|
|
59895
|
+
function pointShape(shape2) {
|
|
59896
|
+
if (shape2.line && emptied(shape2.line)) delete shape2.line;
|
|
59897
|
+
return emptied(shape2) ? null : shape2;
|
|
59898
|
+
}
|
|
59881
59899
|
function pointEdit(edits, seriesIndex, old, next) {
|
|
59882
59900
|
for (const key2 of ["picture", "impliedPicture", "uniqueId"])
|
|
59883
59901
|
if (!same4(old?.[key2], next[key2])) return false;
|
|
@@ -59900,6 +59918,7 @@ function pointEdit(edits, seriesIndex, old, next) {
|
|
|
59900
59918
|
) ?? null
|
|
59901
59919
|
});
|
|
59902
59920
|
}
|
|
59921
|
+
if (edit.spPr) edit.spPr = pointShape(edit.spPr);
|
|
59903
59922
|
if (!same4(old?.marker, next.marker)) {
|
|
59904
59923
|
if (!next.marker) edit.marker = null;
|
|
59905
59924
|
else {
|
|
@@ -60154,7 +60173,9 @@ function planNeutralChartSeriesColors(before, probe, edits) {
|
|
|
60154
60173
|
const value = series.color?.replace(/^#/, "");
|
|
60155
60174
|
if (value !== void 0 && !/^[\da-f]{6}$/i.test(value)) return;
|
|
60156
60175
|
edits.push(
|
|
60157
|
-
(space) => setChartSeriesColor(space, index, value ? { kind: "srgb", value, transforms: [] } : null
|
|
60176
|
+
(space) => setChartSeriesColor(space, index, value ? { kind: "srgb", value, transforms: [] } : null, {
|
|
60177
|
+
keepPointColors: true
|
|
60178
|
+
})
|
|
60158
60179
|
);
|
|
60159
60180
|
if (previous.color === void 0) delete series.color;
|
|
60160
60181
|
else series.color = previous.color;
|
|
@@ -66925,6 +66946,17 @@ var CHART_GRAPHIC_DATA_URI2 = "http://schemas.openxmlformats.org/drawingml/2006/
|
|
|
66925
66946
|
var CHART_EX_GRAPHIC_DATA_URI2 = "http://schemas.microsoft.com/office/drawing/2014/chartex";
|
|
66926
66947
|
var CHART_NS_C = "http://schemas.openxmlformats.org/drawingml/2006/chart";
|
|
66927
66948
|
var CHART_NS_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
66949
|
+
function tableGridXml(el, widthEmu) {
|
|
66950
|
+
const fractions = el.tableData?.columnWidths ?? [];
|
|
66951
|
+
if (fractions.length === 0 || !(widthEmu > 0)) {
|
|
66952
|
+
return {};
|
|
66953
|
+
}
|
|
66954
|
+
const widths = fractions.map((fraction) => Math.max(0, Math.round(fraction * widthEmu)));
|
|
66955
|
+
const last = widths.length - 1;
|
|
66956
|
+
widths[last] = Math.max(0, (widths[last] ?? 0) + widthEmu - widths.reduce((a, b) => a + b, 0));
|
|
66957
|
+
const cols = widths.map((w) => ({ "@_w": String(w) }));
|
|
66958
|
+
return { "a:gridCol": cols.length === 1 ? cols[0] : cols };
|
|
66959
|
+
}
|
|
66928
66960
|
function buildTableGraphicFrameXml(el, emuPerPx) {
|
|
66929
66961
|
el.locks = { noGrouping: true, ...el.locks };
|
|
66930
66962
|
const offX = String(Math.round(el.x * emuPerPx));
|
|
@@ -66955,7 +66987,7 @@ function buildTableGraphicFrameXml(el, emuPerPx) {
|
|
|
66955
66987
|
"@_uri": "http://schemas.openxmlformats.org/drawingml/2006/table",
|
|
66956
66988
|
"a:tbl": {
|
|
66957
66989
|
"a:tblPr": tblPr,
|
|
66958
|
-
"a:tblGrid":
|
|
66990
|
+
"a:tblGrid": tableGridXml(el, Number(extCx))
|
|
66959
66991
|
}
|
|
66960
66992
|
}
|
|
66961
66993
|
}
|
|
@@ -69089,12 +69121,86 @@ var NON_MATERIALIZED_PLACEHOLDER_TYPES = /* @__PURE__ */ new Set([
|
|
|
69089
69121
|
"sldimg"
|
|
69090
69122
|
]);
|
|
69091
69123
|
|
|
69124
|
+
// pptx/core/core/runtime/table-cell-border-save.ts
|
|
69125
|
+
function cellEdges(style) {
|
|
69126
|
+
return [
|
|
69127
|
+
{
|
|
69128
|
+
xmlKey: "a:lnT",
|
|
69129
|
+
width: style.borderTopWidth,
|
|
69130
|
+
color: style.borderTopColor,
|
|
69131
|
+
dash: style.borderTopDash,
|
|
69132
|
+
segments: style.borderTopDashSegments
|
|
69133
|
+
},
|
|
69134
|
+
{
|
|
69135
|
+
xmlKey: "a:lnB",
|
|
69136
|
+
width: style.borderBottomWidth,
|
|
69137
|
+
color: style.borderBottomColor,
|
|
69138
|
+
dash: style.borderBottomDash,
|
|
69139
|
+
segments: style.borderBottomDashSegments
|
|
69140
|
+
},
|
|
69141
|
+
{
|
|
69142
|
+
xmlKey: "a:lnL",
|
|
69143
|
+
width: style.borderLeftWidth,
|
|
69144
|
+
color: style.borderLeftColor,
|
|
69145
|
+
dash: style.borderLeftDash,
|
|
69146
|
+
segments: style.borderLeftDashSegments
|
|
69147
|
+
},
|
|
69148
|
+
{
|
|
69149
|
+
xmlKey: "a:lnR",
|
|
69150
|
+
width: style.borderRightWidth,
|
|
69151
|
+
color: style.borderRightColor,
|
|
69152
|
+
dash: style.borderRightDash,
|
|
69153
|
+
segments: style.borderRightDashSegments
|
|
69154
|
+
}
|
|
69155
|
+
];
|
|
69156
|
+
}
|
|
69157
|
+
function writeEdgeDash(ln, edge) {
|
|
69158
|
+
if (edge.dash === void 0 || edge.dash === "") {
|
|
69159
|
+
return;
|
|
69160
|
+
}
|
|
69161
|
+
if (edge.dash === "solid") {
|
|
69162
|
+
delete ln["a:prstDash"];
|
|
69163
|
+
delete ln["a:custDash"];
|
|
69164
|
+
return;
|
|
69165
|
+
}
|
|
69166
|
+
if (edge.dash === "custom") {
|
|
69167
|
+
if (edge.segments && edge.segments.length > 0) {
|
|
69168
|
+
applyDrawingLineDash(ln, { strokeDash: "custom", customDashSegments: edge.segments });
|
|
69169
|
+
}
|
|
69170
|
+
return;
|
|
69171
|
+
}
|
|
69172
|
+
applyDrawingLineDash(ln, { strokeDash: edge.dash });
|
|
69173
|
+
}
|
|
69174
|
+
function writeCellEdgeBorders(tcPr, style, emuPerPx) {
|
|
69175
|
+
for (const edge of cellEdges(style)) {
|
|
69176
|
+
if (edge.width === void 0 && edge.color === void 0 && edge.dash === void 0) {
|
|
69177
|
+
continue;
|
|
69178
|
+
}
|
|
69179
|
+
const existing = tcPr[edge.xmlKey];
|
|
69180
|
+
const ln = existing && typeof existing === "object" ? existing : {};
|
|
69181
|
+
if (edge.width !== void 0) {
|
|
69182
|
+
ln["@_w"] = String(Math.round(edge.width * emuPerPx));
|
|
69183
|
+
}
|
|
69184
|
+
if (edge.color) {
|
|
69185
|
+
delete ln["a:noFill"];
|
|
69186
|
+
delete ln["a:gradFill"];
|
|
69187
|
+
delete ln["a:pattFill"];
|
|
69188
|
+
ln["a:solidFill"] = {
|
|
69189
|
+
"a:srgbClr": { "@_val": edge.color.replace("#", "") }
|
|
69190
|
+
};
|
|
69191
|
+
}
|
|
69192
|
+
writeEdgeDash(ln, edge);
|
|
69193
|
+
tcPr[edge.xmlKey] = reorderObjectKeys(ln, LN_CHILD_ORDER);
|
|
69194
|
+
}
|
|
69195
|
+
}
|
|
69196
|
+
|
|
69092
69197
|
// pptx/core/core/runtime/table-cell-save-helpers.ts
|
|
69093
69198
|
function writeCellFill(tcPr, style, resolveColorXml) {
|
|
69094
69199
|
if (style.fillMode === "gradient" && style.gradientFillStops && style.gradientFillStops.length > 0) {
|
|
69095
69200
|
delete tcPr["a:solidFill"];
|
|
69096
69201
|
delete tcPr["a:pattFill"];
|
|
69097
69202
|
delete tcPr["a:blipFill"];
|
|
69203
|
+
delete tcPr["a:noFill"];
|
|
69098
69204
|
const stops = style.gradientFillStops.map((stop) => {
|
|
69099
69205
|
const posRaw = typeof stop.position === "number" ? stop.position : 0;
|
|
69100
69206
|
const position3 = Math.round(Math.max(0, Math.min(1, posRaw / 100)) * 1e5);
|
|
@@ -69146,6 +69252,7 @@ function writeCellFill(tcPr, style, resolveColorXml) {
|
|
|
69146
69252
|
delete tcPr["a:solidFill"];
|
|
69147
69253
|
delete tcPr["a:gradFill"];
|
|
69148
69254
|
delete tcPr["a:blipFill"];
|
|
69255
|
+
delete tcPr["a:noFill"];
|
|
69149
69256
|
const pattXml = {
|
|
69150
69257
|
"@_prst": style.patternFillPreset
|
|
69151
69258
|
};
|
|
@@ -69169,10 +69276,12 @@ function writeCellFill(tcPr, style, resolveColorXml) {
|
|
|
69169
69276
|
delete tcPr["a:gradFill"];
|
|
69170
69277
|
delete tcPr["a:pattFill"];
|
|
69171
69278
|
delete tcPr["a:blipFill"];
|
|
69279
|
+
tcPr["a:noFill"] = tcPr["a:noFill"] ?? {};
|
|
69172
69280
|
} else if (style.fillMode !== "image" && style.backgroundColor) {
|
|
69173
69281
|
delete tcPr["a:gradFill"];
|
|
69174
69282
|
delete tcPr["a:pattFill"];
|
|
69175
69283
|
delete tcPr["a:blipFill"];
|
|
69284
|
+
delete tcPr["a:noFill"];
|
|
69176
69285
|
const resolvedOriginal = style.backgroundColorXml && resolveColorXml ? resolveColorXml(style.backgroundColorXml) : void 0;
|
|
69177
69286
|
tcPr["a:solidFill"] = serializeColorChoiceWithRef(
|
|
69178
69287
|
style.backgroundColorRef,
|
|
@@ -69479,53 +69588,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
69479
69588
|
pPr["@_algn"] = token2;
|
|
69480
69589
|
}
|
|
69481
69590
|
}
|
|
69482
|
-
|
|
69483
|
-
{
|
|
69484
|
-
xmlKey: "a:lnT",
|
|
69485
|
-
width: style.borderTopWidth,
|
|
69486
|
-
color: style.borderTopColor,
|
|
69487
|
-
dash: style.borderTopDash
|
|
69488
|
-
},
|
|
69489
|
-
{
|
|
69490
|
-
xmlKey: "a:lnB",
|
|
69491
|
-
width: style.borderBottomWidth,
|
|
69492
|
-
color: style.borderBottomColor,
|
|
69493
|
-
dash: style.borderBottomDash
|
|
69494
|
-
},
|
|
69495
|
-
{
|
|
69496
|
-
xmlKey: "a:lnL",
|
|
69497
|
-
width: style.borderLeftWidth,
|
|
69498
|
-
color: style.borderLeftColor,
|
|
69499
|
-
dash: style.borderLeftDash
|
|
69500
|
-
},
|
|
69501
|
-
{
|
|
69502
|
-
xmlKey: "a:lnR",
|
|
69503
|
-
width: style.borderRightWidth,
|
|
69504
|
-
color: style.borderRightColor,
|
|
69505
|
-
dash: style.borderRightDash
|
|
69506
|
-
}
|
|
69507
|
-
];
|
|
69508
|
-
for (const edge of borderEdges) {
|
|
69509
|
-
if (edge.width !== void 0 || edge.color !== void 0 || edge.dash !== void 0) {
|
|
69510
|
-
if (!tcPr[edge.xmlKey]) {
|
|
69511
|
-
tcPr[edge.xmlKey] = {};
|
|
69512
|
-
}
|
|
69513
|
-
const ln = tcPr[edge.xmlKey];
|
|
69514
|
-
if (edge.width !== void 0) {
|
|
69515
|
-
ln["@_w"] = String(Math.round(edge.width * _PptxHandlerRuntime.EMU_PER_PX));
|
|
69516
|
-
}
|
|
69517
|
-
if (edge.color) {
|
|
69518
|
-
ln["a:solidFill"] = {
|
|
69519
|
-
"a:srgbClr": { "@_val": edge.color.replace("#", "") }
|
|
69520
|
-
};
|
|
69521
|
-
}
|
|
69522
|
-
if (edge.dash && edge.dash !== "solid") {
|
|
69523
|
-
ln["a:prstDash"] = { "@_val": edge.dash };
|
|
69524
|
-
} else if (edge.dash === "solid") {
|
|
69525
|
-
delete ln["a:prstDash"];
|
|
69526
|
-
}
|
|
69527
|
-
}
|
|
69528
|
-
}
|
|
69591
|
+
writeCellEdgeBorders(tcPr, style, _PptxHandlerRuntime.EMU_PER_PX);
|
|
69529
69592
|
const emuPerPx = _PptxHandlerRuntime.EMU_PER_PX;
|
|
69530
69593
|
if (style.marginLeft !== void 0) {
|
|
69531
69594
|
tcPr["@_marL"] = String(Math.round(style.marginLeft * emuPerPx));
|
|
@@ -69890,10 +69953,13 @@ var FILL_KEYS = [
|
|
|
69890
69953
|
"a:grpFill"
|
|
69891
69954
|
];
|
|
69892
69955
|
var LINE_KEYS = [
|
|
69893
|
-
["a:lnL", ["borderLeftWidth", "borderLeftColor", "borderLeftDash"]],
|
|
69894
|
-
["a:lnR", ["borderRightWidth", "borderRightColor", "borderRightDash"]],
|
|
69895
|
-
["a:lnT", ["borderTopWidth", "borderTopColor", "borderTopDash"]],
|
|
69896
|
-
[
|
|
69956
|
+
["a:lnL", ["borderLeftWidth", "borderLeftColor", "borderLeftDash", "borderLeftDashSegments"]],
|
|
69957
|
+
["a:lnR", ["borderRightWidth", "borderRightColor", "borderRightDash", "borderRightDashSegments"]],
|
|
69958
|
+
["a:lnT", ["borderTopWidth", "borderTopColor", "borderTopDash", "borderTopDashSegments"]],
|
|
69959
|
+
[
|
|
69960
|
+
"a:lnB",
|
|
69961
|
+
["borderBottomWidth", "borderBottomColor", "borderBottomDash", "borderBottomDashSegments"]
|
|
69962
|
+
],
|
|
69897
69963
|
["a:lnTlToBr", ["borderDiagDownWidth", "borderDiagDownColor"]],
|
|
69898
69964
|
["a:lnBlToTr", ["borderDiagUpWidth", "borderDiagUpColor"]]
|
|
69899
69965
|
];
|
|
@@ -70397,8 +70463,8 @@ function cells(row) {
|
|
|
70397
70463
|
return ensureArray11(row["a:tc"]);
|
|
70398
70464
|
}
|
|
70399
70465
|
function promoteTextBody(source, next, removed, survivor, axis) {
|
|
70400
|
-
const
|
|
70401
|
-
if (!source?.text || !next || !removed || !survivor || source.hMerge || source.vMerge || (source[
|
|
70466
|
+
const span2 = axis === "row" ? "rowSpan" : "gridSpan";
|
|
70467
|
+
if (!source?.text || !next || !removed || !survivor || source.hMerge || source.vMerge || (source[span2] ?? 1) <= 1 || next.hMerge || next.vMerge || (next[span2] ?? 1) !== (source[span2] ?? 1) - 1) {
|
|
70402
70468
|
return;
|
|
70403
70469
|
}
|
|
70404
70470
|
if (removed["a:txBody"] !== void 0) {
|
|
@@ -96883,6 +96949,27 @@ function applyChartAreaFormatInput(chartData, area, input) {
|
|
|
96883
96949
|
}
|
|
96884
96950
|
}
|
|
96885
96951
|
|
|
96952
|
+
// pptx/core/builders/sdk/chart-series-point-paint.ts
|
|
96953
|
+
function paintsLine2(data, series) {
|
|
96954
|
+
const type = series.seriesChartType ?? data.chartType;
|
|
96955
|
+
if (type === "radar") return data.radarStyle !== "filled";
|
|
96956
|
+
return isLineDrawnChartType(type);
|
|
96957
|
+
}
|
|
96958
|
+
function clearChartSeriesPointPaint(data, series) {
|
|
96959
|
+
if (!series.dataPoints) return;
|
|
96960
|
+
const line = paintsLine2(data, series);
|
|
96961
|
+
for (const point of series.dataPoints) {
|
|
96962
|
+
if (!line) delete point.gradientFill;
|
|
96963
|
+
if (!point.spPr) continue;
|
|
96964
|
+
const keys = line ? ["strokeColor", "strokeWidth", "strokeDashStyle", "lineNoFill"] : ["fillColor"];
|
|
96965
|
+
for (const key2 of keys) delete point.spPr[key2];
|
|
96966
|
+
if (Object.keys(point.spPr).length === 0) delete point.spPr;
|
|
96967
|
+
}
|
|
96968
|
+
series.dataPoints = series.dataPoints.filter(
|
|
96969
|
+
(point) => Object.entries(point).some(([name, value]) => name !== "idx" && value !== void 0)
|
|
96970
|
+
);
|
|
96971
|
+
}
|
|
96972
|
+
|
|
96886
96973
|
// pptx/core/builders/sdk/chart-operations.ts
|
|
96887
96974
|
function ensureChartData(element2) {
|
|
96888
96975
|
if (!element2.chartData) {
|
|
@@ -97070,6 +97157,7 @@ function setChartSeriesColor2(element2, seriesIndex, color2) {
|
|
|
97070
97157
|
validateSeriesIndex(element2, seriesIndex);
|
|
97071
97158
|
const series = element2.chartData.series[seriesIndex];
|
|
97072
97159
|
Reflect.deleteProperty(series, "gradientFill");
|
|
97160
|
+
clearChartSeriesPointPaint(element2.chartData, series);
|
|
97073
97161
|
if (!color2) {
|
|
97074
97162
|
series.color = void 0;
|
|
97075
97163
|
return;
|
|
@@ -97498,6 +97586,269 @@ function buildShapeStyle(opts) {
|
|
|
97498
97586
|
return Object.keys(parts).length > 0 ? parts : void 0;
|
|
97499
97587
|
}
|
|
97500
97588
|
|
|
97589
|
+
// pptx/core/builders/sdk/table-border-input.ts
|
|
97590
|
+
var MAX_DASH_UNITS = 2147483647;
|
|
97591
|
+
var EDGES = [
|
|
97592
|
+
["top", "borderTop"],
|
|
97593
|
+
["right", "borderRight"],
|
|
97594
|
+
["bottom", "borderBottom"],
|
|
97595
|
+
["left", "borderLeft"]
|
|
97596
|
+
];
|
|
97597
|
+
function borderDashSegments(edge, lengths, width) {
|
|
97598
|
+
const name = `TableCellInput.borders.${edge}.dash`;
|
|
97599
|
+
if (lengths.length === 0) {
|
|
97600
|
+
throw new RangeError(`${name} must give at least one length`);
|
|
97601
|
+
}
|
|
97602
|
+
if (lengths.some((n) => !Number.isFinite(n) || n <= 0)) {
|
|
97603
|
+
throw new RangeError(`${name} lengths must be finite and above 0, got [${lengths.join(", ")}]`);
|
|
97604
|
+
}
|
|
97605
|
+
const segments = customDashSegments([...lengths], width !== void 0 && width > 0 ? width : 1);
|
|
97606
|
+
if (segments.some((s) => s.dash <= 0 || s.space <= 0)) {
|
|
97607
|
+
throw new RangeError(`${name} has a length too short to write: [${lengths.join(", ")}]`);
|
|
97608
|
+
}
|
|
97609
|
+
if (segments.some((s) => s.dash > MAX_DASH_UNITS || s.space > MAX_DASH_UNITS)) {
|
|
97610
|
+
throw new RangeError(`${name} has a length too long to write: [${lengths.join(", ")}]`);
|
|
97611
|
+
}
|
|
97612
|
+
return segments;
|
|
97613
|
+
}
|
|
97614
|
+
function edgeStyle(edge, prefix, input) {
|
|
97615
|
+
if (input.width !== void 0 && (!Number.isFinite(input.width) || input.width < 0)) {
|
|
97616
|
+
throw new RangeError(
|
|
97617
|
+
`TableCellInput.borders.${edge}.width must be a finite width of 0 or more, got ${input.width}`
|
|
97618
|
+
);
|
|
97619
|
+
}
|
|
97620
|
+
const out = {};
|
|
97621
|
+
if (input.width !== void 0) out[`${prefix}Width`] = input.width;
|
|
97622
|
+
if (input.color !== void 0) out[`${prefix}Color`] = input.color;
|
|
97623
|
+
if (Array.isArray(input.dash)) {
|
|
97624
|
+
out[`${prefix}Dash`] = "custom";
|
|
97625
|
+
out[`${prefix}DashSegments`] = borderDashSegments(edge, input.dash, input.width);
|
|
97626
|
+
} else if (input.dash !== void 0) {
|
|
97627
|
+
if (input.dash === "custom") {
|
|
97628
|
+
throw new RangeError(`TableCellInput.borders.${edge}.dash: give 'custom' as a length list`);
|
|
97629
|
+
}
|
|
97630
|
+
out[`${prefix}Dash`] = input.dash;
|
|
97631
|
+
}
|
|
97632
|
+
return out;
|
|
97633
|
+
}
|
|
97634
|
+
function tableCellBorderStyle(borders) {
|
|
97635
|
+
if (!borders) {
|
|
97636
|
+
return {};
|
|
97637
|
+
}
|
|
97638
|
+
const out = {};
|
|
97639
|
+
for (const [edge, prefix] of EDGES) {
|
|
97640
|
+
const own = borders[edge];
|
|
97641
|
+
const input = borders.all || own ? { ...borders.all, ...own } : void 0;
|
|
97642
|
+
if (input) {
|
|
97643
|
+
Object.assign(out, edgeStyle(own ? edge : "all", prefix, input));
|
|
97644
|
+
}
|
|
97645
|
+
}
|
|
97646
|
+
return out;
|
|
97647
|
+
}
|
|
97648
|
+
|
|
97649
|
+
// pptx/core/builders/sdk/table-cell-input.ts
|
|
97650
|
+
function refuseGradientExtras(fill3) {
|
|
97651
|
+
const radial = fill3.path !== void 0 || fill3.gradientType === "radial";
|
|
97652
|
+
const unsupported3 = [
|
|
97653
|
+
fill3.tile !== void 0 ? "tile" : void 0,
|
|
97654
|
+
fill3.scaled === false ? "scaled: false" : void 0,
|
|
97655
|
+
fill3.rotWithShape !== void 0 ? "rotWithShape" : void 0,
|
|
97656
|
+
fill3.focus !== void 0 && !radial ? "focus on a linear gradient" : void 0
|
|
97657
|
+
].filter((name) => name !== void 0);
|
|
97658
|
+
if (unsupported3.length > 0) {
|
|
97659
|
+
throw new RangeError(
|
|
97660
|
+
`TableCellInput.fill: ${unsupported3.join(", ")} cannot be written on a table cell`
|
|
97661
|
+
);
|
|
97662
|
+
}
|
|
97663
|
+
if (fill3.stops.length === 0) {
|
|
97664
|
+
throw new RangeError("TableCellInput.fill: a gradient needs at least one stop");
|
|
97665
|
+
}
|
|
97666
|
+
}
|
|
97667
|
+
function tableCellFillStyle(fill3) {
|
|
97668
|
+
switch (fill3?.type) {
|
|
97669
|
+
case void 0:
|
|
97670
|
+
return {};
|
|
97671
|
+
case "solid":
|
|
97672
|
+
if (fill3.opacity !== void 0 && fill3.opacity !== 1) {
|
|
97673
|
+
throw new RangeError(
|
|
97674
|
+
`TableCellInput.fill.opacity cannot be written on a table cell, got ${fill3.opacity}`
|
|
97675
|
+
);
|
|
97676
|
+
}
|
|
97677
|
+
return {
|
|
97678
|
+
fillMode: "solid",
|
|
97679
|
+
backgroundColor: fill3.color,
|
|
97680
|
+
...fill3.themeColorRef ? { backgroundColorRef: fill3.themeColorRef } : {}
|
|
97681
|
+
};
|
|
97682
|
+
case "gradient": {
|
|
97683
|
+
refuseGradientExtras(fill3);
|
|
97684
|
+
const radial = fill3.path !== void 0 || fill3.gradientType === "radial";
|
|
97685
|
+
return {
|
|
97686
|
+
fillMode: "gradient",
|
|
97687
|
+
gradientFillType: radial ? "radial" : "linear",
|
|
97688
|
+
gradientFillAngle: fill3.angle ?? 0,
|
|
97689
|
+
gradientFillStops: fill3.stops.map((stop) => ({
|
|
97690
|
+
color: stop.color,
|
|
97691
|
+
position: stop.position,
|
|
97692
|
+
...stop.opacity !== void 0 ? { opacity: stop.opacity } : {}
|
|
97693
|
+
})),
|
|
97694
|
+
...radial ? { gradientFillPathType: fill3.path ?? "circle" } : {},
|
|
97695
|
+
...fill3.focus ? { gradientFillFillToRect: { ...fill3.focus } } : {}
|
|
97696
|
+
};
|
|
97697
|
+
}
|
|
97698
|
+
case "pattern":
|
|
97699
|
+
if (!fill3.preset) {
|
|
97700
|
+
throw new RangeError("TableCellInput.fill: a pattern fill needs a preset");
|
|
97701
|
+
}
|
|
97702
|
+
return {
|
|
97703
|
+
fillMode: "pattern",
|
|
97704
|
+
patternFillPreset: fill3.preset,
|
|
97705
|
+
...fill3.foreground !== void 0 ? { patternFillForeground: fill3.foreground } : {},
|
|
97706
|
+
...fill3.background !== void 0 ? { patternFillBackground: fill3.background } : {}
|
|
97707
|
+
};
|
|
97708
|
+
case "image":
|
|
97709
|
+
throw new RangeError("TableCellInput.fill: an image fill cannot be written on a table cell");
|
|
97710
|
+
case "none":
|
|
97711
|
+
return { fillMode: "none" };
|
|
97712
|
+
}
|
|
97713
|
+
}
|
|
97714
|
+
function tableCellTextStyle(style) {
|
|
97715
|
+
const out = {};
|
|
97716
|
+
if (style?.fontSize !== void 0) out.fontSize = style.fontSize;
|
|
97717
|
+
if (style?.bold !== void 0) out.bold = style.bold;
|
|
97718
|
+
if (style?.italic !== void 0) out.italic = style.italic;
|
|
97719
|
+
if (style?.color !== void 0) out.color = style.color;
|
|
97720
|
+
if (style?.alignment !== void 0) out.align = style.alignment;
|
|
97721
|
+
return out;
|
|
97722
|
+
}
|
|
97723
|
+
function tableCellStyle(cell2) {
|
|
97724
|
+
const style = {
|
|
97725
|
+
...tableCellTextStyle(cell2.style),
|
|
97726
|
+
...tableCellFillStyle(cell2.fill),
|
|
97727
|
+
...tableCellBorderStyle(cell2.borders)
|
|
97728
|
+
};
|
|
97729
|
+
return cell2.style || Object.keys(style).length > 0 ? style : void 0;
|
|
97730
|
+
}
|
|
97731
|
+
|
|
97732
|
+
// pptx/core/builders/sdk/table-merge-input.ts
|
|
97733
|
+
function span(value, name) {
|
|
97734
|
+
if (value === void 0) {
|
|
97735
|
+
return 1;
|
|
97736
|
+
}
|
|
97737
|
+
if (!Number.isInteger(value) || value < 1) {
|
|
97738
|
+
throw new RangeError(`TableCellInput.${name} must be a whole number from 1, got ${value}`);
|
|
97739
|
+
}
|
|
97740
|
+
return value;
|
|
97741
|
+
}
|
|
97742
|
+
function placeTableCells(input) {
|
|
97743
|
+
const rowCount = input.rows.length;
|
|
97744
|
+
const slots = input.rows.map(() => []);
|
|
97745
|
+
input.rows.forEach((row, ri) => {
|
|
97746
|
+
const rowSlots = slots[ri] ?? [];
|
|
97747
|
+
let ci = 0;
|
|
97748
|
+
for (const cell2 of row.cells) {
|
|
97749
|
+
while (rowSlots[ci]) {
|
|
97750
|
+
ci += 1;
|
|
97751
|
+
}
|
|
97752
|
+
const colSpan = span(cell2.gridSpan, "gridSpan");
|
|
97753
|
+
const rowSpan = span(cell2.rowSpan, "rowSpan");
|
|
97754
|
+
if (ri + rowSpan > rowCount) {
|
|
97755
|
+
throw new RangeError(
|
|
97756
|
+
`A cell in row ${ri} spans ${rowSpan} rows, past the table's ${rowCount} rows`
|
|
97757
|
+
);
|
|
97758
|
+
}
|
|
97759
|
+
for (let dr = 0; dr < rowSpan; dr++) {
|
|
97760
|
+
for (let dc = 0; dc < colSpan; dc++) {
|
|
97761
|
+
const target = slots[ri + dr] ?? [];
|
|
97762
|
+
if (target[ci + dc]) {
|
|
97763
|
+
throw new RangeError(
|
|
97764
|
+
`A cell in row ${ri} overlaps the merge covering row ${ri + dr}, column ${ci + dc}`
|
|
97765
|
+
);
|
|
97766
|
+
}
|
|
97767
|
+
target[ci + dc] = dr === 0 && dc === 0 ? { cell: cell2 } : { hMerge: dc > 0, vMerge: dr > 0 };
|
|
97768
|
+
}
|
|
97769
|
+
}
|
|
97770
|
+
ci += colSpan;
|
|
97771
|
+
}
|
|
97772
|
+
});
|
|
97773
|
+
const widest = Math.max(...slots.map((row) => row.length), 1);
|
|
97774
|
+
const declared = input.columnWidths?.length;
|
|
97775
|
+
if (declared !== void 0 && widest > declared) {
|
|
97776
|
+
throw new RangeError(`A row takes ${widest} columns, but columnWidths gives ${declared}`);
|
|
97777
|
+
}
|
|
97778
|
+
const columnCount = declared ?? widest;
|
|
97779
|
+
return {
|
|
97780
|
+
columnCount,
|
|
97781
|
+
rows: slots.map(
|
|
97782
|
+
(row) => Array.from({ length: columnCount }, (_, ci) => row[ci] ?? { cell: { text: "" } })
|
|
97783
|
+
)
|
|
97784
|
+
};
|
|
97785
|
+
}
|
|
97786
|
+
function columnFractions(columnWidths, columnCount) {
|
|
97787
|
+
if (!columnWidths) {
|
|
97788
|
+
return Array.from({ length: columnCount }, () => 1 / columnCount);
|
|
97789
|
+
}
|
|
97790
|
+
if (columnWidths.length !== columnCount) {
|
|
97791
|
+
throw new RangeError(
|
|
97792
|
+
`columnWidths gives ${columnWidths.length} widths for a table of ${columnCount} columns`
|
|
97793
|
+
);
|
|
97794
|
+
}
|
|
97795
|
+
if (columnWidths.some((w) => !Number.isFinite(w) || w < 0)) {
|
|
97796
|
+
throw new RangeError("columnWidths must be finite widths of 0 or more");
|
|
97797
|
+
}
|
|
97798
|
+
const sum = columnWidths.reduce((a, b) => a + b, 0);
|
|
97799
|
+
if (sum <= 0) {
|
|
97800
|
+
throw new RangeError("columnWidths must not all be 0");
|
|
97801
|
+
}
|
|
97802
|
+
return columnWidths.map((w) => w / sum);
|
|
97803
|
+
}
|
|
97804
|
+
|
|
97805
|
+
// pptx/core/builders/sdk/text-segment-style.ts
|
|
97806
|
+
var RUN_KEYS = [
|
|
97807
|
+
"fontFamily",
|
|
97808
|
+
"fontSize",
|
|
97809
|
+
"bold",
|
|
97810
|
+
"italic",
|
|
97811
|
+
"underline",
|
|
97812
|
+
"strikethrough",
|
|
97813
|
+
"color",
|
|
97814
|
+
"colorRef",
|
|
97815
|
+
"characterSpacing",
|
|
97816
|
+
"hyperlink",
|
|
97817
|
+
"hyperlinkAction",
|
|
97818
|
+
"hyperlinkTargetSlideIndex",
|
|
97819
|
+
"hyperlinkTooltip",
|
|
97820
|
+
"align"
|
|
97821
|
+
];
|
|
97822
|
+
function elementStyleForSegments(textStyle, segments) {
|
|
97823
|
+
const styled = segments.filter((segment) => !segment.isParagraphBreak);
|
|
97824
|
+
const first2 = styled[0]?.style;
|
|
97825
|
+
if (!first2) {
|
|
97826
|
+
return textStyle;
|
|
97827
|
+
}
|
|
97828
|
+
const next = { ...textStyle };
|
|
97829
|
+
for (const key2 of RUN_KEYS) {
|
|
97830
|
+
const value = first2[key2];
|
|
97831
|
+
if (!styled.every((segment) => sameValue2(segment.style?.[key2], value))) {
|
|
97832
|
+
continue;
|
|
97833
|
+
}
|
|
97834
|
+
if (value === void 0) {
|
|
97835
|
+
delete next[key2];
|
|
97836
|
+
} else {
|
|
97837
|
+
next[key2] = value;
|
|
97838
|
+
}
|
|
97839
|
+
}
|
|
97840
|
+
return next;
|
|
97841
|
+
}
|
|
97842
|
+
function sameValue2(a, b) {
|
|
97843
|
+
if (a === b) {
|
|
97844
|
+
return true;
|
|
97845
|
+
}
|
|
97846
|
+
if (a && b && typeof a === "object" && typeof b === "object") {
|
|
97847
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
97848
|
+
}
|
|
97849
|
+
return false;
|
|
97850
|
+
}
|
|
97851
|
+
|
|
97501
97852
|
// pptx/core/builders/sdk/ElementFactory.ts
|
|
97502
97853
|
var idCounter = 0;
|
|
97503
97854
|
function generateId(prefix) {
|
|
@@ -97620,6 +97971,7 @@ function createTextElement(text, options2) {
|
|
|
97620
97971
|
verticalAlignment: options2?.verticalAlignment,
|
|
97621
97972
|
lineSpacing: options2?.lineSpacing
|
|
97622
97973
|
};
|
|
97974
|
+
const textSegments = buildTextSegments(text, textStyleBase);
|
|
97623
97975
|
return {
|
|
97624
97976
|
type: "text",
|
|
97625
97977
|
id: generateId("txt"),
|
|
@@ -97627,8 +97979,8 @@ function createTextElement(text, options2) {
|
|
|
97627
97979
|
rotation: options2?.rotation,
|
|
97628
97980
|
opacity: options2?.opacity,
|
|
97629
97981
|
text: plainText,
|
|
97630
|
-
textStyle: mapTextStyleInput(textStyleBase),
|
|
97631
|
-
textSegments
|
|
97982
|
+
textStyle: elementStyleForSegments(mapTextStyleInput(textStyleBase), textSegments),
|
|
97983
|
+
textSegments,
|
|
97632
97984
|
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill))
|
|
97633
97985
|
};
|
|
97634
97986
|
}
|
|
@@ -97708,32 +98060,30 @@ function createImageElement(source, options2) {
|
|
|
97708
98060
|
cropBottom: options2?.cropBottom
|
|
97709
98061
|
};
|
|
97710
98062
|
}
|
|
98063
|
+
function createTableCell(cellInput) {
|
|
98064
|
+
return {
|
|
98065
|
+
text: cellInput.text,
|
|
98066
|
+
gridSpan: cellInput.gridSpan,
|
|
98067
|
+
rowSpan: cellInput.rowSpan,
|
|
98068
|
+
style: tableCellStyle(cellInput)
|
|
98069
|
+
};
|
|
98070
|
+
}
|
|
97711
98071
|
function createTableElement(input, options2) {
|
|
97712
|
-
const
|
|
98072
|
+
const grid = input.fillMergedCells ? placeTableCells(input) : void 0;
|
|
98073
|
+
const numCols = grid?.columnCount ?? Math.max(...input.rows.map((r) => r.cells.length), 1);
|
|
97713
98074
|
const rowHeight = input.rows.length > 0 ? Math.max(30, Math.floor(200 / input.rows.length)) : 30;
|
|
97714
98075
|
const totalHeight = options2?.height ?? Math.max(100, input.rows.length * rowHeight);
|
|
97715
98076
|
const p = pos("table", { ...options2, height: totalHeight });
|
|
97716
|
-
|
|
97717
|
-
|
|
97718
|
-
const sum = input.columnWidths.reduce((a, b) => a + b, 0);
|
|
97719
|
-
colWidths = input.columnWidths.map((w) => w / sum);
|
|
97720
|
-
} else {
|
|
97721
|
-
colWidths = Array(numCols).fill(1 / numCols);
|
|
97722
|
-
}
|
|
97723
|
-
const rows = input.rows.map((rowInput) => ({
|
|
98077
|
+
const colWidths = columnFractions(input.columnWidths, numCols);
|
|
98078
|
+
const rows = input.rows.map((rowInput, ri) => ({
|
|
97724
98079
|
height: rowInput.height ?? rowHeight,
|
|
97725
|
-
cells:
|
|
97726
|
-
|
|
97727
|
-
|
|
97728
|
-
|
|
97729
|
-
|
|
97730
|
-
|
|
97731
|
-
|
|
97732
|
-
italic: cellInput.style.italic,
|
|
97733
|
-
color: cellInput.style.color,
|
|
97734
|
-
align: cellInput.style.alignment
|
|
97735
|
-
} : void 0
|
|
97736
|
-
}))
|
|
98080
|
+
cells: grid ? (grid.rows[ri] ?? []).map(
|
|
98081
|
+
(slot2) => slot2.cell ? createTableCell(slot2.cell) : {
|
|
98082
|
+
text: "",
|
|
98083
|
+
...slot2.hMerge ? { hMerge: true } : {},
|
|
98084
|
+
...slot2.vMerge ? { vMerge: true } : {}
|
|
98085
|
+
}
|
|
98086
|
+
) : rowInput.cells.map(createTableCell)
|
|
97737
98087
|
}));
|
|
97738
98088
|
const tableData = {
|
|
97739
98089
|
rows,
|
|
@@ -97748,7 +98098,9 @@ function createTableElement(input, options2) {
|
|
|
97748
98098
|
// Accent 1 unless the caller picked a style. This is decided at
|
|
97749
98099
|
// creation time so the save pipeline never has to invent a style for
|
|
97750
98100
|
// loaded tables that legitimately have none.
|
|
97751
|
-
|
|
98101
|
+
// `style: 'none'` (or '') opts out, so the cells' own formatting is not
|
|
98102
|
+
// painted over by the theme banding.
|
|
98103
|
+
tableStyleId: input.style === "none" ? void 0 : input.style ?? DEFAULT_POWERPOINT_TABLE_STYLE_ID
|
|
97752
98104
|
};
|
|
97753
98105
|
return {
|
|
97754
98106
|
type: "table",
|