ooxml-ui 1.38.0 → 1.39.1

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,2 +1,3 @@
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-FKLH7ZVV.js';
2
+ import { TEAMS_TAGS, registerTeams } from './chunk-FYBLAPAJ.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-PMXLEYK6.js';
1
+ export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-IZ7XMMMJ.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-FKLH7ZVV.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-FYBLAPAJ.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-FKLH7ZVV.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-FYBLAPAJ.js';
2
2
  export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
3
3
  import './chunk-CDAXY5KC.js';
4
4
  import './chunk-NDUD5JJB.js';
@@ -54,3 +54,4 @@ 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,10 +1,15 @@
1
1
  import { type VisioMatrix, type VisioShape } from 'ooxml-core/visio';
2
2
  /**
3
- * Bevel: an approximation. The shape's filled geometry is blurred by the bevel width, lit from the
4
- * top left with a diffuse light, and only the departure from a flat surface is kept: white where
5
- * the surface faces the light, black where it faces away. Inset bevels invert the light and hard
6
- * profiles narrow the blur. Visio's own bevel profiles, materials and lighting are not reproduced,
7
- * and the result changes slightly with the zoom because SVG lighting works on device pixels.
3
+ * Bevel: the shape's filled geometry becomes a height field and is lit.
4
+ *
5
+ * The geometry's alpha is blurred (the blur reads as a smooth distance to the edge), a transfer
6
+ * table from `bevelHeightTable` turns that distance into the bevel type's profile height, and
7
+ * `feDiffuseLighting` lights it with the directional light fitted to the shape's
8
+ * `BevelLightingType` (`bevelLight`). Only the departure from the flat face is kept: black where
9
+ * the surface is darker than the face, white where it is brighter, scaled by the material. The
10
+ * powder materials add a white lift. Straight edges follow the profile; corners are rounded by the
11
+ * blur where Visio mitres them, and the strength changes slightly with zoom because SVG lighting
12
+ * works on device pixels. See `bevel-shading.ts` for what was measured and what was shaped by eye.
8
13
  */
9
14
  export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix,
10
15
  /** The filter region when the paths were projected beyond the flat shape's box. */
