ooxml-ui 1.44.0 → 1.45.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/README.md +4 -0
- package/dist/base.d.ts +1 -0
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-advanced-intent.d.ts +1 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-effects.d.ts +1 -0
- package/dist/chart/format-pane-fields.d.ts +1 -0
- package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
- package/dist/chart/format-pane-fill-line.d.ts +1 -0
- package/dist/chart/format-pane-locales/es.d.ts +1 -0
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-options.d.ts +1 -0
- package/dist/chart/format-pane-space.d.ts +1 -0
- package/dist/chart/format-pane-text.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +1 -0
- package/dist/chrome/find-bar.d.ts +2 -1
- package/dist/{chunk-NH5ZSZMI.js → chunk-2YRHRV4H.js} +1 -1
- package/dist/{chunk-JWBWLGEY.js → chunk-LPI7LT4B.js} +2 -2
- package/dist/{chunk-2ZYRZANE.js → chunk-MWDG776V.js} +1 -1
- package/dist/{chunk-I57TCM2Q.js → chunk-UEFVC6V4.js} +1 -1
- package/dist/{chunk-M4ARYL3L.js → chunk-ZTLP52FH.js} +1 -1
- package/dist/controls.d.ts +1 -0
- package/dist/controls.js +1 -1
- package/dist/docx.js +4 -4
- package/dist/embedding/region-host.d.ts +1 -0
- package/dist/files/save-progress-label.d.ts +1 -0
- package/dist/fonts/custom-fonts.d.ts +1 -0
- package/dist/form/color-swatches.d.ts +1 -0
- package/dist/image-native-size.d.ts +1 -0
- package/dist/index.js +4 -4
- package/dist/picture-artistic-filters.d.ts +1 -0
- package/dist/picture-artistic-preview.d.ts +1 -0
- package/dist/picture-paint.d.ts +1 -0
- package/dist/pptx/{chart-3d-view-scene-D6OJTZYC.mjs → chart-3d-view-scene-7LIMCTEM.mjs} +3 -3
- package/dist/pptx/{chart-3d-view-scene-PC2RUBL4.cjs → chart-3d-view-scene-RCWYLVC3.cjs} +38 -38
- package/dist/pptx/{chunk-W2QJX2ON.mjs → chunk-2P6TH4ZE.mjs} +3 -0
- package/dist/pptx/{chunk-H6M3FKNG.mjs → chunk-3DJZBAQ2.mjs} +1 -1
- package/dist/pptx/{chunk-BNPTGOEZ.mjs → chunk-6JTQ7AG6.mjs} +3 -3
- package/dist/pptx/{chunk-LK35P6RE.cjs → chunk-CWBVJ4DC.cjs} +1043 -427
- package/dist/pptx/{chunk-HWJKBKCW.cjs → chunk-FI2ATACZ.cjs} +3 -3
- package/dist/pptx/{chunk-EDIAPF6J.mjs → chunk-G5NEBI7N.mjs} +3 -3
- package/dist/pptx/{chunk-HB6CH2FF.cjs → chunk-GYI2TFSW.cjs} +3 -3
- package/dist/pptx/{chunk-D3DQS2J2.mjs → chunk-HGT3CA36.mjs} +796 -200
- package/dist/pptx/{chunk-2SO3BL67.cjs → chunk-HTFYAGHG.cjs} +238 -87
- package/dist/pptx/{chunk-2GDYTHUY.cjs → chunk-LOUVYGWX.cjs} +12 -12
- package/dist/pptx/{chunk-ZH35NTNU.cjs → chunk-MZCAYJ7H.cjs} +49 -49
- package/dist/pptx/{chunk-KYTG7WNC.mjs → chunk-S6P7UWGZ.mjs} +2 -2
- package/dist/pptx/{chunk-ZHVKGGLQ.cjs → chunk-UFJBHFSD.cjs} +3 -0
- package/dist/pptx/{chunk-TDALHSYV.mjs → chunk-XL5AF4U3.mjs} +211 -73
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +458 -449
- package/dist/pptx/dom/index.mjs +32 -23
- package/dist/pptx/export/html2canvas-clone.cjs +7 -7
- package/dist/pptx/export/html2canvas-clone.mjs +2 -2
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3547 -3459
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/render/chart-combo-stock.cjs +4 -4
- package/dist/pptx/render/chart-combo-stock.mjs +2 -2
- package/dist/pptx/render/chart-overlays.cjs +8 -8
- package/dist/pptx/render/chart-overlays.mjs +2 -2
- package/dist/pptx/render/chart-surface-treemap.cjs +5 -5
- package/dist/pptx/render/chart-surface-treemap.mjs +2 -2
- package/dist/pptx/render/chart-view-model.cjs +45 -45
- package/dist/pptx/render/chart-view-model.mjs +2 -2
- package/dist/pptx/render/chart-waterfall-map.cjs +7 -7
- package/dist/pptx/render/chart-waterfall-map.mjs +2 -2
- package/dist/pptx/render/connector-dash.d.ts +15 -0
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +1 -1
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-controller.d.ts +8 -0
- package/dist/pptx/render/customization/customization-controller.d.ts.map +1 -1
- package/dist/pptx/render/dash-pattern.d.ts +5 -56
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -1
- package/dist/pptx/render/dash-square-cap.d.ts +34 -0
- package/dist/pptx/render/dash-square-cap.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts +25 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts +59 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-stroke.d.ts +1 -1
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/fill-style.d.ts +6 -0
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/google-webfonts.d.ts +11 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +9 -0
- package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +4 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/options/font-download-policy.d.ts +52 -0
- package/dist/pptx/render/options/font-download-policy.d.ts.map +1 -0
- package/dist/pptx/render/options/index.d.ts +1 -0
- package/dist/pptx/render/options/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +2 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +13 -2
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-run-build.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-trailing-break.d.ts +15 -0
- package/dist/pptx/render/paragraph-trailing-break.d.ts.map +1 -0
- package/dist/pptx/render/shape-path-gradient-fill.d.ts +20 -0
- package/dist/pptx/render/shape-path-gradient-fill.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-effects.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/svg-attr-escape.d.ts +30 -0
- package/dist/pptx/render/svg-attr-escape.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts +6 -1
- package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-baseline.d.ts +2 -1
- package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-body-top-snap.d.ts +43 -0
- package/dist/pptx/render/text-body-top-snap.d.ts.map +1 -0
- package/dist/pptx/render/text-design-tracking.d.ts +20 -0
- package/dist/pptx/render/text-design-tracking.d.ts.map +1 -0
- package/dist/pptx/render/text-line-height.d.ts +8 -0
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-metric-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-arch-fit.d.ts +51 -0
- package/dist/pptx/render/text-warp-arch-fit.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-arch.d.ts +53 -13
- package/dist/pptx/render/text-warp-arch.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-measure.d.ts +5 -0
- package/dist/pptx/render/text-warp-envelope-measure.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts.map +1 -1
- package/dist/pptx/render/text-warp.d.ts +3 -1
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +2 -21
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-55QCEISC.cjs → smartart-insert-preview-R7USUBIX.cjs} +8 -8
- package/dist/pptx/{smartart-insert-preview-GPBTE3HU.mjs → smartart-insert-preview-ZKVFXFSI.mjs} +7 -7
- package/dist/render-cache.d.ts +1 -0
- package/dist/ribbon/ribbon-group.d.ts +2 -1
- package/dist/ribbon/svg-preview.d.ts +1 -0
- package/dist/teams.js +2 -2
- package/dist/theme-bridge.d.ts +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/visio.js +23 -6
- package/dist/xlsx.js +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -481,6 +481,10 @@ content and native media controls without editing overlays.
|
|
|
481
481
|
[Core and UI source](https://github.com/ChristopherVR/ooxml) |
|
|
482
482
|
[Shared UI decisions](https://github.com/ChristopherVR/ooxml/blob/main/docs/ooxml-ui-plan.md)
|
|
483
483
|
|
|
484
|
+
## Privacy and network use
|
|
485
|
+
|
|
486
|
+
The elements render and edit locally. The PowerPoint elements (`ooxml-ui/pptx`) download fonts that are neither installed nor embedded from Google Fonts by default, fetch linked pictures and media while "Allow external content" is on, and use public signaling and STUN servers for serverless Share; each has an option to turn it off (`googleFonts`, `allowExternalContent`, `signaling`), described in [font loading](https://github.com/ChristopherVR/ooxml/blob/main/docs/font-loading.md). The Word, Excel and Visio elements make no network request, and Teams talks only to the servers you configure (plus Google's public STUN server for calls unless `iceServers` is set). Nothing collects analytics or telemetry. See [PRIVACY.md](https://github.com/ChristopherVR/ooxml/blob/main/PRIVACY.md).
|
|
487
|
+
|
|
484
488
|
## License
|
|
485
489
|
|
|
486
490
|
Apache-2.0. Several controls are derived from `pptx-viewer`; see
|
package/dist/base.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ import type { ChartFormatThreeDView } from './format-pane-view.js';
|
|
|
4
4
|
export declare const CHART_BEVEL_TYPES: readonly ['circle', 'relaxedInset', 'cross', 'coolSlant', 'angle', 'softRound', 'convex', 'slope', 'divot', 'riblet', 'hardEdge', 'artDeco'];
|
|
5
5
|
/** The 3-D Format section for an element with `threeD` as its current 3-D settings. */
|
|
6
6
|
export declare function threeDSection(threeD: ChartFormatThreeDView): ChartFormatSection;
|
|
7
|
+
//# sourceMappingURL=format-pane-3d.d.ts.map
|
|
@@ -3,3 +3,4 @@ import type { ChartFormatElementView } from './format-pane-view.js';
|
|
|
3
3
|
import type { ChartFormatFieldValue } from './format-pane-types.js';
|
|
4
4
|
/** Undefined means a basic field; null means an invalid or unsupported advanced request. */
|
|
5
5
|
export declare function chartAdvancedFieldIntent(view: ChartFormatElementView, target: ChartFormatTarget, field: string, value: ChartFormatFieldValue): ChartEditIntent | null | undefined;
|
|
6
|
+
//# sourceMappingURL=format-pane-advanced-intent.d.ts.map
|
|
@@ -4,3 +4,4 @@ import type { ChartFormatSeriesOptionsView } from './format-pane-view.js';
|
|
|
4
4
|
export declare function chartAnalysisSections(series: ChartFormatSeriesOptionsView): ChartFormatSection[];
|
|
5
5
|
/** Converts only the selected analysis property, retaining other trendlines, bars and styles. */
|
|
6
6
|
export declare function chartAnalysisFieldIntent(series: ChartFormatSeriesOptionsView | undefined, target: ChartFormatTarget, field: string, value: ChartFormatFieldValue): ChartEditIntent | null | undefined;
|
|
7
|
+
//# sourceMappingURL=format-pane-analysis.d.ts.map
|
|
@@ -2,3 +2,4 @@ import type { ChartFormatSection } from './format-pane-types.js';
|
|
|
2
2
|
import type { ChartFormatAxisView } from './format-pane-view.js';
|
|
3
3
|
/** Axis Options, Tick Marks, Labels and Number sections for `axis`. */
|
|
4
4
|
export declare function axisOptions(axis: ChartFormatAxisView): ChartFormatSection[];
|
|
5
|
+
//# sourceMappingURL=format-pane-axis.d.ts.map
|
|
@@ -20,3 +20,4 @@ export declare function hexForInput(color: string | undefined, fallback?: string
|
|
|
20
20
|
export type ChartFormatTranslate = (key: string, params?: Readonly<Record<string, string | number>>, fallback?: string) => string;
|
|
21
21
|
/** Resolves a caption with `tr`, filling `{{name}}` parameters in either result. */
|
|
22
22
|
export declare function translateChartFormatText(value: ChartFormatText, tr: ChartFormatTranslate): string;
|
|
23
|
+
//# sourceMappingURL=format-pane-common.d.ts.map
|
|
@@ -22,3 +22,4 @@ export declare function glowSection(prefix: string, glow: Effects['glow']): Char
|
|
|
22
22
|
/** The Effects tab's sections. */
|
|
23
23
|
export declare function effectsSections(view: ChartFormatElementView): ChartFormatSection[];
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=format-pane-effects.d.ts.map
|
|
@@ -13,3 +13,4 @@ export declare function gradientFields(prefix: string, gradient: ChartGradientFi
|
|
|
13
13
|
export declare function patternFields(pattern: NonNullable<ChartFormatFillView['pattern']>, presets: readonly ChartFormatChoice[]): ChartFormatField[];
|
|
14
14
|
/** Picture source, transparency and tiling of a picture fill. */
|
|
15
15
|
export declare function pictureFields(picture: ChartFormatFillView['picture']): ChartFormatField[];
|
|
16
|
+
//# sourceMappingURL=format-pane-fill-kinds.d.ts.map
|
|
@@ -10,3 +10,4 @@ import type { ChartFormatElementView, ChartFormatSource } from './format-pane-vi
|
|
|
10
10
|
export declare const ARROWS: Array<[string, string]>;
|
|
11
11
|
/** The Fill & Line tab's sections. */
|
|
12
12
|
export declare function fillLineSections(view: ChartFormatElementView, target: ChartFormatTarget, source?: Pick<ChartFormatSource, 'patternPresets' | 'slots'>): ChartFormatSection[];
|
|
13
|
+
//# sourceMappingURL=format-pane-fill-line.d.ts.map
|
|
@@ -20,3 +20,4 @@ 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,3 +11,4 @@ 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
|
|
@@ -19,3 +19,4 @@ export interface ChartSpaceFormatSourceOptions {
|
|
|
19
19
|
}
|
|
20
20
|
/** The Format pane source of `space`. */
|
|
21
21
|
export declare function chartSpaceFormatSource(space: ChartSpace, options?: ChartSpaceFormatSourceOptions): ChartFormatSource;
|
|
22
|
+
//# sourceMappingURL=format-pane-space.d.ts.map
|
|
@@ -4,3 +4,4 @@ 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
|
|
@@ -193,4 +193,5 @@ export declare class OfficeUiFindBar extends OfficeElement {
|
|
|
193
193
|
private replaceOptions;
|
|
194
194
|
protected render(): import("lit").TemplateResult<1>;
|
|
195
195
|
}
|
|
196
|
-
export declare const defineFindBar: import("../
|
|
196
|
+
export declare const defineFindBar: import("../registry.js").Definer;
|
|
197
|
+
//# sourceMappingURL=find-bar.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { TeamsLitElement, LOCALE_HOST, teamsI18n, inheritLocale, pushLocale } fr
|
|
|
2
2
|
import { listenEvents, bindElement, syncClassName } from './chunk-CDAXY5KC.js';
|
|
3
3
|
import { eventArgs, pickProps } from './chunk-NDUD5JJB.js';
|
|
4
4
|
import { THEME_CSS, installOfficeUiTheme } from './chunk-N6AKS4ED.js';
|
|
5
|
-
import { defineMenuButton, defineMenuItem, registerControls, confirmDialog, defineSwitch, promptDialog } from './chunk-
|
|
5
|
+
import { defineMenuButton, defineMenuItem, registerControls, confirmDialog, defineSwitch, promptDialog } from './chunk-UEFVC6V4.js';
|
|
6
6
|
import { registerIcon, getIcon } from './chunk-M6GF5ED2.js';
|
|
7
7
|
import { initialsOf, definePresence } from './chunk-Q6WZEGAM.js';
|
|
8
8
|
import { definer, OfficeElement, controlStyles } from './chunk-FE5KE5TR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-6FFZFH73.js';
|
|
2
|
-
import { TEAMS_TAGS, registerTeams } from './chunk-
|
|
2
|
+
import { TEAMS_TAGS, registerTeams } from './chunk-2YRHRV4H.js';
|
|
3
3
|
import { installOfficeUiTheme } from './chunk-N6AKS4ED.js';
|
|
4
|
-
import { registerControls } from './chunk-
|
|
4
|
+
import { registerControls } from './chunk-UEFVC6V4.js';
|
|
5
5
|
import { definePresence } from './chunk-Q6WZEGAM.js';
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineShareDialog, chartSpaceFormatSource, shareDialogLabels } from './chunk-
|
|
1
|
+
import { defineShareDialog, chartSpaceFormatSource, shareDialogLabels } from './chunk-UEFVC6V4.js';
|
|
2
2
|
import { chartExStyleSpace } from 'ooxml-core/chart';
|
|
3
3
|
|
|
4
4
|
// src/dialog/share-controller.ts
|
|
@@ -8120,7 +8120,7 @@ var OfficeUiSelect = class extends OfficeElement {
|
|
|
8120
8120
|
var defineSelect = definer("office-ui-select", () => OfficeUiSelect);
|
|
8121
8121
|
|
|
8122
8122
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/chrome/status-bar.css?raw
|
|
8123
|
-
var status_bar_default = ":host {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n min-height: var(--office-status-bar-height);\n padding: 0 var(--office-space-2);\n font-size: var(--office-font-size-xs);\n background: var(--office-surface);\n color: var(--office-foreground);\n border-top: var(--office-border-width) solid var(--office-border);\n font-family: var(--office-font);\n}\n::slotted([slot='end']) {\n margin-inline-start: auto;\n}\n.bar {\n display: contents;\n}\n[hidden] {\n display: none !important;\n}\n:host([data-controlled]) {\n display: block;\n flex: none;\n padding: 0;\n gap: 0;\n}\n:host([data-controlled]) .bar {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1);\n width: 100%;\n min-height: var(--office-status-bar-height);\n padding: var(--office-space-0) var(--office-space-2);\n color: var(--office-muted-foreground);\n}\n:host([data-controlled]) ::slotted([slot='end']) {\n margin-inline-start: 0;\n}\n.items {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n.item {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The page counter is the one text that stays whole. */\n.item[aria-live] {\n flex: none;\n}\n.item + .item::before {\n content: '';\n display: inline-block;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-2);\n vertical-align: middle;\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.item.sr,\n.item.sr::before {\n position: absolute;\n width:
|
|
8123
|
+
var status_bar_default = ":host {\n display: flex;\n align-items: center;\n gap: var(--office-space-3);\n min-height: var(--office-status-bar-height);\n padding: 0 var(--office-space-2);\n font-size: var(--office-font-size-xs);\n background: var(--office-surface);\n color: var(--office-foreground);\n border-top: var(--office-border-width) solid var(--office-border);\n font-family: var(--office-font);\n}\n::slotted([slot='end']) {\n margin-inline-start: auto;\n}\n.bar {\n display: contents;\n}\n[hidden] {\n display: none !important;\n}\n:host([data-controlled]) {\n display: block;\n flex: none;\n padding: 0;\n gap: 0;\n}\n:host([data-controlled]) .bar {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--office-space-1);\n width: 100%;\n min-height: var(--office-status-bar-height);\n padding: var(--office-space-0) var(--office-space-2);\n color: var(--office-muted-foreground);\n}\n:host([data-controlled]) ::slotted([slot='end']) {\n margin-inline-start: 0;\n}\n.items {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n.item {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The page counter is the one text that stays whole. */\n.item[aria-live] {\n flex: none;\n}\n.item + .item::before {\n content: '';\n display: inline-block;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-2);\n vertical-align: middle;\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.item.sr,\n.item.sr::before {\n position: absolute;\n width: var(--office-space-px);\n height: var(--office-space-px);\n margin: calc(-1 * var(--office-space-px));\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.item.sr::before {\n display: none;\n}\n.item.saving {\n color: var(--office-warning);\n}\n.item.error {\n color: var(--office-danger);\n}\n.spacer {\n flex: 1;\n}\n.toggles,\n.group {\n display: flex;\n align-items: center;\n gap: var(--office-space-0);\n}\n.sep {\n flex: none;\n width: var(--office-border-width);\n height: var(--office-space-3);\n margin: 0 var(--office-space-0);\n background: var(--office-border);\n opacity: var(--office-status-bar-separator-opacity);\n}\n.bar button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--office-space-1);\n min-width: var(--office-control-height-xs);\n min-height: var(--office-control-height-xs);\n padding: var(--office-space-1);\n border: 0;\n border-radius: var(--office-radius-sm);\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n}\n.bar button:hover {\n background: var(--office-selected);\n color: var(--office-foreground);\n}\n.bar button[aria-pressed='true'] {\n color: var(--office-accent);\n}\n.bar button:active {\n opacity: 0.8;\n}\n.bar button:focus-visible {\n outline: var(--office-focus-width) solid var(--office-ring);\n outline-offset: var(--office-focus-offset);\n}\n.bar svg {\n flex: none;\n width: var(--office-icon-size);\n height: var(--office-icon-size);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--office-icon-stroke);\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.toggle svg,\n.zoom-step svg {\n width: var(--office-icon-size-sm);\n height: var(--office-icon-size-sm);\n}\n.zoom-fit {\n min-width: var(--office-zoom-value-width);\n font-variant-numeric: tabular-nums;\n}\n@media (max-width: 767px) {\n .narrow-hide,\n .toggle .label {\n display: none !important;\n }\n}\n@media (pointer: coarse) {\n .bar button {\n min-width: var(--office-touch-target, 44px);\n min-height: var(--office-touch-target, 44px);\n }\n}\n@media (forced-colors: active) {\n :host {\n background: Canvas;\n color: CanvasText;\n border-top-color: CanvasText;\n }\n .bar button {\n color: ButtonText;\n }\n .bar button:hover {\n background: Highlight;\n color: HighlightText;\n }\n .bar button[aria-pressed='true'] {\n border: var(--office-border-width) solid Highlight;\n }\n .bar button:focus-visible {\n outline-color: Highlight;\n }\n .sep,\n .item + .item::before {\n background: CanvasText;\n }\n}\n";
|
|
8124
8124
|
|
|
8125
8125
|
// src/chrome/status-bar.ts
|
|
8126
8126
|
var OfficeUiStatusBar = class extends OfficeElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-
|
|
1
|
+
import { defineRibbonGroup, defineRibbonStack, defineButton, defineMenuItem, defineMenuButton } from './chunk-UEFVC6V4.js';
|
|
2
2
|
import { acceptedRibbonAddIns, findRibbonAddInCommand, RIBBON_ADD_IN_EVENT } from 'ooxml-core/ribbon';
|
|
3
3
|
export { RIBBON_ADD_IN_EVENT } from 'ooxml-core/ribbon';
|
|
4
4
|
import { sameRenderer, sameRegionContext, hostBackstagePageId, acceptedHostBackstagePages, placeHostBackstagePages, hostBackstageItemId, withHostMenuCommands, isHostMenuEntry, resolveHostMenuCommands, withoutHiddenEntries, hostBackstageRegionId } from 'ooxml-core/embedding';
|
package/dist/controls.d.ts
CHANGED
package/dist/controls.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-
|
|
1
|
+
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-UEFVC6V4.js';
|
|
2
2
|
import './chunk-M6GF5ED2.js';
|
|
3
3
|
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-4OBMFPGF.js';
|
|
4
4
|
import './chunk-Q6WZEGAM.js';
|
package/dist/docx.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineChartExOptions, statusLayout, watchStatusWidth, compactPageText } from './chunk-II43ALTT.js';
|
|
2
|
-
import { chartExSpaceFormatSource, attachShareDialog, connectedServicesLabels } from './chunk-
|
|
3
|
-
import { syncRibbonAddIns, createHostBackstagePages, withHostMenuItems } from './chunk-
|
|
4
|
-
export { RIBBON_ADD_IN_EVENT } from './chunk-
|
|
2
|
+
import { chartExSpaceFormatSource, attachShareDialog, connectedServicesLabels } from './chunk-MWDG776V.js';
|
|
3
|
+
import { syncRibbonAddIns, createHostBackstagePages, withHostMenuItems } from './chunk-ZTLP52FH.js';
|
|
4
|
+
export { RIBBON_ADD_IN_EVENT } from './chunk-ZTLP52FH.js';
|
|
5
5
|
import { defineSmartArt, smartArtColorsGalleryState, smartArtStylesGalleryState, SmartArtTextPaneController, pictureNeedsSvg, pictureSvg, defineSmartArtPicker } from './chunk-6FFZFH73.js';
|
|
6
6
|
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-N6AKS4ED.js';
|
|
7
|
-
import { createRibbonOverflow, defineRibbon, defineChartFormatPane, defineRuler, defineChartDataSheet, defineChartPicker, createDialogSession, defineCommentsPane, saveProgressLabel, confirmDialog, defineDialog, buildFontCatalog, defineGallery, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, defineConnectedServices, userInterfaceSection, personalizeSection, optionText, unavailableCategory, defineOpenPlaces } from './chunk-
|
|
7
|
+
import { createRibbonOverflow, defineRibbon, defineChartFormatPane, defineRuler, defineChartDataSheet, defineChartPicker, createDialogSession, defineCommentsPane, saveProgressLabel, confirmDialog, defineDialog, buildFontCatalog, defineGallery, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, defineConnectedServices, userInterfaceSection, personalizeSection, optionText, unavailableCategory, defineOpenPlaces } from './chunk-UEFVC6V4.js';
|
|
8
8
|
import { registerIcon } from './chunk-M6GF5ED2.js';
|
|
9
9
|
import './chunk-4OBMFPGF.js';
|
|
10
10
|
import './chunk-Q6WZEGAM.js';
|
|
@@ -20,3 +20,4 @@ export declare function saveProgressLabel(progress: DocumentSaveProgress, t?: (t
|
|
|
20
20
|
* percent of the same transfer. Visible text can update on every step; a live region should not.
|
|
21
21
|
*/
|
|
22
22
|
export declare function saveProgressStepChanged(previous: DocumentSaveProgress | undefined, next: DocumentSaveProgress): boolean;
|
|
23
|
+
//# sourceMappingURL=save-progress-label.d.ts.map
|
|
@@ -41,3 +41,4 @@ export declare const OFFICE_COLOR_SWATCHES: readonly OfficeColorSwatch[];
|
|
|
41
41
|
export declare const OFFICE_COLOR_SWATCH_HEXES: readonly string[];
|
|
42
42
|
/** A standard swatch's name in the viewer's locale (English without a translator or a key). */
|
|
43
43
|
export declare function officeColorSwatchLabel(swatch: OfficeColorSwatch, translate?: Translate): string;
|
|
44
|
+
//# sourceMappingURL=color-swatches.d.ts.map
|
|
@@ -40,3 +40,4 @@ 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,14 +1,14 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-LPI7LT4B.js';
|
|
2
2
|
export { createRecoveryScheduler } from './chunk-DA57FPSN.js';
|
|
3
|
-
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-
|
|
3
|
+
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-ZTLP52FH.js';
|
|
4
4
|
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-6FFZFH73.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-2YRHRV4H.js';
|
|
6
6
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-4ZSZPUE5.js';
|
|
7
7
|
import './chunk-CDAXY5KC.js';
|
|
8
8
|
import './chunk-NDUD5JJB.js';
|
|
9
9
|
import './chunk-KJMAVPQB.js';
|
|
10
10
|
export { BUILDING_BLOCKS_CSS, LEGACY_OFFICE_THEME_TOKENS, THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, installOfficeUiThemeFor, legacyThemeAliases, legacyThemeBridge, prepareOfficeUiBlock, shadcnBridge, themeBridge } from './chunk-N6AKS4ED.js';
|
|
11
|
-
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-
|
|
11
|
+
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-UEFVC6V4.js';
|
|
12
12
|
export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
13
13
|
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-4OBMFPGF.js';
|
|
14
14
|
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-Q6WZEGAM.js';
|
|
@@ -6,3 +6,4 @@
|
|
|
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/picture-paint.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { widenPieViewModel, buildPerspCamera, createSvgEl, appendChartLegendSvg, renderChartLineSvg, renderChartTextSvg, perspBoxMatrix, pieRimPoint, perspScreenToPlaneY, resolvePieSliceShareValue, perspToScreen, roundDragValue, buildBarChart3DHoverTooltip, isChartInteractionArmed, computePieChartLayout, obliqueBarTaper } from './chunk-
|
|
2
|
-
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { widenPieViewModel, buildPerspCamera, createSvgEl, appendChartLegendSvg, renderChartLineSvg, renderChartTextSvg, perspBoxMatrix, pieRimPoint, perspScreenToPlaneY, resolvePieSliceShareValue, perspToScreen, roundDragValue, buildBarChart3DHoverTooltip, isChartInteractionArmed, computePieChartLayout, obliqueBarTaper } from './chunk-3DJZBAQ2.mjs';
|
|
2
|
+
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-XL5AF4U3.mjs';
|
|
3
|
+
import './chunk-G5NEBI7N.mjs';
|
|
4
4
|
import { buildChart3DBoxFaceColors } from 'ooxml-core/chart';
|
|
5
5
|
|
|
6
6
|
var NORMAL_SHADE = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkLOUVYGWX_cjs = require('./chunk-LOUVYGWX.cjs');
|
|
4
|
+
var chunkHTFYAGHG_cjs = require('./chunk-HTFYAGHG.cjs');
|
|
5
|
+
require('./chunk-FI2ATACZ.cjs');
|
|
6
6
|
var chart = require('ooxml-core/chart');
|
|
7
7
|
|
|
8
8
|
var NORMAL_SHADE = {
|
|
@@ -182,7 +182,7 @@ function buildChart3DBarMeshes(three, layout, svgWidth, svgHeight) {
|
|
|
182
182
|
// src/pptx/render/chart-3d-chrome-overlay.ts
|
|
183
183
|
function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
184
184
|
const vm = box ? withBoxChromePositions(source) : source;
|
|
185
|
-
const svg =
|
|
185
|
+
const svg = chunkLOUVYGWX_cjs.createSvgEl(doc, "svg", {
|
|
186
186
|
class: "pptxv-chart-3d-chrome",
|
|
187
187
|
viewBox: `0 0 ${vm.svgWidth} ${vm.svgHeight}`,
|
|
188
188
|
preserveAspectRatio: "none"
|
|
@@ -195,7 +195,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
195
195
|
svg.style.setProperty("pointer-events", "none");
|
|
196
196
|
if (vm.areaFill) {
|
|
197
197
|
svg.appendChild(
|
|
198
|
-
|
|
198
|
+
chunkLOUVYGWX_cjs.createSvgEl(doc, "rect", {
|
|
199
199
|
x: 0,
|
|
200
200
|
y: 0,
|
|
201
201
|
width: vm.svgWidth,
|
|
@@ -206,7 +206,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
if (vm.title) {
|
|
209
|
-
const title =
|
|
209
|
+
const title = chunkLOUVYGWX_cjs.createSvgEl(doc, "text", {
|
|
210
210
|
x: vm.titleX,
|
|
211
211
|
y: vm.titleY,
|
|
212
212
|
"text-anchor": "middle",
|
|
@@ -218,7 +218,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
218
218
|
});
|
|
219
219
|
if (vm.titleRunSpans && vm.titleRunSpans.length > 0) {
|
|
220
220
|
for (const run of vm.titleRunSpans) {
|
|
221
|
-
const tspan =
|
|
221
|
+
const tspan = chunkLOUVYGWX_cjs.createSvgEl(doc, "tspan", {
|
|
222
222
|
"font-size": run.fontSize,
|
|
223
223
|
"font-weight": run.fontWeight,
|
|
224
224
|
"font-style": run.fontStyle,
|
|
@@ -237,28 +237,28 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
237
237
|
appendBoxLabels(doc, svg, vm, box.labels);
|
|
238
238
|
const legend = box.legend ?? vm.legend.map((item) => ({ ...item, lineSwatch: void 0 }));
|
|
239
239
|
const legendVm = { ...vm, legend: box.reverseLegend ? legend.reverse() : legend };
|
|
240
|
-
|
|
240
|
+
chunkLOUVYGWX_cjs.appendChartLegendSvg(doc, svg, legendVm);
|
|
241
241
|
return svg;
|
|
242
242
|
}
|
|
243
243
|
for (const gl of vm.gridlines) {
|
|
244
|
-
svg.appendChild(
|
|
244
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartLineSvg(doc, gl));
|
|
245
245
|
}
|
|
246
246
|
for (const gl of vm.secondaryGridlines ?? []) {
|
|
247
|
-
svg.appendChild(
|
|
247
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartLineSvg(doc, gl));
|
|
248
248
|
}
|
|
249
249
|
for (const lbl of vm.axisLabels) {
|
|
250
|
-
svg.appendChild(
|
|
250
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartTextSvg(doc, lbl));
|
|
251
251
|
}
|
|
252
252
|
for (const lbl of vm.secondaryAxisLabels ?? []) {
|
|
253
|
-
svg.appendChild(
|
|
253
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartTextSvg(doc, lbl));
|
|
254
254
|
}
|
|
255
255
|
if (vm.zeroLine) {
|
|
256
|
-
svg.appendChild(
|
|
256
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartLineSvg(doc, vm.zeroLine));
|
|
257
257
|
}
|
|
258
258
|
for (const lbl of vm.categoryLabels) {
|
|
259
|
-
svg.appendChild(
|
|
259
|
+
svg.appendChild(chunkLOUVYGWX_cjs.renderChartTextSvg(doc, lbl));
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
chunkLOUVYGWX_cjs.appendChartLegendSvg(doc, svg, vm);
|
|
262
262
|
return svg;
|
|
263
263
|
}
|
|
264
264
|
var PT = 4 / 3;
|
|
@@ -277,7 +277,7 @@ function appendBoxLabels(doc, svg, vm, labels) {
|
|
|
277
277
|
const style = vm.axisLabels[0];
|
|
278
278
|
for (const label of labels) {
|
|
279
279
|
svg.appendChild(
|
|
280
|
-
|
|
280
|
+
chunkLOUVYGWX_cjs.renderChartTextSvg(doc, {
|
|
281
281
|
kind: "text",
|
|
282
282
|
x: label.x,
|
|
283
283
|
y: label.y,
|
|
@@ -347,7 +347,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
347
347
|
}
|
|
348
348
|
const point = pointAt(event.clientX, event.clientY);
|
|
349
349
|
const value = point ? adapter.valueOf(point) : void 0;
|
|
350
|
-
const tooltip = point && value !== void 0 ?
|
|
350
|
+
const tooltip = point && value !== void 0 ? chunkLOUVYGWX_cjs.buildBarChart3DHoverTooltip(
|
|
351
351
|
{ seriesIndex: point.seriesIndex, categoryIndex: point.pointIndex, value },
|
|
352
352
|
{
|
|
353
353
|
categoryLabels: options.categoryLabels,
|
|
@@ -365,7 +365,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
365
365
|
return;
|
|
366
366
|
}
|
|
367
367
|
const point = pointAt(event.clientX, event.clientY);
|
|
368
|
-
const armed = point !== null &&
|
|
368
|
+
const armed = point !== null && chunkLOUVYGWX_cjs.isChartInteractionArmed(target);
|
|
369
369
|
if (armed) {
|
|
370
370
|
event.stopPropagation();
|
|
371
371
|
}
|
|
@@ -441,7 +441,7 @@ function obliqueDragValue(layout, startValue, dx, dy) {
|
|
|
441
441
|
const along = layout.horizontal ? dx : -dy;
|
|
442
442
|
const raw = startValue + along / layout.valueScale;
|
|
443
443
|
const span = layout.range.max - layout.range.min;
|
|
444
|
-
return
|
|
444
|
+
return chunkLOUVYGWX_cjs.roundDragValue(raw, { min: layout.range.min, max: layout.range.max, span });
|
|
445
445
|
}
|
|
446
446
|
function obliqueDraggedExtent(layout, value) {
|
|
447
447
|
const { min, max } = layout.range;
|
|
@@ -454,7 +454,7 @@ function obliqueDraggedExtent(layout, value) {
|
|
|
454
454
|
function obliqueBarAtValue(layout, bar, value) {
|
|
455
455
|
const { from, length } = obliqueDraggedExtent(layout, value);
|
|
456
456
|
const extent = (layout.range.max - layout.range.min) * layout.valueScale;
|
|
457
|
-
const taper =
|
|
457
|
+
const taper = chunkLOUVYGWX_cjs.obliqueBarTaper(bar.shape, from, from + length, extent, value);
|
|
458
458
|
return layout.horizontal ? { ...bar, x: from, w: length, value, taper } : { ...bar, y: from, h: length, value, taper };
|
|
459
459
|
}
|
|
460
460
|
|
|
@@ -546,7 +546,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
546
546
|
const nSer = chartData.series.length;
|
|
547
547
|
const catExtent = layout.horizontal ? layout.view.box.h : layout.view.box.w;
|
|
548
548
|
const slot = nCat > 0 ? catExtent / nCat : catExtent;
|
|
549
|
-
const gapWidth = (chartData.barGapWidth ??
|
|
549
|
+
const gapWidth = (chartData.barGapWidth ?? chunkHTFYAGHG_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
|
|
550
550
|
const slots = layout.grouping === "clustered" ? nSer : 1;
|
|
551
551
|
const barW = slot / (slots + gapWidth);
|
|
552
552
|
const depth = Math.min(barW, layout.rowDepth);
|
|
@@ -599,7 +599,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
599
599
|
z0,
|
|
600
600
|
z1: z0 + depth,
|
|
601
601
|
shape,
|
|
602
|
-
taper:
|
|
602
|
+
taper: chunkLOUVYGWX_cjs.obliqueBarTaper(
|
|
603
603
|
shape,
|
|
604
604
|
v0,
|
|
605
605
|
v1,
|
|
@@ -794,7 +794,7 @@ function buildPerspGridlines(three, layout) {
|
|
|
794
794
|
function buildPerspMeshes(three, layout, prisms) {
|
|
795
795
|
const group = new three.Group();
|
|
796
796
|
group.matrixAutoUpdate = false;
|
|
797
|
-
group.matrix.copy(
|
|
797
|
+
group.matrix.copy(chunkLOUVYGWX_cjs.perspBoxMatrix(three, layout.view));
|
|
798
798
|
const gridlines = buildPerspGridlines(three, layout);
|
|
799
799
|
group.add(gridlines);
|
|
800
800
|
const material = new three.MeshBasicMaterial({ vertexColors: true, side: three.DoubleSide });
|
|
@@ -849,7 +849,7 @@ function surfaceBands(chartData, range, palette) {
|
|
|
849
849
|
const fmt = chartData.bandFmts?.find((b) => b.index === i)?.spPr;
|
|
850
850
|
const cycle = palette.length > 0 ? palette : ["#4472C4"];
|
|
851
851
|
const base = cycle[i % cycle.length];
|
|
852
|
-
const fallback = Math.floor(i / cycle.length) % 2 === 1 ?
|
|
852
|
+
const fallback = Math.floor(i / cycle.length) % 2 === 1 ? chunkHTFYAGHG_cjs.shade(base, 0.4) : base;
|
|
853
853
|
return {
|
|
854
854
|
label: `${formatEdge(lo)}-${formatEdge(edges[i + 1])}`,
|
|
855
855
|
color: fmt?.fillColor ?? fmt?.strokeColor ?? fallback
|
|
@@ -1033,7 +1033,7 @@ function disposeObject(object) {
|
|
|
1033
1033
|
function buildSurfaceMarks(three, chartData, layout, palette) {
|
|
1034
1034
|
const group = new three.Group();
|
|
1035
1035
|
group.matrixAutoUpdate = false;
|
|
1036
|
-
group.matrix.copy(
|
|
1036
|
+
group.matrix.copy(chunkLOUVYGWX_cjs.perspBoxMatrix(three, layout.view));
|
|
1037
1037
|
const gridlines = buildPerspGridlines(three, layout);
|
|
1038
1038
|
group.add(gridlines);
|
|
1039
1039
|
let visual = buildVisual(three, chartData, layout, palette);
|
|
@@ -1173,8 +1173,8 @@ function surfaceLegend(chartData, layout, palette, background, textStyle) {
|
|
|
1173
1173
|
function mountPerspChartView(input, ctx) {
|
|
1174
1174
|
const three = ctx.three;
|
|
1175
1175
|
const { vm, layout, chartData } = input;
|
|
1176
|
-
const palette =
|
|
1177
|
-
const camera =
|
|
1176
|
+
const palette = chunkHTFYAGHG_cjs.resolveChartPalette(chartData);
|
|
1177
|
+
const camera = chunkLOUVYGWX_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1178
1178
|
const scene = new three.Scene();
|
|
1179
1179
|
const marks = buildPerspMarkSet(three, chartData, layout, palette);
|
|
1180
1180
|
scene.add(marks.group);
|
|
@@ -1223,15 +1223,15 @@ function mountPerspChartView(input, ctx) {
|
|
|
1223
1223
|
const a = marks.anchor(point, start);
|
|
1224
1224
|
const step = unit * layout.valueScale;
|
|
1225
1225
|
const b = layout.horizontal ? [a[0] + step, a[1], a[2]] : [a[0], a[1] + step, a[2]];
|
|
1226
|
-
const s0 =
|
|
1227
|
-
const s1 =
|
|
1226
|
+
const s0 = chunkLOUVYGWX_cjs.perspToScreen(layout.view, a);
|
|
1227
|
+
const s1 = chunkLOUVYGWX_cjs.perspToScreen(layout.view, b);
|
|
1228
1228
|
const ux = (s1.x - s0.x) / unit;
|
|
1229
1229
|
const uy = (s1.y - s0.y) / unit;
|
|
1230
1230
|
const len2 = ux * ux + uy * uy || 1;
|
|
1231
1231
|
const span = layout.range.max - layout.range.min;
|
|
1232
1232
|
return {
|
|
1233
1233
|
preview(dx, dy) {
|
|
1234
|
-
const value =
|
|
1234
|
+
const value = chunkLOUVYGWX_cjs.roundDragValue(start + (dx * ux + dy * uy) / len2, {
|
|
1235
1235
|
min: layout.range.min,
|
|
1236
1236
|
max: layout.range.max,
|
|
1237
1237
|
span
|
|
@@ -1319,7 +1319,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1319
1319
|
const steps = Math.max(2, Math.ceil(span / (Math.PI * 2) * SEGMENTS_PER_TURN));
|
|
1320
1320
|
const angles = Array.from({ length: steps + 1 }, (_, i) => slice.startAngle + span * i / steps);
|
|
1321
1321
|
const rim = (a, y) => {
|
|
1322
|
-
const p =
|
|
1322
|
+
const p = chunkLOUVYGWX_cjs.pieRimPoint(cx, cz, r, a);
|
|
1323
1323
|
return [p.x, y, p.z];
|
|
1324
1324
|
};
|
|
1325
1325
|
const radial = (a) => [Math.sin(a), 0, Math.cos(a)];
|
|
@@ -1363,7 +1363,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1363
1363
|
function buildPieMarks(three, layout) {
|
|
1364
1364
|
const group = new three.Group();
|
|
1365
1365
|
group.matrixAutoUpdate = false;
|
|
1366
|
-
group.matrix.copy(
|
|
1366
|
+
group.matrix.copy(chunkLOUVYGWX_cjs.perspBoxMatrix(three, layout.view));
|
|
1367
1367
|
const material = new three.MeshBasicMaterial({
|
|
1368
1368
|
vertexColors: true,
|
|
1369
1369
|
side: three.DoubleSide,
|
|
@@ -1427,12 +1427,12 @@ function slicesWith(input, pointIndex, value) {
|
|
|
1427
1427
|
...input.element,
|
|
1428
1428
|
chartData: { ...input.chartData, series }
|
|
1429
1429
|
};
|
|
1430
|
-
return
|
|
1430
|
+
return chunkLOUVYGWX_cjs.computePieChartLayout(element, input.vm)?.slices ?? input.layout.slices;
|
|
1431
1431
|
}
|
|
1432
1432
|
function mountPieChartView(input, ctx) {
|
|
1433
1433
|
const three = ctx.three;
|
|
1434
1434
|
const { vm, layout, chartData } = input;
|
|
1435
|
-
const camera =
|
|
1435
|
+
const camera = chunkLOUVYGWX_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1436
1436
|
const scene = new three.Scene();
|
|
1437
1437
|
const marks = buildPieMarks(three, layout);
|
|
1438
1438
|
scene.add(marks.group);
|
|
@@ -1473,7 +1473,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1473
1473
|
const start = values();
|
|
1474
1474
|
return {
|
|
1475
1475
|
preview(_dx, _dy, at) {
|
|
1476
|
-
const hit =
|
|
1476
|
+
const hit = chunkLOUVYGWX_cjs.perspScreenToPlaneY(layout.view, at.x, at.y, layout.center.y);
|
|
1477
1477
|
if (!hit) {
|
|
1478
1478
|
return start[point.pointIndex];
|
|
1479
1479
|
}
|
|
@@ -1481,7 +1481,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1481
1481
|
hit.x - layout.center.x - slice.offset.x,
|
|
1482
1482
|
hit.z - layout.center.z - slice.offset.z
|
|
1483
1483
|
);
|
|
1484
|
-
const value =
|
|
1484
|
+
const value = chunkLOUVYGWX_cjs.resolvePieSliceShareValue(
|
|
1485
1485
|
angle,
|
|
1486
1486
|
slice.startAngle,
|
|
1487
1487
|
start,
|
|
@@ -1497,7 +1497,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1497
1497
|
marker.visible = slice !== void 0;
|
|
1498
1498
|
if (slice) {
|
|
1499
1499
|
const mid = (slice.startAngle + slice.endAngle) / 2;
|
|
1500
|
-
const p =
|
|
1500
|
+
const p = chunkLOUVYGWX_cjs.pieRimPoint(
|
|
1501
1501
|
layout.center.x + slice.offset.x,
|
|
1502
1502
|
layout.center.z + slice.offset.z,
|
|
1503
1503
|
layout.radius * 0.6,
|
|
@@ -1562,7 +1562,7 @@ async function mountChart3DView(spec, ctx) {
|
|
|
1562
1562
|
return mountPieChartView(
|
|
1563
1563
|
{
|
|
1564
1564
|
element: spec.element,
|
|
1565
|
-
vm:
|
|
1565
|
+
vm: chunkLOUVYGWX_cjs.widenPieViewModel(spec.vm, spec.element),
|
|
1566
1566
|
layout: spec.geometry.layout,
|
|
1567
1567
|
chartData: chartData2,
|
|
1568
1568
|
categoryLabels: spec.categoryLabels
|