@aixa-transformation/pptx-viewer 2.0.39 → 2.0.41
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/{Model3DScene-G5U6VI6E.mjs → Model3DScene-6OQ5SOFW.mjs} +2 -2
- package/dist/{Model3DScene-WQ63T5FE.js → Model3DScene-QF7OOVJU.js} +3 -3
- package/dist/{SurfaceChart3DScene-VABT6UY4.js → SurfaceChart3DScene-2GFVOSZG.js} +3 -3
- package/dist/{SurfaceChart3DScene-JGQTO6MM.mjs → SurfaceChart3DScene-GIKVK7KJ.mjs} +2 -2
- package/dist/{chunk-RVKY3KGH.js → chunk-BFT3M42U.js} +4 -2
- package/dist/{chunk-ZCHFKRZR.mjs → chunk-RME7V4JR.mjs} +4 -4
- package/dist/{chunk-R47PKWUJ.js → chunk-SCGPDJ7D.js} +41 -41
- package/dist/{chunk-SWUS6LYM.mjs → chunk-TYKXFV4C.mjs} +4 -2
- package/dist/{chunk-FN4ELAQI.js → chunk-UFGMGUXO.js} +945 -875
- package/dist/{chunk-GZ5YIFKY.js → chunk-WVLA4RYC.js} +481 -481
- package/dist/{chunk-D5TQHW24.mjs → chunk-XXNJWYKN.mjs} +1 -1
- package/dist/{chunk-3KNZSM4J.mjs → chunk-ZWNCB5C6.mjs} +118 -48
- package/dist/{dist-P2YOBLFR.mjs → dist-FQXOQHDH.mjs} +1 -1
- package/dist/{dist-PSZVXCOM.js → dist-QTYYVQJG.js} +568 -568
- package/dist/index.js +34 -34
- package/dist/index.mjs +4 -4
- package/dist/internals.js +78 -78
- package/dist/internals.mjs +3 -3
- package/dist/presentation.js +2 -2
- package/dist/presentation.mjs +1 -1
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mountModel3D } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { mountModel3D } from './chunk-XXNJWYKN.mjs';
|
|
2
|
+
import './chunk-TYKXFV4C.mjs';
|
|
3
3
|
import './chunk-6DZX6EAA.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkSCGPDJ7D_js = require('./chunk-SCGPDJ7D.js');
|
|
4
|
+
require('./chunk-BFT3M42U.js');
|
|
5
5
|
require('./chunk-QGM4M3NI.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -15,7 +15,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
|
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
let disposed = false;
|
|
18
|
-
void
|
|
18
|
+
void chunkSCGPDJ7D_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
19
19
|
if (disposed) {
|
|
20
20
|
handle.dispose();
|
|
21
21
|
} else {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkSCGPDJ7D_js = require('./chunk-SCGPDJ7D.js');
|
|
4
|
+
require('./chunk-BFT3M42U.js');
|
|
5
5
|
require('./chunk-QGM4M3NI.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -26,7 +26,7 @@ function SurfaceChart3DScene({
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
let disposed = false;
|
|
29
|
-
void
|
|
29
|
+
void chunkSCGPDJ7D_js.mountSurfaceChart3D(container, {
|
|
30
30
|
cols,
|
|
31
31
|
rows,
|
|
32
32
|
heightMap,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mountSurfaceChart3D } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { mountSurfaceChart3D } from './chunk-XXNJWYKN.mjs';
|
|
2
|
+
import './chunk-TYKXFV4C.mjs';
|
|
3
3
|
import './chunk-6DZX6EAA.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -22648,8 +22648,10 @@ var homePlate = {
|
|
|
22648
22648
|
var chevron = {
|
|
22649
22649
|
name: "chevron",
|
|
22650
22650
|
avLst: { adj: 5e4 },
|
|
22651
|
-
gdLst: [gd3("a", "pin 0 adj 100000"), gd3("x1", "*/
|
|
22652
|
-
|
|
22651
|
+
gdLst: [gd3("a", "pin 0 adj 100000"), gd3("x1", "*/ ss a 100000"), gd3("x2", "+- r 0 x1")],
|
|
22652
|
+
// Keep text between the tail notch and the arrowhead. PowerPoint clips the
|
|
22653
|
+
// outer silhouette but lays out chevron text inside this safe rectangle.
|
|
22654
|
+
rect: { l: "x1", t: "t", r: "x2", b: "b" },
|
|
22653
22655
|
pathLst: [
|
|
22654
22656
|
{
|
|
22655
22657
|
commands: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, getAnimationInitialStyle, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, BROADCAST_THROTTLE_MS, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, PresentationAnimationController, computeEntranceAnimationDelay, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, parseMediaCommand, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, hexToRgbChannels, chartPartToAttrs } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, getAnimationInitialStyle, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, BROADCAST_THROTTLE_MS, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, PresentationAnimationController, computeEntranceAnimationDelay, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, parseMediaCommand, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, hexToRgbChannels, chartPartToAttrs } from './chunk-XXNJWYKN.mjs';
|
|
2
2
|
import { translationsEn } from './chunk-2X72MOPZ.mjs';
|
|
3
|
-
import { PptxHandler, EncryptedFileError, hasTextProperties, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, buildThemeColorMap, reResolveSlideColors, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-
|
|
3
|
+
import { PptxHandler, EncryptedFileError, hasTextProperties, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, buildThemeColorMap, reResolveSlideColors, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-TYKXFV4C.mjs';
|
|
4
4
|
import React4, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useSyncExternalStore, useImperativeHandle, useLayoutEffect } from 'react';
|
|
5
5
|
import { LuTriangle, LuPlus, LuMoveRight, LuMinus, LuDiamond, LuDatabase, LuCircle, LuSquare } from 'react-icons/lu';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
@@ -9652,7 +9652,7 @@ function FailedToLoad() {
|
|
|
9652
9652
|
var LazySurfaceChart3DScene = React4.lazy(
|
|
9653
9653
|
async () => {
|
|
9654
9654
|
try {
|
|
9655
|
-
return await import('./SurfaceChart3DScene-
|
|
9655
|
+
return await import('./SurfaceChart3DScene-GIKVK7KJ.mjs');
|
|
9656
9656
|
} catch {
|
|
9657
9657
|
return { default: FailedToLoad };
|
|
9658
9658
|
}
|
|
@@ -18002,7 +18002,7 @@ function useYjsDocumentSync({
|
|
|
18002
18002
|
return;
|
|
18003
18003
|
}
|
|
18004
18004
|
try {
|
|
18005
|
-
const { PptxHandler: PptxHandler2 } = await import('./dist-
|
|
18005
|
+
const { PptxHandler: PptxHandler2 } = await import('./dist-FQXOQHDH.mjs');
|
|
18006
18006
|
const handler = new PptxHandler2();
|
|
18007
18007
|
await handler.load(sourceBytes.buffer);
|
|
18008
18008
|
const currentSlides = readSlidesFromYDoc(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBFT3M42U_js = require('./chunk-BFT3M42U.js');
|
|
4
4
|
var DOMPurify = require('dompurify');
|
|
5
5
|
|
|
6
6
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -238,7 +238,7 @@ function resolveThemeCatalogEntry(key, catalog = THEME_CATALOG) {
|
|
|
238
238
|
return catalog.find((entry) => entry.key === key)?.theme;
|
|
239
239
|
}
|
|
240
240
|
function corePreset(id) {
|
|
241
|
-
const preset =
|
|
241
|
+
const preset = chunkBFT3M42U_js.THEME_PRESETS.find((p) => p.id === id);
|
|
242
242
|
if (!preset) {
|
|
243
243
|
throw new Error(`theme-gallery-presets: core THEME_PRESETS is missing "${id}"`);
|
|
244
244
|
}
|
|
@@ -414,7 +414,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
|
|
|
414
414
|
guides.push({
|
|
415
415
|
id: g.id,
|
|
416
416
|
axis: g.orientation === "horz" ? "h" : "v",
|
|
417
|
-
position:
|
|
417
|
+
position: chunkBFT3M42U_js.guideEmuToPx(g.positionEmu)
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
@@ -423,7 +423,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
|
|
|
423
423
|
guides.push({
|
|
424
424
|
id: g.id,
|
|
425
425
|
axis: g.orientation === "horz" ? "h" : "v",
|
|
426
|
-
position:
|
|
426
|
+
position: chunkBFT3M42U_js.guideEmuToPx(g.positionEmu)
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
@@ -436,23 +436,23 @@ function getResolvedShapeClipPathFor(shapeType, width, height, adjustments) {
|
|
|
436
436
|
return void 0;
|
|
437
437
|
}
|
|
438
438
|
if (!Number.isFinite(width) || !Number.isFinite(height) || width <= 0 || height <= 0) {
|
|
439
|
-
return
|
|
439
|
+
return chunkBFT3M42U_js.getShapeClipPath(shapeType);
|
|
440
440
|
}
|
|
441
441
|
if (adjustments && Object.keys(adjustments).length > 0) {
|
|
442
|
-
const adjusted =
|
|
442
|
+
const adjusted = chunkBFT3M42U_js.getAdjustmentAwareShapeClipPath(shapeType, width, height, adjustments);
|
|
443
443
|
if (adjusted !== void 0) {
|
|
444
444
|
return adjusted;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const fromPreset =
|
|
447
|
+
const fromPreset = chunkBFT3M42U_js.getShapeClipPathFromPreset(shapeType, width, height, adjustments);
|
|
448
448
|
if (fromPreset !== void 0) {
|
|
449
449
|
return fromPreset;
|
|
450
450
|
}
|
|
451
|
-
const cloud =
|
|
451
|
+
const cloud = chunkBFT3M42U_js.getCloudPathForRendering(shapeType, width, height);
|
|
452
452
|
if (cloud !== void 0) {
|
|
453
453
|
return cloud;
|
|
454
454
|
}
|
|
455
|
-
return
|
|
455
|
+
return chunkBFT3M42U_js.getShapeClipPath(shapeType);
|
|
456
456
|
}
|
|
457
457
|
function buildCustomGeometryClipPath(pathData, pathWidth, pathHeight, elemWidth, elemHeight) {
|
|
458
458
|
if (!pathData || !Number.isFinite(pathWidth) || !Number.isFinite(pathHeight) || pathWidth <= 0 || pathHeight <= 0 || !Number.isFinite(elemWidth) || !Number.isFinite(elemHeight) || elemWidth <= 0 || elemHeight <= 0) {
|
|
@@ -1101,7 +1101,7 @@ var OOXML_PATTERN_PRESETS = [
|
|
|
1101
1101
|
"zigZag"
|
|
1102
1102
|
];
|
|
1103
1103
|
function getComputedFillStyle(element, parentGroupFill) {
|
|
1104
|
-
if (!
|
|
1104
|
+
if (!chunkBFT3M42U_js.hasShapeProperties(element)) {
|
|
1105
1105
|
return void 0;
|
|
1106
1106
|
}
|
|
1107
1107
|
const ss = element.shapeStyle;
|
|
@@ -1170,7 +1170,7 @@ function getGroupChildParentFill(group) {
|
|
|
1170
1170
|
return group.type === "group" ? group.groupFill : void 0;
|
|
1171
1171
|
}
|
|
1172
1172
|
function resolveGroupChildFill(child2, parentGroupFill) {
|
|
1173
|
-
if (!parentGroupFill || !
|
|
1173
|
+
if (!parentGroupFill || !chunkBFT3M42U_js.hasShapeProperties(child2) || child2.shapeStyle?.fillMode !== "group") {
|
|
1174
1174
|
return void 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
return getComputedFillStyle(child2, parentGroupFill);
|
|
@@ -1373,7 +1373,7 @@ var DEFAULT_SCHEME_COLOR_MAP = {
|
|
|
1373
1373
|
phclr: "#4472C4"
|
|
1374
1374
|
};
|
|
1375
1375
|
function applyDrawingColorTransforms2(baseColor, colorNode) {
|
|
1376
|
-
return
|
|
1376
|
+
return chunkBFT3M42U_js.applyDrawingColorTransforms(baseColor, colorNode);
|
|
1377
1377
|
}
|
|
1378
1378
|
function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
|
|
1379
1379
|
if (!colorNode) {
|
|
@@ -1425,7 +1425,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
|
|
|
1425
1425
|
const h = hueRaw / 6e4;
|
|
1426
1426
|
const s = clampUnitInterval(satRaw / 1e5);
|
|
1427
1427
|
const l = clampUnitInterval(lumRaw / 1e5);
|
|
1428
|
-
const rgb =
|
|
1428
|
+
const rgb = chunkBFT3M42U_js.hslToRgb(h, s, l);
|
|
1429
1429
|
const toHex2 = (value) => Math.min(255, Math.max(0, Math.round(value))).toString(16).padStart(2, "0").toUpperCase();
|
|
1430
1430
|
const base = `#${toHex2(rgb.r)}${toHex2(rgb.g)}${toHex2(rgb.b)}`;
|
|
1431
1431
|
return applyDrawingColorTransforms2(base, hslNode);
|
|
@@ -1435,7 +1435,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
|
|
|
1435
1435
|
const preset = String(
|
|
1436
1436
|
colorNode["a:prstClr"]?.["@_val"] || ""
|
|
1437
1437
|
).toLowerCase();
|
|
1438
|
-
const mapped =
|
|
1438
|
+
const mapped = chunkBFT3M42U_js.PRESET_COLOR_MAP[preset];
|
|
1439
1439
|
if (!mapped) {
|
|
1440
1440
|
return void 0;
|
|
1441
1441
|
}
|
|
@@ -1978,7 +1978,7 @@ function hexToRgbUnit2(hex) {
|
|
|
1978
1978
|
};
|
|
1979
1979
|
}
|
|
1980
1980
|
function getEffects(element) {
|
|
1981
|
-
if (!
|
|
1981
|
+
if (!chunkBFT3M42U_js.isImageLikeElement(element)) {
|
|
1982
1982
|
return void 0;
|
|
1983
1983
|
}
|
|
1984
1984
|
return element.imageEffects;
|
|
@@ -2167,7 +2167,7 @@ function buildDuotoneFilterMarkup(color1, color2) {
|
|
|
2167
2167
|
const c2 = hexToRgbUnit2(color2);
|
|
2168
2168
|
return `<feColorMatrix type="matrix" values="${GRAYSCALE_LUMINANCE_MATRIX}"/><feComponentTransfer><feFuncR type="linear" slope="${c2.r - c1.r}" intercept="${c1.r}"/><feFuncG type="linear" slope="${c2.g - c1.g}" intercept="${c1.g}"/><feFuncB type="linear" slope="${c2.b - c1.b}" intercept="${c1.b}"/></feComponentTransfer>`;
|
|
2169
2169
|
}
|
|
2170
|
-
function getDuotoneImageFilter(element, elementId =
|
|
2170
|
+
function getDuotoneImageFilter(element, elementId = chunkBFT3M42U_js.isImageLikeElement(element) ? element.id : "") {
|
|
2171
2171
|
const effects = getEffects(element);
|
|
2172
2172
|
if (!effects?.duotone) {
|
|
2173
2173
|
return void 0;
|
|
@@ -2269,7 +2269,7 @@ function buildImageAlphaFilterMarkup(effects) {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
return parts.length > 0 ? parts.join("") : void 0;
|
|
2271
2271
|
}
|
|
2272
|
-
function getImageAlphaFilter(element, elementId =
|
|
2272
|
+
function getImageAlphaFilter(element, elementId = chunkBFT3M42U_js.isImageLikeElement(element) ? element.id : "") {
|
|
2273
2273
|
const effects = getEffects(element);
|
|
2274
2274
|
if (!effects || !hasAdvancedImageAlphaEffects(element)) {
|
|
2275
2275
|
return void 0;
|
|
@@ -2359,7 +2359,7 @@ function buildArtisticFilterMarkup(effectName, radius) {
|
|
|
2359
2359
|
return void 0;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
function getArtisticImageFilter(element, elementId =
|
|
2362
|
+
function getArtisticImageFilter(element, elementId = chunkBFT3M42U_js.isImageLikeElement(element) ? element.id : "") {
|
|
2363
2363
|
const effects = getEffects(element);
|
|
2364
2364
|
if (!effects?.artisticEffect || !needsSvgArtisticFilter(effects.artisticEffect)) {
|
|
2365
2365
|
return void 0;
|
|
@@ -3318,7 +3318,7 @@ function convertChildren(node) {
|
|
|
3318
3318
|
if (key.startsWith("@_")) {
|
|
3319
3319
|
continue;
|
|
3320
3320
|
}
|
|
3321
|
-
const tag =
|
|
3321
|
+
const tag = chunkBFT3M42U_js.stripXmlOrderSuffix(key);
|
|
3322
3322
|
if (tag === "m:oMathPara") {
|
|
3323
3323
|
continue;
|
|
3324
3324
|
}
|
|
@@ -3390,7 +3390,7 @@ function findOmathRoots(node) {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
}
|
|
3392
3392
|
const contentTags = /* @__PURE__ */ new Set(["m:r", "m:f", "m:rad", "m:sSup", "m:sSub", "m:box"]);
|
|
3393
|
-
if (Object.keys(node).some((key) => contentTags.has(
|
|
3393
|
+
if (Object.keys(node).some((key) => contentTags.has(chunkBFT3M42U_js.stripXmlOrderSuffix(key)))) {
|
|
3394
3394
|
return [node];
|
|
3395
3395
|
}
|
|
3396
3396
|
return [];
|
|
@@ -3600,7 +3600,7 @@ function mergeSiblings(nodes) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
const ordered2 = {};
|
|
3602
3602
|
for (const [position, [key, value]] of entries.entries()) {
|
|
3603
|
-
ordered2[(counts.get(key) ?? 0) > 1 ?
|
|
3603
|
+
ordered2[(counts.get(key) ?? 0) > 1 ? chunkBFT3M42U_js.orderedXmlKey(key, position) : key] = value;
|
|
3604
3604
|
}
|
|
3605
3605
|
return ordered2;
|
|
3606
3606
|
}
|
|
@@ -4004,7 +4004,7 @@ function ommlChildrenToLatex(node) {
|
|
|
4004
4004
|
if (key.startsWith("@_")) {
|
|
4005
4005
|
continue;
|
|
4006
4006
|
}
|
|
4007
|
-
const tag =
|
|
4007
|
+
const tag = chunkBFT3M42U_js.stripXmlOrderSuffix(key);
|
|
4008
4008
|
const items = ensureArr(node[key]);
|
|
4009
4009
|
for (const item of items) {
|
|
4010
4010
|
const result = ommlElementToLatex(tag, item);
|
|
@@ -12185,7 +12185,7 @@ function buildSegmentCounts(slide, nativeAnims) {
|
|
|
12185
12185
|
for (const anim of nativeAnims) {
|
|
12186
12186
|
if (anim.buildType && anim.buildType !== "allAtOnce" && anim.targetId) {
|
|
12187
12187
|
const el = slide.elements.find((e) => e.id === anim.targetId);
|
|
12188
|
-
if (el &&
|
|
12188
|
+
if (el && chunkBFT3M42U_js.hasTextProperties(el) && el.textSegments && el.textSegments.length > 0) {
|
|
12189
12189
|
segmentCounts.set(anim.targetId, countTextSegments(el.textSegments));
|
|
12190
12190
|
}
|
|
12191
12191
|
}
|
|
@@ -14403,7 +14403,7 @@ function rotateDelta(dx, dy, rotationDeg) {
|
|
|
14403
14403
|
}
|
|
14404
14404
|
function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
|
|
14405
14405
|
const scale = zoom || 1;
|
|
14406
|
-
const minSize = opts.minSize ??
|
|
14406
|
+
const minSize = opts.minSize ?? chunkBFT3M42U_js.MIN_ELEMENT_SIZE;
|
|
14407
14407
|
const rotation = rotationOf(box);
|
|
14408
14408
|
const local = rotateDelta(dxScreen / scale, dyScreen / scale, rotation);
|
|
14409
14409
|
const dx = local.x;
|
|
@@ -14430,7 +14430,7 @@ function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
|
|
|
14430
14430
|
}
|
|
14431
14431
|
return { x: newX, y: newY, width: newW, height: newH, rotation };
|
|
14432
14432
|
}
|
|
14433
|
-
function snapBoxToGrid(box, handle, gridSpacingPx, minSize =
|
|
14433
|
+
function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkBFT3M42U_js.MIN_ELEMENT_SIZE) {
|
|
14434
14434
|
if (handle === null || gridSpacingPx <= 0) {
|
|
14435
14435
|
return box;
|
|
14436
14436
|
}
|
|
@@ -14460,7 +14460,7 @@ function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkRVKY3KGH_js.MI
|
|
|
14460
14460
|
}
|
|
14461
14461
|
return { x, y, width, height };
|
|
14462
14462
|
}
|
|
14463
|
-
function computeMarqueeHitIds(marquee, elements, minSize =
|
|
14463
|
+
function computeMarqueeHitIds(marquee, elements, minSize = chunkBFT3M42U_js.MIN_ELEMENT_SIZE) {
|
|
14464
14464
|
const minX = Math.min(marquee.startX, marquee.currentX);
|
|
14465
14465
|
const minY = Math.min(marquee.startY, marquee.currentY);
|
|
14466
14466
|
const maxX = Math.max(marquee.startX, marquee.currentX);
|
|
@@ -16016,7 +16016,7 @@ var THEME_COLOR_LABELS = {
|
|
|
16016
16016
|
};
|
|
16017
16017
|
function buildThemeColorGrid(colorScheme) {
|
|
16018
16018
|
return THEME_COLOR_TINT_ROWS.map(
|
|
16019
|
-
(row) =>
|
|
16019
|
+
(row) => chunkBFT3M42U_js.THEME_COLOR_SCHEME_KEYS.map((key) => ({
|
|
16020
16020
|
hex: row.transform(colorScheme[key]),
|
|
16021
16021
|
schemeKey: key,
|
|
16022
16022
|
rowLabel: row.label,
|
|
@@ -16352,12 +16352,12 @@ function getShapeConnectionSites(shape) {
|
|
|
16352
16352
|
}
|
|
16353
16353
|
const pathW = geo.pathWidth && geo.pathWidth > 0 ? geo.pathWidth : shape.width;
|
|
16354
16354
|
const pathH = geo.pathHeight && geo.pathHeight > 0 ? geo.pathHeight : shape.height;
|
|
16355
|
-
const vars =
|
|
16355
|
+
const vars = chunkBFT3M42U_js.createBuiltinVariables({ w: pathW, h: pathH });
|
|
16356
16356
|
const scaleX = pathW > 0 ? shape.width / pathW : 1;
|
|
16357
16357
|
const scaleY = pathH > 0 ? shape.height / pathH : 1;
|
|
16358
16358
|
return cxn.map((site, index) => ({
|
|
16359
|
-
x:
|
|
16360
|
-
y:
|
|
16359
|
+
x: chunkBFT3M42U_js.resolveCoordinate(site.posX, vars) * scaleX,
|
|
16360
|
+
y: chunkBFT3M42U_js.resolveCoordinate(site.posY, vars) * scaleY,
|
|
16361
16361
|
index
|
|
16362
16362
|
}));
|
|
16363
16363
|
}
|
|
@@ -16520,7 +16520,7 @@ function svgLineCap(lineCap) {
|
|
|
16520
16520
|
}
|
|
16521
16521
|
function copyFormatFromElement(element) {
|
|
16522
16522
|
const result = {};
|
|
16523
|
-
if (
|
|
16523
|
+
if (chunkBFT3M42U_js.hasShapeProperties(element) && element.shapeStyle) {
|
|
16524
16524
|
const s = element.shapeStyle;
|
|
16525
16525
|
result.shapeStyle = {
|
|
16526
16526
|
fillColor: s.fillColor,
|
|
@@ -16549,7 +16549,7 @@ function copyFormatFromElement(element) {
|
|
|
16549
16549
|
softEdgeRadius: s.softEdgeRadius
|
|
16550
16550
|
};
|
|
16551
16551
|
}
|
|
16552
|
-
if (
|
|
16552
|
+
if (chunkBFT3M42U_js.hasTextProperties(element) && element.textStyle) {
|
|
16553
16553
|
const t = element.textStyle;
|
|
16554
16554
|
result.textStyle = {
|
|
16555
16555
|
fontFamily: t.fontFamily,
|
|
@@ -16580,7 +16580,7 @@ function definedEntries(obj) {
|
|
|
16580
16580
|
}
|
|
16581
16581
|
function applyFormatToElement(element, format) {
|
|
16582
16582
|
let updated = { ...element };
|
|
16583
|
-
if (format.shapeStyle &&
|
|
16583
|
+
if (format.shapeStyle && chunkBFT3M42U_js.hasShapeProperties(updated)) {
|
|
16584
16584
|
updated = {
|
|
16585
16585
|
...updated,
|
|
16586
16586
|
shapeStyle: {
|
|
@@ -16589,7 +16589,7 @@ function applyFormatToElement(element, format) {
|
|
|
16589
16589
|
}
|
|
16590
16590
|
};
|
|
16591
16591
|
}
|
|
16592
|
-
if (format.textStyle &&
|
|
16592
|
+
if (format.textStyle && chunkBFT3M42U_js.hasTextProperties(updated)) {
|
|
16593
16593
|
updated = {
|
|
16594
16594
|
...updated,
|
|
16595
16595
|
textStyle: {
|
|
@@ -16604,7 +16604,7 @@ function hasCopyableFormat(element) {
|
|
|
16604
16604
|
if (!element) {
|
|
16605
16605
|
return false;
|
|
16606
16606
|
}
|
|
16607
|
-
return
|
|
16607
|
+
return chunkBFT3M42U_js.hasShapeProperties(element) || chunkBFT3M42U_js.hasTextProperties(element);
|
|
16608
16608
|
}
|
|
16609
16609
|
function copySegmentMetadata(from, to) {
|
|
16610
16610
|
if (from.equationXml !== void 0) {
|
|
@@ -16741,7 +16741,7 @@ function getRoundRectRadiusPx(element) {
|
|
|
16741
16741
|
return Math.min(Math.max(element.width, 1), Math.max(element.height, 1)) * 0.5 * normalizedAdjustment;
|
|
16742
16742
|
}
|
|
16743
16743
|
function getShapeAdjustmentHandleDescriptor(element) {
|
|
16744
|
-
if (!
|
|
16744
|
+
if (!chunkBFT3M42U_js.hasShapeProperties(element)) {
|
|
16745
16745
|
return null;
|
|
16746
16746
|
}
|
|
16747
16747
|
const normalizedShapeType = String(element.shapeType || "").toLowerCase();
|
|
@@ -17750,7 +17750,7 @@ function createSyncGate(onOpen, graceMs = INITIAL_SYNC_GRACE_MS) {
|
|
|
17750
17750
|
var POSITION_THRESHOLD = 2;
|
|
17751
17751
|
var SIZE_THRESHOLD = 2;
|
|
17752
17752
|
function getElementText(element) {
|
|
17753
|
-
if (!
|
|
17753
|
+
if (!chunkBFT3M42U_js.hasTextProperties(element)) {
|
|
17754
17754
|
return "";
|
|
17755
17755
|
}
|
|
17756
17756
|
if (element.textSegments && element.textSegments.length > 0) {
|
|
@@ -23102,7 +23102,7 @@ function getAriaRole(element) {
|
|
|
23102
23102
|
case "model3d":
|
|
23103
23103
|
return "img";
|
|
23104
23104
|
case "shape": {
|
|
23105
|
-
if (
|
|
23105
|
+
if (chunkBFT3M42U_js.hasTextProperties(element) && element.text) {
|
|
23106
23106
|
return "group";
|
|
23107
23107
|
}
|
|
23108
23108
|
return "img";
|
|
@@ -23115,7 +23115,7 @@ function getAriaLabel(element) {
|
|
|
23115
23115
|
if ((element.type === "image" || element.type === "picture") && "altText" in element && typeof element.altText === "string" && element.altText.trim()) {
|
|
23116
23116
|
return element.altText.trim();
|
|
23117
23117
|
}
|
|
23118
|
-
if (
|
|
23118
|
+
if (chunkBFT3M42U_js.hasTextProperties(element) && element.text) {
|
|
23119
23119
|
const text = element.text.trim();
|
|
23120
23120
|
if (text) {
|
|
23121
23121
|
return text.length > 120 ? `${text.slice(0, 117)}...` : text;
|
|
@@ -23522,7 +23522,7 @@ var DEFAULT_CHART_POSITION = { x: 120, y: 120, width: 480, height: 320 };
|
|
|
23522
23522
|
var DEFAULT_CATEGORIES = ["Category 1", "Category 2", "Category 3"];
|
|
23523
23523
|
var DEFAULT_SERIES_VALUES = [4, 3, 5];
|
|
23524
23524
|
function createDefaultChartElement(chartType = DEFAULT_INSERT_CHART_TYPE, position) {
|
|
23525
|
-
return
|
|
23525
|
+
return chunkBFT3M42U_js.createChartElement(
|
|
23526
23526
|
chartType,
|
|
23527
23527
|
{
|
|
23528
23528
|
categories: [...DEFAULT_CATEGORIES],
|
|
@@ -24557,7 +24557,7 @@ function computeVirtualRange(totalItems, itemHeight, scrollTop, viewportHeight,
|
|
|
24557
24557
|
};
|
|
24558
24558
|
}
|
|
24559
24559
|
function collectFontsFromElement(element, fonts) {
|
|
24560
|
-
if (
|
|
24560
|
+
if (chunkBFT3M42U_js.hasTextProperties(element)) {
|
|
24561
24561
|
if (element.textStyle?.fontFamily) {
|
|
24562
24562
|
fonts.add(element.textStyle.fontFamily);
|
|
24563
24563
|
}
|
|
@@ -22642,8 +22642,10 @@ var homePlate = {
|
|
|
22642
22642
|
var chevron = {
|
|
22643
22643
|
name: "chevron",
|
|
22644
22644
|
avLst: { adj: 5e4 },
|
|
22645
|
-
gdLst: [gd3("a", "pin 0 adj 100000"), gd3("x1", "*/
|
|
22646
|
-
|
|
22645
|
+
gdLst: [gd3("a", "pin 0 adj 100000"), gd3("x1", "*/ ss a 100000"), gd3("x2", "+- r 0 x1")],
|
|
22646
|
+
// Keep text between the tail notch and the arrowhead. PowerPoint clips the
|
|
22647
|
+
// outer silhouette but lays out chevron text inside this safe rectangle.
|
|
22648
|
+
rect: { l: "x1", t: "t", r: "x2", b: "b" },
|
|
22647
22649
|
pathLst: [
|
|
22648
22650
|
{
|
|
22649
22651
|
commands: [
|