ooxml-ui 1.48.1 → 1.49.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/base.d.ts +1 -0
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-options.d.ts +1 -0
- package/dist/chart/format-pane-targets.d.ts +0 -1
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +1 -0
- package/dist/chrome/find-replace-fields.d.ts +0 -1
- package/dist/files/cloud-files-view.d.ts +1 -0
- package/dist/fonts/webfonts.d.ts +1 -0
- package/dist/image-native-size.d.ts +1 -0
- package/dist/picture-artistic-filters.d.ts +1 -0
- package/dist/picture-pixels.d.ts +1 -0
- package/dist/pptx/{chunk-JOTNDOPD.mjs → chunk-4OM7WS6M.mjs} +1 -1
- package/dist/pptx/{chunk-BZ3RLZ7P.mjs → chunk-JJP24O2L.mjs} +57 -2
- package/dist/pptx/{chunk-W5ZQPPB5.cjs → chunk-JOQIMYHE.cjs} +62 -1
- package/dist/pptx/{chunk-55SOCULX.cjs → chunk-Q6YXUH4R.cjs} +42 -42
- package/dist/pptx/dom/index.cjs +373 -370
- package/dist/pptx/dom/index.mjs +7 -4
- package/dist/pptx/dom/slide-stage.d.ts +8 -0
- package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3089 -3065
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/canvas-element-node.d.ts +8 -7
- package/dist/pptx/render/canvas-element-node.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/metrics.d.ts +12 -0
- package/dist/pptx/render/editor-chrome/metrics.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +2 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/slide-thumbnail-badge.d.ts +42 -0
- package/dist/pptx/render/slide-thumbnail-badge.d.ts.map +1 -0
- package/dist/pptx/render/stage-element-ids.d.ts +49 -0
- package/dist/pptx/render/stage-element-ids.d.ts.map +1 -0
- package/dist/pptx/{smartart-insert-preview-EQY2WQ3J.cjs → smartart-insert-preview-I6S2OSWU.cjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-53SDH6T2.mjs → smartart-insert-preview-KQJPGRDR.mjs} +2 -2
- package/dist/render-cache.d.ts +1 -0
- package/dist/theme-bridge.d.ts +1 -0
- package/dist/theme.d.ts +1 -0
- package/package.json +1 -1
package/dist/pptx/dom/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createEl, composeTransforms, rendering3DFlagsOf, mountThreeViewInto, selectedChartPartOf, isChart3DEditable, wireChartThreeViewEvents, applyStyleMap, createSvgEl, setSvgAttrs, renderSmartArtElement, createElementRendererRegistry } from '../chunk-
|
|
2
|
-
export { SMARTART_SVG_STYLE, appendSvgTextLines, applyStyleMap, applyThreeViewTextStyle, buildSmartArtFallbackSvg, buildSmartArtInsertPreview, buildSvgGradientDefs, collectThreeViews, composeTransforms, createEl, createElementRendererRegistry, createSvgEl, enableSmartArtEditing, isChart3DEditable, mountThreeViewInto, renderSmartArt3DElement, renderSmartArtElement, renderSmartArtSvg, rendering3DFlagsOf, selectedChartPartOf, setSvgAttrs, takeReusableThreeView, wireChartThreeViewEvents, withReusableThreeViews } from '../chunk-
|
|
3
|
-
import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getFrameEffectStyle, getComputed3dStyle, passesClicksThroughBox, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, resolveStageEdgeBleeds, applyRenderedElementAccessibility, applyElementActionAffordances, actionAffordanceLabels, beginChartMarkDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, connectorSnapTransform, connectorHitStrokeWidth, buildParagraphs, isEquationOnlyText, buildEquationBlockStyle, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getBevelLightingSvgFilter, buildHollowHitOutline, getSilhouetteFillLayer, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableFrameCss, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, fontWeightAttribute, hasGlyphEnvelope, buildGlyphEnvelopeBlock, resolveWarpRunPaint, warpParagraphLayouts, resolveFontItalic, getBackgroundAnimationState, abuttingEdgeBleedStyle, getBackgroundAnimationLayers, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, chartFormatTargetFromEvent, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, mediaControlBarEnabled, attachMediaControlBar, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-
|
|
4
|
-
export { buildEmbeddedFontStyles, buildFieldSubstitutionContext, releasePptxRenderCaches } from '../chunk-
|
|
1
|
+
import { createEl, composeTransforms, rendering3DFlagsOf, mountThreeViewInto, selectedChartPartOf, isChart3DEditable, wireChartThreeViewEvents, applyStyleMap, createSvgEl, setSvgAttrs, renderSmartArtElement, createElementRendererRegistry } from '../chunk-4OM7WS6M.mjs';
|
|
2
|
+
export { SMARTART_SVG_STYLE, appendSvgTextLines, applyStyleMap, applyThreeViewTextStyle, buildSmartArtFallbackSvg, buildSmartArtInsertPreview, buildSvgGradientDefs, collectThreeViews, composeTransforms, createEl, createElementRendererRegistry, createSvgEl, enableSmartArtEditing, isChart3DEditable, mountThreeViewInto, renderSmartArt3DElement, renderSmartArtElement, renderSmartArtSvg, rendering3DFlagsOf, selectedChartPartOf, setSvgAttrs, takeReusableThreeView, wireChartThreeViewEvents, withReusableThreeViews } from '../chunk-4OM7WS6M.mjs';
|
|
3
|
+
import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getFrameEffectStyle, getComputed3dStyle, passesClicksThroughBox, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, resolveStageEdgeBleeds, applyRenderedElementAccessibility, applyElementActionAffordances, actionAffordanceLabels, stripElementIdMarkers, beginChartMarkDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, connectorSnapTransform, connectorHitStrokeWidth, buildParagraphs, isEquationOnlyText, buildEquationBlockStyle, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getBevelLightingSvgFilter, buildHollowHitOutline, getSilhouetteFillLayer, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableFrameCss, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, fontWeightAttribute, hasGlyphEnvelope, buildGlyphEnvelopeBlock, resolveWarpRunPaint, warpParagraphLayouts, resolveFontItalic, getBackgroundAnimationState, abuttingEdgeBleedStyle, getBackgroundAnimationLayers, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, chartFormatTargetFromEvent, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, mediaControlBarEnabled, attachMediaControlBar, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-JJP24O2L.mjs';
|
|
4
|
+
export { buildEmbeddedFontStyles, buildFieldSubstitutionContext, releasePptxRenderCaches } from '../chunk-JJP24O2L.mjs';
|
|
5
5
|
import { ensureChartInteractionStyles, CHART_INTERACTIVE_CLASS, applyChartPartHighlight, findChartPartTarget, buildChartMarkDragGeometry, beginChartValueDrag, advanceChartValueDrag, renderChartViewModelSvg, withChartTitle } from '../chunk-3DJZBAQ2.mjs';
|
|
6
6
|
export { renderChartViewModelSvg } from '../chunk-3DJZBAQ2.mjs';
|
|
7
7
|
import '../chunk-RQJOOXRG.mjs';
|
|
@@ -470,6 +470,9 @@ function renderSlideStage(options) {
|
|
|
470
470
|
if (slide.activeXControls && slide.activeXControls.length > 0) {
|
|
471
471
|
stage.appendChild(buildActiveXControlsOverlay(doc, slide.activeXControls, canvasSize));
|
|
472
472
|
}
|
|
473
|
+
if (options.exposeElementIds === false) {
|
|
474
|
+
stripElementIdMarkers(stage);
|
|
475
|
+
}
|
|
473
476
|
return stage;
|
|
474
477
|
} catch (error) {
|
|
475
478
|
for (const node of renderedNodes ?? []) disposeChartPixelSubscriptions(node);
|
|
@@ -84,6 +84,14 @@ export interface SlideStageOptions {
|
|
|
84
84
|
* test hooks the React/Vue/Angular bindings also emit. Defaults to `false`.
|
|
85
85
|
*/
|
|
86
86
|
interactive?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Keep the `data-element-id` marker on every rendered element. Defaults to
|
|
89
|
+
* `true`. Pass `false` for a static stage (thumbnails, previews, sorter
|
|
90
|
+
* tiles), whose copies would otherwise shadow the editing canvas in
|
|
91
|
+
* `[data-element-id]` queries; `stageKeepsElementIds` decides it from the
|
|
92
|
+
* stage's role. The markers are removed once the stage is assembled.
|
|
93
|
+
*/
|
|
94
|
+
exposeElementIds?: boolean;
|
|
87
95
|
/** Whether inherited layout/master nodes participate in editing. */
|
|
88
96
|
templateEditing?: boolean;
|
|
89
97
|
/** Per-element native-animation playback state (presentation mode only). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-stage.d.ts","sourceRoot":"","sources":["../../../src/pptx/dom/slide-stage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"slide-stage.d.ts","sourceRoot":"","sources":["../../../src/pptx/dom/slide-stage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,MAAM,UAAU,CAAC;AAelB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEjG,MAAM,WAAW,iBAAiB;IACjC,kFAAkF;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,uEAAuE;IACvE,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,kFAAkF;IAClF,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,+EAA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