@@ -18,9 +23,19 @@ box?: {
18
23
  * 3-D rotation: a parallel projection of the flat shape about its centre, as a matrix on a wrapper
19
24
  * group. A shape with perspective or an extrusion is drawn through `solidRender` instead: its
20
25
  * 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
26
+ * flat in that mode (text, pictures), see `flatContent`. Visio's own SVG export ignores the
22
27
  * rotation, its raster export draws it.
23
28
  */
24
29
  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;
30
+ /**
31
+ * The container for text and pictures of a shape drawn from projected paths: the pinhole
32
+ * projection of the shape's box fitted by one affine matrix (`projectionMatrix`), so the content
33
+ * follows the perspective's overall foreshortening and shear but not its convergence.
34
+ */
35
+ export declare function flatContent(shape: VisioShape, world: VisioMatrix): SVGGElement;
36
+ /**
37
+ * The container for the children of a group that is turned in 3-D: the group's projection fitted
38
+ * by one matrix (exact for a parallel rotation, an affine fit for perspective), so every child is
39
+ * turned with the group about the group's centre. A child's own rotation composes inside it.
40
+ */
41
+ export declare function groupChildrenWrapper(shape: VisioShape, world: VisioMatrix): SVGGElement | undefined;
@@ -9,7 +9,9 @@ export interface TabbedSegment {
9
9
  export declare const lineHasTab: (line: PositionedLine) => boolean;
10
10
  /**
11
11
  * Splits a left-aligned line at its tab characters and places each part at the tab stop it
12
- * reaches (see `visioTabStarts`). The tab characters themselves are not drawn. Lines of other
13
- * alignments keep their single run of text, as before.
12
+ * reaches (see `visioTabStarts`). The tab characters themselves are not drawn. A centred or
13
+ * right-aligned line is laid out from its own start (Visio 16 measures the stops from there) and
14
+ * the whole line then moves to its anchor; justified and distributed lines keep their single run
15
+ * of text, as before.
14
16
  */
15
17
  export declare function layoutTabbedLine(line: PositionedLine, measure?: MeasureText): TabbedSegment[] | undefined;
@@ -11,5 +11,5 @@ export declare class ViewerInlineSize {
11
11
  constructor(root: ShadowRoot, controller: ViewerController);
12
12
  wire(): () => void;
13
13
  inputs(): HTMLInputElement[];
14
- render(state: ViewerState): void;
14
+ render(state: ViewerState, committed?: boolean): void;
15
15
  }
package/dist/visio.js CHANGED
@@ -11,9 +11,9 @@ import { definePresence } from './chunk-YZH2QS7J.js';
11
11
  import { parseSvgPreview } from './chunk-FN7IF6M6.js';
12
12
  import './chunk-QLHCGV4C.js';
13
13
  import './chunk-XL77FR4B.js';
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';
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, visioDataGraphicOwners, 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, 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';
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, createProjection, projectionMatrix, 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, bevelMaterial, bevelLight, bevelHeightTable, 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, BEVEL_BLUR_WIDTHS } 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';
@@ -2489,7 +2489,9 @@ var widthOf = (runs, measure, stop) => {
2489
2489
  return width;
2490
2490
  };
2491
2491
  function layoutTabbedLine(line, measure = measureBrowserText) {
2492
- if (line.align !== "left" || line.direction !== "ltr" || !lineHasTab(line)) return void 0;
2492
+ const anchored = line.align === "center" || line.align === "right";
2493
+ if (line.align !== "left" && !anchored || line.direction !== "ltr" || !lineHasTab(line))
2494
+ return void 0;
2493
2495
  const parts = [[]];
2494
2496
  for (const run of line.runs) {
2495
2497
  const pieces = run.text.split(" ");
@@ -2503,7 +2505,15 @@ function layoutTabbedLine(line, measure = measureBrowserText) {
2503
2505
  const decimal = runs.some((run) => run.text.includes(".")) ? widthOf(runs, measure, ".") : width;
2504
2506
  return { width, decimal };
2505
2507
  });
2506
- const starts = visioTabStarts(segments, line.tabs?.stops ?? [], line.tabs?.origin ?? 0, line.x);
2508
+ const stops = line.tabs?.stops ?? [];
2509
+ let starts;
2510
+ if (anchored) {
2511
+ starts = visioTabStarts(segments, stops);
2512
+ const last = segments.length - 1;
2513
+ const width = starts[last] + segments[last].width;
2514
+ const shift = line.x - (line.align === "center" ? width / 2 : width);
2515
+ starts = starts.map((at) => at + shift);
2516
+ } else starts = visioTabStarts(segments, stops, line.tabs?.origin ?? 0, line.x);
2507
2517
  return parts.map((runs, index) => ({ runs, x: starts[index] }));
2508
2518
  }
2509
2519
 
@@ -2818,18 +2828,18 @@ function renderShapeEffects(shape, paths, defs, world) {
2818
2828
  return { below, geometryFilter: `url(#${filter.id})` };
2819
2829
  }
2820
2830
  var bevelId = 0;
2821
- var ELEVATION = 45;
2822
- var FLAT = Math.sin(ELEVATION * Math.PI / 180);
2831
+ var PIXELS_PER_INCH = 96;
2823
2832
  var scale2 = (world) => Math.sqrt(Math.abs(world[0] * world[3] - world[1] * world[2])) || 1;
2824
2833
  function renderBevel(shape, paths, defs, world, box2) {
2825
2834
  const bevel = shape.style.bevel;
2826
2835
  const filled = paths.filter((path) => path.getAttribute("fill") !== "none");
2827
- if (!bevel || !filled.length || bevel.width <= 0 && bevel.height <= 0) return void 0;
2836
+ if (!bevel || !filled.length || bevel.width <= 0 || bevel.height <= 0) return void 0;
2837
+ const material = bevelMaterial(bevel.material ?? 0);
2838
+ if (material.contrast <= 0 && material.lift <= 0) return void 0;
2828
2839
  const unit2 = scale2(world);
2829
- const width = Math.max(bevel.width, bevel.height) / unit2;
2830
- const sharp = VISIO_BEVEL_TYPES_SHARP.includes(bevel.type);
2831
- const inset = VISIO_BEVEL_TYPES_INSET.includes(bevel.type);
2832
- const radius = (sharp ? width / 4 : width / 2) || 1e-6;
2840
+ const width = bevel.width / unit2;
2841
+ const light = bevelLight(bevel.lighting ?? 0);
2842
+ const table = bevelHeightTable(bevel.type);
2833
2843
  const filter = svgElement("filter");
2834
2844
  filter.id = `visio-bevel-${++bevelId}`;
2835
2845
  filter.setAttribute("filterUnits", "userSpaceOnUse");
@@ -2849,33 +2859,53 @@ function renderBevel(shape, paths, defs, world, box2) {
2849
2859
  filter.append(node);
2850
2860
  return node;
2851
2861
  };
2852
- add("feGaussianBlur", { in: "SourceAlpha", stdDeviation: radius, result: "height" });
2853
- const light = add("feDiffuseLighting", {
2854
- in: "height",
2855
- surfaceScale: Math.min(10, 2 + bevel.height * 72 / 2) * (sharp ? 1.5 : 1),
2856
- diffuseConstant: 1,
2857
- "lighting-color": "#ffffff",
2858
- result: "lit"
2859
- });
2860
- const distant = svgElement("feDistantLight");
2861
- light.append(distant);
2862
- distant.setAttribute("azimuth", String(inset ? 45 : 225));
2863
- distant.setAttribute("elevation", String(ELEVATION));
2864
- const gain = sharp ? 5 : 3;
2865
- add("feColorMatrix", {
2866
- in: "lit",
2867
- type: "matrix",
2868
- values: `0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ${gain} 0 0 0 ${-gain * FLAT}`,
2869
- result: "high"
2870
- });
2871
- add("feColorMatrix", {
2872
- in: "lit",
2873
- type: "matrix",
2874
- values: `0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${-gain} 0 0 0 ${gain * FLAT}`,
2875
- result: "low"
2876
- });
2862
+ const merge = [];
2863
+ if (material.lift > 0) {
2864
+ add("feFlood", { "flood-color": "#ffffff", "flood-opacity": material.lift, result: "lift" });
2865
+ add("feComposite", { in: "lift", in2: "SourceAlpha", operator: "in", result: "lifted" });
2866
+ merge.push("lifted");
2867
+ }
2868
+ if (material.contrast > 0) {
2869
+ add("feGaussianBlur", {
2870
+ in: "SourceAlpha",
2871
+ stdDeviation: width * BEVEL_BLUR_WIDTHS || 1e-6,
2872
+ result: "blurred"
2873
+ });
2874
+ const transfer = add("feComponentTransfer", { in: "blurred", result: "height" });
2875
+ const func = svgElement("feFuncA");
2876
+ func.setAttribute("type", "table");
2877
+ func.setAttribute("tableValues", table.values.join(" "));
2878
+ transfer.append(func);
2879
+ const lit = add("feDiffuseLighting", {
2880
+ in: "height",
2881
+ surfaceScale: Math.min(60, table.rise * bevel.height * PIXELS_PER_INCH),
2882
+ diffuseConstant: 1,
2883
+ "lighting-color": "#ffffff",
2884
+ result: "lit"
2885
+ });
2886
+ const distant = svgElement("feDistantLight");
2887
+ lit.append(distant);
2888
+ distant.setAttribute("azimuth", String(light.azimuth));
2889
+ distant.setAttribute("elevation", String(Math.max(1, Math.min(90, light.elevation))));
2890
+ const [offset, slope] = [light.ambient / light.face, light.diffuse / light.face];
2891
+ const c = material.contrast;
2892
+ const row = (color3, k, k0) => `0 0 0 0 ${color3} 0 0 0 0 ${color3} 0 0 0 0 ${color3} ${k} 0 0 0 ${k0}`;
2893
+ add("feColorMatrix", {
2894
+ in: "lit",
2895
+ type: "matrix",
2896
+ values: row(0, -c * slope, c * (1 - offset)),
2897
+ result: "low"
2898
+ });
2899
+ add("feColorMatrix", {
2900
+ in: "lit",
2901
+ type: "matrix",
2902
+ values: row(1, 0.6 * c * slope, 0.6 * c * (offset - 1)),
2903
+ result: "high"
2904
+ });
2905
+ merge.push("low", "high");
2906
+ }
2877
2907
  add("feMerge", { result: "both" }).append(
2878
- ...["low", "high"].map((name) => {
2908
+ ...merge.map((name) => {
2879
2909
  const node = svgElement("feMergeNode");
2880
2910
  node.setAttribute("in", name);
2881
2911
  return node;
@@ -2885,10 +2915,10 @@ function renderBevel(shape, paths, defs, world, box2) {
2885
2915
  defs.append(filter);
2886
2916
  const group2 = svgElement("g");
2887
2917
  group2.dataset.bevel = "";
2918
+ group2.dataset.bevelType = String(bevel.type);
2888
2919
  group2.setAttribute("pointer-events", "none");
2889
2920
  group2.setAttribute("aria-hidden", "true");
2890
2921
  group2.setAttribute("filter", `url(#${filter.id})`);
2891
- group2.setAttribute("opacity", "0.6");
2892
2922
  for (const source of filled) {
2893
2923
  const copy = svgElement("path");
2894
2924
  copy.setAttribute("d", source.getAttribute("d") ?? "");
@@ -2914,11 +2944,36 @@ function rotation3dWrapper(shape, projected = false) {
2914
2944
  );
2915
2945
  return wrapper;
2916
2946
  }
2917
- function flatContent(shape) {
2918
- const wrapper = rotation3dWrapper(shape);
2919
- delete wrapper.dataset.rotation3d;
2920
- delete wrapper.dataset.perspective;
2947
+ function flatContent(shape, world) {
2948
+ const rotation = shape.style.rotation3d;
2949
+ const projection = createProjection(
2950
+ rotation,
2951
+ { x: shape.width / 2, y: shape.height / 2 },
2952
+ scale2(world)
2953
+ );
2954
+ const wrapper = svgElement("g");
2921
2955
  wrapper.dataset.solidFlat = "";
2956
+ wrapper.setAttribute(
2957
+ "transform",
2958
+ `matrix(${projectionMatrix(projection, shape.width, shape.height).join(" ")})`
2959
+ );
2960
+ return wrapper;
2961
+ }
2962
+ function groupChildrenWrapper(shape, world) {
2963
+ const rotation = shape.style.rotation3d;
2964
+ if (shape.kind !== "group" || !rotation) return void 0;
2965
+ const projection = createProjection(
2966
+ rotation,
2967
+ { x: shape.width / 2, y: shape.height / 2 },
2968
+ scale2(world)
2969
+ );
2970
+ const wrapper = svgElement("g");
2971
+ wrapper.dataset.group3d = "";
2972
+ if (rotation.perspective > 0) wrapper.dataset.group3dPerspective = "";
2973
+ wrapper.setAttribute(
2974
+ "transform",
2975
+ `matrix(${projectionMatrix(projection, shape.width, shape.height).join(" ")})`
2976
+ );
2922
2977
  return wrapper;
2923
2978
  }
2924
2979
  var inchesPerUnit = (world) => Math.sqrt(Math.abs(world[0] * world[3] - world[1] * world[2])) || 1;
@@ -3122,7 +3177,9 @@ function drawShape(shape, parent, context, pageId, parentTransform = VISIO_IDENT
3122
3177
  const world = composeVisioTransform(parentTransform, shape.transform);
3123
3178
  const own = () => drawOwn(shape, group2, context, world);
3124
3179
  const children = () => {
3125
- for (const child of shape.children) drawShape(child, group2, context, pageId, world);
3180
+ const host = groupChildrenWrapper(shape, world);
3181
+ if (host) group2.append(host);
3182
+ for (const child of shape.children) drawShape(child, host ?? group2, context, pageId, world);
3126
3183
  };
3127
3184
  if (shape.kind === "group" && shape.groupDisplayMode === 0) {
3128
3185
  children();
@@ -3142,7 +3199,7 @@ function drawOwn(shape, outer, context, world) {
3142
3199
  const turned = rotation3dWrapper(shape, !!solid);
3143
3200
  if (turned) outer.append(turned);
3144
3201
  const group2 = turned ?? outer;
3145
- const flat = solid && !shape.style.rotation3d?.keepTextFlat ? flatContent(shape) : group2;
3202
+ const flat = solid && !shape.style.rotation3d?.keepTextFlat ? flatContent(shape, world) : group2;
3146
3203
  const lineStyle = context.static ? visioSvgStrokeStyle(shape.style) : shape.style;
3147
3204
  if (context.interactive && shape.text.plainText && !shape.geometry.some(
3148
3205
  (geometry) => geometry.fill && shape.style.fill !== "none" || geometry.stroke && shape.style.linePattern !== 0
@@ -7349,8 +7406,6 @@ var deCommands = {
7349
7406
  "Isometric Left Down": "Isometrisch links unten",
7350
7407
  "Isometric Right Up": "Isometrisch rechts oben",
7351
7408
  "Isometric Top Up": "Isometrisch oben",
7352
- "Off Axis Left": "Au\xDFeraxial links",
7353
- "Off Axis Right": "Au\xDFeraxial rechts",
7354
7409
  "Perspective Left": "Perspektive links",
7355
7410
  "Perspective Right": "Perspektive rechts",
7356
7411
  "Perspective Relaxed": "Perspektive entspannt",
@@ -7358,6 +7413,18 @@ var deCommands = {
7358
7413
  "Perspective Below": "Perspektive unten",
7359
7414
  "Perspective Heroic Left": "Perspektive heroisch links",
7360
7415
  "Perspective Heroic Right": "Perspektive heroisch rechts",
7416
+ "Isometric Bottom Down": "Isometrisch unten",
7417
+ "Off Axis 1 Left": "Au\xDFeraxial 1 links",
7418
+ "Off Axis 1 Right": "Au\xDFeraxial 1 rechts",
7419
+ "Off Axis 1 Top": "Au\xDFeraxial 1 oben",
7420
+ "Off Axis 2 Left": "Au\xDFeraxial 2 links",
7421
+ "Off Axis 2 Right": "Au\xDFeraxial 2 rechts",
7422
+ "Off Axis 2 Top": "Au\xDFeraxial 2 oben",
7423
+ "Perspective Relaxed Moderately": "Perspektive m\xE4\xDFig entspannt",
7424
+ "Perspective Contrasting Left": "Perspektive kontrastierend links",
7425
+ "Perspective Contrasting Right": "Perspektive kontrastierend rechts",
7426
+ "Perspective Heroic Extreme Left": "Perspektive extrem heroisch links",
7427
+ "Perspective Heroic Extreme Right": "Perspektive extrem heroisch rechts",
7361
7428
  Arrange: "Anordnen",
7362
7429
  Align: "Ausrichten",
7363
7430
  "Align Center": "Zentrieren",
@@ -7899,8 +7966,6 @@ var enCommands = {
7899
7966
  "Isometric Left Down": "Isometric Left Down",
7900
7967
  "Isometric Right Up": "Isometric Right Up",
7901
7968
  "Isometric Top Up": "Isometric Top Up",
7902
- "Off Axis Left": "Off Axis Left",
7903
- "Off Axis Right": "Off Axis Right",
7904
7969
  "Perspective Left": "Perspective Left",
7905
7970
  "Perspective Right": "Perspective Right",
7906
7971
  "Perspective Relaxed": "Perspective Relaxed",
@@ -7908,6 +7973,18 @@ var enCommands = {
7908
7973
  "Perspective Below": "Perspective Below",
7909
7974
  "Perspective Heroic Left": "Perspective Heroic Left",
7910
7975
  "Perspective Heroic Right": "Perspective Heroic Right",
7976
+ "Isometric Bottom Down": "Isometric Bottom Down",
7977
+ "Off Axis 1 Left": "Off Axis 1 Left",
7978
+ "Off Axis 1 Right": "Off Axis 1 Right",
7979
+ "Off Axis 1 Top": "Off Axis 1 Top",
7980
+ "Off Axis 2 Left": "Off Axis 2 Left",
7981
+ "Off Axis 2 Right": "Off Axis 2 Right",
7982
+ "Off Axis 2 Top": "Off Axis 2 Top",
7983
+ "Perspective Relaxed Moderately": "Perspective Relaxed Moderately",
7984
+ "Perspective Contrasting Left": "Perspective Contrasting Left",
7985
+ "Perspective Contrasting Right": "Perspective Contrasting Right",
7986
+ "Perspective Heroic Extreme Left": "Perspective Heroic Extreme Left",
7987
+ "Perspective Heroic Extreme Right": "Perspective Heroic Extreme Right",
7911
7988
  Arrange: "Arrange",
7912
7989
  Align: "Align",
7913
7990
  "Align Center": "Align Center",
@@ -8449,8 +8526,6 @@ var esCommands = {
8449
8526
  "Isometric Left Down": "Isom\xE9trica izquierda abajo",
8450
8527
  "Isometric Right Up": "Isom\xE9trica derecha arriba",
8451
8528
  "Isometric Top Up": "Isom\xE9trica superior arriba",
8452
- "Off Axis Left": "Fuera de eje izquierda",
8453
- "Off Axis Right": "Fuera de eje derecha",
8454
8529
  "Perspective Left": "Perspectiva izquierda",
8455
8530
  "Perspective Right": "Perspectiva derecha",
8456
8531
  "Perspective Relaxed": "Perspectiva relajada",
@@ -8458,6 +8533,18 @@ var esCommands = {
8458
8533
  "Perspective Below": "Perspectiva inferior",
8459
8534
  "Perspective Heroic Left": "Perspectiva heroica izquierda",
8460
8535
  "Perspective Heroic Right": "Perspectiva heroica derecha",
8536
+ "Isometric Bottom Down": "Isom\xE9trica inferior abajo",
8537
+ "Off Axis 1 Left": "Fuera de eje 1 izquierda",
8538
+ "Off Axis 1 Right": "Fuera de eje 1 derecha",
8539
+ "Off Axis 1 Top": "Fuera de eje 1 superior",
8540
+ "Off Axis 2 Left": "Fuera de eje 2 izquierda",
8541
+ "Off Axis 2 Right": "Fuera de eje 2 derecha",
8542
+ "Off Axis 2 Top": "Fuera de eje 2 superior",
8543
+ "Perspective Relaxed Moderately": "Perspectiva moderadamente relajada",
8544
+ "Perspective Contrasting Left": "Perspectiva contrastada izquierda",
8545
+ "Perspective Contrasting Right": "Perspectiva contrastada derecha",
8546
+ "Perspective Heroic Extreme Left": "Perspectiva heroica extrema izquierda",
8547
+ "Perspective Heroic Extreme Right": "Perspectiva heroica extrema derecha",
8461
8548
  Arrange: "Organizar",
8462
8549
  Align: "Alinear",
8463
8550
  "Align Center": "Alinear al centro",
@@ -8999,8 +9086,6 @@ var frCommands = {
8999
9086
  "Isometric Left Down": "Isom\xE9trique gauche bas",
9000
9087
  "Isometric Right Up": "Isom\xE9trique droite haut",
9001
9088
  "Isometric Top Up": "Isom\xE9trique dessus haut",
9002
- "Off Axis Left": "Hors axe gauche",
9003
- "Off Axis Right": "Hors axe droit",
9004
9089
  "Perspective Left": "Perspective gauche",
9005
9090
  "Perspective Right": "Perspective droite",
9006
9091
  "Perspective Relaxed": "Perspective d\xE9tendue",
@@ -9008,6 +9093,18 @@ var frCommands = {
9008
9093
  "Perspective Below": "Perspective dessous",
9009
9094
  "Perspective Heroic Left": "Perspective h\xE9ro\xEFque gauche",
9010
9095
  "Perspective Heroic Right": "Perspective h\xE9ro\xEFque droite",
9096
+ "Isometric Bottom Down": "Isom\xE9trique dessous bas",
9097
+ "Off Axis 1 Left": "Hors axe 1 gauche",
9098
+ "Off Axis 1 Right": "Hors axe 1 droit",
9099
+ "Off Axis 1 Top": "Hors axe 1 dessus",
9100
+ "Off Axis 2 Left": "Hors axe 2 gauche",
9101
+ "Off Axis 2 Right": "Hors axe 2 droit",
9102
+ "Off Axis 2 Top": "Hors axe 2 dessus",
9103
+ "Perspective Relaxed Moderately": "Perspective mod\xE9r\xE9ment d\xE9tendue",
9104
+ "Perspective Contrasting Left": "Perspective contrast\xE9e gauche",
9105
+ "Perspective Contrasting Right": "Perspective contrast\xE9e droite",
9106
+ "Perspective Heroic Extreme Left": "Perspective h\xE9ro\xEFque extr\xEAme gauche",
9107
+ "Perspective Heroic Extreme Right": "Perspective h\xE9ro\xEFque extr\xEAme droite",
9011
9108
  Arrange: "Organiser",
9012
9109
  Align: "Aligner",
9013
9110
  "Align Center": "Aligner au centre",
@@ -9549,8 +9646,6 @@ var zhCNCommands = {
9549
9646
  "Isometric Left Down": "\u7B49\u8F74\u5DE6\u4E0B",
9550
9647
  "Isometric Right Up": "\u7B49\u8F74\u53F3\u4E0A",
9551
9648
  "Isometric Top Up": "\u7B49\u8F74\u9876\u90E8\u5411\u4E0A",
9552
- "Off Axis Left": "\u79BB\u8F74\u5DE6",
9553
- "Off Axis Right": "\u79BB\u8F74\u53F3",
9554
9649
  "Perspective Left": "\u900F\u89C6\u5DE6",
9555
9650
  "Perspective Right": "\u900F\u89C6\u53F3",
9556
9651
  "Perspective Relaxed": "\u900F\u89C6\u653E\u677E",
@@ -9558,6 +9653,18 @@ var zhCNCommands = {
9558
9653
  "Perspective Below": "\u900F\u89C6\u4E0B\u65B9",
9559
9654
  "Perspective Heroic Left": "\u900F\u89C6\u82F1\u96C4\u5DE6",
9560
9655
  "Perspective Heroic Right": "\u900F\u89C6\u82F1\u96C4\u53F3",
9656
+ "Isometric Bottom Down": "\u7B49\u8F74\u5E95\u90E8\u5411\u4E0B",
9657
+ "Off Axis 1 Left": "\u79BB\u8F741\u5DE6",
9658
+ "Off Axis 1 Right": "\u79BB\u8F741\u53F3",
9659
+ "Off Axis 1 Top": "\u79BB\u8F741\u9876\u90E8",
9660
+ "Off Axis 2 Left": "\u79BB\u8F742\u5DE6",
9661
+ "Off Axis 2 Right": "\u79BB\u8F742\u53F3",
9662
+ "Off Axis 2 Top": "\u79BB\u8F742\u9876\u90E8",
9663
+ "Perspective Relaxed Moderately": "\u900F\u89C6\u9002\u5EA6\u653E\u677E",
9664
+ "Perspective Contrasting Left": "\u900F\u89C6\u5BF9\u6BD4\u5DE6",
9665
+ "Perspective Contrasting Right": "\u900F\u89C6\u5BF9\u6BD4\u53F3",
9666
+ "Perspective Heroic Extreme Left": "\u900F\u89C6\u6781\u7AEF\u82F1\u96C4\u5DE6",
9667
+ "Perspective Heroic Extreme Right": "\u900F\u89C6\u6781\u7AEF\u82F1\u96C4\u53F3",
9561
9668
  Arrange: "\u6392\u5217",
9562
9669
  Align: "\u5BF9\u9F50",
9563
9670
  "Align Center": "\u5C45\u4E2D\u5BF9\u9F50",
@@ -15677,6 +15784,10 @@ function templateThumbnail(id) {
15677
15784
  }
15678
15785
  })();
15679
15786
  cache.set(id, found);
15787
+ const pending = found;
15788
+ void pending.then((source) => {
15789
+ if (!source && cache.get(id) === pending) cache.delete(id);
15790
+ });
15680
15791
  }
15681
15792
  return found;
15682
15793
  }
@@ -16403,8 +16514,18 @@ var ViewerInlineSize = class {
16403
16514
  wire() {
16404
16515
  const Abort = this.root.ownerDocument.defaultView?.AbortController ?? AbortController;
16405
16516
  const events = new Abort();
16406
- for (const input of this.inputs())
16517
+ for (const input of this.inputs()) {
16407
16518
  input.addEventListener("change", () => void this.#commit(input), { signal: events.signal });
16519
+ input.addEventListener(
16520
+ "keydown",
16521
+ (event) => {
16522
+ if (event.key !== "Enter" || event.isComposing) return;
16523
+ event.preventDefault();
16524
+ void this.#commit(input);
16525
+ },
16526
+ { signal: events.signal }
16527
+ );
16528
+ }
16408
16529
  return () => events.abort();
16409
16530
  }
16410
16531
  inputs() {
@@ -16420,28 +16541,28 @@ var ViewerInlineSize = class {
16420
16541
  const state = this.controller.state;
16421
16542
  const selection2 = this.#selection(state);
16422
16543
  if (!selection2 || state.loading || state.edit.busy || !canEditDiagram(state)) {
16423
- this.render(state);
16544
+ this.render(state, true);
16424
16545
  return;
16425
16546
  }
16426
16547
  const command2 = Number.isFinite(input.valueAsNumber) ? visioSizePositionCommand(selection2.page, selection2.id, field, input.valueAsNumber) : void 0;
16427
16548
  if (!command2?.length) {
16428
- this.render(state);
16549
+ this.render(state, true);
16429
16550
  return;
16430
16551
  }
16431
16552
  try {
16432
16553
  await this.controller.applySelectionEdits(command2);
16433
16554
  } catch (error) {
16434
- if (!isEditCancellation(error)) this.render(this.controller.state);
16555
+ if (!isEditCancellation(error)) this.render(this.controller.state, true);
16435
16556
  }
16436
- this.render(this.controller.state);
16557
+ this.render(this.controller.state, true);
16437
16558
  }
16438
- render(state) {
16559
+ render(state, committed = false) {
16439
16560
  const selection2 = this.#selection(state);
16440
16561
  const values = selection2 ? visioSizePositionState(selection2.page, selection2.id) : void 0;
16441
16562
  const editable3 = !!values && canEditDiagram(state) && !state.loading && !state.edit.busy;
16442
16563
  for (const input of this.inputs()) {
16443
16564
  const field = input.dataset.inlineSize;
16444
- if (input.ownerDocument.activeElement !== input)
16565
+ if (committed || this.root.activeElement !== input)
16445
16566
  input.value = values ? String(values[field]) : "";
16446
16567
  input.disabled = !editable3;
16447
16568
  }
@@ -24968,9 +25089,7 @@ var ViewerData = class {
24968
25089
  "graphic-remove"
24969
25090
  ])
24970
25091
  set(id, editing && fields2 > 0);
24971
- const arranged = editing && !!page3 && [...visioDataGraphicParts(page3).keys()].some(
24972
- (owner) => owner !== "legend" && visioDataGraphicConfigs(page3, owner).length > 0
24973
- );
25092
+ const arranged = editing && !!page3 && visioDataGraphicOwners(page3).some((owner) => visioDataGraphicConfigs(page3, owner).length > 0);
24974
25093
  for (const id of ["graphic-configure", "graphic-auto-space", "graphic-position"])
24975
25094
  set(id, arranged);
24976
25095
  for (const place of VISIO_DATA_GRAPHIC_POSITIONS) set(POSITION_PREFIX + place, arranged);
@@ -26717,7 +26836,7 @@ var TABS2 = [
26717
26836
  }
26718
26837
  ]
26719
26838
  ],
26720
- ["tabs", "Tabs", []],
26839
+ ["tabs", "Tabs", [{ key: "tabStops", label: "Tab stops (pt)", kind: "list" }]],
26721
26840
  [
26722
26841
  "bullets",
26723
26842
  "Bullets",
@@ -26737,7 +26856,7 @@ var TABS2 = [
26737
26856
  ];
26738
26857
  var NOTES = {
26739
26858
  character: "Character scale and position offsets are not supported. Positive spacing expands and negative spacing condenses.",
26740
- tabs: "Tab stops are not written by this editor: the Tabs section layout is not verified against Visio and the renderer does not lay out tab stops. Existing tab stops are kept.",
26859
+ tabs: "List tab stops in points from the text block, each with left, center, right or decimal (left by default), for example 36, 108 center, 180 decimal. The stops replace the shape's Tabs row; with none, tabs step 0.5 in.",
26741
26860
  bullets: "A custom character replaces the style glyph. Bullet fonts and sizes are kept."
26742
26861
  };
26743
26862
  function createTextDialog(root, press) {
@@ -26788,7 +26907,7 @@ function createTextDialog(root, press) {
26788
26907
  input2.name = `text-${field.key}`;
26789
26908
  input2.setAttribute("aria-label", field.label);
26790
26909
  if (input2 instanceof HTMLInputElement) {
26791
- input2.type = field.kind === "check" ? "checkbox" : field.kind === "color" ? "color" : field.kind;
26910
+ input2.type = field.kind === "check" ? "checkbox" : field.kind === "color" ? "color" : field.kind === "list" ? "text" : field.kind;
26792
26911
  if (field.kind === "number") {
26793
26912
  input2.min = String(field.min);
26794
26913
  input2.max = String(field.max);
@@ -29659,12 +29778,16 @@ var Converter = class {
29659
29778
  return;
29660
29779
  }
29661
29780
  if (element.hasAttribute("data-bevel")) {
29662
- this.degraded.add("Bevel lighting is not drawn.");
29781
+ this.degraded.add("Bevel profiles and lighting are not drawn.");
29663
29782
  return;
29664
29783
  }
29784
+ if (element.hasAttribute("data-group3d-perspective"))
29785
+ this.degraded.add(
29786
+ "The children of a group turned with perspective use one affine fit of the projection."
29787
+ );
29665
29788
  if (element.hasAttribute("data-solid3d"))
29666
29789
  this.degraded.add(
29667
- "Perspective and extrusion are drawn from the projected outline with flat shading; text and pictures use a parallel projection."
29790
+ "Perspective and extrusion are drawn from the projected outline with flat shading; text and pictures use one affine fit of the projection (no convergence)."
29668
29791
  );
29669
29792
  else if (element.hasAttribute("data-perspective"))
29670
29793
  this.degraded.add("3-D rotation is drawn as a parallel projection without perspective.");
@@ -0,0 +1,3 @@
1
+ import { type EditorContext } from 'ooxml-core/xlsx/ui';
2
+ /** The existing comment command also edits the replies of an imported thread. */
3
+ export declare function openCommentEditor(ctx: EditorContext): Promise<string | undefined>;