ooxml-ui 1.37.0 → 1.38.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.
@@ -1,3 +1,2 @@
1
1
  /** Simplified Chinese captions of the shared chart Format pane, by `chartFormat.*` key. */
2
2
  export declare const chartFormatZhCN: Readonly<Record<string, string>>;
3
- //# sourceMappingURL=zh-CN.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-GZNBWWJ5.js';
2
- import { TEAMS_TAGS, registerTeams } from './chunk-O3P6UH4P.js';
2
+ import { TEAMS_TAGS, registerTeams } from './chunk-FKLH7ZVV.js';
3
3
  import { installOfficeUiTheme } from './chunk-T5ARELU2.js';
4
4
  import { registerControls } from './chunk-QAX4FAB7.js';
5
5
  import { definePresence } from './chunk-YZH2QS7J.js';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-FQYCSYWH.js';
1
+ export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-PMXLEYK6.js';
2
2
  export { createRecoveryScheduler } from './chunk-DA57FPSN.js';
3
3
  export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-6VF4FEMY.js';
4
4
  export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-GZNBWWJ5.js';
5
- export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-O3P6UH4P.js';
5
+ export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FKLH7ZVV.js';
6
6
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
7
7
  import './chunk-CDAXY5KC.js';
8
8
  import './chunk-NDUD5JJB.js';
package/dist/teams.js CHANGED
@@ -1,4 +1,4 @@
1
- export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-O3P6UH4P.js';
1
+ export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FKLH7ZVV.js';
2
2
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
3
3
  import './chunk-CDAXY5KC.js';
4
4
  import './chunk-NDUD5JJB.js';
@@ -54,4 +54,3 @@ export interface ShadcnBridgeOptions {
54
54
  * (`prefix` includes the dashes, for example `'--dve-'` or `'--pptx-'`).
55
55
  */
56
56
  export declare function shadcnBridge(selector: string, prefix: string, options?: ShadcnBridgeOptions): string;
57
- //# sourceMappingURL=theme-bridge.d.ts.map
@@ -1,27 +1,5 @@
1
- /** SVG path data to absolute move/line/cubic/close segments, for the PDF writer. DOM-free. */
2
- export type PathSegment = {
3
- t: 'M';
4
- x: number;
5
- y: number;
6
- } | {
7
- t: 'L';
8
- x: number;
9
- y: number;
10
- } | {
11
- t: 'C';
12
- x1: number;
13
- y1: number;
14
- x2: number;
15
- y2: number;
16
- x: number;
17
- y: number;
18
- } | {
19
- t: 'Z';
20
- };
21
- export declare const MAX_PATH_CHARS = 2000000;
22
- export declare const MAX_PATH_SEGMENTS = 200000;
23
- /** Parse path data. Returns `undefined` if it is malformed or exceeds the bounds. */
24
- export declare function parsePath(d: string): PathSegment[] | undefined;
1
+ import type { PathSegment } from 'ooxml-core/visio';
2
+ export { MAX_PATH_CHARS, MAX_PATH_SEGMENTS, parsePath, type PathSegment } from 'ooxml-core/visio';
25
3
  /** PDF path-construction operators for the segments. */
26
4
  export declare function pathOperators(segments: readonly PathSegment[]): string[];
27
5
  export interface PathEnd {
@@ -6,10 +6,21 @@ import { type VisioMatrix, type VisioShape } from 'ooxml-core/visio';
6
6
  * profiles narrow the blur. Visio's own bevel profiles, materials and lighting are not reproduced,
7
7
  * and the result changes slightly with the zoom because SVG lighting works on device pixels.
8
8
  */
9
- export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix): SVGGElement | undefined;
9
+ export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix,
10
+ /** The filter region when the paths were projected beyond the flat shape's box. */
11
+ box?: {
12
+ x: number;
13
+ y: number;
14
+ width: number;
15
+ height: number;
16
+ }): SVGGElement | undefined;
10
17
  /**
11
18
  * 3-D rotation: a parallel projection of the flat shape about its centre, as a matrix on a wrapper
12
- * group. Perspective foreshortening and extrusion are not drawn; Visio's own SVG export ignores
13
- * the rotation, its raster export draws it.
19
+ * group. A shape with perspective or an extrusion is drawn through `solidRender` instead: its
20
+ * outline is projected point by point, and this wrapper (`projected`) then carries only what stays
21
+ * flat in that mode (text, pictures), parallel-projected. Visio's own SVG export ignores the
22
+ * rotation, its raster export draws it.
14
23
  */
15
- export declare function rotation3dWrapper(shape: VisioShape): SVGGElement | undefined;
24
+ export declare function rotation3dWrapper(shape: VisioShape, projected?: boolean): SVGGElement | undefined;
25
+ /** The parallel-projected container for text and pictures of a shape drawn from projected paths. */
26
+ export declare function flatContent(shape: VisioShape): SVGGElement;
@@ -0,0 +1,28 @@
1
+ import { type Projection, type VisioMatrix, type VisioShape } from 'ooxml-core/visio';
2
+ /** A shape drawn through the point-by-point projection (perspective and/or extrusion). */
3
+ export interface SolidRender {
4
+ projection: Projection;
5
+ /** Inches per local unit, so a depth in inches becomes local units. */
6
+ unit: number;
7
+ /** Where the projected shape, its extrusion and its contour can reach, in local units. */
8
+ bounds: {
9
+ x: number;
10
+ y: number;
11
+ width: number;
12
+ height: number;
13
+ };
14
+ }
15
+ /**
16
+ * Perspective cannot be expressed as an SVG matrix, and an extrusion needs the projected outline,
17
+ * so a shape with either is drawn from projected polylines (curves flattened). Without them the
18
+ * 3-D rotation stays a matrix on a wrapper group (`rotation3dWrapper`).
19
+ */
20
+ export declare function solidRender(shape: VisioShape, world: VisioMatrix): SolidRender | undefined;
21
+ /** Scale a #rrggbb colour: below 1 darkens, above 1 lightens towards white. */
22
+ export declare function shadeColor(hex: string, factor: number): string;
23
+ /**
24
+ * The extrusion (back outline, then side faces far to near) and the contour (the extruded outline
25
+ * widened by the contour size, drawn first so only its outer part shows), as one group to put
26
+ * under the shape's own paths. Side shading is fitted to a few of Visio's renders, not its lighting.
27
+ */
28
+ export declare function renderSolid(shape: VisioShape, solid: SolidRender, projectedPaths: readonly string[]): SVGGElement | undefined;
package/dist/visio.js CHANGED
@@ -13,7 +13,7 @@ import './chunk-QLHCGV4C.js';
13
13
  import './chunk-XL77FR4B.js';
