ooxml-ui 1.26.0 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/building-block-styles.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +0 -1
- package/dist/chart/format-pane-common.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-locales/fr.d.ts +0 -1
- package/dist/chart/format-pane-locales/index.d.ts +0 -1
- package/dist/chart/format-pane-translate.d.ts +0 -1
- package/dist/chrome/backstage.d.ts +1 -2
- package/dist/chrome/find-bar.d.ts +1 -2
- package/dist/dialog/chart-picker.d.ts +1 -2
- package/dist/dialog/options-categories.d.ts +0 -1
- package/dist/menu/command-search.d.ts +1 -2
- package/dist/menu/menu-separator.d.ts +1 -2
- package/dist/notices/toasts.d.ts +1 -2
- package/dist/pptx/{chunk-LUDEAPHZ.cjs → chunk-BC23E73O.cjs} +43 -43
- package/dist/pptx/{chunk-HAO5PKWK.cjs → chunk-BGABXFCV.cjs} +3 -3
- package/dist/pptx/{chunk-CWHK7HF4.mjs → chunk-CZUEATSN.mjs} +1 -1
- package/dist/pptx/{chunk-IWUIGVWT.mjs → chunk-NHRL2D4I.mjs} +3 -3
- package/dist/pptx/dom/index.cjs +384 -384
- package/dist/pptx/dom/index.mjs +4 -4
- package/dist/pptx/index.cjs +2988 -2988
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/ribbon-galleries/themes-gallery.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-HMSNUWDO.mjs → smartart-insert-preview-TJEN4WYF.mjs} +2 -2
- package/dist/pptx/{smartart-insert-preview-5ZTZYAZR.cjs → smartart-insert-preview-TYCMBIUH.cjs} +3 -3
- package/dist/ribbon/keytip-run.d.ts +0 -1
- package/dist/ribbon/ribbon-stack.d.ts +1 -2
- package/dist/theme.d.ts +0 -1
- package/package.json +2 -2
|
@@ -2,4 +2,3 @@ export type OfficeUiBlockKind = 'toolbar' | 'formula-bar' | 'tabs' | 'inspector'
|
|
|
2
2
|
export type OfficeUiProduct = 'docx' | 'xlsx' | 'visio' | 'pptx';
|
|
3
3
|
/** Opt-in styles for native framework controls. They never target host-owned controls implicitly. */
|
|
4
4
|
export declare const BUILDING_BLOCKS_CSS: string;
|
|
5
|
-
//# sourceMappingURL=building-block-styles.d.ts.map
|
|
@@ -4,4 +4,3 @@ 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
|
|
@@ -20,4 +20,3 @@ 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
|
|
@@ -10,4 +10,3 @@ 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
|
|
@@ -4,4 +4,3 @@ export type ChartFormatLocale = (typeof CHART_FORMAT_LOCALES)[number];
|
|
|
4
4
|
export declare const CHART_FORMAT_STRINGS: Readonly<Record<ChartFormatLocale, Readonly<Record<string, string>>>>;
|
|
5
5
|
/** `strings` with every key prefixed (PowerPoint's dictionary keeps them as `pptx.chartFormat.*`). */
|
|
6
6
|
export declare function prefixChartFormatStrings(strings: Readonly<Record<string, string>>, prefix: string): Record<string, string>;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,3 @@ export declare const chartFormatLocale: (value: string | null | undefined) => Ch
|
|
|
7
7
|
* where it knows the key, that is where it returns neither the key nor an empty string.
|
|
8
8
|
*/
|
|
9
9
|
export declare function chartFormatTranslator(locale: string | null | undefined, override?: ChartFormatTranslate): ChartFormatTranslate;
|
|
10
|
-
//# sourceMappingURL=format-pane-translate.d.ts.map
|
|
@@ -79,5 +79,4 @@ export declare class OfficeUiBackstage extends OfficeElement {
|
|
|
79
79
|
private item;
|
|
80
80
|
protected render(): import("lit").TemplateResult<1>;
|
|
81
81
|
}
|
|
82
|
-
export declare const defineBackstage: import("../
|
|
83
|
-
//# sourceMappingURL=backstage.d.ts.map
|
|
82
|
+
export declare const defineBackstage: import("../index.js").Definer;
|
|
@@ -193,5 +193,4 @@ 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("../
|
|
197
|
-
//# sourceMappingURL=find-bar.d.ts.map
|
|
196
|
+
export declare const defineFindBar: import("../index.js").Definer;
|
|
@@ -74,5 +74,4 @@ export declare class OfficeUiChartPicker extends OfficeElement {
|
|
|
74
74
|
protected updated(): void;
|
|
75
75
|
protected render(): import("lit").TemplateResult<1>;
|
|
76
76
|
}
|
|
77
|
-
export declare const defineChartPicker: import("../
|
|
78
|
-
//# sourceMappingURL=chart-picker.d.ts.map
|
|
77
|
+
export declare const defineChartPicker: import("../index.js").Definer;
|
|
@@ -36,4 +36,3 @@ export declare function personalizeSection(context: OptionsContext, controls: re
|
|
|
36
36
|
/** The dialog's own buttons in the product's language. */
|
|
37
37
|
export declare function optionsLabels(context: OptionsContext): OfficeOptionsLabels;
|
|
38
38
|
export {};
|
|
39
|
-
//# sourceMappingURL=options-categories.d.ts.map
|
|
@@ -71,5 +71,4 @@ export declare class OfficeUiCommandSearch extends OfficeElement {
|
|
|
71
71
|
private optionTemplates;
|
|
72
72
|
protected render(): import("lit").TemplateResult<1>;
|
|
73
73
|
}
|
|
74
|
-
export declare const defineCommandSearch: import("../
|
|
75
|
-
//# sourceMappingURL=command-search.d.ts.map
|
|
74
|
+
export declare const defineCommandSearch: import("../index.js").Definer;
|
|
@@ -4,5 +4,4 @@ export declare class OfficeUiMenuSeparator extends OfficeElement {
|
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
protected willUpdate(): void;
|
|
6
6
|
}
|
|
7
|
-
export declare const defineMenuSeparator: import("../
|
|
8
|
-
//# sourceMappingURL=menu-separator.d.ts.map
|
|
7
|
+
export declare const defineMenuSeparator: import("../index.js").Definer;
|
package/dist/notices/toasts.d.ts
CHANGED
|
@@ -37,5 +37,4 @@ export declare class OfficeUiToasts extends OfficeElement {
|
|
|
37
37
|
protected willUpdate(_changed: PropertyValues<this>): void;
|
|
38
38
|
protected render(): import("lit").TemplateResult<1>;
|
|
39
39
|
}
|
|
40
|
-
export declare const defineToasts: import("../
|
|
41
|
-
//# sourceMappingURL=toasts.d.ts.map
|
|
40
|
+
export declare const defineToasts: import("../index.js").Definer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBGABXFCV_cjs = require('./chunk-BGABXFCV.cjs');
|
|
4
4
|
var chunk6KLPQQYP_cjs = require('./chunk-6KLPQQYP.cjs');
|
|
5
5
|
var chunkFM4C4MBJ_cjs = require('./chunk-FM4C4MBJ.cjs');
|
|
6
6
|
|
|
@@ -102,7 +102,7 @@ function mountThreeViewInto(doc, wrapper, options) {
|
|
|
102
102
|
return view;
|
|
103
103
|
}
|
|
104
104
|
function isChart3DEditable(element, context) {
|
|
105
|
-
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) &&
|
|
105
|
+
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkBGABXFCV_cjs.canDrillDown(element);
|
|
106
106
|
}
|
|
107
107
|
function selectedChartPartOf(element, context) {
|
|
108
108
|
return context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
@@ -144,13 +144,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
|
|
|
144
144
|
const listeners = new AbortController();
|
|
145
145
|
chartViewListeners.set(view, listeners);
|
|
146
146
|
view.addEventListener(
|
|
147
|
-
|
|
148
|
-
(event) =>
|
|
147
|
+
chunkBGABXFCV_cjs.THREE_VIEW_EVENTS.select,
|
|
148
|
+
(event) => chunkBGABXFCV_cjs.applyChart3DSelect(bridge, event.detail.part),
|
|
149
149
|
{ signal: listeners.signal }
|
|
150
150
|
);
|
|
151
151
|
view.addEventListener(
|
|
152
|
-
|
|
153
|
-
(event) =>
|
|
152
|
+
chunkBGABXFCV_cjs.THREE_VIEW_EVENTS.drag,
|
|
153
|
+
(event) => chunkBGABXFCV_cjs.applyChart3DDrag(bridge, event.detail),
|
|
154
154
|
{ signal: listeners.signal }
|
|
155
155
|
);
|
|
156
156
|
}
|
|
@@ -164,7 +164,7 @@ function applyThreeViewTextStyle(el, style) {
|
|
|
164
164
|
// src/pptx/dom/elements/smartart-3d.ts
|
|
165
165
|
var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
166
166
|
const wrapper = renderSmartArtSvg(element, zIndex, context);
|
|
167
|
-
const spec = wrapper ?
|
|
167
|
+
const spec = wrapper ? chunkBGABXFCV_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
|
|
168
168
|
if (!wrapper || !spec) {
|
|
169
169
|
return wrapper;
|
|
170
170
|
}
|
|
@@ -174,18 +174,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
|
174
174
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
175
175
|
});
|
|
176
176
|
if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
|
|
177
|
-
const layer = renderSmartArtSvg(
|
|
177
|
+
const layer = renderSmartArtSvg(chunkBGABXFCV_cjs.elementInLocalFrame(element), 0, context);
|
|
178
178
|
if (layer) {
|
|
179
179
|
layer.classList.add("pptxv-smartart-3d-edit-layer");
|
|
180
|
-
layer.setAttribute(
|
|
181
|
-
|
|
180
|
+
layer.setAttribute(chunkBGABXFCV_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE, "true");
|
|
181
|
+
chunkBGABXFCV_cjs.stripEditLayerMarkers(layer);
|
|
182
182
|
layer.setAttribute("aria-hidden", "true");
|
|
183
183
|
Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
|
|
184
184
|
for (const svg of layer.querySelectorAll("svg")) {
|
|
185
185
|
svg.style.opacity = "0";
|
|
186
186
|
}
|
|
187
187
|
wrapper.appendChild(layer);
|
|
188
|
-
|
|
188
|
+
chunkBGABXFCV_cjs.routeEditLayerPointerToNodes(layer);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
return wrapper;
|
|
@@ -198,14 +198,14 @@ function nodeTarget(target) {
|
|
|
198
198
|
}
|
|
199
199
|
function enableSmartArtEditing(chrome, element, context) {
|
|
200
200
|
const data = element.smartArtData;
|
|
201
|
-
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !
|
|
201
|
+
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkBGABXFCV_cjs.canDrillDown(element)) {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
let editor = null;
|
|
205
205
|
let swatches = null;
|
|
206
206
|
let hideTimer;
|
|
207
207
|
const cancelHide = () => clearTimeout(hideTimer);
|
|
208
|
-
const ignoredHover = (event) => chrome.closest(`[${
|
|
208
|
+
const ignoredHover = (event) => chrome.closest(`[${chunkBGABXFCV_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE}]`) !== null && !chunkBGABXFCV_cjs.isForwardedEditLayerEvent(event);
|
|
209
209
|
const closeEditor = (input = editor) => {
|
|
210
210
|
if (!input || input !== editor) {
|
|
211
211
|
return;
|
|
@@ -221,8 +221,8 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
221
221
|
}
|
|
222
222
|
event.stopPropagation();
|
|
223
223
|
const textNode = target.querySelector("text");
|
|
224
|
-
const textRect = textNode ?
|
|
225
|
-
const rect = textRect && textRect.width > 0 ? textRect :
|
|
224
|
+
const textRect = textNode ? chunkBGABXFCV_cjs.measureSvgViewportRect(textNode) : null;
|
|
225
|
+
const rect = textRect && textRect.width > 0 ? textRect : chunkBGABXFCV_cjs.measureSvgViewportRect(target);
|
|
226
226
|
if (!rect) {
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
@@ -246,7 +246,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
246
246
|
textAlign: "center"
|
|
247
247
|
});
|
|
248
248
|
editor = input;
|
|
249
|
-
input.value =
|
|
249
|
+
input.value = chunkBGABXFCV_cjs.findSmartArtNodeText(data, nodeId) ?? "";
|
|
250
250
|
const commit = () => {
|
|
251
251
|
if (input !== editor) {
|
|
252
252
|
return;
|
|
@@ -281,7 +281,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
281
281
|
}
|
|
282
282
|
cancelHide();
|
|
283
283
|
swatches?.remove();
|
|
284
|
-
const rect =
|
|
284
|
+
const rect = chunkBGABXFCV_cjs.measureSvgViewportRect(target);
|
|
285
285
|
if (!rect) {
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
@@ -300,7 +300,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
300
300
|
});
|
|
301
301
|
swatches.setAttribute("role", "group");
|
|
302
302
|
swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
|
|
303
|
-
for (const color of
|
|
303
|
+
for (const color of chunkBGABXFCV_cjs.resolvePalette(data).slice(0, 6)) {
|
|
304
304
|
const button = createEl(chrome.ownerDocument, "button", "", {
|
|
305
305
|
width: "18px",
|
|
306
306
|
height: "18px",
|
|
@@ -402,7 +402,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
|
|
|
402
402
|
svg.setAttribute("class", "pptxv-smartart-svg");
|
|
403
403
|
svg.setAttribute("style", SMARTART_SVG_STYLE);
|
|
404
404
|
for (const conn of layout.connectors) {
|
|
405
|
-
const paint =
|
|
405
|
+
const paint = chunkBGABXFCV_cjs.smartArtConnectorPaint(conn);
|
|
406
406
|
svg.appendChild(
|
|
407
407
|
createSvgEl(doc, "path", {
|
|
408
408
|
d: paint.d,
|
|
@@ -461,7 +461,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
|
|
|
461
461
|
})
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const label =
|
|
464
|
+
const label = chunkBGABXFCV_cjs.smartArtNodeLabel(node);
|
|
465
465
|
if (label.visible) {
|
|
466
466
|
appendSvgTextLines(doc, g, {
|
|
467
467
|
lines: label.lines,
|
|
@@ -497,41 +497,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
497
497
|
doc,
|
|
498
498
|
"div",
|
|
499
499
|
"pptxv-element pptxv-smartart",
|
|
500
|
-
|
|
500
|
+
chunkBGABXFCV_cjs.getContainerStyle(element, zIndex)
|
|
501
501
|
);
|
|
502
502
|
wrapper.dataset.elementId = element.id;
|
|
503
503
|
wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
|
|
504
|
-
const chrome = createEl(doc, "div", "pptxv-smartart-chrome",
|
|
504
|
+
const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkBGABXFCV_cjs.buildChromeStyle(data?.chrome));
|
|
505
505
|
chrome.style.position = "relative";
|
|
506
506
|
wrapper.appendChild(chrome);
|
|
507
507
|
if (data) {
|
|
508
|
-
const a11y =
|
|
508
|
+
const a11y = chunkBGABXFCV_cjs.buildSmartArtA11y(data);
|
|
509
509
|
chrome.setAttribute("role", "img");
|
|
510
510
|
chrome.setAttribute("aria-label", a11y.label);
|
|
511
511
|
}
|
|
512
512
|
const nodes = data?.nodes ?? [];
|
|
513
513
|
const drawingShapes = data?.drawingShapes ?? [];
|
|
514
514
|
const animationState = context.presentationStates?.get(element.id);
|
|
515
|
-
const { nodes: revealedNodesFull } =
|
|
515
|
+
const { nodes: revealedNodesFull } = chunkBGABXFCV_cjs.resolveRevealedSmartArtNodes(
|
|
516
516
|
nodes,
|
|
517
517
|
animationState,
|
|
518
518
|
data?.presLayoutVars
|
|
519
519
|
);
|
|
520
520
|
if (data && drawingShapes.length > 0) {
|
|
521
|
-
const revealedShapes =
|
|
521
|
+
const revealedShapes = chunkBGABXFCV_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
|
|
522
522
|
chrome.appendChild(
|
|
523
|
-
buildDrawingShapesSvg(doc, element.id, data,
|
|
523
|
+
buildDrawingShapesSvg(doc, element.id, data, chunkBGABXFCV_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
|
|
524
524
|
);
|
|
525
525
|
enableSmartArtEditing(chrome, element, context);
|
|
526
526
|
return wrapper;
|
|
527
527
|
}
|
|
528
528
|
if (data && nodes.length > 0) {
|
|
529
529
|
const revealedNodes = revealedNodesFull;
|
|
530
|
-
const layout =
|
|
530
|
+
const layout = chunkBGABXFCV_cjs.computeSmartArtElementLayout(
|
|
531
531
|
data,
|
|
532
532
|
revealedNodes,
|
|
533
533
|
{ width: element.width, height: element.height },
|
|
534
|
-
|
|
534
|
+
chunkBGABXFCV_cjs.resolvePalette(data),
|
|
535
535
|
data.style ?? "flat",
|
|
536
536
|
element.id
|
|
537
537
|
);
|
|
@@ -539,8 +539,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
539
539
|
buildSmartArtFallbackSvg(
|
|
540
540
|
doc,
|
|
541
541
|
layout,
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
chunkBGABXFCV_cjs.buildSmartArtA11y(data).nodes,
|
|
543
|
+
chunkBGABXFCV_cjs.flattenNodes(revealedNodes).map((node) => node.id)
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
546
|
enableSmartArtEditing(chrome, element, context);
|
|
@@ -563,17 +563,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
563
563
|
function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
|
|
564
564
|
const allShapes = data.drawingShapes ?? [];
|
|
565
565
|
const style = data.style ?? "flat";
|
|
566
|
-
const viewBox =
|
|
567
|
-
const rendered =
|
|
566
|
+
const viewBox = chunkBGABXFCV_cjs.computeDrawingViewBox(allShapes);
|
|
567
|
+
const rendered = chunkBGABXFCV_cjs.projectDrawingShapes(
|
|
568
568
|
elementId,
|
|
569
569
|
revealedShapes,
|
|
570
570
|
viewBox,
|
|
571
|
-
|
|
571
|
+
chunkBGABXFCV_cjs.resolvePalette(data),
|
|
572
572
|
style
|
|
573
573
|
);
|
|
574
|
-
const shadow =
|
|
574
|
+
const shadow = chunkBGABXFCV_cjs.styleShadowFilter(style);
|
|
575
575
|
const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
|
|
576
|
-
const nodeIds =
|
|
576
|
+
const nodeIds = chunkBGABXFCV_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
|
|
577
577
|
const svg = createSvgEl(doc, "svg", {
|
|
578
578
|
viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
|
|
579
579
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -702,26 +702,26 @@ function createElementRendererRegistry() {
|
|
|
702
702
|
// src/pptx/dom/smartart-insert-preview.ts
|
|
703
703
|
function buildSmartArtInsertPreview(doc, t, layout, size) {
|
|
704
704
|
const scale = Math.min(
|
|
705
|
-
size.width /
|
|
706
|
-
size.height /
|
|
705
|
+
size.width / chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH,
|
|
706
|
+
size.height / chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT
|
|
707
707
|
);
|
|
708
708
|
const box = createEl(doc, "div", "pptxv-smartart-option-preview", {
|
|
709
|
-
width: `${Math.round(
|
|
710
|
-
height: `${Math.round(
|
|
709
|
+
width: `${Math.round(chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH * scale)}px`,
|
|
710
|
+
height: `${Math.round(chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT * scale)}px`,
|
|
711
711
|
overflow: "hidden",
|
|
712
712
|
pointerEvents: "none",
|
|
713
713
|
position: "relative"
|
|
714
714
|
});
|
|
715
715
|
box.setAttribute("aria-hidden", "true");
|
|
716
716
|
const stage = createEl(doc, "div", void 0, {
|
|
717
|
-
width: `${
|
|
718
|
-
height: `${
|
|
717
|
+
width: `${chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH}px`,
|
|
718
|
+
height: `${chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT}px`,
|
|
719
719
|
transform: `scale(${scale})`,
|
|
720
720
|
transformOrigin: "top left",
|
|
721
721
|
position: "relative"
|
|
722
722
|
});
|
|
723
723
|
box.appendChild(stage);
|
|
724
|
-
const element =
|
|
724
|
+
const element = chunkBGABXFCV_cjs.buildSmartArtPreviewElement(layout);
|
|
725
725
|
const slide = {
|
|
726
726
|
id: "smartart-preview",
|
|
727
727
|
rId: "smartart-preview",
|
|
@@ -731,7 +731,7 @@ function buildSmartArtInsertPreview(doc, t, layout, size) {
|
|
|
731
731
|
const context = {
|
|
732
732
|
document: doc,
|
|
733
733
|
slide,
|
|
734
|
-
canvasSize: { width:
|
|
734
|
+
canvasSize: { width: chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH, height: chunkBGABXFCV_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT },
|
|
735
735
|
scale: 1,
|
|
736
736
|
mediaDataUrls: /* @__PURE__ */ new Map(),
|
|
737
737
|
t,
|
|
@@ -63662,14 +63662,14 @@ var THEMES_GALLERY = {
|
|
|
63662
63662
|
build(ctx) {
|
|
63663
63663
|
const active2 = chunk3ESFHUZI_cjs.activeGalleryThemePreset(ctx.theme);
|
|
63664
63664
|
const items = chunk3ESFHUZI_cjs.GALLERY_THEME_PRESETS.map((preset2) => tile6(preset2, preset2.id === active2?.id));
|
|
63665
|
-
if (ctx.theme
|
|
63665
|
+
if (ctx.theme) {
|
|
63666
63666
|
const scheme = galleryColorScheme(ctx);
|
|
63667
63667
|
items.unshift({
|
|
63668
63668
|
id: CURRENT_ID2,
|
|
63669
63669
|
labelKey: "pptx.gallery.themes.current",
|
|
63670
63670
|
label: "Current theme",
|
|
63671
63671
|
previewSvg: themeTileSvg(scheme, currentFonts(ctx)?.majorFont?.latin),
|
|
63672
|
-
applied:
|
|
63672
|
+
applied: !active2
|
|
63673
63673
|
});
|
|
63674
63674
|
}
|
|
63675
63675
|
return {
|
|
@@ -81227,7 +81227,7 @@ function definePptxInsertSmartArtDialog(registry2) {
|
|
|
81227
81227
|
if (this.#live || this.#draw) {
|
|
81228
81228
|
return;
|
|
81229
81229
|
}
|
|
81230
|
-
this.#live = import('./smartart-insert-preview-
|
|
81230
|
+
this.#live = import('./smartart-insert-preview-TYCMBIUH.cjs').then((module) => {
|
|
81231
81231
|
if (this.#draw || !this.#picker) {
|
|
81232
81232
|
return;
|
|
81233
81233
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { canDrillDown, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-
|
|
1
|
+
import { canDrillDown, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-NHRL2D4I.mjs';
|
|
2
2
|
import { formatAxisValue } from './chunk-34LEUH5R.mjs';
|
|
3
3
|
import { THREE_VIEW_TAG, defineThreeViewElement } from './chunk-AMW2AR7J.mjs';
|
|
4
4
|
|
|
@@ -63678,14 +63678,14 @@ var THEMES_GALLERY = {
|
|
|
63678
63678
|
build(ctx) {
|
|
63679
63679
|
const active2 = activeGalleryThemePreset(ctx.theme);
|
|
63680
63680
|
const items = GALLERY_THEME_PRESETS.map((preset2) => tile6(preset2, preset2.id === active2?.id));
|
|
63681
|
-
if (ctx.theme
|
|
63681
|
+
if (ctx.theme) {
|
|
63682
63682
|
const scheme = galleryColorScheme(ctx);
|
|
63683
63683
|
items.unshift({
|
|
63684
63684
|
id: CURRENT_ID2,
|
|
63685
63685
|
labelKey: "pptx.gallery.themes.current",
|
|
63686
63686
|
label: "Current theme",
|
|
63687
63687
|
previewSvg: themeTileSvg(scheme, currentFonts(ctx)?.majorFont?.latin),
|
|
63688
|
-
applied:
|
|
63688
|
+
applied: !active2
|
|
63689
63689
|
});
|
|
63690
63690
|
}
|
|
63691
63691
|
return {
|
|
@@ -81243,7 +81243,7 @@ function definePptxInsertSmartArtDialog(registry2) {
|
|
|
81243
81243
|
if (this.#live || this.#draw) {
|
|
81244
81244
|
return;
|
|
81245
81245
|
}
|
|
81246
|
-
this.#live = import('./smartart-insert-preview-
|
|
81246
|
+
this.#live = import('./smartart-insert-preview-TJEN4WYF.mjs').then((module) => {
|
|
81247
81247
|
if (this.#draw || !this.#picker) {
|
|
81248
81248
|
return;
|
|
81249
81249
|
}
|