ooxml-ui 1.6.2 → 1.8.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 +90 -37
- package/custom-elements.json +303 -4
- package/dist/chrome/ruler.d.ts +7 -1
- package/dist/chrome/ruler.d.ts.map +1 -1
- package/dist/chrome/status-bar.d.ts.map +1 -1
- package/dist/chrome/tab-strip.d.ts +3 -1
- package/dist/chrome/tab-strip.d.ts.map +1 -1
- package/dist/chrome/task-pane.d.ts +29 -0
- package/dist/chrome/task-pane.d.ts.map +1 -0
- package/dist/chrome/title-bar.d.ts +2 -1
- package/dist/chrome/title-bar.d.ts.map +1 -1
- package/dist/{chunk-QAIVGTQZ.js → chunk-7US5GCXF.js} +158 -153
- package/dist/{chunk-Z7CS3UUK.js → chunk-KF72ZA6V.js} +5 -2
- package/dist/{chunk-QHAE6Y5B.js → chunk-O7APCA5N.js} +680 -98
- package/dist/chunk-W6AV3GHC.js +112 -0
- package/dist/controls.d.ts +9 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/dialog/dialog-footer.d.ts.map +1 -1
- package/dist/dialog/options-dialog.d.ts.map +1 -1
- package/dist/docx/editor-core.d.ts +3 -0
- package/dist/docx/editor-shell.d.ts +2 -0
- package/dist/docx/element-api.d.ts +7 -0
- package/dist/docx/events.d.ts +4 -1
- package/dist/docx/index.d.ts +1 -0
- package/dist/docx/ribbon-color-grid.d.ts +3 -4
- package/dist/docx.js +46 -78
- package/dist/edit-worker.js +52 -3
- package/dist/form/color-custom.d.ts +79 -0
- package/dist/form/color-custom.d.ts.map +1 -0
- package/dist/form/color-grid.d.ts +125 -0
- package/dist/form/color-grid.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/dist/menu/context-menu.d.ts.map +1 -1
- package/dist/menu/menu-button.d.ts +2 -1
- package/dist/menu/menu-button.d.ts.map +1 -1
- package/dist/notices/paste-options.d.ts.map +1 -1
- package/dist/notices/toasts.d.ts.map +1 -1
- package/dist/pptx/{chart-3d-view-scene-ERX2GRCD.mjs → chart-3d-view-scene-P6MAFEGL.mjs} +2 -2
- package/dist/pptx/{chart-3d-view-scene-55WDENSO.cjs → chart-3d-view-scene-V74F7ZOC.cjs} +38 -38
- package/dist/pptx/{chunk-G2YUKLRX.cjs → chunk-526IHNIH.cjs} +1 -1
- package/dist/pptx/{chunk-SVN6OBG4.mjs → chunk-DPOES4WM.mjs} +26 -11
- package/dist/pptx/{chunk-BLAJIEXA.cjs → chunk-GCS5KBMR.cjs} +511 -653
- package/dist/pptx/{chunk-RPRC2EG5.cjs → chunk-K3S2A64B.cjs} +13 -13
- package/dist/pptx/{chunk-E55NU4BF.mjs → chunk-MCHPNO42.mjs} +289 -493
- package/dist/pptx/{chunk-AWQRQUPL.mjs → chunk-NAFUYAQP.mjs} +1 -1
- package/dist/pptx/{chunk-LCIXR7WE.cjs → chunk-VFPVEVF4.cjs} +26 -11
- package/dist/pptx/{chunk-TKATCPOK.mjs → chunk-ZAOYPCAM.mjs} +1 -1
- package/dist/pptx/dom/activex-controls-overlay.d.ts.map +1 -1
- package/dist/pptx/dom/elements/image.d.ts.map +1 -1
- package/dist/pptx/dom/elements/media.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-block.d.ts.map +1 -1
- package/dist/pptx/dom/elements/zoom.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +252 -247
- package/dist/pptx/dom/index.mjs +11 -6
- package/dist/pptx/export/html2canvas-clone.cjs +2 -2
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +3059 -3023
- package/dist/pptx/index.mjs +4 -4
- package/dist/pptx/render/chart-combo-series.d.ts.map +1 -1
- package/dist/pptx/render/chart-combo-stock.cjs +3 -3
- package/dist/pptx/render/chart-combo-stock.mjs +1 -1
- package/dist/pptx/render/chart-marker-shape.d.ts.map +1 -1
- package/dist/pptx/render/chart-overlays.cjs +7 -7
- package/dist/pptx/render/chart-overlays.mjs +1 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
- package/dist/pptx/render/chart-view-model.cjs +44 -44
- package/dist/pptx/render/chart-view-model.mjs +1 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
- package/dist/pptx/render/connector-router-types.d.ts +4 -52
- package/dist/pptx/render/connector-router-types.d.ts.map +1 -1
- package/dist/pptx/render/connector-router.d.ts +4 -32
- package/dist/pptx/render/connector-router.d.ts.map +1 -1
- package/dist/pptx/render/editor-keymap-arrows.d.ts +0 -7
- package/dist/pptx/render/editor-keymap-arrows.d.ts.map +1 -1
- package/dist/pptx/render/element-interaction.d.ts +2 -6
- package/dist/pptx/render/element-interaction.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/ribbon-add-ins.d.ts +53 -0
- package/dist/pptx/render/ribbon-add-ins.d.ts.map +1 -0
- package/dist/pptx/web-components/index.d.ts +1 -0
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/ribbon-add-in.d.ts +20 -0
- package/dist/pptx/web-components/ribbon-add-in.d.ts.map +1 -0
- package/dist/ribbon/add-in-tabs.d.ts +36 -0
- package/dist/ribbon/group-overflow.d.ts +37 -0
- package/dist/ribbon/group-overflow.d.ts.map +1 -0
- package/dist/ribbon/ribbon-tabs.d.ts.map +1 -1
- package/dist/teams/app/index.d.ts +1 -1
- package/dist/teams.js +2 -2
- package/dist/visio/format-pane-fields.d.ts +42 -0
- package/dist/visio/format-pane-view.d.ts +44 -0
- package/dist/visio/index.d.ts +1 -0
- package/dist/visio/page-setup-action.d.ts +4 -0
- package/dist/visio/ribbon-action.d.ts +20 -7
- package/dist/visio/ribbon-change-shape.d.ts +17 -6
- package/dist/visio/ribbon-color-menu.d.ts +29 -0
- package/dist/visio/ribbon-inline-galleries.d.ts +20 -0
- package/dist/visio/ribbon-overflow.d.ts +7 -0
- package/dist/visio/ribbon-review.d.ts +5 -2
- package/dist/visio/ribbon-router.d.ts +3 -3
- package/dist/visio/ribbon-shape-styles.d.ts +4 -1
- package/dist/visio/ribbon-style-options.d.ts +4 -3
- package/dist/visio/ribbon.d.ts +2 -2
- package/dist/visio/shapes-document.d.ts +29 -0
- package/dist/visio/shapes-sections.d.ts +19 -5
- package/dist/visio/shapes-storage.d.ts +15 -0
- package/dist/visio/shapes-window.d.ts +9 -2
- package/dist/visio/status-bar.d.ts +7 -4
- package/dist/visio/stencil-catalog.d.ts +4 -0
- package/dist/visio/styles/theme.d.ts +1 -1
- package/dist/visio/styles.d.ts +1 -1
- package/dist/visio/text-measurer.d.ts +25 -0
- package/dist/visio/title-bar.d.ts +9 -0
- package/dist/visio/viewer-auto-connect-parts.d.ts +12 -0
- package/dist/visio/viewer-auto-connect.d.ts +33 -0
- package/dist/visio/viewer-backstage.d.ts +2 -1
- package/dist/visio/viewer-canvas.d.ts +1 -1
- package/dist/visio/viewer-change-shape.d.ts +8 -4
- package/dist/visio/viewer-chrome.d.ts +13 -5
- package/dist/visio/viewer-color-menus.d.ts +34 -0
- package/dist/visio/viewer-commands.d.ts +4 -1
- package/dist/visio/viewer-connector-tool.d.ts +5 -3
- package/dist/visio/viewer-data-window.d.ts +5 -1
- package/dist/visio/viewer-draw-tool.d.ts +1 -11
- package/dist/visio/viewer-element.d.ts +16 -0
- package/dist/visio/viewer-format-pane.d.ts +26 -0
- package/dist/visio/viewer-guides.d.ts +7 -4
- package/dist/visio/viewer-inline-text.d.ts +31 -0
- package/dist/visio/viewer-input.d.ts +5 -1
- package/dist/visio/viewer-layer-properties.d.ts +18 -0
- package/dist/visio/viewer-layout-commands.d.ts +8 -2
- package/dist/visio/viewer-more-colors.d.ts +16 -0
- package/dist/visio/viewer-options.d.ts +18 -4
- package/dist/visio/viewer-page-setup.d.ts +6 -0
- package/dist/visio/viewer-ruler-grid.d.ts +25 -0
- package/dist/visio/viewer-ruler.d.ts +11 -3
- package/dist/visio/viewer-snap-glue.d.ts +23 -0
- package/dist/visio/viewer-stencil.d.ts +4 -1
- package/dist/visio.js +7595 -5944
- package/dist/xlsx/component.d.ts +8 -0
- package/dist/xlsx/dialogs/format-cells/color-swatches.d.ts +4 -2
- package/dist/xlsx/dialogs/styles.d.ts +1 -1
- package/dist/xlsx/events.d.ts +4 -1
- package/dist/xlsx/index.d.ts +1 -0
- package/dist/xlsx/ribbon/color-grid.d.ts +25 -7
- package/dist/xlsx/ribbon/ribbon.d.ts +3 -0
- package/dist/xlsx.js +121 -163
- package/package.json +3 -2
- package/dist/pptx/render/connector-router-astar.d.ts +0 -24
- package/dist/pptx/render/connector-router-astar.d.ts.map +0 -1
- package/dist/pptx/render/connector-router-graph.d.ts +0 -38
- package/dist/pptx/render/connector-router-graph.d.ts.map +0 -1
- package/dist/visio/format-shape-dialog.d.ts +0 -21
- package/dist/visio/viewer-edit-controls.d.ts +0 -12
- package/dist/visio/viewer-format-shape.d.ts +0 -16
- package/dist/visio/viewer-geometry-controls.d.ts +0 -14
- package/dist/visio/viewer-layer-controls.d.ts +0 -5
- package/dist/visio/viewer-paint-dialog.d.ts +0 -28
- package/dist/visio/viewer-paint-properties.d.ts +0 -13
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OfficeElement } from '../base.js';
|
|
2
|
+
/** Detail of `office-color-change`: the colour as lower-case `#rrggbb`. */
|
|
3
|
+
export interface OfficeColorChange {
|
|
4
|
+
color: string;
|
|
5
|
+
}
|
|
6
|
+
export type OfficeColorChangeEvent = CustomEvent<OfficeColorChange>;
|
|
7
|
+
type Channel = 'red' | 'green' | 'blue' | 'hue' | 'sat' | 'lum';
|
|
8
|
+
/**
|
|
9
|
+
* `<office-ui-color-custom>`: the Custom tab of Office's Colors dialog. A hue (across) and
|
|
10
|
+
* saturation (up) square, a luminance slider, Hex, Red/Green/Blue and Hue/Sat/Lum fields (0-255,
|
|
11
|
+
* as Office shows them) that follow each other, and New over Current swatches. `value` is the
|
|
12
|
+
* colour (`#rrggbb`); `current` the colour being replaced. Every change emits
|
|
13
|
+
* `office-color-change` `{ color }`. The square and the slider take the arrow keys (Shift moves
|
|
14
|
+
* in larger steps), Home and End. The element is only the body: a product puts it in its dialog.
|
|
15
|
+
*/
|
|
16
|
+
export declare class OfficeUiColorCustom extends OfficeElement {
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
static properties: {
|
|
19
|
+
value: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
noAccessor: boolean;
|
|
22
|
+
};
|
|
23
|
+
current: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
label: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
reflect: true;
|
|
32
|
+
converter: {
|
|
33
|
+
fromAttribute: (value: string | null) => boolean;
|
|
34
|
+
toAttribute: (value: unknown) => string | null;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
hsl: {
|
|
38
|
+
state: boolean;
|
|
39
|
+
};
|
|
40
|
+
typed: {
|
|
41
|
+
state: boolean;
|
|
42
|
+
};
|
|
43
|
+
bad: {
|
|
44
|
+
state: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
current: string | null;
|
|
48
|
+
label: string | null;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
/** Kept beside the colour so grey keeps its hue and black its saturation while dragging. */
|
|
51
|
+
hsl: {
|
|
52
|
+
h: number;
|
|
53
|
+
s: number;
|
|
54
|
+
l: number;
|
|
55
|
+
};
|
|
56
|
+
/** A hex being typed that is not a colour yet. */
|
|
57
|
+
typed: string | null;
|
|
58
|
+
/** A channel field holding something outside 0-255. */
|
|
59
|
+
bad: Channel | null;
|
|
60
|
+
constructor();
|
|
61
|
+
get value(): string;
|
|
62
|
+
set value(next: string | null);
|
|
63
|
+
private set;
|
|
64
|
+
private fromSquare;
|
|
65
|
+
private fromSlider;
|
|
66
|
+
private drag;
|
|
67
|
+
private squareKey;
|
|
68
|
+
private sliderKey;
|
|
69
|
+
private channels;
|
|
70
|
+
private onChannel;
|
|
71
|
+
private onHex;
|
|
72
|
+
/** Whether the fields hold a colour (a half-typed hex or an out-of-range channel does not). */
|
|
73
|
+
get valid(): boolean;
|
|
74
|
+
protected willUpdate(): void;
|
|
75
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
76
|
+
}
|
|
77
|
+
export declare const defineColorCustom: import("../registry.js").Definer;
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=color-custom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-custom.d.ts","sourceRoot":"","sources":["../../src/form/color-custom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAI7D,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAC;CACd;AACD,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAIpE,KAAK,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAWhE;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACrD,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;QACzB,KAAK;YAAI,IAAI;YAAU,UAAU;;QACjC,OAAO;YAAI,IAAI;;QACf,KAAK;YAAI,IAAI;;QACb,QAAQ;;;;;;;;QACR,GAAG;YAAI,KAAK;;QACZ,KAAK;YAAI,KAAK;;QACd,GAAG;YAAI,KAAK;;MACX;IACM,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAC1B,4FAA4F;IACpF,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,kDAAkD;IAC1C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,uDAAuD;IAC/C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IAE5B,cAQC;IAED,IAAI,KAAK,IAAI,MAAM,CAGlB;IACD,IAAI,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAQ5B;IAED,OAAO,CAAC,GAAG;IAQX,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,IAAI;IAmBZ,OAAO,CAAC,SAAS;IAsBjB,OAAO,CAAC,SAAS;IAmBjB,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,KAAK;IAYb,+FAA+F;IAC/F,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,UAAmB,UAAU,IAAI,IAAI,CAGpC;IAED,UAAmB,MAAM,oCAmFxB;CACD;AAED,eAAO,MAAM,iBAAiB,+BAA+D,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { type ThemePaletteSwatch, type ThemePaletteVariant } from 'ooxml-core/color';
|
|
2
|
+
import { OfficeElement } from '../base.js';
|
|
3
|
+
/** Where a picked colour came from. */
|
|
4
|
+
export type OfficeColorSource = 'theme' | 'extra' | 'standard' | 'recent' | 'none' | 'automatic';
|
|
5
|
+
/** Detail of `office-color-pick`: `color` is `#rrggbb`, `'none'` or `'automatic'`. */
|
|
6
|
+
export interface OfficeColorPick {
|
|
7
|
+
color: string;
|
|
8
|
+
source: OfficeColorSource;
|
|
9
|
+
label: string;
|
|
10
|
+
/** For a Theme Colors swatch: its column (0-9) and, below the base row, its variant. */
|
|
11
|
+
theme?: {
|
|
12
|
+
column: number;
|
|
13
|
+
variant?: ThemePaletteVariant;
|
|
14
|
+
};
|
|
15
|
+
/** For a swatch of the `extraColors` row: its position. */
|
|
16
|
+
index?: number;
|
|
17
|
+
}
|
|
18
|
+
export type OfficeColorPickEvent = CustomEvent<OfficeColorPick>;
|
|
19
|
+
/**
|
|
20
|
+
* `<office-ui-color-grid>`: Office's colour picker body. From the top: an optional `automatic-label`
|
|
21
|
+
* command (Automatic) and `none-label` command (No Fill, No Line), "Theme Colors" (ten columns, a
|
|
22
|
+
* base colour over its five lighter and darker variants, built from `themeColors`), "Standard
|
|
23
|
+
* Colors" (preceded by the `extraColors` row when a product has one, such as Visio's variant
|
|
24
|
+
* colours), "Recent Colors" when `recentColors` has any, and an optional `more-label` command (More
|
|
25
|
+
* Colors...). `value` (`#rrggbb`, `'none'` or `'automatic'`) marks the current choice.
|
|
26
|
+
*
|
|
27
|
+
* `themeNames` renames the ten columns and `variantLabel` names their variants (for a translated
|
|
28
|
+
* product). Choosing emits `office-color-pick`
|
|
29
|
+
* `{ color, source, label, theme?, index? }` (a theme swatch reports its column and variant, so a
|
|
30
|
+
* product can save a theme reference instead of the colour); the More Colors command emits
|
|
31
|
+
* `office-color-more`. Arrow keys move through the swatches and commands, Home and End jump to
|
|
32
|
+
* the ends; ArrowUp on the first row and ArrowDown on the last are left for a host menu. The
|
|
33
|
+
* element is only the grid: a product puts it in its own menu, popup or pane.
|
|
34
|
+
*/
|
|
35
|
+
export declare class OfficeUiColorGrid extends OfficeElement {
|
|
36
|
+
static styles: import("lit").CSSResult[];
|
|
37
|
+
static properties: {
|
|
38
|
+
themeColors: {
|
|
39
|
+
attribute: boolean;
|
|
40
|
+
};
|
|
41
|
+
themeNames: {
|
|
42
|
+
attribute: boolean;
|
|
43
|
+
};
|
|
44
|
+
variantLabel: {
|
|
45
|
+
attribute: boolean;
|
|
46
|
+
};
|
|
47
|
+
extraColors: {
|
|
48
|
+
attribute: boolean;
|
|
49
|
+
};
|
|
50
|
+
standardColors: {
|
|
51
|
+
attribute: boolean;
|
|
52
|
+
};
|
|
53
|
+
recentColors: {
|
|
54
|
+
attribute: boolean;
|
|
55
|
+
};
|
|
56
|
+
value: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
label: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
noneLabel: {
|
|
63
|
+
attribute: string;
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
automaticLabel: {
|
|
67
|
+
attribute: string;
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
};
|
|
70
|
+
moreLabel: {
|
|
71
|
+
attribute: string;
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
themeHeading: {
|
|
75
|
+
attribute: string;
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
};
|
|
78
|
+
standardHeading: {
|
|
79
|
+
attribute: string;
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
};
|
|
82
|
+
recentHeading: {
|
|
83
|
+
attribute: string;
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
reflect: true;
|
|
89
|
+
converter: {
|
|
90
|
+
fromAttribute: (value: string | null) => boolean;
|
|
91
|
+
toAttribute: (value: unknown) => string | null;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
/** Ten base colours in Office's order (Background 1, Text 1, Background 2, Text 2, Accent 1-6). */
|
|
96
|
+
themeColors: readonly (string | undefined)[] | null;
|
|
97
|
+
/** Names of the ten columns, when they are not Office's. */
|
|
98
|
+
themeNames: readonly string[] | null;
|
|
99
|
+
/** Names a variant swatch (a translated "Accent 1, Lighter 80%"); English when unset. */
|
|
100
|
+
variantLabel: ((column: string, variant: ThemePaletteVariant) => string) | null;
|
|
101
|
+
/** One more row of theme-bound swatches under the variants. */
|
|
102
|
+
extraColors: readonly ThemePaletteSwatch[];
|
|
103
|
+
standardColors: readonly ThemePaletteSwatch[];
|
|
104
|
+
recentColors: readonly string[];
|
|
105
|
+
value: string | null;
|
|
106
|
+
label: string | null;
|
|
107
|
+
noneLabel: string | null;
|
|
108
|
+
automaticLabel: string | null;
|
|
109
|
+
moreLabel: string | null;
|
|
110
|
+
themeHeading: string;
|
|
111
|
+
standardHeading: string;
|
|
112
|
+
recentHeading: string;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
constructor();
|
|
115
|
+
/** Focus the current choice, or the first item. */
|
|
116
|
+
focus(options?: FocusOptions): void;
|
|
117
|
+
private items;
|
|
118
|
+
private pick;
|
|
119
|
+
private more;
|
|
120
|
+
private onKey;
|
|
121
|
+
protected willUpdate(): void;
|
|
122
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
123
|
+
}
|
|
124
|
+
export declare const defineColorGrid: import("../registry.js").Definer;
|
|
125
|
+
//# sourceMappingURL=color-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-grid.d.ts","sourceRoot":"","sources":["../../src/form/color-grid.ts"],"names":[],"mappings":"AACA,OAAO,EAIN,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAI7D,uCAAuC;AACvC,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;AACjG,sFAAsF;AACtF,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,mBAAmB,CAAA;KAAE,CAAC;IAC1D,2DAA2D;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,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAE1B,cAiBC;IAED,mDAAmD;IAC1C,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAK3C;IAED,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,IAAI;IAUZ,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,KAAK;IA6Cb,UAAmB,UAAU,IAAI,IAAI,CAGpC;IAED,UAAmB,MAAM,oCA8FxB;CACD;AAED,eAAO,MAAM,eAAe,+BAA2D,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,14 @@ export * from './base.js';
|
|
|
2
2
|
export * from './controls.js';
|
|
3
3
|
export * from './glyph.js';
|
|
4
4
|
export * from './icons.js';
|
|
5
|
+
export * from './ribbon/add-in-tabs.js';
|
|
5
6
|
export * from './presence.js';
|
|
6
7
|
export * from './smartart.js';
|
|
7
8
|
export * from './teams/index.js';
|
|
8
9
|
export * from './theme.js';
|
|
9
10
|
export { CONTRACT_REVISION, type Definer } from './registry.js';
|
|
10
11
|
/** Every ooxml-ui tag this package defines, in registration order. */
|
|
11
|
-
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-symbol-picker", "office-ui-presence", "office-ui-smartart", "office-ui-avatar", "office-ui-app-rail", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls"];
|
|
12
|
+
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-task-pane", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-symbol-picker", "office-ui-color-grid", "office-ui-color-custom", "office-ui-presence", "office-ui-smartart", "office-ui-avatar", "office-ui-app-rail", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls"];
|
|
12
13
|
/**
|
|
13
14
|
* Install the theme tokens and define every element. Idempotent and safe to call from every
|
|
14
15
|
* viewer binding; a no-op where there is no DOM (SSR).
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-KF72ZA6V.js';
|
|
2
|
+
export { RIBBON_ADD_IN_EVENT, defineRibbonAddInElements, syncRibbonAddIns } from './chunk-W6AV3GHC.js';
|
|
2
3
|
export { OfficeUiSmartArt, defineSmartArt, renderDiagramDrawing } from './chunk-PXIYHFZ5.js';
|
|
3
|
-
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
4
|
+
export { EMOJI, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, applyTeamsProps, colorFor, createTeams, dayLabel, defineAppRail, defineAvatar, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-7US5GCXF.js';
|
|
4
5
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-SNV6YKPC.js';
|
|
5
6
|
export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, shadcnBridge, themeBridge } from './chunk-BCH2ZLWI.js';
|
|
6
|
-
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, 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, assignKeyTips, attachKeyTips, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, formatCommentTime, glyph, nextEnabledIndex, parseOfficeSymbolCode, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-
|
|
7
|
+
export { CONTROL_DEFINERS, DEFAULT_COMMENTS_LABELS, DEFAULT_OFFICE_PROFILE, 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, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, createRibbonOverflow, defineAccount, defineBackstage, defineButton, defineCheckbox, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineOptionsDialog, definePasteOptions, definePrintPreview, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, fitRibbonGroups, formatCommentTime, glyph, nextEnabledIndex, parseOfficeSymbolCode, parseSvgPreview, profileInitials, readOfficeProfile, registerControls, rulerDivisions, runKeyTips, sanitizeOfficeProfile, typeAheadIndex, writeOfficeProfile } from './chunk-O7APCA5N.js';
|
|
7
8
|
export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
8
9
|
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-L7JV5FVE.js';
|
|
9
10
|
export { CONTRACT_REVISION, OfficeElement, controlStyles, flag, readFlag, triState, valueOn, withTokens } from './chunk-OGNNNTKI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/menu/context-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAG7D,OAAO,EAON,KAAK,eAAe,EACpB,MAAM,cAAc,CAAC;AAetB;;;;;;;;;;;;;;;;GAgBG;AAC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,UAAmB,MAAM,sBA8BxB;CACD;AAED,eAAO,MAAM,iBAAiB,+BAA+D,CAAC"}
|
|
@@ -6,7 +6,8 @@ import { OfficeElement } from '../base.js';
|
|
|
6
6
|
* `disabled`, `main-disabled` (split command only), `title`, `keyshortcuts`. The menu uses the top layer (`popover`) so ribbon
|
|
7
7
|
* overflow never clips it. Keyboard: Enter, Space or ArrowDown open; arrows, Home and End move;
|
|
8
8
|
* Escape and Tab close; focus returns to the trigger. Choosing an item closes the menu; its
|
|
9
|
-
* `office-command` bubbles to the host.
|
|
9
|
+
* `office-command` bubbles to the host. A child marked `data-menu-item` (a colour grid, say) takes
|
|
10
|
+
* part in that focus order through its own `focus()`.
|
|
10
11
|
*/
|
|
11
12
|
export declare class OfficeUiMenuButton extends OfficeElement {
|
|
12
13
|
static styles: import("lit").CSSResult[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../src/menu/menu-button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAc7D
|
|
1
|
+
{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../src/menu/menu-button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,SAAS,CAAC;AAc7D;;;;;;;;;GASG;AACH,qBAAa,kBAAmB,SAAQ,aAAa;IACpD,OAAgB,MAAM,4BAAsB;IAC5C,OAAgB,UAAU;;YAChB,IAAI;;;YACL,IAAI;;;YACD,IAAI;YAAU,OAAO;;;YAChB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKZ,KAAK;;MACZ;IACM,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,OAAO,CA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MAAM,CAAC,YAAY,SAAkB;IACrC,OAAgB,MAAM,4BAAsB;IAG5C,OAAO,CAAC,KAAK,CAAqC;IAElD,IAAI,KAAK,IAAI,iBAAiB,CAE7B;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,iBAAiB,EAGjC;IAED,UAAmB,UAAU,CAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAIlE;IAED,UAAmB,MAAM,oCAyCxB;CACD;AAED,eAAO,MAAM,YAAY,+BAAoD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
1
|
+
import { widenPieViewModel, buildPerspCamera, createSvgEl, appendChartLegendSvg, renderChartLineSvg, renderChartTextSvg, perspBoxMatrix, pieRimPoint, perspScreenToPlaneY, resolvePieSliceShareValue, perspToScreen, roundDragValue, buildBarChart3DHoverTooltip, isChartInteractionArmed, computePieChartLayout, obliqueBarTaper } from './chunk-NAFUYAQP.mjs';
|
|
2
|
+
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-DPOES4WM.mjs';
|
|
3
3
|
|
|
4
4
|
// src/pptx/render/chart-3d-shading.ts
|
|
5
5
|
var FACE_SHADE_AMOUNT = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkK3S2A64B_cjs = require('./chunk-K3S2A64B.cjs');
|
|
4
|
+
var chunkVFPVEVF4_cjs = require('./chunk-VFPVEVF4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/pptx/render/chart-3d-shading.ts
|
|
7
7
|
var FACE_SHADE_AMOUNT = {
|
|
@@ -14,7 +14,7 @@ var FACE_SHADE_AMOUNT = {
|
|
|
14
14
|
};
|
|
15
15
|
function shadeChart3DFace(baseColor, face) {
|
|
16
16
|
const amount = FACE_SHADE_AMOUNT[face];
|
|
17
|
-
return amount === 0 ? baseColor :
|
|
17
|
+
return amount === 0 ? baseColor : chunkVFPVEVF4_cjs.shade(baseColor, amount);
|
|
18
18
|
}
|
|
19
19
|
function buildChart3DBoxFaceColors(baseColor) {
|
|
20
20
|
return [
|
|
@@ -203,7 +203,7 @@ function buildChart3DBarMeshes(three, layout, svgWidth, svgHeight) {
|
|
|
203
203
|
// src/pptx/render/chart-3d-chrome-overlay.ts
|
|
204
204
|
function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
205
205
|
const vm = box ? withBoxChromePositions(source) : source;
|
|
206
|
-
const svg =
|
|
206
|
+
const svg = chunkK3S2A64B_cjs.createSvgEl(doc, "svg", {
|
|
207
207
|
class: "pptxv-chart-3d-chrome",
|
|
208
208
|
viewBox: `0 0 ${vm.svgWidth} ${vm.svgHeight}`,
|
|
209
209
|
preserveAspectRatio: "none"
|
|
@@ -216,7 +216,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
216
216
|
svg.style.setProperty("pointer-events", "none");
|
|
217
217
|
if (vm.areaFill) {
|
|
218
218
|
svg.appendChild(
|
|
219
|
-
|
|
219
|
+
chunkK3S2A64B_cjs.createSvgEl(doc, "rect", {
|
|
220
220
|
x: 0,
|
|
221
221
|
y: 0,
|
|
222
222
|
width: vm.svgWidth,
|
|
@@ -227,7 +227,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
if (vm.title) {
|
|
230
|
-
const title =
|
|
230
|
+
const title = chunkK3S2A64B_cjs.createSvgEl(doc, "text", {
|
|
231
231
|
x: vm.titleX,
|
|
232
232
|
y: vm.titleY,
|
|
233
233
|
"text-anchor": "middle",
|
|
@@ -239,7 +239,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
239
239
|
});
|
|
240
240
|
if (vm.titleRunSpans && vm.titleRunSpans.length > 0) {
|
|
241
241
|
for (const run of vm.titleRunSpans) {
|
|
242
|
-
const tspan =
|
|
242
|
+
const tspan = chunkK3S2A64B_cjs.createSvgEl(doc, "tspan", {
|
|
243
243
|
"font-size": run.fontSize,
|
|
244
244
|
"font-weight": run.fontWeight,
|
|
245
245
|
"font-style": run.fontStyle,
|
|
@@ -258,28 +258,28 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
258
258
|
appendBoxLabels(doc, svg, vm, box.labels);
|
|
259
259
|
const legend = box.legend ?? vm.legend.map((item) => ({ ...item, lineSwatch: void 0 }));
|
|
260
260
|
const legendVm = { ...vm, legend: box.reverseLegend ? legend.reverse() : legend };
|
|
261
|
-
|
|
261
|
+
chunkK3S2A64B_cjs.appendChartLegendSvg(doc, svg, legendVm);
|
|
262
262
|
return svg;
|
|
263
263
|
}
|
|
264
264
|
for (const gl of vm.gridlines) {
|
|
265
|
-
svg.appendChild(
|
|
265
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartLineSvg(doc, gl));
|
|
266
266
|
}
|
|
267
267
|
for (const gl of vm.secondaryGridlines ?? []) {
|
|
268
|
-
svg.appendChild(
|
|
268
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartLineSvg(doc, gl));
|
|
269
269
|
}
|
|
270
270
|
for (const lbl of vm.axisLabels) {
|
|
271
|
-
svg.appendChild(
|
|
271
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartTextSvg(doc, lbl));
|
|
272
272
|
}
|
|
273
273
|
for (const lbl of vm.secondaryAxisLabels ?? []) {
|
|
274
|
-
svg.appendChild(
|
|
274
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartTextSvg(doc, lbl));
|
|
275
275
|
}
|
|
276
276
|
if (vm.zeroLine) {
|
|
277
|
-
svg.appendChild(
|
|
277
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartLineSvg(doc, vm.zeroLine));
|
|
278
278
|
}
|
|
279
279
|
for (const lbl of vm.categoryLabels) {
|
|
280
|
-
svg.appendChild(
|
|
280
|
+
svg.appendChild(chunkK3S2A64B_cjs.renderChartTextSvg(doc, lbl));
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
chunkK3S2A64B_cjs.appendChartLegendSvg(doc, svg, vm);
|
|
283
283
|
return svg;
|
|
284
284
|
}
|
|
285
285
|
var PT = 4 / 3;
|
|
@@ -298,7 +298,7 @@ function appendBoxLabels(doc, svg, vm, labels) {
|
|
|
298
298
|
const style = vm.axisLabels[0];
|
|
299
299
|
for (const label of labels) {
|
|
300
300
|
svg.appendChild(
|
|
301
|
-
|
|
301
|
+
chunkK3S2A64B_cjs.renderChartTextSvg(doc, {
|
|
302
302
|
kind: "text",
|
|
303
303
|
x: label.x,
|
|
304
304
|
y: label.y,
|
|
@@ -368,7 +368,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
368
368
|
}
|
|
369
369
|
const point = pointAt(event.clientX, event.clientY);
|
|
370
370
|
const value = point ? adapter.valueOf(point) : void 0;
|
|
371
|
-
const tooltip = point && value !== void 0 ?
|
|
371
|
+
const tooltip = point && value !== void 0 ? chunkK3S2A64B_cjs.buildBarChart3DHoverTooltip(
|
|
372
372
|
{ seriesIndex: point.seriesIndex, categoryIndex: point.pointIndex, value },
|
|
373
373
|
{
|
|
374
374
|
categoryLabels: options.categoryLabels,
|
|
@@ -386,7 +386,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
const point = pointAt(event.clientX, event.clientY);
|
|
389
|
-
const armed = point !== null &&
|
|
389
|
+
const armed = point !== null && chunkK3S2A64B_cjs.isChartInteractionArmed(target);
|
|
390
390
|
if (armed) {
|
|
391
391
|
event.stopPropagation();
|
|
392
392
|
}
|
|
@@ -462,7 +462,7 @@ function obliqueDragValue(layout, startValue, dx, dy) {
|
|
|
462
462
|
const along = layout.horizontal ? dx : -dy;
|
|
463
463
|
const raw = startValue + along / layout.valueScale;
|
|
464
464
|
const span = layout.range.max - layout.range.min;
|
|
465
|
-
return
|
|
465
|
+
return chunkK3S2A64B_cjs.roundDragValue(raw, { min: layout.range.min, max: layout.range.max, span });
|
|
466
466
|
}
|
|
467
467
|
function obliqueDraggedExtent(layout, value) {
|
|
468
468
|
const { min, max } = layout.range;
|
|
@@ -475,7 +475,7 @@ function obliqueDraggedExtent(layout, value) {
|
|
|
475
475
|
function obliqueBarAtValue(layout, bar, value) {
|
|
476
476
|
const { from, length } = obliqueDraggedExtent(layout, value);
|
|
477
477
|
const extent = (layout.range.max - layout.range.min) * layout.valueScale;
|
|
478
|
-
const taper =
|
|
478
|
+
const taper = chunkK3S2A64B_cjs.obliqueBarTaper(bar.shape, from, from + length, extent, value);
|
|
479
479
|
return layout.horizontal ? { ...bar, x: from, w: length, value, taper } : { ...bar, y: from, h: length, value, taper };
|
|
480
480
|
}
|
|
481
481
|
|
|
@@ -567,7 +567,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
567
567
|
const nSer = chartData.series.length;
|
|
568
568
|
const catExtent = layout.horizontal ? layout.view.box.h : layout.view.box.w;
|
|
569
569
|
const slot = nCat > 0 ? catExtent / nCat : catExtent;
|
|
570
|
-
const gapWidth = (chartData.barGapWidth ??
|
|
570
|
+
const gapWidth = (chartData.barGapWidth ?? chunkVFPVEVF4_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
|
|
571
571
|
const slots = layout.grouping === "clustered" ? nSer : 1;
|
|
572
572
|
const barW = slot / (slots + gapWidth);
|
|
573
573
|
const depth = Math.min(barW, layout.rowDepth);
|
|
@@ -620,7 +620,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
620
620
|
z0,
|
|
621
621
|
z1: z0 + depth,
|
|
622
622
|
shape,
|
|
623
|
-
taper:
|
|
623
|
+
taper: chunkK3S2A64B_cjs.obliqueBarTaper(
|
|
624
624
|
shape,
|
|
625
625
|
v0,
|
|
626
626
|
v1,
|
|
@@ -815,7 +815,7 @@ function buildPerspGridlines(three, layout) {
|
|
|
815
815
|
function buildPerspMeshes(three, layout, prisms) {
|
|
816
816
|
const group = new three.Group();
|
|
817
817
|
group.matrixAutoUpdate = false;
|
|
818
|
-
group.matrix.copy(
|
|
818
|
+
group.matrix.copy(chunkK3S2A64B_cjs.perspBoxMatrix(three, layout.view));
|
|
819
819
|
const gridlines = buildPerspGridlines(three, layout);
|
|
820
820
|
group.add(gridlines);
|
|
821
821
|
const material = new three.MeshBasicMaterial({ vertexColors: true, side: three.DoubleSide });
|
|
@@ -870,7 +870,7 @@ function surfaceBands(chartData, range, palette) {
|
|
|
870
870
|
const fmt = chartData.bandFmts?.find((b) => b.index === i)?.spPr;
|
|
871
871
|
const cycle = palette.length > 0 ? palette : ["#4472C4"];
|
|
872
872
|
const base = cycle[i % cycle.length];
|
|
873
|
-
const fallback = Math.floor(i / cycle.length) % 2 === 1 ?
|
|
873
|
+
const fallback = Math.floor(i / cycle.length) % 2 === 1 ? chunkVFPVEVF4_cjs.shade(base, 0.4) : base;
|
|
874
874
|
return {
|
|
875
875
|
label: `${formatEdge(lo)}-${formatEdge(edges[i + 1])}`,
|
|
876
876
|
color: fmt?.fillColor ?? fmt?.strokeColor ?? fallback
|
|
@@ -1054,7 +1054,7 @@ function disposeObject(object) {
|
|
|
1054
1054
|
function buildSurfaceMarks(three, chartData, layout, palette) {
|
|
1055
1055
|
const group = new three.Group();
|
|
1056
1056
|
group.matrixAutoUpdate = false;
|
|
1057
|
-
group.matrix.copy(
|
|
1057
|
+
group.matrix.copy(chunkK3S2A64B_cjs.perspBoxMatrix(three, layout.view));
|
|
1058
1058
|
const gridlines = buildPerspGridlines(three, layout);
|
|
1059
1059
|
group.add(gridlines);
|
|
1060
1060
|
let visual = buildVisual(three, chartData, layout, palette);
|
|
@@ -1194,8 +1194,8 @@ function surfaceLegend(chartData, layout, palette, background, textStyle) {
|
|
|
1194
1194
|
function mountPerspChartView(input, ctx) {
|
|
1195
1195
|
const three = ctx.three;
|
|
1196
1196
|
const { vm, layout, chartData } = input;
|
|
1197
|
-
const palette =
|
|
1198
|
-
const camera =
|
|
1197
|
+
const palette = chunkVFPVEVF4_cjs.resolveChartPalette(chartData);
|
|
1198
|
+
const camera = chunkK3S2A64B_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1199
1199
|
const scene = new three.Scene();
|
|
1200
1200
|
const marks = buildPerspMarkSet(three, chartData, layout, palette);
|
|
1201
1201
|
scene.add(marks.group);
|
|
@@ -1244,15 +1244,15 @@ function mountPerspChartView(input, ctx) {
|
|
|
1244
1244
|
const a = marks.anchor(point, start);
|
|
1245
1245
|
const step = unit * layout.valueScale;
|
|
1246
1246
|
const b = layout.horizontal ? [a[0] + step, a[1], a[2]] : [a[0], a[1] + step, a[2]];
|
|
1247
|
-
const s0 =
|
|
1248
|
-
const s1 =
|
|
1247
|
+
const s0 = chunkK3S2A64B_cjs.perspToScreen(layout.view, a);
|
|
1248
|
+
const s1 = chunkK3S2A64B_cjs.perspToScreen(layout.view, b);
|
|
1249
1249
|
const ux = (s1.x - s0.x) / unit;
|
|
1250
1250
|
const uy = (s1.y - s0.y) / unit;
|
|
1251
1251
|
const len2 = ux * ux + uy * uy || 1;
|
|
1252
1252
|
const span = layout.range.max - layout.range.min;
|
|
1253
1253
|
return {
|
|
1254
1254
|
preview(dx, dy) {
|
|
1255
|
-
const value =
|
|
1255
|
+
const value = chunkK3S2A64B_cjs.roundDragValue(start + (dx * ux + dy * uy) / len2, {
|
|
1256
1256
|
min: layout.range.min,
|
|
1257
1257
|
max: layout.range.max,
|
|
1258
1258
|
span
|
|
@@ -1340,7 +1340,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1340
1340
|
const steps = Math.max(2, Math.ceil(span / (Math.PI * 2) * SEGMENTS_PER_TURN));
|
|
1341
1341
|
const angles = Array.from({ length: steps + 1 }, (_, i) => slice.startAngle + span * i / steps);
|
|
1342
1342
|
const rim = (a, y) => {
|
|
1343
|
-
const p =
|
|
1343
|
+
const p = chunkK3S2A64B_cjs.pieRimPoint(cx, cz, r, a);
|
|
1344
1344
|
return [p.x, y, p.z];
|
|
1345
1345
|
};
|
|
1346
1346
|
const radial = (a) => [Math.sin(a), 0, Math.cos(a)];
|
|
@@ -1384,7 +1384,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1384
1384
|
function buildPieMarks(three, layout) {
|
|
1385
1385
|
const group = new three.Group();
|
|
1386
1386
|
group.matrixAutoUpdate = false;
|
|
1387
|
-
group.matrix.copy(
|
|
1387
|
+
group.matrix.copy(chunkK3S2A64B_cjs.perspBoxMatrix(three, layout.view));
|
|
1388
1388
|
const material = new three.MeshBasicMaterial({
|
|
1389
1389
|
vertexColors: true,
|
|
1390
1390
|
side: three.DoubleSide,
|
|
@@ -1448,12 +1448,12 @@ function slicesWith(input, pointIndex, value) {
|
|
|
1448
1448
|
...input.element,
|
|
1449
1449
|
chartData: { ...input.chartData, series }
|
|
1450
1450
|
};
|
|
1451
|
-
return
|
|
1451
|
+
return chunkK3S2A64B_cjs.computePieChartLayout(element, input.vm)?.slices ?? input.layout.slices;
|
|
1452
1452
|
}
|
|
1453
1453
|
function mountPieChartView(input, ctx) {
|
|
1454
1454
|
const three = ctx.three;
|
|
1455
1455
|
const { vm, layout, chartData } = input;
|
|
1456
|
-
const camera =
|
|
1456
|
+
const camera = chunkK3S2A64B_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1457
1457
|
const scene = new three.Scene();
|
|
1458
1458
|
const marks = buildPieMarks(three, layout);
|
|
1459
1459
|
scene.add(marks.group);
|
|
@@ -1494,7 +1494,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1494
1494
|
const start = values();
|
|
1495
1495
|
return {
|
|
1496
1496
|
preview(_dx, _dy, at) {
|
|
1497
|
-
const hit =
|
|
1497
|
+
const hit = chunkK3S2A64B_cjs.perspScreenToPlaneY(layout.view, at.x, at.y, layout.center.y);
|
|
1498
1498
|
if (!hit) {
|
|
1499
1499
|
return start[point.pointIndex];
|
|
1500
1500
|
}
|
|
@@ -1502,7 +1502,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1502
1502
|
hit.x - layout.center.x - slice.offset.x,
|
|
1503
1503
|
hit.z - layout.center.z - slice.offset.z
|
|
1504
1504
|
);
|
|
1505
|
-
const value =
|
|
1505
|
+
const value = chunkK3S2A64B_cjs.resolvePieSliceShareValue(
|
|
1506
1506
|
angle,
|
|
1507
1507
|
slice.startAngle,
|
|
1508
1508
|
start,
|
|
@@ -1518,7 +1518,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1518
1518
|
marker.visible = slice !== void 0;
|
|
1519
1519
|
if (slice) {
|
|
1520
1520
|
const mid = (slice.startAngle + slice.endAngle) / 2;
|
|
1521
|
-
const p =
|
|
1521
|
+
const p = chunkK3S2A64B_cjs.pieRimPoint(
|
|
1522
1522
|
layout.center.x + slice.offset.x,
|
|
1523
1523
|
layout.center.z + slice.offset.z,
|
|
1524
1524
|
layout.radius * 0.6,
|
|
@@ -1583,7 +1583,7 @@ async function mountChart3DView(spec, ctx) {
|
|
|
1583
1583
|
return mountPieChartView(
|
|
1584
1584
|
{
|
|
1585
1585
|
element: spec.element,
|
|
1586
|
-
vm:
|
|
1586
|
+
vm: chunkK3S2A64B_cjs.widenPieViewModel(spec.vm, spec.element),
|
|
1587
1587
|
layout: spec.geometry.layout,
|
|
1588
1588
|
chartData: chartData2,
|
|
1589
1589
|
categoryLabels: spec.categoryLabels
|
|
@@ -114,7 +114,7 @@ async function loadChart3DThree() {
|
|
|
114
114
|
|
|
115
115
|
// src/pptx/three-view/scene-registry.ts
|
|
116
116
|
var loaders = {
|
|
117
|
-
chart: async () => (await import('./chart-3d-view-scene-
|
|
117
|
+
chart: async () => (await import('./chart-3d-view-scene-V74F7ZOC.cjs')).mountChart3DView,
|
|
118
118
|
smartart: async () => (await import('./view-scene-4ZFUCP6S.cjs')).mountSmartArt3DView
|
|
119
119
|
};
|
|
120
120
|
async function loadThreeViewScene(kind) {
|