14
14
  import { VISIO_CAPABILITY_COMMANDS, VISIO_TEXT_LANGUAGES, VISIO_BULLET_STYLES, FOREIGN_VECTOR_SCENE_LIMITS, EMPTY_TEXT_SEARCH, EMPTY_SELECTION, EMPTY_EDIT_STATE, assertViewableDocument, snapshotSelection, selectionKey, indexDocumentText, searchDocumentText, sameSelection, validateSearchQuery, MAX_INPUT_BYTES, createTemplateVsdx, DocumentHistory, snapshotEdits, visioWithContainerMembers, snapshotVisioGeometryExpectation, visioSelectionIsOnPage, visioContainerUpkeep, assertVisioGeometryExpectation, visioDuplicateCommand, visioGroupCommand, visioUngroupCommand, visioContainerCommand, visioCalloutCommand, visioPasteCommand, visioTextOccurrenceSelection, ForeignVectorBudget, VISIO_IDENTITY_TRANSFORM, hasVisibleShapeContent, composeVisioTransform, compatibilityNotes, compatibilityText, visioGradientInstances, visioRenderedGradientStopCount, inspectForeignVectorResource, VISIO_CAPABILITY_BACKSTAGE_PAGES, copySnapshotScene, editErrorMessage, eventKeys, isEditCancellation, propertyKeys, VISIO_TEXT_REPLACE_LIMITS, visioTextReplaceOccurrences, visioTextReplacePlan, visioTextReplaceCommands, visioClipboardShape, TEXT_SEARCH_LIMITS, VISIO_TEMPLATES, visioSizePositionCommand, visioSizePositionState, visioPageInsertCommand, visioQuarterTurnCommand, visioRotationShape, VISIO_INITIAL_PRESENCE, sanitizeVisioPresence, isVisioTemplateId, textSearchStatus, visioSvgStrokeStyle, visioLineDashLengths, visioStencilDropCommand, visioMovementShape, visioMoveCommands, visioMoveTargets, visioMarqueeBox, visioPageDragDelta, visioSnapResizeDrag, visioResizeSelectionFrame, visioResizeSelectionDrag, visioTextShape, visioTextDraftEdit, isVisioPathTool, visioPathDrawPlan, visioDrawPlan, visioDrawBounds, visioDrawIsLargeEnough, visioConnectorCreationCommand, visioConnectorRouteOf, visioPageEditToDrawing, visioNudgeCommands, VISIO_DIAGRAM_RULE_SETS, visioArrangeCommands, visioChangeMasterTargets, visioChangeMasterCommand, visioChangeShapeRefusal, visioChangeShapeCommand, visioChangeCaseShape, visioChangeCaseCommand, visioTextBlockShape, visioTextBlockFrame, visioTextBlockEdit, visioOrderingShape, visioFormatTargetShape, visioFormattingShape, visioTextFormattingState, visioTextIndentCommand, visioTextFontStepCommand, visioFontFamilies, visioChartObjectInsertCommand, visioPictureInsertCommand, normalizeVisioHyperlinkAddress, visioFitToDrawingEdits, VISIO_PAPER_SIZES, visioPageSizePresetEdits, visioOrientationEdits, visioPageDecorationState, visioNewPageId, visioMatchingPaperSize, visioPageBreaks, visioSwimlaneOptions, visioInsertSeparator, visioDeleteSwimlane, visioInsertSwimlane, visioOrgHierarchy, visioOrgPeople, visioOrgImportEdits, visioOrgReLayout, visioOrgAddPosition, VISIO_DATA_GRAPHIC_POSITIONS, visioDataGraphicFields, visioRemoveDataGraphicEdits, visioDataGraphicConfigs, visioAutoSpaceDataGraphicEdits, visioPositionDataGraphicEdits, visioDataGraphicEdits, visioSetDataGraphicItemEdits, visioShapeDataRow, VISIO_DATA_GRAPHIC_FILL_ROW, visioColorRules, visioLegendEdits, visioDataGraphicParts, visioTextDialogValues, visioTextDialogPatch, visioFormatPainterSnapshot, visioFormatPainterEdits, VISIO_FORMAT_PAINTER_LIMITS, visioConnectableShape, visioAddConnectionPointCommand, visioSwimlaneInfo, visioWithCalloutLeaders, visioWithDataGraphics, visioOrgPosition, visioFillPatternTransform, visioRenderedGradientStops, visioStrokeGradient, visioMasterDropRefusal, visioMasterDropSize, visioFileMasterDropCommand, visioMasterDropCommand, visioDrawingPoint, visioMovePreviewTransform, visioMarqueeSelection, VISIO_RESIZE_HANDLES, visioResizeSwimlane, visioPathPreview, visioNearestConnectionPoint, visioRotationPreviewTransform, visioStraightLineHandles, visioConnectorEndHandles, VISIO_LAYOUT_STYLES, visioShapeFormattingState, visioGlowKey, visioShapeEffectValues, visioReflectionKey, visioFollowTarget, visioPaperSize, visioKeepAutoSize, VISIO_RULER_DENSITY_CHOICES, VISIO_GRID_DENSITY_CHOICES, visioGridSteps, visioRulerGridValues, visioRulerDensityFactor, visioRulerGridEdits, checkVisioDiagram, visioShapeReport, visioShapeReportTable, visioShapeReportCsv, visioShapeReportText, visioSubprocessCommand, visioParseRange, visioDataTable, visioWorkbookGrid, visioOrgDeletePosition, visioShapeDataText, visioOrgFollowData, visioDeleteDataGraphicItemEdits, visioDataGraphicItems, visioVisualizerShapes, visioParseVisualizerTable, visioDataVisualizerEdits, VISIO_VISUALIZER_COLUMNS, VISIO_LAYOUT_LABELS, visioAutoAlignCommands, visioReLayoutCommands, visioLayerAssignState, visioNewLayerNames, visioLayerAssignCommands, VISIO_SELECT_TYPES, VISIO_SELECT_TYPE_LABELS, visioPageMasters, visioSelectByType, visioPasteTextCommand, visioSnapMoveDelta, visioPageGuides, visioAutoConnectShape, visioAutoConnectArrows, visioAutoConnectNeighbor, visioAutoConnectPlan, visioShapePageBox, VISIO_FIELD_CATEGORIES, visioTextAppendEdit, visioTextSource, visioTextBlockMatrix, VISIO_TEXT_BLOCK_HANDLES, visioShapeLocalPoint, visioTextBlockDrag, visioShapeFrame, visioMasterPreviewBox, visioConnectorMovePreviews, visioConnectorPreviewPath, visioGlueableShape, visioDataGraphicMarker, visioGuideCreateCommand, visioGuideMoveCommand } from 'ooxml-core/visio/ui';
15
15
  export { TEXT_SEARCH_LIMITS, VISIO_CAPABILITY_IDS, compatibilityNotes, compatibilityText, demoDocument, eventKeys, propertyKeys } from 'ooxml-core/visio/ui';
16
- import { VISIO_VISIBILITY_LIMITS, VISIO_BASIC_STENCIL, VISIO_STENCILS, visioOutlineShape, VISIO_SNAP, VISIO_GLUE, VISIO_SHADOW_PRESETS, loadVisio, createVsdx, deserializeVisioClipboard, mergeVisioPages, getVisioPageLayers, resolveVisioPageVisibility, visioLineJumpPaths, VISIO_CLIPBOARD_MAX_CHARS, visioSnapGlue, VISIO_SWIMLANE_STYLES, VISIO_GLOW_TRANSPARENCY, VISIO_METADATA_TEXT_LIMIT, VISIO_PICTURE_MAX_BYTES, inspectVisioRasterImage, visioPageLayout, VISIO_BUILT_IN_THEMES, VISIO_CONNECTOR_ROUTES, visioRotation3dMatrix, visioFilledArrow, layoutVisioFilledArrowLine, visioOpenArrowPath, VISIO_BEVEL_TYPES_SHARP, VISIO_BEVEL_TYPES_INSET, visioBuiltInStencil, visioBuiltInMaster, isVisioChangeShapeTarget, VISIO_CONTAINER_STYLES, VISIO_CALLOUT_STYLES, visioFallbackQuickStyle, VISIO_GLOW_SIZES, VISIO_BEVEL_PRESETS, VISIO_ROTATION_PRESETS, VISIO_SOFT_EDGE_SIZES, VISIO_REFLECTION_PRESETS, encodeBitmapEmf, VISIO_BACKGROUND_STYLES, visioBackgroundShapes, VISIO_BORDER_STYLES, visioBorderShapes, checkVisioAlternativeText, visioRefreshReport, VISIO_SHAPE_DATA_TYPES, visioShapeDataRowName, VISIO_CLIPBOARD_MAGIC, visioThemeVariantColors, visioPageThemeColors, parseVsdx, visioTabStarts, readVisioStencil, isVisioBuiltInThemeId, VISIO_QUICK_STYLE_COLORS, VISIO_SCALE_UNITS } from 'ooxml-core/visio';
16
+ import { VISIO_VISIBILITY_LIMITS, VISIO_BASIC_STENCIL, VISIO_STENCILS, visioOutlineShape, VISIO_SNAP, VISIO_GLUE, VISIO_SHADOW_PRESETS, loadVisio, createVsdx, deserializeVisioClipboard, mergeVisioPages, getVisioPageLayers, resolveVisioPageVisibility, visioLineJumpPaths, VISIO_CLIPBOARD_MAX_CHARS, projectPathData, visioSnapGlue, VISIO_SWIMLANE_STYLES, VISIO_GLOW_TRANSPARENCY, VISIO_METADATA_TEXT_LIMIT, VISIO_PICTURE_MAX_BYTES, inspectVisioRasterImage, visioPageLayout, VISIO_BUILT_IN_THEMES, VISIO_CONNECTOR_ROUTES, createProjection, visioRotation3dMatrix, visioFilledArrow, layoutVisioFilledArrowLine, visioOpenArrowPath, VISIO_BEVEL_TYPES_SHARP, VISIO_BEVEL_TYPES_INSET, extrudePaths, extrusionPathData, visioBuiltInStencil, visioBuiltInMaster, isVisioChangeShapeTarget, VISIO_CONTAINER_STYLES, VISIO_CALLOUT_STYLES, visioFallbackQuickStyle, VISIO_GLOW_SIZES, VISIO_BEVEL_PRESETS, VISIO_ROTATION_PRESETS, VISIO_SOFT_EDGE_SIZES, VISIO_REFLECTION_PRESETS, encodeBitmapEmf, VISIO_BACKGROUND_STYLES, visioBackgroundShapes, VISIO_BORDER_STYLES, visioBorderShapes, checkVisioAlternativeText, visioRefreshReport, VISIO_SHAPE_DATA_TYPES, visioShapeDataRowName, VISIO_CLIPBOARD_MAGIC, visioThemeVariantColors, visioPageThemeColors, parseVsdx, parsePath, visioTabStarts, readVisioStencil, isVisioBuiltInThemeId, VISIO_QUICK_STYLE_COLORS, VISIO_SCALE_UNITS } from 'ooxml-core/visio';
17
17
  import { renderChartSvg, readEmbeddedChartSpace, readEmbeddedChartExSpace, writeEmbeddedChartSpace, writeEmbeddedChartExSpace } from 'ooxml-core/xlsx';
18
18
  import { resolveRotateHandlePlacement, createRotationDrag, snapAngle } from 'ooxml-core/geometry';
