ooxml-core 1.43.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 +164 -71
- package/dist/index.mjs +165 -72
- package/dist/opc/declared-fonts.d.ts +9 -0
- package/dist/opc/declared-fonts.d.ts.map +1 -0
- package/dist/opc/index.cjs +84 -0
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +85 -2
- 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 +50 -6
- package/dist/xlsx/ui/index.mjs +50 -6
- package/dist/xlsx/ui/locales/de/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/options.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/options.d.ts.map +1 -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,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, tableCellTextBodyMatches } from './chunk-VKFKEVHK.mjs';
|
|
2
|
-
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, themeColorRefFromColorChoice, formatAutoNumberMarker, readText3DValues, cloneXmlObject, readScene3DValues, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, 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, ensureXmlChild, 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, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, drawingColorXml, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, applySmartArtLayoutDefinition, 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, openZip, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, buildEffectDagTreeFromXml, appendInSchemaOrder, RUN_PROPERTIES_ORDER, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, patchDrawingColorIn, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, encodeXmlAttributeValue, encodeXmlTextValue, svgToCustomGeometryPaths, IncorrectPasswordError, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, 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, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements,
|
|
2
|
+
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, themeColorRefFromColorChoice, formatAutoNumberMarker, readText3DValues, cloneXmlObject, readScene3DValues, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, 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, ensureXmlChild, 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, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, drawingColorXml, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, applySmartArtLayoutDefinition, 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, openZip, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, buildEffectDagTreeFromXml, appendInSchemaOrder, RUN_PROPERTIES_ORDER, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, patchDrawingColorIn, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, encodeXmlAttributeValue, encodeXmlTextValue, svgToCustomGeometryPaths, IncorrectPasswordError, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, 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, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseLineSpacingMultiplier, parseLineSpacingExactPt, formatSchemeKey, buildRelationshipsXml, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, guardZip, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, themeColorRefFromSchemeClr, ZipBombError, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, decodeBase64, parseSmartArtPresLayoutVars, parseDrawingColorIn, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, resolveDiagramLayoutCategory, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-IPV3J3I5.mjs';
|
|
3
3
|
import { hasShapeProperties, hasTextProperties } from './chunk-GXHKNSZX.mjs';
|
|
4
4
|
import { EMU_PER_PX, EMU_PER_PIXEL, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, OOXML_PERCENT_UNITS, EMU_PER_POINT } from './chunk-CA7KCNL3.mjs';
|
|
5
5
|
import JSZip2 from 'jszip';
|
|
@@ -1210,7 +1210,7 @@ function scan(xml) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
1212
|
var escapeText = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
");
|
|
1213
|
-
var qualifiedName = (xml,
|
|
1213
|
+
var qualifiedName = (xml, span2) => /^<([^\s/>]+)/.exec(xml.slice(span2.start, span2.openEnd))?.[1] ?? "";
|
|
1214
1214
|
var PartPatch = class {
|
|
1215
1215
|
constructor(xml, rootElement) {
|
|
1216
1216
|
this.xml = xml;
|
|
@@ -1237,9 +1237,9 @@ var PartPatch = class {
|
|
|
1237
1237
|
this.edits.push({ start, end, text, seq: this.seq++ });
|
|
1238
1238
|
}
|
|
1239
1239
|
span(element2) {
|
|
1240
|
-
const
|
|
1241
|
-
if (!
|
|
1242
|
-
return
|
|
1240
|
+
const span2 = this.spans.get(element2);
|
|
1241
|
+
if (!span2) throw new Error("Element is not a child of the patched root");
|
|
1242
|
+
return span2;
|
|
1243
1243
|
}
|
|
1244
1244
|
/** The prefix bound to `ns` on the root, declaring `preferred` for it when none is. */
|
|
1245
1245
|
prefix(ns, preferred) {
|
|
@@ -1259,20 +1259,20 @@ var PartPatch = class {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
/** Replaces the element's content, keeping its start tag (and attributes) as written. */
|
|
1261
1261
|
setContent(element2, content2) {
|
|
1262
|
-
const
|
|
1263
|
-
if (
|
|
1264
|
-
this.add(
|
|
1265
|
-
else this.add(
|
|
1262
|
+
const span2 = this.span(element2);
|
|
1263
|
+
if (span2.selfClosing)
|
|
1264
|
+
this.add(span2.openEnd - 2, span2.openEnd, `>${content2}</${qualifiedName(this.xml, span2)}>`);
|
|
1265
|
+
else this.add(span2.openEnd, span2.closeStart, content2);
|
|
1266
1266
|
}
|
|
1267
1267
|
/** Adds ` name="value"` text to the element's start tag. */
|
|
1268
1268
|
addAttribute(element2, attribute2) {
|
|
1269
|
-
const
|
|
1270
|
-
const at =
|
|
1269
|
+
const span2 = this.span(element2);
|
|
1270
|
+
const at = span2.openEnd - (span2.selfClosing ? 2 : 1);
|
|
1271
1271
|
this.add(at, at, attribute2);
|
|
1272
1272
|
}
|
|
1273
1273
|
remove(element2) {
|
|
1274
|
-
const
|
|
1275
|
-
this.add(
|
|
1274
|
+
const span2 = this.span(element2);
|
|
1275
|
+
this.add(span2.start, span2.end, "");
|
|
1276
1276
|
}
|
|
1277
1277
|
/** Inserts `markup` before `before`, or as the root's last child. */
|
|
1278
1278
|
insert(markup, before) {
|
|
@@ -8106,6 +8106,10 @@ function applyCellFillStyle(cellProperties, style, context, slidePath) {
|
|
|
8106
8106
|
}
|
|
8107
8107
|
return hasStyle;
|
|
8108
8108
|
}
|
|
8109
|
+
function presetDashValue(value) {
|
|
8110
|
+
const text = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
8111
|
+
return text ? text : void 0;
|
|
8112
|
+
}
|
|
8109
8113
|
function applyCellBorderStyle(cellProperties, style, context) {
|
|
8110
8114
|
if (!cellProperties) {
|
|
8111
8115
|
return false;
|
|
@@ -8143,13 +8147,13 @@ function applyCellBorderStyle(cellProperties, style, context) {
|
|
|
8143
8147
|
style[`${prefix}Color`] = color3;
|
|
8144
8148
|
hasStyle = true;
|
|
8145
8149
|
}
|
|
8146
|
-
const
|
|
8147
|
-
if (
|
|
8148
|
-
|
|
8149
|
-
if (
|
|
8150
|
-
style[`${prefix}
|
|
8151
|
-
hasStyle = true;
|
|
8150
|
+
const dash = parseDrawingLineDash(node, presetDashValue);
|
|
8151
|
+
if (dash.strokeDash) {
|
|
8152
|
+
style[`${prefix}Dash`] = dash.strokeDash;
|
|
8153
|
+
if (dash.strokeDash === "custom") {
|
|
8154
|
+
style[`${prefix}DashSegments`] = dash.customDashSegments;
|
|
8152
8155
|
}
|
|
8156
|
+
hasStyle = true;
|
|
8153
8157
|
}
|
|
8154
8158
|
}
|
|
8155
8159
|
const firstBorderColor = style.borderTopColor || style.borderBottomColor || style.borderLeftColor || style.borderRightColor;
|
|
@@ -41160,7 +41164,16 @@ function repaintSeriesForFamily(series, toLine) {
|
|
|
41160
41164
|
shape2.fill = structuredClone(shape2.line.fill);
|
|
41161
41165
|
}
|
|
41162
41166
|
function clearPointPaint(series, key2) {
|
|
41163
|
-
|
|
41167
|
+
const emptied2 = (part) => Object.keys(part).every((name) => name === "sourceXml");
|
|
41168
|
+
for (const point of series.dataPoints) {
|
|
41169
|
+
if (!point.spPr) continue;
|
|
41170
|
+
delete point.spPr[key2];
|
|
41171
|
+
if (point.spPr.line && emptied2(point.spPr.line)) delete point.spPr.line;
|
|
41172
|
+
if (emptied2(point.spPr)) delete point.spPr;
|
|
41173
|
+
}
|
|
41174
|
+
series.dataPoints = series.dataPoints.filter(
|
|
41175
|
+
(point) => Object.keys(point).some((name) => name !== "index")
|
|
41176
|
+
);
|
|
41164
41177
|
}
|
|
41165
41178
|
function setChartSeriesFill(space, index, fill3) {
|
|
41166
41179
|
return editChartSpace(space, (draft) => {
|
|
@@ -41169,7 +41182,7 @@ function setChartSeriesFill(space, index, fill3) {
|
|
|
41169
41182
|
clearPointPaint(series, "fill");
|
|
41170
41183
|
});
|
|
41171
41184
|
}
|
|
41172
|
-
function setChartSeriesColor(space, index, color3) {
|
|
41185
|
+
function setChartSeriesColor(space, index, color3, options2 = {}) {
|
|
41173
41186
|
return editChartSpace(space, (draft) => {
|
|
41174
41187
|
const { series } = chartSeriesEntryAt(draft, index);
|
|
41175
41188
|
const shape2 = series.spPr ??= {};
|
|
@@ -41179,7 +41192,7 @@ function setChartSeriesColor(space, index, color3) {
|
|
|
41179
41192
|
const fill3 = color3 ? { kind: "solid", color: withAlphaOf(color3, previous) } : void 0;
|
|
41180
41193
|
if (line) assignOrDelete(shape2.line ??= {}, "fill", fill3);
|
|
41181
41194
|
else assignOrDelete(shape2, "fill", fill3);
|
|
41182
|
-
clearPointPaint(series, line ? "line" : "fill");
|
|
41195
|
+
if (!options2.keepPointColors) clearPointPaint(series, line ? "line" : "fill");
|
|
41183
41196
|
});
|
|
41184
41197
|
}
|
|
41185
41198
|
|
|
@@ -50820,16 +50833,16 @@ function tableToShapeGroup(tableData, bounds) {
|
|
|
50820
50833
|
const y = bounds.y + rowIndex * rowHeightEmu;
|
|
50821
50834
|
let colIndex = 0;
|
|
50822
50835
|
for (const cell2 of row.cells) {
|
|
50823
|
-
const
|
|
50836
|
+
const span2 = Math.max(1, cell2.gridSpan ?? 1);
|
|
50824
50837
|
if (cell2.vMerge) {
|
|
50825
50838
|
vMergeActive[colIndex] = true;
|
|
50826
|
-
colIndex +=
|
|
50839
|
+
colIndex += span2;
|
|
50827
50840
|
continue;
|
|
50828
50841
|
}
|
|
50829
50842
|
vMergeActive[colIndex] = false;
|
|
50830
50843
|
if (!cell2.hMerge) {
|
|
50831
50844
|
const x = colStartX[colIndex] ?? bounds.x;
|
|
50832
|
-
const w = colEmuWidths.slice(colIndex, colIndex +
|
|
50845
|
+
const w = colEmuWidths.slice(colIndex, colIndex + span2).reduce((s, v) => s + v, 0);
|
|
50833
50846
|
children6.push({
|
|
50834
50847
|
kind: "shape",
|
|
50835
50848
|
spt: 1,
|
|
@@ -50843,7 +50856,7 @@ function tableToShapeGroup(tableData, bounds) {
|
|
|
50843
50856
|
text: { textType: 4, paragraphs: cellParagraphs(cell2.text) }
|
|
50844
50857
|
});
|
|
50845
50858
|
}
|
|
50846
|
-
colIndex +=
|
|
50859
|
+
colIndex += span2;
|
|
50847
50860
|
}
|
|
50848
50861
|
});
|
|
50849
50862
|
return { kind: "group", anchor: bounds, children: children6 };
|
|
@@ -60539,6 +60552,11 @@ function planNeutralChartChrome(before, probe, edits) {
|
|
|
60539
60552
|
}
|
|
60540
60553
|
|
|
60541
60554
|
// pptx/core/utils/chart-neutral-save-points.ts
|
|
60555
|
+
var emptied = (part) => Object.keys(part).every((key2) => key2 === "sourceXml");
|
|
60556
|
+
function pointShape(shape2) {
|
|
60557
|
+
if (shape2.line && emptied(shape2.line)) delete shape2.line;
|
|
60558
|
+
return emptied(shape2) ? null : shape2;
|
|
60559
|
+
}
|
|
60542
60560
|
function pointEdit(edits, seriesIndex, old, next) {
|
|
60543
60561
|
for (const key2 of ["picture", "impliedPicture", "uniqueId"])
|
|
60544
60562
|
if (!same4(old?.[key2], next[key2])) return false;
|
|
@@ -60561,6 +60579,7 @@ function pointEdit(edits, seriesIndex, old, next) {
|
|
|
60561
60579
|
) ?? null
|
|
60562
60580
|
});
|
|
60563
60581
|
}
|
|
60582
|
+
if (edit.spPr) edit.spPr = pointShape(edit.spPr);
|
|
60564
60583
|
if (!same4(old?.marker, next.marker)) {
|
|
60565
60584
|
if (!next.marker) edit.marker = null;
|
|
60566
60585
|
else {
|
|
@@ -60815,7 +60834,9 @@ function planNeutralChartSeriesColors(before, probe, edits) {
|
|
|
60815
60834
|
const value = series.color?.replace(/^#/, "");
|
|
60816
60835
|
if (value !== void 0 && !/^[\da-f]{6}$/i.test(value)) return;
|
|
60817
60836
|
edits.push(
|
|
60818
|
-
(space) => setChartSeriesColor(space, index, value ? { kind: "srgb", value, transforms: [] } : null
|
|
60837
|
+
(space) => setChartSeriesColor(space, index, value ? { kind: "srgb", value, transforms: [] } : null, {
|
|
60838
|
+
keepPointColors: true
|
|
60839
|
+
})
|
|
60819
60840
|
);
|
|
60820
60841
|
if (previous.color === void 0) delete series.color;
|
|
60821
60842
|
else series.color = previous.color;
|
|
@@ -63665,8 +63686,8 @@ function renderBars(element2, x, y, w, h) {
|
|
|
63665
63686
|
const values = chartValues(element2);
|
|
63666
63687
|
const min = Math.min(0, ...values);
|
|
63667
63688
|
const max = Math.max(0, ...values);
|
|
63668
|
-
const
|
|
63669
|
-
const zeroY = y + max /
|
|
63689
|
+
const span2 = max - min || 1;
|
|
63690
|
+
const zeroY = y + max / span2 * h;
|
|
63670
63691
|
const categoryCount = Math.max(
|
|
63671
63692
|
data.categories.length,
|
|
63672
63693
|
...data.series.map((s) => s.values.length),
|
|
@@ -63677,7 +63698,7 @@ function renderBars(element2, x, y, w, h) {
|
|
|
63677
63698
|
const parts = [`<line x1="${x}" y1="${zeroY}" x2="${x + w}" y2="${zeroY}" stroke="#666666" />`];
|
|
63678
63699
|
data.series.forEach((series, seriesIndex) => {
|
|
63679
63700
|
series.values.forEach((value, categoryIndex) => {
|
|
63680
|
-
const valueY = y + (max - value) /
|
|
63701
|
+
const valueY = y + (max - value) / span2 * h;
|
|
63681
63702
|
parts.push(
|
|
63682
63703
|
`<rect data-chart-mark="bar" x="${x + categoryIndex * clusterWidth + clusterWidth * 0.14 + seriesIndex * barWidth}" y="${Math.min(valueY, zeroY)}" width="${Math.max(barWidth - 1, 1)}" height="${Math.max(Math.abs(zeroY - valueY), 0.5)}" fill="${esc3(color2(series, seriesIndex))}" />`
|
|
63683
63704
|
);
|
|
@@ -63690,10 +63711,10 @@ function renderLines(element2, x, y, w, h) {
|
|
|
63690
63711
|
const values = chartValues(element2);
|
|
63691
63712
|
const min = Math.min(...values);
|
|
63692
63713
|
const max = Math.max(...values);
|
|
63693
|
-
const
|
|
63714
|
+
const span2 = max - min || 1;
|
|
63694
63715
|
return data.series.map((series, seriesIndex) => {
|
|
63695
63716
|
const denominator = Math.max(series.values.length - 1, 1);
|
|
63696
|
-
const points7 = series.values.map((value, index) => `${x + index / denominator * w},${y + (max - value) /
|
|
63717
|
+
const points7 = series.values.map((value, index) => `${x + index / denominator * w},${y + (max - value) / span2 * h}`).join(" ");
|
|
63697
63718
|
return `<polyline data-chart-mark="line" points="${points7}" fill="none" stroke="${esc3(color2(series, seriesIndex))}" stroke-width="2" />`;
|
|
63698
63719
|
}).join("");
|
|
63699
63720
|
}
|
|
@@ -68509,6 +68530,17 @@ var CHART_GRAPHIC_DATA_URI2 = "http://schemas.openxmlformats.org/drawingml/2006/
|
|
|
68509
68530
|
var CHART_EX_GRAPHIC_DATA_URI2 = "http://schemas.microsoft.com/office/drawing/2014/chartex";
|
|
68510
68531
|
var CHART_NS_C = "http://schemas.openxmlformats.org/drawingml/2006/chart";
|
|
68511
68532
|
var CHART_NS_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
68533
|
+
function tableGridXml(el, widthEmu) {
|
|
68534
|
+
const fractions = el.tableData?.columnWidths ?? [];
|
|
68535
|
+
if (fractions.length === 0 || !(widthEmu > 0)) {
|
|
68536
|
+
return {};
|
|
68537
|
+
}
|
|
68538
|
+
const widths = fractions.map((fraction) => Math.max(0, Math.round(fraction * widthEmu)));
|
|
68539
|
+
const last = widths.length - 1;
|
|
68540
|
+
widths[last] = Math.max(0, (widths[last] ?? 0) + widthEmu - widths.reduce((a, b) => a + b, 0));
|
|
68541
|
+
const cols = widths.map((w) => ({ "@_w": String(w) }));
|
|
68542
|
+
return { "a:gridCol": cols.length === 1 ? cols[0] : cols };
|
|
68543
|
+
}
|
|
68512
68544
|
function buildTableGraphicFrameXml(el, emuPerPx) {
|
|
68513
68545
|
el.locks = { noGrouping: true, ...el.locks };
|
|
68514
68546
|
const offX = String(Math.round(el.x * emuPerPx));
|
|
@@ -68539,7 +68571,7 @@ function buildTableGraphicFrameXml(el, emuPerPx) {
|
|
|
68539
68571
|
"@_uri": "http://schemas.openxmlformats.org/drawingml/2006/table",
|
|
68540
68572
|
"a:tbl": {
|
|
68541
68573
|
"a:tblPr": tblPr,
|
|
68542
|
-
"a:tblGrid":
|
|
68574
|
+
"a:tblGrid": tableGridXml(el, Number(extCx))
|
|
68543
68575
|
}
|
|
68544
68576
|
}
|
|
68545
68577
|
}
|
|
@@ -70673,12 +70705,86 @@ var NON_MATERIALIZED_PLACEHOLDER_TYPES = /* @__PURE__ */ new Set([
|
|
|
70673
70705
|
"sldimg"
|
|
70674
70706
|
]);
|
|
70675
70707
|
|
|
70708
|
+
// pptx/core/core/runtime/table-cell-border-save.ts
|
|
70709
|
+
function cellEdges(style) {
|
|
70710
|
+
return [
|
|
70711
|
+
{
|
|
70712
|
+
xmlKey: "a:lnT",
|
|
70713
|
+
width: style.borderTopWidth,
|
|
70714
|
+
color: style.borderTopColor,
|
|
70715
|
+
dash: style.borderTopDash,
|
|
70716
|
+
segments: style.borderTopDashSegments
|
|
70717
|
+
},
|
|
70718
|
+
{
|
|
70719
|
+
xmlKey: "a:lnB",
|
|
70720
|
+
width: style.borderBottomWidth,
|
|
70721
|
+
color: style.borderBottomColor,
|
|
70722
|
+
dash: style.borderBottomDash,
|
|
70723
|
+
segments: style.borderBottomDashSegments
|
|
70724
|
+
},
|
|
70725
|
+
{
|
|
70726
|
+
xmlKey: "a:lnL",
|
|
70727
|
+
width: style.borderLeftWidth,
|
|
70728
|
+
color: style.borderLeftColor,
|
|
70729
|
+
dash: style.borderLeftDash,
|
|
70730
|
+
segments: style.borderLeftDashSegments
|
|
70731
|
+
},
|
|
70732
|
+
{
|
|
70733
|
+
xmlKey: "a:lnR",
|
|
70734
|
+
width: style.borderRightWidth,
|
|
70735
|
+
color: style.borderRightColor,
|
|
70736
|
+
dash: style.borderRightDash,
|
|
70737
|
+
segments: style.borderRightDashSegments
|
|
70738
|
+
}
|
|
70739
|
+
];
|
|
70740
|
+
}
|
|
70741
|
+
function writeEdgeDash(ln, edge) {
|
|
70742
|
+
if (edge.dash === void 0 || edge.dash === "") {
|
|
70743
|
+
return;
|
|
70744
|
+
}
|
|
70745
|
+
if (edge.dash === "solid") {
|
|
70746
|
+
delete ln["a:prstDash"];
|
|
70747
|
+
delete ln["a:custDash"];
|
|
70748
|
+
return;
|
|
70749
|
+
}
|
|
70750
|
+
if (edge.dash === "custom") {
|
|
70751
|
+
if (edge.segments && edge.segments.length > 0) {
|
|
70752
|
+
applyDrawingLineDash(ln, { strokeDash: "custom", customDashSegments: edge.segments });
|
|
70753
|
+
}
|
|
70754
|
+
return;
|
|
70755
|
+
}
|
|
70756
|
+
applyDrawingLineDash(ln, { strokeDash: edge.dash });
|
|
70757
|
+
}
|
|
70758
|
+
function writeCellEdgeBorders(tcPr, style, emuPerPx) {
|
|
70759
|
+
for (const edge of cellEdges(style)) {
|
|
70760
|
+
if (edge.width === void 0 && edge.color === void 0 && edge.dash === void 0) {
|
|
70761
|
+
continue;
|
|
70762
|
+
}
|
|
70763
|
+
const existing = tcPr[edge.xmlKey];
|
|
70764
|
+
const ln = existing && typeof existing === "object" ? existing : {};
|
|
70765
|
+
if (edge.width !== void 0) {
|
|
70766
|
+
ln["@_w"] = String(Math.round(edge.width * emuPerPx));
|
|
70767
|
+
}
|
|
70768
|
+
if (edge.color) {
|
|
70769
|
+
delete ln["a:noFill"];
|
|
70770
|
+
delete ln["a:gradFill"];
|
|
70771
|
+
delete ln["a:pattFill"];
|
|
70772
|
+
ln["a:solidFill"] = {
|
|
70773
|
+
"a:srgbClr": { "@_val": edge.color.replace("#", "") }
|
|
70774
|
+
};
|
|
70775
|
+
}
|
|
70776
|
+
writeEdgeDash(ln, edge);
|
|
70777
|
+
tcPr[edge.xmlKey] = reorderObjectKeys(ln, LN_CHILD_ORDER);
|
|
70778
|
+
}
|
|
70779
|
+
}
|
|
70780
|
+
|
|
70676
70781
|
// pptx/core/core/runtime/table-cell-save-helpers.ts
|
|
70677
70782
|
function writeCellFill(tcPr, style, resolveColorXml) {
|
|
70678
70783
|
if (style.fillMode === "gradient" && style.gradientFillStops && style.gradientFillStops.length > 0) {
|
|
70679
70784
|
delete tcPr["a:solidFill"];
|
|
70680
70785
|
delete tcPr["a:pattFill"];
|
|
70681
70786
|
delete tcPr["a:blipFill"];
|
|
70787
|
+
delete tcPr["a:noFill"];
|
|
70682
70788
|
const stops = style.gradientFillStops.map((stop) => {
|
|
70683
70789
|
const posRaw = typeof stop.position === "number" ? stop.position : 0;
|
|
70684
70790
|
const position3 = Math.round(Math.max(0, Math.min(1, posRaw / 100)) * 1e5);
|
|
@@ -70730,6 +70836,7 @@ function writeCellFill(tcPr, style, resolveColorXml) {
|
|
|
70730
70836
|
delete tcPr["a:solidFill"];
|
|
70731
70837
|
delete tcPr["a:gradFill"];
|
|
70732
70838
|
delete tcPr["a:blipFill"];
|
|
70839
|
+
delete tcPr["a:noFill"];
|
|
70733
70840
|
const pattXml = {
|
|
70734
70841
|
"@_prst": style.patternFillPreset
|
|
70735
70842
|
};
|
|
@@ -70753,10 +70860,12 @@ function writeCellFill(tcPr, style, resolveColorXml) {
|
|
|
70753
70860
|
delete tcPr["a:gradFill"];
|
|
70754
70861
|
delete tcPr["a:pattFill"];
|
|
70755
70862
|
delete tcPr["a:blipFill"];
|
|
70863
|
+
tcPr["a:noFill"] = tcPr["a:noFill"] ?? {};
|
|
70756
70864
|
} else if (style.fillMode !== "image" && style.backgroundColor) {
|
|
70757
70865
|
delete tcPr["a:gradFill"];
|
|
70758
70866
|
delete tcPr["a:pattFill"];
|
|
70759
70867
|
delete tcPr["a:blipFill"];
|
|
70868
|
+
delete tcPr["a:noFill"];
|
|
70760
70869
|
const resolvedOriginal = style.backgroundColorXml && resolveColorXml ? resolveColorXml(style.backgroundColorXml) : void 0;
|
|
70761
70870
|
tcPr["a:solidFill"] = serializeColorChoiceWithRef(
|
|
70762
70871
|
style.backgroundColorRef,
|
|
@@ -70973,53 +71082,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
70973
71082
|
pPr["@_algn"] = token2;
|
|
70974
71083
|
}
|
|
70975
71084
|
}
|
|
70976
|
-
|
|
70977
|
-
{
|
|
70978
|
-
xmlKey: "a:lnT",
|
|
70979
|
-
width: style.borderTopWidth,
|
|
70980
|
-
color: style.borderTopColor,
|
|
70981
|
-
dash: style.borderTopDash
|
|
70982
|
-
},
|
|
70983
|
-
{
|
|
70984
|
-
xmlKey: "a:lnB",
|
|
70985
|
-
width: style.borderBottomWidth,
|
|
70986
|
-
color: style.borderBottomColor,
|
|
70987
|
-
dash: style.borderBottomDash
|
|
70988
|
-
},
|
|
70989
|
-
{
|
|
70990
|
-
xmlKey: "a:lnL",
|
|
70991
|
-
width: style.borderLeftWidth,
|
|
70992
|
-
color: style.borderLeftColor,
|
|
70993
|
-
dash: style.borderLeftDash
|
|
70994
|
-
},
|
|
70995
|
-
{
|
|
70996
|
-
xmlKey: "a:lnR",
|
|
70997
|
-
width: style.borderRightWidth,
|
|
70998
|
-
color: style.borderRightColor,
|
|
70999
|
-
dash: style.borderRightDash
|
|
71000
|
-
}
|
|
71001
|
-
];
|
|
71002
|
-
for (const edge of borderEdges) {
|
|
71003
|
-
if (edge.width !== void 0 || edge.color !== void 0 || edge.dash !== void 0) {
|
|
71004
|
-
if (!tcPr[edge.xmlKey]) {
|
|
71005
|
-
tcPr[edge.xmlKey] = {};
|
|
71006
|
-
}
|
|
71007
|
-
const ln = tcPr[edge.xmlKey];
|
|
71008
|
-
if (edge.width !== void 0) {
|
|
71009
|
-
ln["@_w"] = String(Math.round(edge.width * _PptxHandlerRuntime.EMU_PER_PX));
|
|
71010
|
-
}
|
|
71011
|
-
if (edge.color) {
|
|
71012
|
-
ln["a:solidFill"] = {
|
|
71013
|
-
"a:srgbClr": { "@_val": edge.color.replace("#", "") }
|
|
71014
|
-
};
|
|
71015
|
-
}
|
|
71016
|
-
if (edge.dash && edge.dash !== "solid") {
|
|
71017
|
-
ln["a:prstDash"] = { "@_val": edge.dash };
|
|
71018
|
-
} else if (edge.dash === "solid") {
|
|
71019
|
-
delete ln["a:prstDash"];
|
|
71020
|
-
}
|
|
71021
|
-
}
|
|
71022
|
-
}
|
|
71085
|
+
writeCellEdgeBorders(tcPr, style, _PptxHandlerRuntime.EMU_PER_PX);
|
|
71023
71086
|
const emuPerPx = _PptxHandlerRuntime.EMU_PER_PX;
|
|
71024
71087
|
if (style.marginLeft !== void 0) {
|
|
71025
71088
|
tcPr["@_marL"] = String(Math.round(style.marginLeft * emuPerPx));
|
|
@@ -71384,10 +71447,13 @@ var FILL_KEYS = [
|
|
|
71384
71447
|
"a:grpFill"
|
|
71385
71448
|
];
|
|
71386
71449
|
var LINE_KEYS = [
|
|
71387
|
-
["a:lnL", ["borderLeftWidth", "borderLeftColor", "borderLeftDash"]],
|
|
71388
|
-
["a:lnR", ["borderRightWidth", "borderRightColor", "borderRightDash"]],
|
|
71389
|
-
["a:lnT", ["borderTopWidth", "borderTopColor", "borderTopDash"]],
|
|
71390
|
-
[
|
|
71450
|
+
["a:lnL", ["borderLeftWidth", "borderLeftColor", "borderLeftDash", "borderLeftDashSegments"]],
|
|
71451
|
+
["a:lnR", ["borderRightWidth", "borderRightColor", "borderRightDash", "borderRightDashSegments"]],
|
|
71452
|
+
["a:lnT", ["borderTopWidth", "borderTopColor", "borderTopDash", "borderTopDashSegments"]],
|
|
71453
|
+
[
|
|
71454
|
+
"a:lnB",
|
|
71455
|
+
["borderBottomWidth", "borderBottomColor", "borderBottomDash", "borderBottomDashSegments"]
|
|
71456
|
+
],
|
|
71391
71457
|
["a:lnTlToBr", ["borderDiagDownWidth", "borderDiagDownColor"]],
|
|
71392
71458
|
["a:lnBlToTr", ["borderDiagUpWidth", "borderDiagUpColor"]]
|
|
71393
71459
|
];
|
|
@@ -98013,6 +98079,269 @@ function buildShapeStyle(opts) {
|
|
|
98013
98079
|
return Object.keys(parts).length > 0 ? parts : void 0;
|
|
98014
98080
|
}
|
|
98015
98081
|
|
|
98082
|
+
// pptx/core/builders/sdk/table-border-input.ts
|
|
98083
|
+
var MAX_DASH_UNITS = 2147483647;
|
|
98084
|
+
var EDGES = [
|
|
98085
|
+
["top", "borderTop"],
|
|
98086
|
+
["right", "borderRight"],
|
|
98087
|
+
["bottom", "borderBottom"],
|
|
98088
|
+
["left", "borderLeft"]
|
|
98089
|
+
];
|
|
98090
|
+
function borderDashSegments(edge, lengths, width) {
|
|
98091
|
+
const name = `TableCellInput.borders.${edge}.dash`;
|
|
98092
|
+
if (lengths.length === 0) {
|
|
98093
|
+
throw new RangeError(`${name} must give at least one length`);
|
|
98094
|
+
}
|
|
98095
|
+
if (lengths.some((n) => !Number.isFinite(n) || n <= 0)) {
|
|
98096
|
+
throw new RangeError(`${name} lengths must be finite and above 0, got [${lengths.join(", ")}]`);
|
|
98097
|
+
}
|
|
98098
|
+
const segments = customDashSegments([...lengths], width !== void 0 && width > 0 ? width : 1);
|
|
98099
|
+
if (segments.some((s) => s.dash <= 0 || s.space <= 0)) {
|
|
98100
|
+
throw new RangeError(`${name} has a length too short to write: [${lengths.join(", ")}]`);
|
|
98101
|
+
}
|
|
98102
|
+
if (segments.some((s) => s.dash > MAX_DASH_UNITS || s.space > MAX_DASH_UNITS)) {
|
|
98103
|
+
throw new RangeError(`${name} has a length too long to write: [${lengths.join(", ")}]`);
|
|
98104
|
+
}
|
|
98105
|
+
return segments;
|
|
98106
|
+
}
|
|
98107
|
+
function edgeStyle(edge, prefix, input) {
|
|
98108
|
+
if (input.width !== void 0 && (!Number.isFinite(input.width) || input.width < 0)) {
|
|
98109
|
+
throw new RangeError(
|
|
98110
|
+
`TableCellInput.borders.${edge}.width must be a finite width of 0 or more, got ${input.width}`
|
|
98111
|
+
);
|
|
98112
|
+
}
|
|
98113
|
+
const out = {};
|
|
98114
|
+
if (input.width !== void 0) out[`${prefix}Width`] = input.width;
|
|
98115
|
+
if (input.color !== void 0) out[`${prefix}Color`] = input.color;
|
|
98116
|
+
if (Array.isArray(input.dash)) {
|
|
98117
|
+
out[`${prefix}Dash`] = "custom";
|
|
98118
|
+
out[`${prefix}DashSegments`] = borderDashSegments(edge, input.dash, input.width);
|
|
98119
|
+
} else if (input.dash !== void 0) {
|
|
98120
|
+
if (input.dash === "custom") {
|
|
98121
|
+
throw new RangeError(`TableCellInput.borders.${edge}.dash: give 'custom' as a length list`);
|
|
98122
|
+
}
|
|
98123
|
+
out[`${prefix}Dash`] = input.dash;
|
|
98124
|
+
}
|
|
98125
|
+
return out;
|
|
98126
|
+
}
|
|
98127
|
+
function tableCellBorderStyle(borders) {
|
|
98128
|
+
if (!borders) {
|
|
98129
|
+
return {};
|
|
98130
|
+
}
|
|
98131
|
+
const out = {};
|
|
98132
|
+
for (const [edge, prefix] of EDGES) {
|
|
98133
|
+
const own = borders[edge];
|
|
98134
|
+
const input = borders.all || own ? { ...borders.all, ...own } : void 0;
|
|
98135
|
+
if (input) {
|
|
98136
|
+
Object.assign(out, edgeStyle(own ? edge : "all", prefix, input));
|
|
98137
|
+
}
|
|
98138
|
+
}
|
|
98139
|
+
return out;
|
|
98140
|
+
}
|
|
98141
|
+
|
|
98142
|
+
// pptx/core/builders/sdk/table-cell-input.ts
|
|
98143
|
+
function refuseGradientExtras(fill3) {
|
|
98144
|
+
const radial = fill3.path !== void 0 || fill3.gradientType === "radial";
|
|
98145
|
+
const unsupported3 = [
|
|
98146
|
+
fill3.tile !== void 0 ? "tile" : void 0,
|
|
98147
|
+
fill3.scaled === false ? "scaled: false" : void 0,
|
|
98148
|
+
fill3.rotWithShape !== void 0 ? "rotWithShape" : void 0,
|
|
98149
|
+
fill3.focus !== void 0 && !radial ? "focus on a linear gradient" : void 0
|
|
98150
|
+
].filter((name) => name !== void 0);
|
|
98151
|
+
if (unsupported3.length > 0) {
|
|
98152
|
+
throw new RangeError(
|
|
98153
|
+
`TableCellInput.fill: ${unsupported3.join(", ")} cannot be written on a table cell`
|
|
98154
|
+
);
|
|
98155
|
+
}
|
|
98156
|
+
if (fill3.stops.length === 0) {
|
|
98157
|
+
throw new RangeError("TableCellInput.fill: a gradient needs at least one stop");
|
|
98158
|
+
}
|
|
98159
|
+
}
|
|
98160
|
+
function tableCellFillStyle(fill3) {
|
|
98161
|
+
switch (fill3?.type) {
|
|
98162
|
+
case void 0:
|
|
98163
|
+
return {};
|
|
98164
|
+
case "solid":
|
|
98165
|
+
if (fill3.opacity !== void 0 && fill3.opacity !== 1) {
|
|
98166
|
+
throw new RangeError(
|
|
98167
|
+
`TableCellInput.fill.opacity cannot be written on a table cell, got ${fill3.opacity}`
|
|
98168
|
+
);
|
|
98169
|
+
}
|
|
98170
|
+
return {
|
|
98171
|
+
fillMode: "solid",
|
|
98172
|
+
backgroundColor: fill3.color,
|
|
98173
|
+
...fill3.themeColorRef ? { backgroundColorRef: fill3.themeColorRef } : {}
|
|
98174
|
+
};
|
|
98175
|
+
case "gradient": {
|
|
98176
|
+
refuseGradientExtras(fill3);
|
|
98177
|
+
const radial = fill3.path !== void 0 || fill3.gradientType === "radial";
|
|
98178
|
+
return {
|
|
98179
|
+
fillMode: "gradient",
|
|
98180
|
+
gradientFillType: radial ? "radial" : "linear",
|
|
98181
|
+
gradientFillAngle: fill3.angle ?? 0,
|
|
98182
|
+
gradientFillStops: fill3.stops.map((stop) => ({
|
|
98183
|
+
color: stop.color,
|
|
98184
|
+
position: stop.position,
|
|
98185
|
+
...stop.opacity !== void 0 ? { opacity: stop.opacity } : {}
|
|
98186
|
+
})),
|
|
98187
|
+
...radial ? { gradientFillPathType: fill3.path ?? "circle" } : {},
|
|
98188
|
+
...fill3.focus ? { gradientFillFillToRect: { ...fill3.focus } } : {}
|
|
98189
|
+
};
|
|
98190
|
+
}
|
|
98191
|
+
case "pattern":
|
|
98192
|
+
if (!fill3.preset) {
|
|
98193
|
+
throw new RangeError("TableCellInput.fill: a pattern fill needs a preset");
|
|
98194
|
+
}
|
|
98195
|
+
return {
|
|
98196
|
+
fillMode: "pattern",
|
|
98197
|
+
patternFillPreset: fill3.preset,
|
|
98198
|
+
...fill3.foreground !== void 0 ? { patternFillForeground: fill3.foreground } : {},
|
|
98199
|
+
...fill3.background !== void 0 ? { patternFillBackground: fill3.background } : {}
|
|
98200
|
+
};
|
|
98201
|
+
case "image":
|
|
98202
|
+
throw new RangeError("TableCellInput.fill: an image fill cannot be written on a table cell");
|
|
98203
|
+
case "none":
|
|
98204
|
+
return { fillMode: "none" };
|
|
98205
|
+
}
|
|
98206
|
+
}
|
|
98207
|
+
function tableCellTextStyle(style) {
|
|
98208
|
+
const out = {};
|
|
98209
|
+
if (style?.fontSize !== void 0) out.fontSize = style.fontSize;
|
|
98210
|
+
if (style?.bold !== void 0) out.bold = style.bold;
|
|
98211
|
+
if (style?.italic !== void 0) out.italic = style.italic;
|
|
98212
|
+
if (style?.color !== void 0) out.color = style.color;
|
|
98213
|
+
if (style?.alignment !== void 0) out.align = style.alignment;
|
|
98214
|
+
return out;
|
|
98215
|
+
}
|
|
98216
|
+
function tableCellStyle(cell2) {
|
|
98217
|
+
const style = {
|
|
98218
|
+
...tableCellTextStyle(cell2.style),
|
|
98219
|
+
...tableCellFillStyle(cell2.fill),
|
|
98220
|
+
...tableCellBorderStyle(cell2.borders)
|
|
98221
|
+
};
|
|
98222
|
+
return cell2.style || Object.keys(style).length > 0 ? style : void 0;
|
|
98223
|
+
}
|
|
98224
|
+
|
|
98225
|
+
// pptx/core/builders/sdk/table-merge-input.ts
|
|
98226
|
+
function span(value, name) {
|
|
98227
|
+
if (value === void 0) {
|
|
98228
|
+
return 1;
|
|
98229
|
+
}
|
|
98230
|
+
if (!Number.isInteger(value) || value < 1) {
|
|
98231
|
+
throw new RangeError(`TableCellInput.${name} must be a whole number from 1, got ${value}`);
|
|
98232
|
+
}
|
|
98233
|
+
return value;
|
|
98234
|
+
}
|
|
98235
|
+
function placeTableCells(input) {
|
|
98236
|
+
const rowCount = input.rows.length;
|
|
98237
|
+
const slots = input.rows.map(() => []);
|
|
98238
|
+
input.rows.forEach((row, ri) => {
|
|
98239
|
+
const rowSlots = slots[ri] ?? [];
|
|
98240
|
+
let ci = 0;
|
|
98241
|
+
for (const cell2 of row.cells) {
|
|
98242
|
+
while (rowSlots[ci]) {
|
|
98243
|
+
ci += 1;
|
|
98244
|
+
}
|
|
98245
|
+
const colSpan = span(cell2.gridSpan, "gridSpan");
|
|
98246
|
+
const rowSpan = span(cell2.rowSpan, "rowSpan");
|
|
98247
|
+
if (ri + rowSpan > rowCount) {
|
|
98248
|
+
throw new RangeError(
|
|
98249
|
+
`A cell in row ${ri} spans ${rowSpan} rows, past the table's ${rowCount} rows`
|
|
98250
|
+
);
|
|
98251
|
+
}
|
|
98252
|
+
for (let dr = 0; dr < rowSpan; dr++) {
|
|
98253
|
+
for (let dc = 0; dc < colSpan; dc++) {
|
|
98254
|
+
const target = slots[ri + dr] ?? [];
|
|
98255
|
+
if (target[ci + dc]) {
|
|
98256
|
+
throw new RangeError(
|
|
98257
|
+
`A cell in row ${ri} overlaps the merge covering row ${ri + dr}, column ${ci + dc}`
|
|
98258
|
+
);
|
|
98259
|
+
}
|
|
98260
|
+
target[ci + dc] = dr === 0 && dc === 0 ? { cell: cell2 } : { hMerge: dc > 0, vMerge: dr > 0 };
|
|
98261
|
+
}
|
|
98262
|
+
}
|
|
98263
|
+
ci += colSpan;
|
|
98264
|
+
}
|
|
98265
|
+
});
|
|
98266
|
+
const widest = Math.max(...slots.map((row) => row.length), 1);
|
|
98267
|
+
const declared = input.columnWidths?.length;
|
|
98268
|
+
if (declared !== void 0 && widest > declared) {
|
|
98269
|
+
throw new RangeError(`A row takes ${widest} columns, but columnWidths gives ${declared}`);
|
|
98270
|
+
}
|
|
98271
|
+
const columnCount = declared ?? widest;
|
|
98272
|
+
return {
|
|
98273
|
+
columnCount,
|
|
98274
|
+
rows: slots.map(
|
|
98275
|
+
(row) => Array.from({ length: columnCount }, (_, ci) => row[ci] ?? { cell: { text: "" } })
|
|
98276
|
+
)
|
|
98277
|
+
};
|
|
98278
|
+
}
|
|
98279
|
+
function columnFractions(columnWidths, columnCount) {
|
|
98280
|
+
if (!columnWidths) {
|
|
98281
|
+
return Array.from({ length: columnCount }, () => 1 / columnCount);
|
|
98282
|
+
}
|
|
98283
|
+
if (columnWidths.length !== columnCount) {
|
|
98284
|
+
throw new RangeError(
|
|
98285
|
+
`columnWidths gives ${columnWidths.length} widths for a table of ${columnCount} columns`
|
|
98286
|
+
);
|
|
98287
|
+
}
|
|
98288
|
+
if (columnWidths.some((w) => !Number.isFinite(w) || w < 0)) {
|
|
98289
|
+
throw new RangeError("columnWidths must be finite widths of 0 or more");
|
|
98290
|
+
}
|
|
98291
|
+
const sum = columnWidths.reduce((a, b) => a + b, 0);
|
|
98292
|
+
if (sum <= 0) {
|
|
98293
|
+
throw new RangeError("columnWidths must not all be 0");
|
|
98294
|
+
}
|
|
98295
|
+
return columnWidths.map((w) => w / sum);
|
|
98296
|
+
}
|
|
98297
|
+
|
|
98298
|
+
// pptx/core/builders/sdk/text-segment-style.ts
|
|
98299
|
+
var RUN_KEYS = [
|
|
98300
|
+
"fontFamily",
|
|
98301
|
+
"fontSize",
|
|
98302
|
+
"bold",
|
|
98303
|
+
"italic",
|
|
98304
|
+
"underline",
|
|
98305
|
+
"strikethrough",
|
|
98306
|
+
"color",
|
|
98307
|
+
"colorRef",
|
|
98308
|
+
"characterSpacing",
|
|
98309
|
+
"hyperlink",
|
|
98310
|
+
"hyperlinkAction",
|
|
98311
|
+
"hyperlinkTargetSlideIndex",
|
|
98312
|
+
"hyperlinkTooltip",
|
|
98313
|
+
"align"
|
|
98314
|
+
];
|
|
98315
|
+
function elementStyleForSegments(textStyle, segments) {
|
|
98316
|
+
const styled = segments.filter((segment) => !segment.isParagraphBreak);
|
|
98317
|
+
const first2 = styled[0]?.style;
|
|
98318
|
+
if (!first2) {
|
|
98319
|
+
return textStyle;
|
|
98320
|
+
}
|
|
98321
|
+
const next = { ...textStyle };
|
|
98322
|
+
for (const key2 of RUN_KEYS) {
|
|
98323
|
+
const value = first2[key2];
|
|
98324
|
+
if (!styled.every((segment) => sameValue2(segment.style?.[key2], value))) {
|
|
98325
|
+
continue;
|
|
98326
|
+
}
|
|
98327
|
+
if (value === void 0) {
|
|
98328
|
+
delete next[key2];
|
|
98329
|
+
} else {
|
|
98330
|
+
next[key2] = value;
|
|
98331
|
+
}
|
|
98332
|
+
}
|
|
98333
|
+
return next;
|
|
98334
|
+
}
|
|
98335
|
+
function sameValue2(a, b) {
|
|
98336
|
+
if (a === b) {
|
|
98337
|
+
return true;
|
|
98338
|
+
}
|
|
98339
|
+
if (a && b && typeof a === "object" && typeof b === "object") {
|
|
98340
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
98341
|
+
}
|
|
98342
|
+
return false;
|
|
98343
|
+
}
|
|
98344
|
+
|
|
98016
98345
|
// pptx/core/builders/sdk/ElementFactory.ts
|
|
98017
98346
|
var idCounter = 0;
|
|
98018
98347
|
function generateId(prefix) {
|
|
@@ -98132,6 +98461,7 @@ function createTextElement(text, options2) {
|
|
|
98132
98461
|
verticalAlignment: options2?.verticalAlignment,
|
|
98133
98462
|
lineSpacing: options2?.lineSpacing
|
|
98134
98463
|
};
|
|
98464
|
+
const textSegments = buildTextSegments(text, textStyleBase);
|
|
98135
98465
|
return {
|
|
98136
98466
|
type: "text",
|
|
98137
98467
|
id: generateId("txt"),
|
|
@@ -98139,8 +98469,8 @@ function createTextElement(text, options2) {
|
|
|
98139
98469
|
rotation: options2?.rotation,
|
|
98140
98470
|
opacity: options2?.opacity,
|
|
98141
98471
|
text: plainText,
|
|
98142
|
-
textStyle: mapTextStyleInput(textStyleBase),
|
|
98143
|
-
textSegments
|
|
98472
|
+
textStyle: elementStyleForSegments(mapTextStyleInput(textStyleBase), textSegments),
|
|
98473
|
+
textSegments,
|
|
98144
98474
|
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill))
|
|
98145
98475
|
};
|
|
98146
98476
|
}
|
|
@@ -98220,32 +98550,30 @@ function createImageElement(source, options2) {
|
|
|
98220
98550
|
cropBottom: options2?.cropBottom
|
|
98221
98551
|
};
|
|
98222
98552
|
}
|
|
98553
|
+
function createTableCell(cellInput) {
|
|
98554
|
+
return {
|
|
98555
|
+
text: cellInput.text,
|
|
98556
|
+
gridSpan: cellInput.gridSpan,
|
|
98557
|
+
rowSpan: cellInput.rowSpan,
|
|
98558
|
+
style: tableCellStyle(cellInput)
|
|
98559
|
+
};
|
|
98560
|
+
}
|
|
98223
98561
|
function createTableElement(input, options2) {
|
|
98224
|
-
const
|
|
98562
|
+
const grid = input.fillMergedCells ? placeTableCells(input) : void 0;
|
|
98563
|
+
const numCols = grid?.columnCount ?? Math.max(...input.rows.map((r) => r.cells.length), 1);
|
|
98225
98564
|
const rowHeight = input.rows.length > 0 ? Math.max(30, Math.floor(200 / input.rows.length)) : 30;
|
|
98226
98565
|
const totalHeight = options2?.height ?? Math.max(100, input.rows.length * rowHeight);
|
|
98227
98566
|
const p = pos("table", { ...options2, height: totalHeight });
|
|
98228
|
-
|
|
98229
|
-
|
|
98230
|
-
const sum = input.columnWidths.reduce((a, b) => a + b, 0);
|
|
98231
|
-
colWidths = input.columnWidths.map((w) => w / sum);
|
|
98232
|
-
} else {
|
|
98233
|
-
colWidths = Array(numCols).fill(1 / numCols);
|
|
98234
|
-
}
|
|
98235
|
-
const rows = input.rows.map((rowInput) => ({
|
|
98567
|
+
const colWidths = columnFractions(input.columnWidths, numCols);
|
|
98568
|
+
const rows = input.rows.map((rowInput, ri) => ({
|
|
98236
98569
|
height: rowInput.height ?? rowHeight,
|
|
98237
|
-
cells:
|
|
98238
|
-
|
|
98239
|
-
|
|
98240
|
-
|
|
98241
|
-
|
|
98242
|
-
|
|
98243
|
-
|
|
98244
|
-
italic: cellInput.style.italic,
|
|
98245
|
-
color: cellInput.style.color,
|
|
98246
|
-
align: cellInput.style.alignment
|
|
98247
|
-
} : void 0
|
|
98248
|
-
}))
|
|
98570
|
+
cells: grid ? (grid.rows[ri] ?? []).map(
|
|
98571
|
+
(slot2) => slot2.cell ? createTableCell(slot2.cell) : {
|
|
98572
|
+
text: "",
|
|
98573
|
+
...slot2.hMerge ? { hMerge: true } : {},
|
|
98574
|
+
...slot2.vMerge ? { vMerge: true } : {}
|
|
98575
|
+
}
|
|
98576
|
+
) : rowInput.cells.map(createTableCell)
|
|
98249
98577
|
}));
|
|
98250
98578
|
const tableData = {
|
|
98251
98579
|
rows,
|
|
@@ -98260,7 +98588,9 @@ function createTableElement(input, options2) {
|
|
|
98260
98588
|
// Accent 1 unless the caller picked a style. This is decided at
|
|
98261
98589
|
// creation time so the save pipeline never has to invent a style for
|
|
98262
98590
|
// loaded tables that legitimately have none.
|
|
98263
|
-
|
|
98591
|
+
// `style: 'none'` (or '') opts out, so the cells' own formatting is not
|
|
98592
|
+
// painted over by the theme banding.
|
|
98593
|
+
tableStyleId: input.style === "none" ? void 0 : input.style ?? DEFAULT_POWERPOINT_TABLE_STYLE_ID
|
|
98264
98594
|
};
|
|
98265
98595
|
return {
|
|
98266
98596
|
type: "table",
|