@aixa-transformation/pptx-viewer 2.0.30 → 2.0.33
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-OOLYRN3I.mjs → Model3DScene-ID7GWMBL.mjs} +2 -2
- package/dist/{Model3DScene-7PC3BTGV.js → Model3DScene-VY5BMIHC.js} +3 -3
- package/dist/{SurfaceChart3DScene-ZZYDRV5N.mjs → SurfaceChart3DScene-PXXYX7KR.mjs} +2 -2
- package/dist/{SurfaceChart3DScene-NKUQTDRP.js → SurfaceChart3DScene-Y3VNQD4J.js} +3 -3
- package/dist/{chunk-CKNLAQCV.mjs → chunk-2T6XNJAO.mjs} +64 -9
- package/dist/{chunk-TYXOHBKR.mjs → chunk-F3IAKCR3.mjs} +15 -9
- package/dist/{chunk-I5S57RYE.js → chunk-GGWYNMDL.js} +891 -836
- package/dist/{chunk-YVQPLQ3C.mjs → chunk-HBJEBWBB.mjs} +2 -2
- package/dist/{chunk-OGINKMSL.js → chunk-PCEK6YYB.js} +490 -484
- package/dist/{chunk-JJ5MVLCK.mjs → chunk-QKRGKIBL.mjs} +163 -29
- package/dist/{chunk-XCLYIGHM.js → chunk-SOIGDRND.js} +42 -42
- package/dist/{chunk-N7OHVHBS.js → chunk-WGHMMJOJ.js} +163 -29
- package/dist/{dist-72WLGYVZ.js → dist-PWO55B3G.js} +568 -568
- package/dist/{dist-RTG3TU65.mjs → dist-VBLYGLKY.mjs} +1 -1
- 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-HBJEBWBB.mjs';
|
|
2
|
+
import './chunk-QKRGKIBL.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 chunkSOIGDRND_js = require('./chunk-SOIGDRND.js');
|
|
4
|
+
require('./chunk-WGHMMJOJ.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 chunkSOIGDRND_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
19
19
|
if (disposed) {
|
|
20
20
|
handle.dispose();
|
|
21
21
|
} else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mountSurfaceChart3D } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { mountSurfaceChart3D } from './chunk-HBJEBWBB.mjs';
|
|
2
|
+
import './chunk-QKRGKIBL.mjs';
|
|
3
3
|
import './chunk-6DZX6EAA.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkSOIGDRND_js = require('./chunk-SOIGDRND.js');
|
|
4
|
+
require('./chunk-WGHMMJOJ.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 chunkSOIGDRND_js.mountSurfaceChart3D(container, {
|
|
30
30
|
cols,
|
|
31
31
|
rows,
|
|
32
32
|
heightMap,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useLayoutSwitching, useYjsDocumentSync, useFollowMode, useBroadcastFollower, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, MIN_ELEMENT_SIZE, resolvePalette, resolveStyle, layoutToCategory, wrapChrome, isImageTiled, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_TRANSITION_OPTIONS, SLIDE_NAV_THUMBNAIL_WIDTH, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, styleShadow, styleStroke, colour, fitFontSize, smartArtNodeGroupProps, chevronPoints, SmartArtNodeText, contrastingTextColor, renderStepDownProcess, renderAlternatingFlow, renderDescendingProcess, renderPictureAccentList, renderVerticalBlockList, renderGroupedList, renderPyramidList, renderHorizontalPictureList, renderAccentProcess, renderVerticalChevronList, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, buildTree, treeWidth, treeDepth, nodeOpacity, truncate, gearPath, resolveSmartArtDataPalette, HYPERLINK_COLOR, GRID_SIZE, startPreviewAnimation, stopPreviewAnimation } from './chunk-
|
|
2
|
-
import { normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, getElementTransform, isEditableTextElement, getAriaRole, getAriaLabel, getAriaRoleDescription, getImageEffectsOpacity, getImageEffectsFilter, getElementTransformWithoutRotation, ACTION_BUTTON_PRESETS, getElementLabel, RULER_THICKNESS, RULER_FONT_SIZE, EQUATION_TEMPLATES, convertLatexToOmml, convertOmmlToMathMl, sanitizeMathMl, DEFAULT_VIEWER_OPTIONS, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, createBackstagePresentation, buildCssGradientFromShapeStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getGroupChildParentFill, revealedSmartArtNodeCount, buildSmartArtA11y, buildSummaryZoomView, getImageColorWashStyle, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, resolveGroupChildFill, shouldUseSvgWarp, buildPreviewElements, themeToCssVars, DEFAULT_INSERT_CHART_TYPE, hasCopyableFormat, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, resolveDrawingShapeNodeId, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, dragValueForPart, withChartPointValue, dragAnchorViewY, withChartTitle, computeSmartArtLayout, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, clampPercent, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, activateModalFocus, buildCollaborationShareUrl, presentationInkPath, mobileElapsedSince, isFirstSlide, isLastSlide, formatMobileElapsed, mobileSlideCounter, formatElapsed, computeInlineEditorRect, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, groupIntoParagraphs, substituteFieldText, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, SLIDE_VIRTUALIZATION_THRESHOLD, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, formatSlideCounter, isUrlSafe, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, QUICK_ACCESS_COMMAND_CATALOG, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, getConnectionSites, generateTicks, getCommentMarkerPosition, buildThemeColorGrid, THEME_COLOR_LABELS, buildSmartArtPresetData, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, TABLE_STYLE_PRESETS, withFrameSlides, withSlidesPerPage, formatCommentTimestamp, DIRECTIONAL_PRESETS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, DUOTONE_PRESETS, ARTISTIC_EFFECTS, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS } from './chunk-
|
|
1
|
+
import { DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useLayoutSwitching, useYjsDocumentSync, useFollowMode, useBroadcastFollower, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, MIN_ELEMENT_SIZE, resolvePalette, resolveStyle, layoutToCategory, wrapChrome, isImageTiled, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_TRANSITION_OPTIONS, SLIDE_NAV_THUMBNAIL_WIDTH, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, styleShadow, styleStroke, colour, fitFontSize, smartArtNodeGroupProps, chevronPoints, SmartArtNodeText, contrastingTextColor, renderStepDownProcess, renderAlternatingFlow, renderDescendingProcess, renderPictureAccentList, renderVerticalBlockList, renderGroupedList, renderPyramidList, renderHorizontalPictureList, renderAccentProcess, renderVerticalChevronList, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, buildTree, treeWidth, treeDepth, nodeOpacity, truncate, gearPath, resolveSmartArtDataPalette, HYPERLINK_COLOR, GRID_SIZE, startPreviewAnimation, stopPreviewAnimation } from './chunk-F3IAKCR3.mjs';
|
|
2
|
+
import { normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, getElementTransform, isEditableTextElement, getAriaRole, getAriaLabel, getAriaRoleDescription, getImageEffectsOpacity, getImageEffectsFilter, getElementTransformWithoutRotation, ACTION_BUTTON_PRESETS, getElementLabel, RULER_THICKNESS, RULER_FONT_SIZE, EQUATION_TEMPLATES, convertLatexToOmml, convertOmmlToMathMl, sanitizeMathMl, DEFAULT_VIEWER_OPTIONS, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, createBackstagePresentation, buildCssGradientFromShapeStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getGroupChildParentFill, revealedSmartArtNodeCount, buildSmartArtA11y, buildSummaryZoomView, getImageColorWashStyle, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, resolveGroupChildFill, shouldUseSvgWarp, buildPreviewElements, themeToCssVars, DEFAULT_INSERT_CHART_TYPE, hasCopyableFormat, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, resolveDrawingShapeNodeId, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, dragValueForPart, withChartPointValue, dragAnchorViewY, withChartTitle, computeSmartArtLayout, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, clampPercent, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, activateModalFocus, buildCollaborationShareUrl, presentationInkPath, mobileElapsedSince, isFirstSlide, isLastSlide, formatMobileElapsed, mobileSlideCounter, formatElapsed, computeInlineEditorRect, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, groupIntoParagraphs, substituteFieldText, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, SLIDE_VIRTUALIZATION_THRESHOLD, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, formatSlideCounter, isUrlSafe, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, QUICK_ACCESS_COMMAND_CATALOG, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, getConnectionSites, generateTicks, getCommentMarkerPosition, buildThemeColorGrid, THEME_COLOR_LABELS, buildSmartArtPresetData, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, TABLE_STYLE_PRESETS, withFrameSlides, withSlidesPerPage, formatCommentTimestamp, DIRECTIONAL_PRESETS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, DUOTONE_PRESETS, ARTISTIC_EFFECTS, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS } from './chunk-HBJEBWBB.mjs';
|
|
3
3
|
import { LOCALE_CATALOG, translationsEn } from './chunk-2X72MOPZ.mjs';
|
|
4
|
-
import { hasShapeProperties, hasTextProperties, isInkElement, SWITCHABLE_LAYOUT_TYPES, isImageLikeElement, getLinkedTextBoxSegments, getSubstituteFontFamily, themeColorSchemesEqual, setSmartArtNodeStyle, updateSmartArtNodeText, THEME_COLOR_SCHEME_KEYS, chartDataChangeType, chartDataUpdatePoint, chartDataAddCategory, chartDataRemoveCategory, chartDataAddSeries, chartDataRemoveSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, getOleObjectTypeLabel, pptxActionToElementAction, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, addSmartArtNodeAsChild, removeSmartArtNode, elementActionToPptxAction, switchSmartArtLayout, addSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode } from './chunk-
|
|
4
|
+
import { hasShapeProperties, hasTextProperties, isInkElement, SWITCHABLE_LAYOUT_TYPES, isImageLikeElement, getLinkedTextBoxSegments, getSubstituteFontFamily, themeColorSchemesEqual, setSmartArtNodeStyle, updateSmartArtNodeText, THEME_COLOR_SCHEME_KEYS, chartDataChangeType, chartDataUpdatePoint, chartDataAddCategory, chartDataRemoveCategory, chartDataAddSeries, chartDataRemoveSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, getOleObjectTypeLabel, pptxActionToElementAction, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, addSmartArtNodeAsChild, removeSmartArtNode, elementActionToPptxAction, switchSmartArtLayout, addSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode } from './chunk-QKRGKIBL.mjs';
|
|
5
5
|
import React18, { createContext, useMemo, useState, useCallback, forwardRef, useEffect, useRef, Suspense, useLayoutEffect, useContext, useDeferredValue } from 'react';
|
|
6
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1335,7 +1335,7 @@ function AccountPage() {
|
|
|
1335
1335
|
return void 0;
|
|
1336
1336
|
});
|
|
1337
1337
|
};
|
|
1338
|
-
const version = "2.0.
|
|
1338
|
+
const version = "2.0.33" ;
|
|
1339
1339
|
return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
|
|
1340
1340
|
/* @__PURE__ */ jsxs("section", { className: cardClass, children: [
|
|
1341
1341
|
/* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
@@ -3853,7 +3853,7 @@ function FailedToLoad() {
|
|
|
3853
3853
|
var LazyModel3DScene = React18.lazy(
|
|
3854
3854
|
async () => {
|
|
3855
3855
|
try {
|
|
3856
|
-
return await import('./Model3DScene-
|
|
3856
|
+
return await import('./Model3DScene-ID7GWMBL.mjs');
|
|
3857
3857
|
} catch {
|
|
3858
3858
|
return { default: FailedToLoad };
|
|
3859
3859
|
}
|
|
@@ -4425,6 +4425,13 @@ function drawingShapeGradientDef(id, shape) {
|
|
|
4425
4425
|
)
|
|
4426
4426
|
};
|
|
4427
4427
|
}
|
|
4428
|
+
function drawingLineDashArray(token, strokeWidth) {
|
|
4429
|
+
if (!token || token === "solid") return void 0;
|
|
4430
|
+
if (token === "dash" || token === "sysDash") return `${4 * strokeWidth} ${3 * strokeWidth}`;
|
|
4431
|
+
if (token === "dot" || token === "sysDot") return `${strokeWidth} ${2 * strokeWidth}`;
|
|
4432
|
+
if (token.includes("DashDot")) return `${4 * strokeWidth} ${2 * strokeWidth} ${strokeWidth} ${2 * strokeWidth}`;
|
|
4433
|
+
return `${4 * strokeWidth} ${3 * strokeWidth}`;
|
|
4434
|
+
}
|
|
4428
4435
|
function upArrowCalloutPoints(x, y, width, height, bannerRatio) {
|
|
4429
4436
|
const bannerBottom = y + height * bannerRatio;
|
|
4430
4437
|
const stemLeft = x + width * 0.47;
|
|
@@ -4486,6 +4493,7 @@ function DrawingShapeRenderer({
|
|
|
4486
4493
|
const relY = shape.y - minY;
|
|
4487
4494
|
const rx = shape.shapeType === "roundRect" ? Math.min(shape.width, shape.height) * 0.1 : 0;
|
|
4488
4495
|
const isEllipse = shape.shapeType === "ellipse";
|
|
4496
|
+
const isLine = shape.shapeType === "line";
|
|
4489
4497
|
const isChevron = shape.shapeType === "chevron" || shape.shapeType === "homePlate";
|
|
4490
4498
|
const isUpArrowCallout = shape.shapeType === "upArrowCallout";
|
|
4491
4499
|
const overlappingDetailTop = isUpArrowCallout ? shapes.filter(
|
|
@@ -4495,6 +4503,11 @@ function DrawingShapeRenderer({
|
|
|
4495
4503
|
const rotation = shape.rotation && !isUpArrowCallout ? `rotate(${shape.rotation} ${relX + shape.width / 2} ${relY + shape.height / 2})` : void 0;
|
|
4496
4504
|
const strokeCol = shape.strokeColor ?? (sw > 0 ? "rgba(255,255,255,0.3)" : "none");
|
|
4497
4505
|
const strokeW = shape.strokeWidth ?? sw;
|
|
4506
|
+
const lineColor = strokeCol === "none" ? shape.fillColor ?? colour(i, palette) : strokeCol;
|
|
4507
|
+
const lineWidth = Math.max(strokeW, 0.5);
|
|
4508
|
+
const markerSeed = `${elementId}-${shape.id}-${i}`.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
4509
|
+
const startMarkerId = `${markerSeed}-start`;
|
|
4510
|
+
const endMarkerId = `${markerSeed}-end`;
|
|
4498
4511
|
const underlayFill = shape.fillNone ? shapes.slice(0, i).reverse().find((candidate) => {
|
|
4499
4512
|
const centerX = shape.x + shape.width / 2;
|
|
4500
4513
|
const centerY = shape.y + shape.height / 2;
|
|
@@ -4507,8 +4520,26 @@ function DrawingShapeRenderer({
|
|
|
4507
4520
|
const groupProps = nodeId ? smartArtNodeGroupProps(nodeId, shadow, nodeLabel) : { style: { filter: shadow } };
|
|
4508
4521
|
return /* @__PURE__ */ jsxs("g", { ...groupProps, children: [
|
|
4509
4522
|
nodeLabel ? /* @__PURE__ */ jsx("title", { children: nodeLabel }) : null,
|
|
4510
|
-
gradient ? /* @__PURE__ */
|
|
4511
|
-
|
|
4523
|
+
gradient || isLine ? /* @__PURE__ */ jsxs("defs", { children: [
|
|
4524
|
+
gradient?.def,
|
|
4525
|
+
isLine ? renderConnectorMarker(startMarkerId, shape.startArrow, lineColor, shape.startArrowWidth, shape.startArrowLength) : null,
|
|
4526
|
+
isLine ? renderConnectorMarker(endMarkerId, shape.endArrow, lineColor, shape.endArrowWidth, shape.endArrowLength) : null
|
|
4527
|
+
] }) : null,
|
|
4528
|
+
isLine ? /* @__PURE__ */ jsx(
|
|
4529
|
+
"line",
|
|
4530
|
+
{
|
|
4531
|
+
x1: relX,
|
|
4532
|
+
y1: relY,
|
|
4533
|
+
x2: relX + shape.width,
|
|
4534
|
+
y2: relY + shape.height,
|
|
4535
|
+
stroke: lineColor,
|
|
4536
|
+
strokeWidth: lineWidth,
|
|
4537
|
+
strokeDasharray: drawingLineDashArray(shape.strokeDash, lineWidth),
|
|
4538
|
+
markerStart: shape.startArrow && shape.startArrow !== "none" ? `url(#${startMarkerId})` : void 0,
|
|
4539
|
+
markerEnd: shape.endArrow && shape.endArrow !== "none" ? `url(#${endMarkerId})` : void 0,
|
|
4540
|
+
vectorEffect: "non-scaling-stroke"
|
|
4541
|
+
}
|
|
4542
|
+
) : shape.fillImageUrl ? /* @__PURE__ */ jsx(
|
|
4512
4543
|
"image",
|
|
4513
4544
|
{
|
|
4514
4545
|
x: relX,
|
|
@@ -7102,6 +7133,18 @@ function HomeSection(p) {
|
|
|
7102
7133
|
p.onUpdateTextStyle?.({ fontFamily: family });
|
|
7103
7134
|
setFontMenuOpen(false);
|
|
7104
7135
|
};
|
|
7136
|
+
const isPowerPointFontSource = (source) => source.format === "truetype" || source.format === "opentype";
|
|
7137
|
+
const selectPowerPointFontSources = (sources) => {
|
|
7138
|
+
const selected = /* @__PURE__ */ new Map();
|
|
7139
|
+
for (const source of sources) {
|
|
7140
|
+
if (!isPowerPointFontSource(source)) continue;
|
|
7141
|
+
const bold = Number(source.weight ?? 400) >= 600;
|
|
7142
|
+
const italic = source.style === "italic" || source.style === "oblique";
|
|
7143
|
+
const key = `${source.family.toLocaleLowerCase()}|${bold ? "bold" : "regular"}|${italic ? "italic" : "normal"}`;
|
|
7144
|
+
selected.set(key, source);
|
|
7145
|
+
}
|
|
7146
|
+
return [...selected.values()];
|
|
7147
|
+
};
|
|
7105
7148
|
const fontSourceFromFile = async (file) => {
|
|
7106
7149
|
const baseName = getZipEntryBaseName(file.name);
|
|
7107
7150
|
const stem = baseName.replace(CUSTOM_FONT_FILE_EXTENSION, "");
|
|
@@ -7169,8 +7212,14 @@ function HomeSection(p) {
|
|
|
7169
7212
|
sources.map(({ data: _data, ...source }) => source)
|
|
7170
7213
|
);
|
|
7171
7214
|
await registerFontSources(sources);
|
|
7215
|
+
const powerPointSources = selectPowerPointFontSources(sources);
|
|
7216
|
+
if (powerPointSources.length === 0) {
|
|
7217
|
+
throw new Error(
|
|
7218
|
+
"This font can be previewed in the browser, but PowerPoint embedding requires a .ttf or .otf file. Add that file to the ZIP and upload it again."
|
|
7219
|
+
);
|
|
7220
|
+
}
|
|
7172
7221
|
p.onEmbedCustomFonts?.(
|
|
7173
|
-
|
|
7222
|
+
powerPointSources.map((source) => ({
|
|
7174
7223
|
name: source.family,
|
|
7175
7224
|
dataUrl: "",
|
|
7176
7225
|
bold: Number(source.weight ?? 400) >= 600,
|
|
@@ -11968,6 +12017,11 @@ function ActiveXControlOverlay({
|
|
|
11968
12017
|
);
|
|
11969
12018
|
}) });
|
|
11970
12019
|
}
|
|
12020
|
+
function isFullSlideBackgroundPicture(element, canvasSize) {
|
|
12021
|
+
if (element.type !== "picture" && element.type !== "image") return false;
|
|
12022
|
+
const tolerance = Math.max(2, Math.min(canvasSize.width, canvasSize.height) * 5e-3);
|
|
12023
|
+
return Math.abs(element.x ?? 0) <= tolerance && Math.abs(element.y ?? 0) <= tolerance && (element.width ?? 0) >= canvasSize.width - tolerance && (element.height ?? 0) >= canvasSize.height - tolerance;
|
|
12024
|
+
}
|
|
11971
12025
|
function SlideCanvas({
|
|
11972
12026
|
activeSlide,
|
|
11973
12027
|
templateElements,
|
|
@@ -12038,6 +12092,7 @@ function SlideCanvas({
|
|
|
12038
12092
|
aiActive = false
|
|
12039
12093
|
}) {
|
|
12040
12094
|
const isEditableCanvas = (mode === "edit" || mode === "master") && canEdit;
|
|
12095
|
+
const hasEditableForegroundElements = (activeSlide?.elements.length ?? 0) > 1;
|
|
12041
12096
|
const {
|
|
12042
12097
|
cbRef,
|
|
12043
12098
|
stableResizePointerDown,
|
|
@@ -12237,7 +12292,7 @@ function SlideCanvas({
|
|
|
12237
12292
|
isSelected: selectedElementIdSet.has(element.id),
|
|
12238
12293
|
isInlineEditing: inlineEditingElementId === element.id,
|
|
12239
12294
|
inlineEditingText,
|
|
12240
|
-
canInteract: isEditableCanvas,
|
|
12295
|
+
canInteract: isEditableCanvas && !(hasEditableForegroundElements && isFullSlideBackgroundPicture(element, canvasSize)),
|
|
12241
12296
|
spellCheckEnabled,
|
|
12242
12297
|
mediaDataUrls,
|
|
12243
12298
|
tableEditorState,
|
|
@@ -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-HBJEBWBB.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-QKRGKIBL.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';
|
|
@@ -6725,8 +6725,8 @@ function parseParagraphAlignment(value) {
|
|
|
6725
6725
|
}
|
|
6726
6726
|
return "left";
|
|
6727
6727
|
}
|
|
6728
|
-
function extractTableCellStyle(cellXml, fallbackStyle, schemeColorOverrides) {
|
|
6729
|
-
const cellStyle = { ...fallbackStyle };
|
|
6728
|
+
function extractTableCellStyle(cellXml, fallbackStyle, schemeColorOverrides, includeFallback = true) {
|
|
6729
|
+
const cellStyle = includeFallback ? { ...fallbackStyle } : {};
|
|
6730
6730
|
const txBody = cellXml["a:txBody"];
|
|
6731
6731
|
const paragraphs = ensureArrayValue(txBody?.["a:p"]);
|
|
6732
6732
|
const firstParagraph = paragraphs[0];
|
|
@@ -6873,7 +6873,7 @@ function resolveTableStyleFillColor(fill, colorScheme) {
|
|
|
6873
6873
|
}
|
|
6874
6874
|
let color = base;
|
|
6875
6875
|
if (fill.tint !== void 0 && fill.tint > 0) {
|
|
6876
|
-
color = tintColor2(color, fill.tint / 1e5);
|
|
6876
|
+
color = tintColor2(color, 1 - fill.tint / 1e5);
|
|
6877
6877
|
}
|
|
6878
6878
|
if (fill.shade !== void 0 && fill.shade > 0) {
|
|
6879
6879
|
color = shadeColor2(color, 1 - fill.shade / 1e5);
|
|
@@ -6912,7 +6912,7 @@ function applyTableStyleText(text, colorScheme, style, fontScheme) {
|
|
|
6912
6912
|
if (base) {
|
|
6913
6913
|
let color = base;
|
|
6914
6914
|
if (text.fontTint !== void 0 && text.fontTint > 0) {
|
|
6915
|
-
color = tintColor2(color, text.fontTint / 1e5);
|
|
6915
|
+
color = tintColor2(color, 1 - text.fontTint / 1e5);
|
|
6916
6916
|
}
|
|
6917
6917
|
if (text.fontShade !== void 0 && text.fontShade > 0) {
|
|
6918
6918
|
color = shadeColor2(color, 1 - text.fontShade / 1e5);
|
|
@@ -7716,7 +7716,12 @@ function renderTableElement(element, textStyle, options) {
|
|
|
7716
7716
|
parsedTable.columnCount,
|
|
7717
7717
|
options?.styleCtx
|
|
7718
7718
|
);
|
|
7719
|
-
const xmlCellStyle = extractTableCellStyle(
|
|
7719
|
+
const xmlCellStyle = extractTableCellStyle(
|
|
7720
|
+
cell,
|
|
7721
|
+
textStyle,
|
|
7722
|
+
schemeOverrides,
|
|
7723
|
+
false
|
|
7724
|
+
);
|
|
7720
7725
|
const tdCellOverride = tableEl.tableData?.rows[rowIndex]?.cells[cellIndex]?.style;
|
|
7721
7726
|
const diag = getCellDiagonalBorders2(
|
|
7722
7727
|
tdCellOverride,
|
|
@@ -7730,6 +7735,7 @@ function renderTableElement(element, textStyle, options) {
|
|
|
7730
7735
|
options?.styleCtx
|
|
7731
7736
|
);
|
|
7732
7737
|
const mergedStyle = {
|
|
7738
|
+
...textStyle,
|
|
7733
7739
|
...bandStyle,
|
|
7734
7740
|
...xmlCellStyle,
|
|
7735
7741
|
...tdCellOverride ? cellStyleToCss(tdCellOverride) : void 0,
|
|
@@ -9646,7 +9652,7 @@ function FailedToLoad() {
|
|
|
9646
9652
|
var LazySurfaceChart3DScene = React4.lazy(
|
|
9647
9653
|
async () => {
|
|
9648
9654
|
try {
|
|
9649
|
-
return await import('./SurfaceChart3DScene-
|
|
9655
|
+
return await import('./SurfaceChart3DScene-PXXYX7KR.mjs');
|
|
9650
9656
|
} catch {
|
|
9651
9657
|
return { default: FailedToLoad };
|
|
9652
9658
|
}
|
|
@@ -17992,7 +17998,7 @@ function useYjsDocumentSync({
|
|
|
17992
17998
|
return;
|
|
17993
17999
|
}
|
|
17994
18000
|
try {
|
|
17995
|
-
const { PptxHandler: PptxHandler2 } = await import('./dist-
|
|
18001
|
+
const { PptxHandler: PptxHandler2 } = await import('./dist-VBLYGLKY.mjs');
|
|
17996
18002
|
const handler = new PptxHandler2();
|
|
17997
18003
|
await handler.load(sourceBytes.buffer);
|
|
17998
18004
|
const currentSlides = readSlidesFromYDoc(
|