19
19
  import { normalizeLocale, interpolate } from 'ooxml-core/i18n';
@@ -350,7 +350,7 @@ function layerOverrideMaps(model, overrides) {
350
350
  const page3 = pages.get(entry.pageId);
351
351
  if (!page3) throw new Error("The layer override page does not belong to this document.");
352
352
  let ids = known.get(page3.id);
353
- if (!ids) known.set(page3.id, ids = new Set(page3.layers?.map((layer) => layer.id)));
353
+ if (!ids) known.set(page3.id, ids = new Set(page3.layers?.map((layer2) => layer2.id)));
354
354
  if (!ids.has(entry.layerId)) throw new Error("The layer does not belong to this page.");
355
355
  let values = result.get(page3.id);
356
356
  if (!values) result.set(page3.id, values = /* @__PURE__ */ new Map());
@@ -747,7 +747,7 @@ var ViewerController = class {
747
747
  this.#assertAlive();
748
748
  const page3 = this.#state.document?.pages.find((candidate) => candidate.id === pageId);
749
749
  if (!page3) throw new Error("The layer override page does not belong to this document.");
750
- if (!page3.layers?.some((layer) => layer.id === layerId))
750
+ if (!page3.layers?.some((layer2) => layer2.id === layerId))
751
751
  throw new Error("The layer does not belong to this page.");
752
752
  if (visible !== null && typeof visible !== "boolean")
753
753
  throw new Error("Layer visibility must be boolean or null.");
@@ -2821,10 +2821,10 @@ var bevelId = 0;
2821
2821
  var ELEVATION = 45;
2822
2822
  var FLAT = Math.sin(ELEVATION * Math.PI / 180);
2823
2823
  var scale2 = (world) => Math.sqrt(Math.abs(world[0] * world[3] - world[1] * world[2])) || 1;
2824
- function renderBevel(shape, paths, defs, world) {
2824
+ function renderBevel(shape, paths, defs, world, box2) {
2825
2825
  const bevel = shape.style.bevel;
2826
2826
  const filled = paths.filter((path) => path.getAttribute("fill") !== "none");
2827
- if (!bevel || !filled.length) return void 0;
2827
+ if (!bevel || !filled.length || bevel.width <= 0 && bevel.height <= 0) return void 0;
2828
2828
  const unit2 = scale2(world);
2829
2829
  const width = Math.max(bevel.width, bevel.height) / unit2;
2830
2830
  const sharp = VISIO_BEVEL_TYPES_SHARP.includes(bevel.type);
@@ -2833,10 +2833,16 @@ function renderBevel(shape, paths, defs, world) {
2833
2833
  const filter = svgElement("filter");
2834
2834
  filter.id = `visio-bevel-${++bevelId}`;
2835
2835
  filter.setAttribute("filterUnits", "userSpaceOnUse");
2836
- filter.setAttribute("x", String(Math.min(0, shape.width) - width));
2837
- filter.setAttribute("y", String(Math.min(0, shape.height) - width));
2838
- filter.setAttribute("width", String(Math.abs(shape.width) + width * 2));
2839
- filter.setAttribute("height", String(Math.abs(shape.height) + width * 2));
2836
+ const region = box2 ?? {
2837
+ x: Math.min(0, shape.width),
2838
+ y: Math.min(0, shape.height),
2839
+ width: Math.abs(shape.width),
2840
+ height: Math.abs(shape.height)
2841
+ };
2842
+ filter.setAttribute("x", String(region.x - width));
2843
+ filter.setAttribute("y", String(region.y - width));
2844
+ filter.setAttribute("width", String(region.width + width * 2));
2845
+ filter.setAttribute("height", String(region.height + width * 2));
2840
2846
  const add = (name, attributes) => {
2841
2847
  const node = svgElement(name);
2842
2848
  for (const [key, value] of Object.entries(attributes)) node.setAttribute(key, String(value));
@@ -2892,7 +2898,7 @@ function renderBevel(shape, paths, defs, world) {
2892
2898
  }
2893
2899
  return group2;
2894
2900
  }
2895
- function rotation3dWrapper(shape) {
2901
+ function rotation3dWrapper(shape, projected = false) {
2896
2902
  const rotation = shape.style.rotation3d;
2897
2903
  if (!rotation) return void 0;
2898
2904
  const [a, b, c, d] = visioRotation3dMatrix(rotation);
@@ -2900,12 +2906,103 @@ function rotation3dWrapper(shape) {
2900
2906
  const wrapper = svgElement("g");
2901
2907
  wrapper.dataset.rotation3d = "";
2902
2908
  if (rotation.perspective > 0) wrapper.dataset.perspective = "";
2903
- wrapper.setAttribute(
2904
- "transform",
2905
- `matrix(${a} ${b} ${c} ${d} ${cx - a * cx - c * cy} ${cy - b * cx - d * cy})`
2906
- );
2909
+ if (projected) wrapper.dataset.solid3d = "";
2910
+ if (!projected)
2911
+ wrapper.setAttribute(
2912
+ "transform",
2913
+ `matrix(${a} ${b} ${c} ${d} ${cx - a * cx - c * cy} ${cy - b * cx - d * cy})`
2914
+ );
2907
2915
  return wrapper;
2908
2916
  }
2917
+ function flatContent(shape) {
2918
+ const wrapper = rotation3dWrapper(shape);
2919
+ delete wrapper.dataset.rotation3d;
2920
+ delete wrapper.dataset.perspective;
2921
+ wrapper.dataset.solidFlat = "";
2922
+ return wrapper;
2923
+ }
2924
+ var inchesPerUnit = (world) => Math.sqrt(Math.abs(world[0] * world[3] - world[1] * world[2])) || 1;
2925
+ function solidRender(shape, world) {
2926
+ const rotation = shape.style.rotation3d;
2927
+ if (!rotation || rotation.perspective <= 0 && !shape.style.extrusion) return void 0;
2928
+ const unit2 = inchesPerUnit(world);
2929
+ const projection = createProjection(rotation, { x: shape.width / 2, y: shape.height / 2 }, unit2);
2930
+ const depth = (shape.style.extrusion?.depth ?? 0) / unit2;
2931
+ const margin = ((shape.style.contour?.size ?? 0) + (shape.style.bevel?.width ?? 0)) / unit2;
2932
+ const corners = [];
2933
+ for (const z of depth > 0 ? [0, -depth] : [0])
2934
+ for (const x2 of [0, shape.width])
2935
+ for (const y2 of [0, shape.height]) corners.push(projection.point(x2, y2, z));
2936
+ const xs = corners.map((p) => p.x);
2937
+ const ys = corners.map((p) => p.y);
2938
+ const [x, y] = [Math.min(...xs) - margin, Math.min(...ys) - margin];
2939
+ return {
2940
+ projection,
2941
+ unit: unit2,
2942
+ bounds: { x, y, width: Math.max(...xs) + margin - x, height: Math.max(...ys) + margin - y }
2943
+ };
2944
+ }
2945
+ var clampByte = (value) => Math.max(0, Math.min(255, Math.round(value)));
2946
+ function shadeColor(hex, factor) {
2947
+ const channels = [1, 3, 5].map((index) => parseInt(hex.slice(index, index + 2), 16) || 0);
2948
+ return `#${channels.map((value) => clampByte(factor <= 1 ? value * factor : value + (255 - value) * (factor - 1))).map((value) => value.toString(16).padStart(2, "0")).join("")}`;
2949
+ }
2950
+ var layer = (name) => {
2951
+ const group2 = svgElement("g");
2952
+ group2.dataset[name] = "";
2953
+ group2.setAttribute("pointer-events", "none");
2954
+ group2.setAttribute("aria-hidden", "true");
2955
+ return group2;
2956
+ };
2957
+ var polygon = (d, fill, stroke) => {
2958
+ const path = svgElement("path");
2959
+ path.setAttribute("d", d);
2960
+ path.setAttribute("fill", fill);
2961
+ if (stroke) {
2962
+ path.setAttribute("stroke", stroke.color);
2963
+ path.setAttribute("stroke-width", String(stroke.width));
2964
+ path.setAttribute("stroke-linejoin", "round");
2965
+ } else path.setAttribute("stroke", "none");
2966
+ return path;
2967
+ };
2968
+ function renderSolid(shape, solid, projectedPaths) {
2969
+ const { extrusion, contour } = shape.style;
2970
+ if (!extrusion && !contour) return void 0;
2971
+ const filled = shape.geometry.filter((geometry) => geometry.fill).map((geometry) => geometry.path);
2972
+ const faces = extrusion ? extrudePaths(filled, solid.projection, extrusion.depth / solid.unit) : void 0;
2973
+ const group2 = svgElement("g");
2974
+ group2.dataset.solid = "";
2975
+ group2.setAttribute("pointer-events", "none");
2976
+ group2.setAttribute("aria-hidden", "true");
2977
+ if (contour) {
2978
+ const outline = layer("contour");
2979
+ const stroke = { color: contour.color, width: 2 * contour.size / solid.unit };
2980
+ for (const d of projectedPaths) outline.append(polygon(d, contour.color, stroke));
2981
+ if (faces) {
2982
+ if (faces.back.length)
2983
+ outline.append(polygon(extrusionPathData(faces.back), contour.color, stroke));
2984
+ for (const face of faces.sides)
2985
+ outline.append(polygon(extrusionPathData([face.points]), contour.color, stroke));
2986
+ }
2987
+ group2.append(outline);
2988
+ }
2989
+ if (extrusion && faces) {
2990
+ const solidGroup = layer("extrusion");
2991
+ if (faces.back.length)
2992
+ solidGroup.append(polygon(extrusionPathData(faces.back), shadeColor(extrusion.color, 0.7)));
2993
+ for (const face of faces.sides)
2994
+ solidGroup.append(
2995
+ polygon(
2996
+ extrusionPathData([face.points]),
2997
+ shadeColor(extrusion.color, face.shade),
2998
+ // A hairline in the face colour closes the seams between adjacent faces.
2999
+ { color: shadeColor(extrusion.color, face.shade), width: 0.5 / (solid.unit * 96) }
3000
+ )
3001
+ );
3002
+ group2.append(solidGroup);
3003
+ }
3004
+ return group2.childElementCount ? group2 : void 0;
3005
+ }
2909
3006
 
2910
3007
  // src/visio/render-svg.ts
2911
3008
  var NS2 = "http://www.w3.org/2000/svg";
@@ -2977,9 +3074,9 @@ function renderPage(model, page3, options2 = {}) {
2977
3074
  jumps: /* @__PURE__ */ new Map()
2978
3075
  };
2979
3076
  try {
2980
- for (const layer of pages) {
2981
- context.jumps = visioLineJumpPaths(layer);
2982
- for (const shape of layer.shapes) drawShape(shape, root, context, layer.id);
3077
+ for (const layer2 of pages) {
3078
+ context.jumps = visioLineJumpPaths(layer2);
3079
+ for (const shape of layer2.shapes) drawShape(shape, root, context, layer2.id);
2983
3080
  }
2984
3081
  } catch (error) {
2985
3082
  context.resources.dispose();
@@ -3041,9 +3138,11 @@ function drawShape(shape, parent, context, pageId, parentTransform = VISIO_IDENT
3041
3138
  }
3042
3139
  function drawOwn(shape, outer, context, world) {
3043
3140
  const { warnings, defs, resources } = context;
3044
- const turned = rotation3dWrapper(shape);
3141
+ const solid = solidRender(shape, world);
3142
+ const turned = rotation3dWrapper(shape, !!solid);
3045
3143
  if (turned) outer.append(turned);
3046
3144
  const group2 = turned ?? outer;
3145
+ const flat = solid && !shape.style.rotation3d?.keepTextFlat ? flatContent(shape) : group2;
3047
3146
  const lineStyle = context.static ? visioSvgStrokeStyle(shape.style) : shape.style;
3048
3147
  if (context.interactive && shape.text.plainText && !shape.geometry.some(
3049
3148
  (geometry) => geometry.fill && shape.style.fill !== "none" || geometry.stroke && shape.style.linePattern !== 0
@@ -3056,7 +3155,7 @@ function drawOwn(shape, outer, context, world) {
3056
3155
  hit.setAttribute("fill", "transparent");
3057
3156
  hit.setAttribute("pointer-events", "all");
3058
3157
  hit.setAttribute("vector-effect", "non-scaling-stroke");
3059
- group2.append(hit);
3158
+ flat.append(hit);
3060
3159
  }
3061
3160
  const fill = shape.geometry.some((geometry) => geometry.fill) ? fillPaint(shape.style, defs, resources, world, context.pageHeight) : "none";
3062
3161
  const stroke = shape.geometry.some((geometry) => geometry.stroke) && shape.style.linePattern !== 0 ? linePaint(lineStyle, defs, resources, world, context.pageHeight, [
@@ -3075,7 +3174,10 @@ function drawOwn(shape, outer, context, world) {
3075
3174
  const path = svgElement("path");
3076
3175
  if (shape.style.fillPattern) path.setAttribute("shape-rendering", "crispEdges");
3077
3176
  if (context.interactive) path.dataset.geometry = "";
3078
- path.setAttribute("d", jumps?.[index] ?? geometry.path);
3177
+ path.setAttribute(
3178
+ "d",
3179
+ solid && projectPathData(geometry.path, solid.projection) || (jumps?.[index] ?? geometry.path)
3180
+ );
3079
3181
  if (jumps && context.interactive) path.dataset.lineJumps = "";
3080
3182
  path.setAttribute("fill", geometry.fill ? fill : "none");
3081
3183
  path.setAttribute("fill-opacity", String(shape.style.fillOpacity));
@@ -3098,25 +3200,34 @@ function drawOwn(shape, outer, context, world) {
3098
3200
  paths.push(path);
3099
3201
  }
3100
3202
  const effects = renderShapeEffects(shape, paths, defs, world);
3101
- for (const layer of effects.below) group2.insertBefore(layer, paths[0]);
3203
+ for (const layer2 of effects.below) group2.insertBefore(layer2, paths[0]);
3102
3204
  if (effects.geometryFilter)
3103
3205
  for (const path of paths) path.setAttribute("filter", effects.geometryFilter);
3104
3206
  const shadow = renderShadow(shape, paths, defs, world);
3105
3207
  if (shadow) group2.insertBefore(shadow, effects.below[0] ?? paths[0]);
3106
- const bevel = renderBevel(shape, paths, defs, world);
3208
+ const bevel = renderBevel(shape, paths, defs, world, solid?.bounds);
3107
3209
  if (bevel) group2.append(bevel);
3210
+ if (solid) {
3211
+ const behind = renderSolid(
3212
+ shape,
3213
+ solid,
3214
+ paths.filter((path) => path.getAttribute("fill") !== "none").map((path) => path.getAttribute("d") ?? "")
3215
+ );
3216
+ if (behind) group2.insertBefore(behind, paths[0] ?? null);
3217
+ }
3108
3218
  const raster = renderImage(shape, resources);
3109
- if (raster) group2.append(raster);
3219
+ if (raster) flat.append(raster);
3110
3220
  const chart = renderEmbeddedChart(shape);
3111
- if (chart) group2.append(chart);
3221
+ if (chart) flat.append(chart);
3112
3222
  const vector = renderForeignVectorShape(shape, context.vectorBudget);
3113
- if (vector) group2.append(vector);
3223
+ if (vector) flat.append(vector);
3114
3224
  if (shape.text.plainText)
3115
- (shape.style.rotation3d?.keepTextFlat ? outer : group2).append(
3225
+ (shape.style.rotation3d?.keepTextFlat ? outer : flat).append(
3116
3226
  renderText(shape.text, warnings, context.textBudget)
3117
3227
  );
3118
3228
  if (shape.kind === "foreign" && !shape.image && !shape.foreignVector && !shape.embeddedObject)
3119
3229
  warnings.add("Embedded or foreign objects are not rendered in this build.");
3230
+ if (flat !== group2) group2.append(flat);
3120
3231
  }
3121
3232
 
3122
3233
  // src/visio/shape-inspector.ts
@@ -7219,7 +7330,7 @@ var deCommands = {
7219
7330
  "Soft Edges": "Weiche Kanten",
7220
7331
  "No Soft Edges": "Keine weichen Kanten",
7221
7332
  "Soft Edges Options...": "Optionen f\xFCr weiche Kanten...",
7222
- Bevel: "Abgeschr\xE4gte Kante",
7333
+ Bevel: "Abschr\xE4gung",
7223
7334
  "3-D Rotation": "3D-Drehung",
7224
7335
  Circle: "Kreis",
7225
7336
  "Relaxed Inset": "Entspannter Einzug",
@@ -7243,6 +7354,10 @@ var deCommands = {
7243
7354
  "Perspective Left": "Perspektive links",
7244
7355
  "Perspective Right": "Perspektive rechts",
7245
7356
  "Perspective Relaxed": "Perspektive entspannt",
7357
+ "Perspective Above": "Perspektive oben",
7358
+ "Perspective Below": "Perspektive unten",
7359
+ "Perspective Heroic Left": "Perspektive heroisch links",
7360
+ "Perspective Heroic Right": "Perspektive heroisch rechts",
7246
7361
  Arrange: "Anordnen",
7247
7362
  Align: "Ausrichten",
7248
7363
  "Align Center": "Zentrieren",
@@ -7421,11 +7536,11 @@ var deCommands = {
7421
7536
  "Text Effects": "Texteffekte",
7422
7537
  "Text fill, outline and effects are not stored per run yet; use Home > Font for the text colour and style.": "Textf\xFCllung, Kontur und Effekte werden noch nicht pro Textabschnitt gespeichert; verwenden Sie Start > Schriftart f\xFCr Textfarbe und Formatierung.",
7423
7538
  "Picture Format": "Bildformat",
7424
- "Container Format": "Containerformat",
7539
+ "Container Format": "Container-Format",
7425
7540
  "Chart Design": "Diagrammentwurf",
7426
7541
  Adjust: "Anpassen",
7427
7542
  "Picture Styles": "Bildformatvorlagen",
7428
- "Container Styles": "Containerformatvorlagen",
7543
+ "Container Styles": "Container-Formatvorlagen",
7429
7544
  Membership: "Mitgliedschaft",
7430
7545
  Brightness: "Helligkeit",
7431
7546
  Contrast: "Kontrast",
@@ -7552,9 +7667,9 @@ var deBackstage = {
7552
7667
  "Start an empty drawing.": "Eine leere Zeichnung beginnen.",
7553
7668
  "Basic Flowchart": "Einfaches Flussdiagramm",
7554
7669
  "A short process with a decision, using Basic Flowchart Shapes.": "Ein kurzer Prozess mit einer Entscheidung, mit Formen des einfachen Flussdiagramms.",
7555
- "A process across three horizontal swimlanes that stack and resize together.": "Ein Prozess \xFCber drei horizontale Schwimmbahnen, die sich gemeinsam stapeln und skalieren.",
7670
+ "A process across three horizontal swimlanes that stack and resize together.": "Ein Prozess \xFCber drei horizontale Swimlanes, die sich gemeinsam stapeln und skalieren.",
7556
7671
  "Basic Organization Chart": "Einfaches Organigramm",
7557
- "A small reporting hierarchy joined by connectors.": "Eine kleine Berichtshierarchie, verbunden durch Verbinder.",
7672
+ "A small reporting hierarchy joined by connectors.": "Eine kleine Berichtshierarchie, verbunden durch Verbindungslinien.",
7558
7673
  "No drawing open": "Keine Zeichnung ge\xF6ffnet",
7559
7674
  "Untitled drawing": "Unbenannte Zeichnung",
7560
7675
  "Legacy VSD preview (read only)": "Vorschau einer \xE4lteren VSD-Datei (nur lesbar)",
@@ -7627,13 +7742,13 @@ var deText = {
7627
7742
  "Tell me what you want to do": "Was m\xF6chten Sie tun?",
7628
7743
  "Theme styles from the drawing's theme. A drawing without a theme gets the fixed Office colours shown here.": "Formatvorlagen aus dem Design der Zeichnung. Eine Zeichnung ohne Design erh\xE4lt die hier gezeigten festen Office-Farben.",
7629
7744
  "Select one shape to change.": "W\xE4hlen Sie eine zu \xE4ndernde Form aus.",
7630
- "Open a .vsdx file to insert diagram parts.": "\xD6ffnen Sie eine VSDX-Datei, um Diagrammteile einzuf\xFCgen.",
7745
+ "Open a .vsdx file to insert diagram parts.": "\xD6ffnen Sie eine .vsdx-Datei, um Diagrammteile einzuf\xFCgen.",
7631
7746
  "Apply a theme to the current page.": "Auf die aktuelle Seite ein Design anwenden.",
7632
7747
  "Quick-styled shapes take its colours; text keeps its own font.": "Formen mit Schnellformatvorlage \xFCbernehmen die Farben; der Text beh\xE4lt seine Schriftart.",
7633
7748
  "Pick one of the current theme's four colour variants.": "W\xE4hlen Sie eine der vier Farbvarianten des aktuellen Designs.",
7634
- "Open a .vsdx file to add backgrounds.": "\xD6ffnen Sie eine VSDX-Datei, um Hintergr\xFCnde hinzuzuf\xFCgen.",
7635
- "Open a .vsdx file to lay out its shapes.": "\xD6ffnen Sie eine VSDX-Datei, um deren Formen anzuordnen.",
7636
- "open a .vsdx file to lay out its shapes.": "\xD6ffnen Sie eine VSDX-Datei, um deren Formen anzuordnen.",
7749
+ "Open a .vsdx file to add backgrounds.": "\xD6ffnen Sie eine .vsdx-Datei, um Hintergr\xFCnde hinzuzuf\xFCgen.",
7750
+ "Open a .vsdx file to lay out its shapes.": "\xD6ffnen Sie eine .vsdx-Datei, um deren Formen anzuordnen.",
7751
+ "open a .vsdx file to lay out its shapes.": "\xD6ffnen Sie eine .vsdx-Datei, um deren Formen anzuordnen.",
7637
7752
  "Custom theme colour sets are not written yet; pick a theme or variant.": "Benutzerdefinierte Designfarbs\xE4tze werden noch nicht geschrieben; w\xE4hlen Sie ein Design oder eine Variante.",
7638
7753
  "DWG and DXF import is not supported.": "Der Import von DWG und DXF wird nicht unterst\xFCtzt.",
7639
7754
  "Data graphics are placed at their default position; this option is not built yet.": "Datengrafiken werden an ihrer Standardposition platziert; diese Option ist noch nicht verf\xFCgbar.",
@@ -7789,6 +7904,10 @@ var enCommands = {
7789
7904
  "Perspective Left": "Perspective Left",
7790
7905
  "Perspective Right": "Perspective Right",
7791
7906
  "Perspective Relaxed": "Perspective Relaxed",
7907
+ "Perspective Above": "Perspective Above",
7908
+ "Perspective Below": "Perspective Below",
7909
+ "Perspective Heroic Left": "Perspective Heroic Left",
7910
+ "Perspective Heroic Right": "Perspective Heroic Right",
7792
7911
  Arrange: "Arrange",
7793
7912
  Align: "Align",
7794
7913
  "Align Center": "Align Center",
@@ -8335,6 +8454,10 @@ var esCommands = {
8335
8454
  "Perspective Left": "Perspectiva izquierda",
8336
8455
  "Perspective Right": "Perspectiva derecha",
8337
8456
  "Perspective Relaxed": "Perspectiva relajada",
8457
+ "Perspective Above": "Perspectiva superior",
8458
+ "Perspective Below": "Perspectiva inferior",
8459
+ "Perspective Heroic Left": "Perspectiva heroica izquierda",
8460
+ "Perspective Heroic Right": "Perspectiva heroica derecha",
8338
8461
  Arrange: "Organizar",
8339
8462
  Align: "Alinear",
8340
8463
  "Align Center": "Alinear al centro",
@@ -8585,7 +8708,7 @@ var esCommands = {
8585
8708
  "Open a .vsdx file to change the container.": "Abra un archivo .vsdx para cambiar el contenedor.",
8586
8709
  "Locked the container.": "Contenedor bloqueado.",
8587
8710
  "Unlocked the container.": "Contenedor desbloqueado.",
8588
- "Changed the automatic resize of the container.": "Se cambi\xF3 el cambio de tama\xF1o autom\xE1tico del contenedor.",
8711
+ "Changed the automatic resize of the container.": "Se modific\xF3 el cambio de tama\xF1o autom\xE1tico del contenedor.",
8589
8712
  "Changed the container margin.": "Se cambi\xF3 el margen del contenedor."
8590
8713
  };
8591
8714
 
@@ -8881,6 +9004,10 @@ var frCommands = {
8881
9004
  "Perspective Left": "Perspective gauche",
8882
9005
  "Perspective Right": "Perspective droite",
8883
9006
  "Perspective Relaxed": "Perspective d\xE9tendue",
9007
+ "Perspective Above": "Perspective dessus",
9008
+ "Perspective Below": "Perspective dessous",
9009
+ "Perspective Heroic Left": "Perspective h\xE9ro\xEFque gauche",
9010
+ "Perspective Heroic Right": "Perspective h\xE9ro\xEFque droite",
8884
9011
  Arrange: "Organiser",
8885
9012
  Align: "Aligner",
8886
9013
  "Align Center": "Aligner au centre",
@@ -9069,7 +9196,7 @@ var frCommands = {
9069
9196
  Contrast: "Contraste",
9070
9197
  "Auto Balance": "\xC9quilibrage automatique",
9071
9198
  Compression: "Compression",
9072
- Crop: "Rogner",
9199
+ Crop: "Recadrer",
9073
9200
  Margins: "Marges",
9074
9201
  "Fit to Contents": "Ajuster au contenu",
9075
9202
  "Automatic Resize": "Redimensionnement automatique",
@@ -9427,6 +9554,10 @@ var zhCNCommands = {
9427
9554
  "Perspective Left": "\u900F\u89C6\u5DE6",
9428
9555
  "Perspective Right": "\u900F\u89C6\u53F3",
9429
9556
  "Perspective Relaxed": "\u900F\u89C6\u653E\u677E",
9557
+ "Perspective Above": "\u900F\u89C6\u4E0A\u65B9",
9558
+ "Perspective Below": "\u900F\u89C6\u4E0B\u65B9",
9559
+ "Perspective Heroic Left": "\u900F\u89C6\u82F1\u96C4\u5DE6",
9560
+ "Perspective Heroic Right": "\u900F\u89C6\u82F1\u96C4\u53F3",
9430
9561
  Arrange: "\u6392\u5217",
9431
9562
  Align: "\u5BF9\u9F50",
9432
9563
  "Align Center": "\u5C45\u4E2D\u5BF9\u9F50",
@@ -9800,8 +9931,8 @@ var zhCNBackstage = {
9800
9931
  "Current page": "\u5F53\u524D\u9875\u9762",
9801
9932
  "Page size": "\u9875\u9762\u5927\u5C0F",
9802
9933
  Compatibility: "\u517C\u5BB9\u6027",
9803
- "Add Comment": "\u6DFB\u52A0\u6CE8\u91CA",
9804
- "Comment on the current page or selected shape.": "\u5BF9\u5F53\u524D\u9875\u9762\u6216\u6240\u9009\u5F62\u72B6\u6DFB\u52A0\u6CE8\u91CA\u3002",
9934
+ "Add Comment": "\u6DFB\u52A0\u6279\u6CE8",
9935
+ "Comment on the current page or selected shape.": "\u5BF9\u5F53\u524D\u9875\u9762\u6216\u6240\u9009\u5F62\u72B6\u6DFB\u52A0\u6279\u6CE8\u3002",
9805
9936
  Browse: "\u6D4F\u89C8",
9806
9937
  "Open a .vsdx drawing or a legacy .vsd preview from this device.": "\u4ECE\u6B64\u8BBE\u5907\u6253\u5F00 .vsdx \u56FE\u8868\u6216\u65E7\u7248 .vsd \u9884\u89C8\u3002",
9807
9938
  "Download a copy": "\u4E0B\u8F7D\u526F\u672C",
@@ -15424,7 +15555,7 @@ function estimatePageSvgBytes(model, page3, maxBytes) {
15424
15555
  for (const note2 of model.diagnostics) reserve(384 + note2.message.length * 36);
15425
15556
  const images = /* @__PURE__ */ new Map();
15426
15557
  const stack2 = [];
15427
- for (const layer of getVisioPageLayers(model, page3.id)) stack2.push(...layer.shapes);
15558
+ for (const layer2 of getVisioPageLayers(model, page3.id)) stack2.push(...layer2.shapes);
15428
15559
  while (stack2.length) {
15429
15560
  const shape = stack2.pop();
15430
15561
  if (shape.hidden) continue;
@@ -21729,6 +21860,32 @@ var PANE_FIELDS = [
21729
21860
  read: (context) => text(effect(context, (values) => values.softEdges)),
21730
21861
  patch: (value) => ({ softEdges: value })
21731
21862
  },
21863
+ // Visio 16 draws a depth or a contour only on a shape that has a top bevel (3-D Format).
21864
+ ...[
21865
+ [
21866
+ "extrusionDepth",
21867
+ "3-D depth (pt)",
21868
+ "a 3-D depth",
21869
+ 288,
21870
+ (s) => s.style.extrusion?.depth
21871
+ ],
21872
+ [
21873
+ "contourSize",
21874
+ "3-D contour size (pt)",
21875
+ "a 3-D contour size",
21876
+ 72,
21877
+ (s) => s.style.contour?.size
21878
+ ]
21879
+ ].map(([key, label, name, max, inches2]) => ({
21880
+ key,
21881
+ label,
21882
+ group: "effects",
21883
+ max,
21884
+ step: "1",
21885
+ name,
21886
+ read: (context) => text(style(context, (shape) => round2((inches2(shape) ?? 0) * 72))),
21887
+ patch: (amount) => ({ [key]: amount })
21888
+ })),
21732
21889
  ...[
21733
21890
  ["size", "Reflection size (%)", "a reflection size"],
21734
21891
  ["transparency", "Reflection transparency (%)", "a reflection transparency"],
@@ -22220,8 +22377,8 @@ function drawCommentMarkers(svg2, document2, page3, zoom) {
22220
22377
  const threads = visioCommentThreads(document2, page3);
22221
22378
  if (!threads.length) return;
22222
22379
  const create = (name) => svg2.ownerDocument.createElementNS("http://www.w3.org/2000/svg", name);
22223
- const layer = create("g");
22224
- layer.dataset.commentMarkers = "";
22380
+ const layer2 = create("g");
22381
+ layer2.dataset.commentMarkers = "";
22225
22382
  const scale3 = 1 / (96 * zoom);
22226
22383
  for (const thread of threads) {
22227
22384
  let x = 0, y = 0;
@@ -22252,9 +22409,9 @@ function drawCommentMarkers(svg2, document2, page3, zoom) {
22252
22409
  title2.textContent = label;
22253
22410
  marker.append(title2, bubble, text2);
22254
22411
  marker.toggleAttribute("data-resolved", thread.resolved);
22255
- layer.append(marker);
22412
+ layer2.append(marker);
22256
22413
  }
22257
- svg2.append(layer);
22414
+ svg2.append(layer2);
22258
22415
  }
22259
22416
 
22260
22417
  // src/visio/viewer-comments.ts
@@ -24455,7 +24612,9 @@ var ViewerDataVisualizer = class {
24455
24612
  try {
24456
24613
  await this.controller.applyEdits(batch);
24457
24614
  } catch (error) {
24458
- if (!batch.every((edit) => edit.type === "set-page-size")) throw error;
24615
+ const sized = batch.filter((edit) => edit.type !== "set-page-size");
24616
+ if (sized.length === batch.length) throw error;
24617
+ if (sized.length) await this.controller.applyEdits(sized);
24459
24618
  }
24460
24619
  },
24461
24620
  `${refreshing ? "Redrew" : "Drew"} ${this.#count} process steps from ${file.name}.${extra.length ? ` ${extra.join(" ")}` : ""}`
@@ -24976,19 +25135,19 @@ var ViewerAutoConnect = class {
24976
25135
  if (this.#layer?.isConnected && signature === this.#signature) return;
24977
25136
  this.#clear();
24978
25137
  const doc = this.host.viewport.ownerDocument;
24979
- const layer = doc.createElement("div");
24980
- layer.className = "auto-connect";
24981
- layer.dataset.autoConnectFor = shape.id;
24982
- layer.style.left = `${this.host.viewport.scrollLeft}px`;
24983
- layer.style.top = `${this.host.viewport.scrollTop}px`;
25138
+ const layer2 = doc.createElement("div");
25139
+ layer2.className = "auto-connect";
25140
+ layer2.dataset.autoConnectFor = shape.id;
25141
+ layer2.style.left = `${this.host.viewport.scrollLeft}px`;
25142
+ layer2.style.top = `${this.host.viewport.scrollTop}px`;
24984
25143
  for (const arrow of arrows) {
24985
25144
  const neighbour = visioAutoConnectNeighbor(page3, shape, arrow.direction);
24986
- layer.append(autoConnectArrow(doc, arrow, !!neighbour));
25145
+ layer2.append(autoConnectArrow(doc, arrow, !!neighbour));
24987
25146
  if (arrow.direction === this.#arrow && masters.length)
24988
- layer.append(autoConnectBar(doc, arrow, masters));
25147
+ layer2.append(autoConnectBar(doc, arrow, masters));
24989
25148
  }
24990
- this.host.viewport.append(layer);
24991
- this.#layer = layer;
25149
+ this.host.viewport.append(layer2);
25150
+ this.#layer = layer2;
24992
25151
  this.#signature = signature;
24993
25152
  }
24994
25153
  /** Connects in `direction`: to `masterId` as a new shape, else to the neighbour or first Quick Shape. */
@@ -25247,10 +25406,10 @@ var ViewerExplorer = class {
25247
25406
  const children = [this.#branch("Pages", pages)];
25248
25407
  if (page3) {
25249
25408
  const layers = (page3.layers ?? []).map(
25250
- (layer) => this.#button(
25409
+ (layer2) => this.#button(
25251
25410
  "layer",
25252
- layer.id,
25253
- `${layer.name.slice(0, 120) || `Layer ${layer.id}`}${layer.visible ? "" : " (hidden)"}`
25411
+ layer2.id,
25412
+ `${layer2.name.slice(0, 120) || `Layer ${layer2.id}`}${layer2.visible ? "" : " (hidden)"}`
25254
25413
  )
25255
25414
  );
25256
25415
  const masters = visioPageMasters(page3).map(
@@ -25676,17 +25835,17 @@ var ViewerLayerAssign = class {
25676
25835
  this.#target = { pageId: page3.id, shapeIds, generation: this.controller.documentGeneration };
25677
25836
  const doc = this.root.ownerDocument;
25678
25837
  this.#list.replaceChildren(
25679
- ...result.rows.length ? result.rows.map(({ layer, state: membership }) => {
25838
+ ...result.rows.length ? result.rows.map(({ layer: layer2, state: membership }) => {
25680
25839
  const item = choice(
25681
25840
  doc,
25682
25841
  "checkbox",
25683
25842
  "layer",
25684
- layer.id,
25685
- `${layer.name.slice(0, 256) || "Layer"}${layer.locked ? " (locked)" : ""}${layer.visible ? "" : " (hidden)"}`
25843
+ layer2.id,
25844
+ `${layer2.name.slice(0, 256) || "Layer"}${layer2.locked ? " (locked)" : ""}${layer2.visible ? "" : " (hidden)"}`
25686
25845
  );
25687
25846
  item.input.checked = membership === "all";
25688
25847
  item.input.indeterminate = membership === "some";
25689
- if (layer.locked) {
25848
+ if (layer2.locked) {
25690
25849
  item.input.disabled = true;
25691
25850
  item.input.dataset.unavailable = "";
25692
25851
  }
@@ -25752,7 +25911,7 @@ var FLAGS = [
25752
25911
  ["print", "Print"],
25753
25912
  ["lock", "Lock"]
25754
25913
  ];
25755
- var saved = (layer, flag) => flag === "visible" ? layer.visible : flag === "print" ? layer.printable : layer.locked;
25914
+ var saved = (layer2, flag) => flag === "visible" ? layer2.visible : flag === "print" ? layer2.printable : layer2.locked;
25756
25915
  var ViewerLayerProperties = class {
25757
25916
  constructor(root, controller, announce) {
25758
25917
  this.root = root;
@@ -25819,15 +25978,15 @@ var ViewerLayerProperties = class {
25819
25978
  caption.append(label);
25820
25979
  body.append(caption);
25821
25980
  }
25822
- for (const layer of layers) {
25981
+ for (const layer2 of layers) {
25823
25982
  if (shown >= VIEWER_LAYER_LIMITS.controls) break;
25824
25983
  ++shown;
25825
- const name = layer.name.slice(0, 256) || "Layer";
25984
+ const name = layer2.name.slice(0, 256) || "Layer";
25826
25985
  const row = doc.createElement("tr");
25827
25986
  row.dataset.pageId = source.id;
25828
- row.dataset.layerId = layer.id;
25987
+ row.dataset.layerId = layer2.id;
25829
25988
  const count = (page3?.shapes ?? []).filter(
25830
- (shape) => shape.layerIds?.includes(layer.id)
25989
+ (shape) => shape.layerIds?.includes(layer2.id)
25831
25990
  ).length;
25832
25991
  row.append(Object.assign(cell("th", name), { scope: "row" }), cell("td", String(count)));
25833
25992
  for (const [flag, title2] of FLAGS) {
@@ -25835,19 +25994,19 @@ var ViewerLayerProperties = class {
25835
25994
  box2.type = "checkbox";
25836
25995
  box2.dataset.flag = flag;
25837
25996
  box2.setAttribute("aria-label", `${name}: ${title2}`);
25838
- const override = flag === "visible" ? overrides.get(source.id)?.get(layer.id) : void 0;
25839
- box2.checked = override ?? saved(layer, flag);
25997
+ const override = flag === "visible" ? overrides.get(source.id)?.get(layer2.id) : void 0;
25998
+ box2.checked = override ?? saved(layer2, flag);
25840
25999
  box2.disabled = !editable3 && flag !== "visible";
25841
26000
  const holder = cell("td");
25842
26001
  holder.append(box2);
25843
26002
  row.append(holder);
25844
26003
  }
25845
26004
  const colour = cell("td");
25846
- if (layer.color) {
26005
+ if (layer2.color) {
25847
26006
  const swatch = doc.createElement("span");
25848
26007
  swatch.className = "layer-colour";
25849
- swatch.style.background = layer.color;
25850
- swatch.title = layer.color;
26008
+ swatch.style.background = layer2.color;
26009
+ swatch.title = layer2.color;
25851
26010
  colour.append(swatch);
25852
26011
  }
25853
26012
  row.append(colour);
@@ -25873,18 +26032,18 @@ var ViewerLayerProperties = class {
25873
26032
  const shown = [];
25874
26033
  for (const row of this.#table.querySelectorAll("tr[data-layer-id]")) {
25875
26034
  const pageId = row.dataset.pageId, layerId = row.dataset.layerId;
25876
- const layer = sources.get(pageId)?.layers?.find((candidate) => candidate.id === layerId);
25877
- if (!layer) continue;
26035
+ const layer2 = sources.get(pageId)?.layers?.find((candidate) => candidate.id === layerId);
26036
+ if (!layer2) continue;
25878
26037
  const value = (flag) => row.querySelector(`input[data-flag="${flag}"]`).checked;
25879
26038
  if (!editable3) {
25880
26039
  shown.push({
25881
26040
  pageId,
25882
26041
  layerId,
25883
- visible: value("visible") === layer.visible ? null : value("visible")
26042
+ visible: value("visible") === layer2.visible ? null : value("visible")
25884
26043
  });
25885
26044
  continue;
25886
26045
  }
25887
- const changed = FLAGS.filter(([flag]) => value(flag) !== saved(layer, flag));
26046
+ const changed = FLAGS.filter(([flag]) => value(flag) !== saved(layer2, flag));
25888
26047
  if (changed.length)
25889
26048
  edits.push({
25890
26049
  type: "set-layer-properties",
@@ -26265,13 +26424,13 @@ var ViewerSelectType = class {
26265
26424
  VISIO_SELECT_TYPES.map((type) => [type, VISIO_SELECT_TYPE_LABELS[type]]),
26266
26425
  (type) => type === "shape"
26267
26426
  );
26268
- const layers = [...new Map((page3.layers ?? []).map((layer) => [layer.id, layer])).values()];
26427
+ const layers = [...new Map((page3.layers ?? []).map((layer2) => [layer2.id, layer2])).values()];
26269
26428
  fill(
26270
26429
  "layer",
26271
26430
  [
26272
- ...layers.map((layer) => [
26273
- layer.id,
26274
- layer.name.slice(0, 256) || `Layer ${layer.id}`
26431
+ ...layers.map((layer2) => [
26432
+ layer2.id,
26433
+ layer2.name.slice(0, 256) || `Layer ${layer2.id}`
26275
26434
  ]),
26276
26435
  ["", "No layer"]
26277
26436
  ],
@@ -29051,177 +29210,6 @@ ${xref}
29051
29210
  }
29052
29211
  return result;
29053
29212
  }
29054
-
29055
- // src/visio/pdf-path.ts
29056
- var MAX_PATH_CHARS = 2e6;
29057
- var MAX_PATH_SEGMENTS = 2e5;
29058
- var COUNTS = {
29059
- m: 2,
29060
- l: 2,
29061
- h: 1,
29062
- v: 1,
29063
- c: 6,
29064
- s: 4,
29065
- q: 4,
29066
- t: 2,
29067
- a: 7,
29068
- z: 0
29069
- };
29070
- function parsePath(d) {
29071
- if (d.length > MAX_PATH_CHARS) return void 0;
29072
- const tokens = d.match(/[a-zA-Z]|[-+]?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/g);
29073
- if (!tokens) return [];
29074
- const out = [];
29075
- let x = 0, y = 0, startX = 0, startY = 0, lastC, lastQ;
29076
- let command2 = "";
29077
- let index = 0;
29078
- const read = () => Number(tokens[index++]);
29079
- while (index < tokens.length) {
29080
- if (out.length > MAX_PATH_SEGMENTS) return void 0;
29081
- const token = tokens[index];
29082
- if (/[a-zA-Z]/.test(token)) {
29083
- command2 = token;
29084
- index++;
29085
- } else if (!command2) return void 0;
29086
- else if (command2 === "M") command2 = "L";
29087
- else if (command2 === "m") command2 = "l";
29088
- const lower = command2.toLowerCase();
29089
- const need = COUNTS[lower];
29090
- if (need === void 0) return void 0;
29091
- if (index + need > tokens.length) return void 0;
29092
- const relative = command2 === lower;
29093
- const ox = relative ? x : 0, oy = relative ? y : 0;
29094
- let nextC, nextQ;
29095
- switch (lower) {
29096
- case "m":
29097
- x = ox + read();
29098
- y = oy + read();
29099
- startX = x;
29100
- startY = y;
29101
- out.push({ t: "M", x, y });
29102
- break;
29103
- case "l":
29104
- x = ox + read();
29105
- y = oy + read();
29106
- out.push({ t: "L", x, y });
29107
- break;
29108
- case "h":
29109
- x = (relative ? x : 0) + read();
29110
- out.push({ t: "L", x, y });
29111
- break;
29112
- case "v":
29113
- y = (relative ? y : 0) + read();
29114
- out.push({ t: "L", x, y });
29115
- break;
29116
- case "c": {
29117
- const x1 = ox + read(), y1 = oy + read(), x2 = ox + read(), y2 = oy + read();
29118
- out.push({ t: "C", x1, y1, x2, y2, x: x = ox + read(), y: y = oy + read() });
29119
- nextC = [x2, y2];
29120
- break;
29121
- }
29122
- case "s": {
29123
- const x1 = lastC ? 2 * x - lastC[0] : x, y1 = lastC ? 2 * y - lastC[1] : y;
29124
- const x2 = ox + read(), y2 = oy + read();
29125
- out.push({ t: "C", x1, y1, x2, y2, x: x = ox + read(), y: y = oy + read() });
29126
- nextC = [x2, y2];
29127
- break;
29128
- }
29129
- case "q":
29130
- case "t": {
29131
- let qx, qy;
29132
- if (lower === "q") {
29133
- qx = ox + read();
29134
- qy = oy + read();
29135
- } else {
29136
- qx = lastQ ? 2 * x - lastQ[0] : x;
29137
- qy = lastQ ? 2 * y - lastQ[1] : y;
29138
- }
29139
- const ex = ox + read(), ey = oy + read();
29140
- out.push({
29141
- t: "C",
29142
- x1: x + 2 / 3 * (qx - x),
29143
- y1: y + 2 / 3 * (qy - y),
29144
- x2: ex + 2 / 3 * (qx - ex),
29145
- y2: ey + 2 / 3 * (qy - ey),
29146
- x: ex,
29147
- y: ey
29148
- });
29149
- x = ex;
29150
- y = ey;
29151
- nextQ = [qx, qy];
29152
- break;
29153
- }
29154
- case "a": {
29155
- const rx = read(), ry = read(), rotation = read(), large = read(), sweep = read();
29156
- const ex = ox + read(), ey = oy + read();
29157
- arc(out, x, y, rx, ry, rotation, large !== 0, sweep !== 0, ex, ey);
29158
- x = ex;
29159
- y = ey;
29160
- break;
29161
- }
29162
- case "z":
29163
- out.push({ t: "Z" });
29164
- x = startX;
29165
- y = startY;
29166
- break;
29167
- }
29168
- lastC = nextC;
29169
- lastQ = nextQ;
29170
- if (lower === "z") command2 = "";
29171
- }
29172
- return out;
29173
- }
29174
- function arc(out, x0, y0, rxIn, ryIn, degrees, large, sweep, x, y) {
29175
- let rx = Math.abs(rxIn), ry = Math.abs(ryIn);
29176
- if (x0 === x && y0 === y || rx === 0 || ry === 0) {
29177
- out.push({ t: "L", x, y });
29178
- return;
29179
- }
29180
- const phi = degrees * Math.PI / 180, cos = Math.cos(phi), sin = Math.sin(phi);
29181
- const dx = (x0 - x) / 2, dy = (y0 - y) / 2;
29182
- const x1 = cos * dx + sin * dy, y1 = -sin * dx + cos * dy;
29183
- const lambda = x1 * x1 / (rx * rx) + y1 * y1 / (ry * ry);
29184
- if (lambda > 1) {
29185
- rx *= Math.sqrt(lambda);
29186
- ry *= Math.sqrt(lambda);
29187
- }
29188
- const numerator = rx * rx * ry * ry - rx * rx * y1 * y1 - ry * ry * x1 * x1;
29189
- const denominator = rx * rx * y1 * y1 + ry * ry * x1 * x1;
29190
- const factor = (large === sweep ? -1 : 1) * Math.sqrt(Math.max(0, numerator / (denominator || 1)));
29191
- const cx1 = factor * rx * y1 / ry, cy1 = -factor * ry * x1 / rx;
29192
- const cx = cos * cx1 - sin * cy1 + (x0 + x) / 2, cy = sin * cx1 + cos * cy1 + (y0 + y) / 2;
29193
- const angle = (ux, uy, vx, vy) => Math.atan2(ux * vy - uy * vx, ux * vx + uy * vy);
29194
- const start = angle(1, 0, (x1 - cx1) / rx, (y1 - cy1) / ry);
29195
- let delta = angle((x1 - cx1) / rx, (y1 - cy1) / ry, (-x1 - cx1) / rx, (-y1 - cy1) / ry);
29196
- if (!sweep && delta > 0) delta -= 2 * Math.PI;
29197
- else if (sweep && delta < 0) delta += 2 * Math.PI;
29198
- const pieces = Math.max(1, Math.ceil(Math.abs(delta) / (Math.PI / 2) - 1e-9));
29199
- const step = delta / pieces;
29200
- const k = 4 / 3 * Math.tan(step / 4);
29201
- const point = (t) => {
29202
- const c = Math.cos(t), s = Math.sin(t);
29203
- return [
29204
- cx + rx * c * cos - ry * s * sin,
29205
- cy + rx * c * sin + ry * s * cos,
29206
- -rx * s * cos - ry * c * sin,
29207
- -rx * s * sin + ry * c * cos
29208
- ];
29209
- };
29210
- for (let piece = 0; piece < pieces; piece++) {
29211
- const a = start + piece * step, b = a + step;
29212
- const [px, py, dpx, dpy] = point(a);
29213
- const [qx, qy, dqx, dqy] = point(b);
29214
- out.push({
29215
- t: "C",
29216
- x1: px + k * dpx,
29217
- y1: py + k * dpy,
29218
- x2: qx - k * dqx,
29219
- y2: qy - k * dqy,
29220
- x: piece === pieces - 1 ? x : qx,
29221
- y: piece === pieces - 1 ? y : qy
29222
- });
29223
- }
29224
- }
29225
29213
  var n2 = (value) => Number.isFinite(value) ? String(Math.round(value * 1e6) / 1e6) : "0";
29226
29214
  function pathOperators(segments) {
29227
29215
  return segments.map((segment) => {
@@ -29674,7 +29662,11 @@ var Converter = class {
29674
29662
  this.degraded.add("Bevel lighting is not drawn.");
29675
29663
  return;
29676
29664
  }
29677
- if (element.hasAttribute("data-perspective"))
29665
+ if (element.hasAttribute("data-solid3d"))
29666
+ this.degraded.add(
29667
+ "Perspective and extrusion are drawn from the projected outline with flat shading; text and pictures use a parallel projection."
29668
+ );
29669
+ else if (element.hasAttribute("data-perspective"))
29678
29670
  this.degraded.add("3-D rotation is drawn as a parallel projection without perspective.");
29679
29671
  if (element.hasAttribute("data-embedded-chart")) throw new PdfFallback("embedded chart");
29680
29672
  if (element.hasAttribute("filter") && !shadow && !glow2)
@@ -30107,8 +30099,8 @@ function createPrintSnapshot(model, options2) {
30107
30099
  within(width * height, limits.maxPageAreaCssPixels, "drawing area in CSS pixels");
30108
30100
  add("totalAreaCssPixels", width * height, limits.maxTotalAreaCssPixels);
30109
30101
  const resources = /* @__PURE__ */ new Set();
30110
- for (const layer of getVisioPageLayers(model, page3.id)) {
30111
- const stack2 = [...layer.shapes];
30102
+ for (const layer2 of getVisioPageLayers(model, page3.id)) {
30103
+ const stack2 = [...layer2.shapes];
30112
30104
  while (stack2.length) {
30113
30105
  const shape = stack2.pop();
30114
30106
  add("shapeInstances", 1, limits.maxShapeInstances);
@@ -30183,7 +30175,7 @@ function validationCost(model) {
30183
30175
  for (const note2 of model.diagnostics) strings(note2.code, note2.message);
30184
30176
  for (const page3 of model.pages) {
30185
30177
  strings(page3.id, page3.name, page3.backgroundPageId);
30186
- for (const layer of page3.layers ?? []) strings(layer.id, layer.name);
30178
+ for (const layer2 of page3.layers ?? []) strings(layer2.id, layer2.name);
30187
30179
  const stack2 = [...page3.shapes];
30188
30180
  while (stack2.length) {
30189
30181
  const shape = stack2.pop();
package/dist/xlsx.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { statusLayout, watchStatusWidth, defineChartExOptions } from './chunk-C4KI635Q.js';
2
2
  import { trackPointerGesture } from './chunk-GSXOZCAN.js';
3
3
  import { chartExSpaceFormatSource } from './chunk-7RRN2GPO.js';
4
- import './chunk-FQYCSYWH.js';
4
+ import './chunk-PMXLEYK6.js';
5
5
  import './chunk-DA57FPSN.js';
6
6
  import { createHostBackstagePages, syncRibbonAddIns, withHostMenuItems } from './chunk-6VF4FEMY.js';
7
7
  export { RIBBON_ADD_IN_EVENT } from './chunk-6VF4FEMY.js';
8
8
  import { needsPicturePixels, pictureSvg, pictureEffectFilter, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, smartArtStylesGalleryState, smartArtColorsGalleryState, safeColor, svgTile } from './chunk-GZNBWWJ5.js';
9
- import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-O3P6UH4P.js';
10
- export { XLSX_EDITOR_EVENTS } from './chunk-O3P6UH4P.js';
9
+ import { withExtension, saveExtension, downloadBytes, emit, emitEvent, blobFor, announceFileCommand, pickFile } from './chunk-FKLH7ZVV.js';
10
+ export { XLSX_EDITOR_EVENTS } from './chunk-FKLH7ZVV.js';
11
11
  import './chunk-BOTLS2PR.js';
12
12
  import './chunk-CDAXY5KC.js';
13
13
  import './chunk-NDUD5JJB.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ooxml-ui",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
5
5
  "keywords": [
6
6
  "custom-elements",
@@ -171,7 +171,7 @@
171
171
  "dompurify": "^3.4.17",
172
172
  "emf-converter": "4.23.1",
173
173
  "lit": "^3.3.3",
174
- "ooxml-core": "^1.35.0",
174
+ "ooxml-core": "^1.36.0",
175
175
  "opentype.js": "^2.0.0",
176
176
  "prosemirror-collab": "^1.3.1",
177
177
  "prosemirror-commands": "^1.7.2",
File without changes