ooxml-ui 1.37.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/building-block-styles.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-options.d.ts +0 -1
- package/dist/chart/format-pane-targets.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chrome/account.d.ts +1 -2
- package/dist/chrome/find-replace-fields.d.ts +0 -1
- package/dist/chrome/ruler.d.ts +1 -2
- package/dist/chrome/tab-drag.d.ts +0 -1
- package/dist/{chunk-FQYCSYWH.js → chunk-IZ7XMMMJ.js} +1 -1
- package/dist/dialog/dialog-session.d.ts +0 -1
- package/dist/form/checkable.d.ts +0 -1
- package/dist/form/radio.d.ts +1 -2
- package/dist/form/range-control.d.ts +0 -1
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.js +2 -2
- package/dist/picture-artistic-filters.d.ts +0 -1
- package/dist/registry.d.ts +0 -1
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/ribbon-stack.d.ts +1 -2
- package/dist/styles.d.ts +0 -1
- package/dist/teams.js +1 -1
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/dist/tokens.d.ts +0 -1
- package/dist/visio/pdf-path.d.ts +2 -24
- package/dist/visio/render-bevel.d.ts +35 -9
- package/dist/visio/render-solid.d.ts +28 -0
- package/dist/visio/tab-layout.d.ts +4 -2
- package/dist/visio/viewer-inline-size.d.ts +1 -1
- package/dist/visio.js +427 -312
- package/dist/xlsx/dialogs/comment-editor.d.ts +3 -0
- package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
- package/dist/xlsx.js +209 -136
- package/package.json +2 -2
- /package/dist/{chunk-O3P6UH4P.js → chunk-FYBLAPAJ.js} +0 -0
|
@@ -2,4 +2,3 @@ export type OfficeUiBlockKind = 'toolbar' | 'formula-bar' | 'tabs' | 'inspector'
|
|
|
2
2
|
export type OfficeUiProduct = 'docx' | 'xlsx' | 'visio' | 'pptx';
|
|
3
3
|
/** Opt-in styles for native framework controls. They never target host-owned controls implicitly. */
|
|
4
4
|
export declare const BUILDING_BLOCKS_CSS: string;
|
|
5
|
-
//# sourceMappingURL=building-block-styles.d.ts.map
|
|
@@ -20,4 +20,3 @@ export declare function chartFormatSourceTabs(source: ChartFormatSource, target:
|
|
|
20
20
|
* the mode's first tab. A `flat` source gets every chart section on one page.
|
|
21
21
|
*/
|
|
22
22
|
export declare function buildChartFormatModel(source: ChartFormatSource, targetKey: string | undefined, tab?: ChartFormatTabId, mode?: ChartFormatPaneMode): ChartFormatPaneModel;
|
|
23
|
-
//# sourceMappingURL=format-pane-model.d.ts.map
|
|
@@ -11,4 +11,3 @@ type OptionsSource = Pick<ChartFormatSource, 'seriesOptions' | 'axisOptions' | '
|
|
|
11
11
|
/** The Options tab's sections for `target`, or `undefined` when the target has no options. */
|
|
12
12
|
export declare function optionsSections(source: OptionsSource, target: ChartFormatTarget): ChartFormatSection[] | undefined;
|
|
13
13
|
export {};
|
|
14
|
-
//# sourceMappingURL=format-pane-options.d.ts.map
|
|
@@ -22,4 +22,3 @@ export declare function chartFormatPaneTitle(target: ChartFormatTarget): ChartFo
|
|
|
22
22
|
export declare function chartFormatTargetOptions(targets: readonly ChartFormatTarget[], describe: ChartFormatDescribe): ChartFormatTargetOption[];
|
|
23
23
|
/** The chart area entry, what a stale or missing key falls back to. */
|
|
24
24
|
export declare const CHART_AREA_TARGET: ChartFormatTargetOption;
|
|
25
|
-
//# sourceMappingURL=format-pane-targets.d.ts.map
|
|
@@ -4,4 +4,3 @@ import type { ChartFormatTextView } from './format-pane-view.js';
|
|
|
4
4
|
export declare function chartTextTabs(): ChartFormatTab[];
|
|
5
5
|
/** The sections of Text Options tab `tab`. */
|
|
6
6
|
export declare function textOptionsSections(text: ChartFormatTextView, tab: 'textFill' | 'textEffects' | 'textBox'): ChartFormatSection[];
|
|
7
|
-
//# sourceMappingURL=format-pane-text.d.ts.map
|
package/dist/chrome/account.d.ts
CHANGED
|
@@ -14,5 +14,4 @@ export declare class OfficeUiAccount extends OfficeElement {
|
|
|
14
14
|
private onSwatchKey;
|
|
15
15
|
protected render(): import("lit").TemplateResult<1>;
|
|
16
16
|
}
|
|
17
|
-
export declare const defineAccount: import("../
|
|
18
|
-
//# sourceMappingURL=account.d.ts.map
|
|
17
|
+
export declare const defineAccount: import("../index.js").Definer;
|
|
@@ -18,4 +18,3 @@ export interface FindReplaceFields {
|
|
|
18
18
|
}
|
|
19
19
|
/** Optional product-neutral Replace controls; matching, scopes and transactions belong to core. */
|
|
20
20
|
export declare function findReplaceFields(state: FindReplaceFields): import("lit").TemplateResult<1>;
|
|
21
|
-
//# sourceMappingURL=find-replace-fields.d.ts.map
|
package/dist/chrome/ruler.d.ts
CHANGED
|
@@ -104,5 +104,4 @@ export declare class OfficeUiRuler extends OfficeElement {
|
|
|
104
104
|
private draw;
|
|
105
105
|
protected render(): import("lit").TemplateResult<1>;
|
|
106
106
|
}
|
|
107
|
-
export declare const defineRuler: import("../
|
|
108
|
-
//# sourceMappingURL=ruler.d.ts.map
|
|
107
|
+
export declare const defineRuler: import("../index.js").Definer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-GZNBWWJ5.js';
|
|
2
|
-
import { TEAMS_TAGS, registerTeams } from './chunk-
|
|
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/form/checkable.d.ts
CHANGED
package/dist/form/radio.d.ts
CHANGED
|
@@ -65,5 +65,4 @@ export declare class OfficeUiRadio extends OfficeElement {
|
|
|
65
65
|
protected willUpdate(): void;
|
|
66
66
|
protected render(): import("lit").TemplateResult<1>;
|
|
67
67
|
}
|
|
68
|
-
export declare const defineRadio: import("../
|
|
69
|
-
//# sourceMappingURL=radio.d.ts.map
|
|
68
|
+
export declare const defineRadio: import("../index.js").Definer;
|
|
@@ -11,4 +11,3 @@ export interface RangeControlOptions {
|
|
|
11
11
|
}
|
|
12
12
|
/** Native keyboard, pointer and accessibility behavior shared by Office range controls. */
|
|
13
13
|
export declare function rangeControl(options: RangeControlOptions): import("lit").TemplateResult<1>;
|
|
14
|
-
//# sourceMappingURL=range-control.d.ts.map
|
|
@@ -40,4 +40,3 @@ export declare function probeNativeImageSize(src: string): Promise<NativeImageSi
|
|
|
40
40
|
export declare function clearNativeImageSizeCache(): void;
|
|
41
41
|
/** Test-only compatibility alias. */
|
|
42
42
|
export declare function _resetNativeImageSizeCacheForTests(): void;
|
|
43
|
-
//# sourceMappingURL=image-native-size.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
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-
|
|
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';
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
export declare function buildArtisticFilterMarkup(effectName: string, radius: number): string | undefined;
|
|
7
7
|
export declare function buildSimpleArtisticCss(effect: string, radius: number): string;
|
|
8
8
|
export declare const ARTISTIC_PREVIEW_EFFECTS: Set<string>;
|
|
9
|
-
//# sourceMappingURL=picture-artistic-filters.d.ts.map
|
package/dist/registry.d.ts
CHANGED
package/dist/render-cache.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const RENDER_CACHE_MAX_BYTES: number;
|
|
2
2
|
/** FIFO retention limit; oversized results still render, but are not memoised. */
|
|
3
3
|
export declare function setBoundedRenderCache<T>(cache: Map<string, T>, key: string, value: T, maxEntries: number): void;
|
|
4
|
-
//# sourceMappingURL=render-cache.d.ts.map
|
|
@@ -7,5 +7,4 @@ export declare class OfficeUiRibbonStack extends OfficeElement {
|
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
protected render(): import("lit").TemplateResult<1>;
|
|
9
9
|
}
|
|
10
|
-
export declare const defineRibbonStack: import("../
|
|
11
|
-
//# sourceMappingURL=ribbon-stack.d.ts.map
|
|
10
|
+
export declare const defineRibbonStack: import("../index.js").Definer;
|
package/dist/styles.d.ts
CHANGED
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-
|
|
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';
|
package/dist/theme-bridge.d.ts
CHANGED
|
@@ -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
|
package/dist/theme.d.ts
CHANGED
|
@@ -15,4 +15,3 @@ export declare function installOfficeUiTheme(root?: Document | ShadowRoot | unde
|
|
|
15
15
|
export declare function installOfficeUiThemeFor(host: HTMLElement): boolean;
|
|
16
16
|
/** Marks only the library control's own root. Theme state and custom tokens stay on host scopes. */
|
|
17
17
|
export declare function prepareOfficeUiBlock(host: HTMLElement, kind: OfficeUiBlockKind, product?: OfficeUiProduct): void;
|
|
18
|
-
//# sourceMappingURL=theme.d.ts.map
|
package/dist/tokens.d.ts
CHANGED
package/dist/visio/pdf-path.d.ts
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
|
|
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 {
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
import { type VisioMatrix, type VisioShape } from 'ooxml-core/visio';
|
|
2
2
|
/**
|
|
3
|
-
* Bevel:
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
-
export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix
|
|
14
|
+
export declare function renderBevel(shape: VisioShape, paths: readonly SVGPathElement[], defs: SVGDefsElement, world: VisioMatrix,
|
|
15
|
+
/** The filter region when the paths were projected beyond the flat shape's box. */
|
|
16
|
+
box?: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
}): SVGGElement | undefined;
|
|
10
22
|
/**
|
|
11
23
|
* 3-D rotation: a parallel projection of the flat shape about its centre, as a matrix on a wrapper
|
|
12
|
-
* group.
|
|
13
|
-
*
|
|
24
|
+
* group. A shape with perspective or an extrusion is drawn through `solidRender` instead: its
|
|
25
|
+
* outline is projected point by point, and this wrapper (`projected`) then carries only what stays
|
|
26
|
+
* flat in that mode (text, pictures), see `flatContent`. Visio's own SVG export ignores the
|
|
27
|
+
* rotation, its raster export draws it.
|
|
14
28
|
*/
|
|
15
|
-
export declare function rotation3dWrapper(shape: VisioShape): SVGGElement | undefined;
|
|
29
|
+
export declare function rotation3dWrapper(shape: VisioShape, projected?: boolean): SVGGElement | undefined;
|
|
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;
|
|
@@ -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;
|
|
@@ -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.
|
|
13
|
-
*
|
|
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;
|