ooxml-ui 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VSHQNHDG.js → chunk-BOTLS2PR.js} +5 -0
- package/dist/{chunk-6TS7ASDJ.js → chunk-C4KI635Q.js} +2 -17
- package/dist/chunk-D5IRYZLP.js +19 -0
- package/dist/{chunk-XPUXFZNB.js → chunk-FFM3WVLU.js} +18 -4
- package/dist/{chunk-CALEXPBD.js → chunk-GZNBWWJ5.js} +840 -51
- package/dist/{chunk-QK5DQR6L.js → chunk-TGG36HHF.js} +2 -2
- package/dist/docx/print-picture.d.ts +4 -0
- package/dist/docx.js +46 -7
- package/dist/fonts/catalog.d.ts +0 -1
- package/dist/image-native-size.d.ts +43 -0
- package/dist/image-native-size.d.ts.map +1 -0
- package/dist/index.js +4 -4
- package/dist/picture-artistic-filters.d.ts +9 -0
- package/dist/picture-artistic-filters.d.ts.map +1 -0
- package/dist/picture-artistic-preview.d.ts +3 -0
- package/dist/picture-artistic-preview.d.ts.map +1 -0
- package/dist/picture-effects.d.ts +3 -1
- package/dist/picture-effects.d.ts.map +1 -0
- package/dist/picture-paint.d.ts +23 -0
- package/dist/picture-paint.d.ts.map +1 -0
- package/dist/picture-pixels.d.ts +11 -0
- package/dist/picture-pixels.d.ts.map +1 -0
- package/dist/picture-standard-filter.d.ts +6 -0
- package/dist/picture-standard-filter.d.ts.map +1 -0
- package/dist/picture-view.d.ts +10 -0
- package/dist/picture-view.d.ts.map +1 -0
- package/dist/pptx/{chart-3d-view-scene-HNL4NWJT.mjs → chart-3d-view-scene-BKNMGRGO.mjs} +3 -25
- package/dist/pptx/{chart-3d-view-scene-OPVBTZL5.cjs → chart-3d-view-scene-V55XPBBF.cjs} +39 -61
- package/dist/pptx/{chunk-7DT3UJQB.mjs → chunk-5EERUTDC.mjs} +7 -3
- package/dist/pptx/{chunk-S3L5NNCK.cjs → chunk-FROIGMTI.cjs} +1 -1
- package/dist/pptx/{chunk-ZS5EVODY.cjs → chunk-GKQULDFF.cjs} +52 -48
- package/dist/pptx/{chunk-CH4Z6H6C.mjs → chunk-GPQP2R5Y.mjs} +1017 -371
- package/dist/pptx/{chunk-S5I64Y55.cjs → chunk-HIRBPTML.cjs} +12 -12
- package/dist/pptx/{chunk-D4LJJ7Z7.cjs → chunk-KJICUZXM.cjs} +171 -540
- package/dist/pptx/{chunk-TDIJHLS5.cjs → chunk-NPYNJOK2.cjs} +1351 -699
- package/dist/pptx/{chunk-RZVEPTLN.mjs → chunk-QK6LJT3K.mjs} +140 -529
- package/dist/pptx/{chunk-LCCRLB7Q.mjs → chunk-UHDWWRTX.mjs} +1 -1
- package/dist/pptx/{chunk-SPOECCPV.mjs → chunk-WZHYA2B3.mjs} +1 -1
- package/dist/pptx/dom/elements/smartart.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +424 -424
- package/dist/pptx/dom/index.mjs +8 -8
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +3356 -3352
- package/dist/pptx/index.mjs +4 -4
- package/dist/pptx/render/chart-3d-projection.d.ts +5 -54
- package/dist/pptx/render/chart-3d-projection.d.ts.map +1 -1
- package/dist/pptx/render/chart-3d-shading.d.ts +7 -10
- package/dist/pptx/render/chart-3d-shading.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-funnel-sunburst.d.ts +1 -1
- package/dist/pptx/render/chart-funnel-sunburst.d.ts.map +1 -1
- package/dist/pptx/render/chart-map-projection.d.ts +2 -37
- package/dist/pptx/render/chart-map-projection.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-region-map-alias.d.ts +1 -11
- package/dist/pptx/render/chart-region-map-alias.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-colors.d.ts +1 -3
- package/dist/pptx/render/chart-region-map-colors.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-data.d.ts +2 -44
- package/dist/pptx/render/chart-region-map-data.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-view.d.ts.map +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-types.d.ts +2 -0
- package/dist/pptx/render/chart-view-model-types.d.ts.map +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/editor-key-target.d.ts.map +1 -1
- package/dist/pptx/render/image-effect-filter-values.d.ts +1 -10
- package/dist/pptx/render/image-effect-filter-values.d.ts.map +1 -1
- package/dist/pptx/render/image-effects.d.ts +1 -0
- package/dist/pptx/render/image-effects.d.ts.map +1 -1
- package/dist/pptx/render/image-native-size.d.ts +1 -42
- package/dist/pptx/render/image-native-size.d.ts.map +1 -1
- package/dist/pptx/render/image-tiling.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -1
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/render-cache.d.ts +1 -3
- package/dist/pptx/render/render-cache.d.ts.map +1 -1
- package/dist/pptx/render/smartart-drawing.d.ts +3 -0
- package/dist/pptx/render/smartart-drawing.d.ts.map +1 -1
- package/dist/pptx/render/smartart-picture-image.d.ts +9 -0
- package/dist/pptx/render/smartart-picture-image.d.ts.map +1 -0
- package/dist/pptx/render/smartart-reflow-to-shapes.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-RQUFRLSV.mjs → smartart-insert-preview-6BITTUI4.mjs} +5 -5
- package/dist/pptx/{smartart-insert-preview-YKNB37GE.cjs → smartart-insert-preview-BUOS5XQR.cjs} +6 -6
- package/dist/{presentation-preview-DKJC6TUJ.js → presentation-preview-ZVJNGOJO.js} +1 -1
- package/dist/render-cache.d.ts +4 -0
- package/dist/render-cache.d.ts.map +1 -0
- package/dist/smartart/smartart-paint.d.ts +2 -1
- package/dist/smartart/smartart-picture.d.ts +4 -3
- package/dist/smartart.d.ts +3 -0
- package/dist/smartart.js +1 -1
- package/dist/teams/i18n/locales/de.d.ts +1 -0
- package/dist/teams/i18n/locales/en/shell.d.ts +1 -0
- package/dist/teams/i18n/locales/en.d.ts +1 -0
- package/dist/teams/i18n/locales/es.d.ts +1 -0
- package/dist/teams/i18n/locales/fr.d.ts +1 -0
- package/dist/teams/i18n/locales/zh-CN.d.ts +1 -0
- package/dist/teams.js +2 -2
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/visio/viewer-chart-editor.d.ts +2 -1
- package/dist/visio.js +43 -11
- package/dist/xlsx/dialogs/custom-autofilter.d.ts +12 -0
- package/dist/xlsx/dialogs/filter-dates.d.ts +4 -0
- package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
- package/dist/xlsx/dialogs/text-to-columns.d.ts +0 -7
- package/dist/xlsx/dialogs/top10-filter.d.ts +5 -0
- package/dist/xlsx/grid/filter-buttons.d.ts +11 -0
- package/dist/xlsx/grid/filter-menu.d.ts +10 -0
- package/dist/xlsx/grid/filter-presets.d.ts +19 -0
- package/dist/xlsx/grid/styles.d.ts +1 -1
- package/dist/xlsx.js +875 -169
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-
|
|
2
|
-
import { TEAMS_TAGS, registerTeams } from './chunk-
|
|
1
|
+
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-GZNBWWJ5.js';
|
|
2
|
+
import { TEAMS_TAGS, registerTeams } from './chunk-FFM3WVLU.js';
|
|
3
3
|
import { installOfficeUiTheme } from './chunk-T5ARELU2.js';
|
|
4
4
|
import { registerControls } from './chunk-KYXSQFDB.js';
|
|
5
5
|
import { definePresence } from './chunk-YZH2QS7J.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DrawingFill } from 'ooxml-core/drawingml';
|
|
1
2
|
/** Resolves a package picture part to a displayable URL; undefined draws a placeholder box. */
|
|
2
3
|
export type PictureUrl = (partName: string, contentType: string) => string | undefined;
|
|
3
4
|
/**
|
|
@@ -8,6 +9,9 @@ export type PictureUrl = (partName: string, contentType: string) => string | und
|
|
|
8
9
|
*/
|
|
9
10
|
export declare function sanitizeChartSvg(svg: Element): void;
|
|
10
11
|
export declare function pictureElement(object: {
|
|
12
|
+
pictureFill?: Extract<DrawingFill, {
|
|
13
|
+
kind: 'picture';
|
|
14
|
+
}>;
|
|
11
15
|
partName: string;
|
|
12
16
|
contentType: string;
|
|
13
17
|
widthPx: number;
|
package/dist/docx.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineChartExOptions,
|
|
1
|
+
import { defineChartExOptions, statusLayout, watchStatusWidth, compactPageText } from './chunk-C4KI635Q.js';
|
|
2
|
+
import { chartExSpaceFormatSource } from './chunk-D5IRYZLP.js';
|
|
2
3
|
import { syncRibbonAddIns, createHostBackstagePages, withHostMenuItems } from './chunk-CDC5MAZS.js';
|
|
3
4
|
export { RIBBON_ADD_IN_EVENT } from './chunk-CDC5MAZS.js';
|
|
4
|
-
import { defineSmartArt, smartArtColorsGalleryState, smartArtStylesGalleryState, SmartArtTextPaneController, defineSmartArtPicker } from './chunk-
|
|
5
|
+
import { defineSmartArt, smartArtColorsGalleryState, smartArtStylesGalleryState, SmartArtTextPaneController, pictureNeedsSvg, pictureSvg, defineSmartArtPicker } from './chunk-GZNBWWJ5.js';
|
|
5
6
|
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-T5ARELU2.js';
|
|
6
7
|
import { createRibbonOverflow, defineRibbon, defineChartFormatPane, defineRuler, defineChartDataSheet, defineChartPicker, createDialogSession, defineCommentsPane, defineDialog, buildFontCatalog, defineGallery, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, userInterfaceSection, personalizeSection, optionText, unavailableCategory } from './chunk-KYXSQFDB.js';
|
|
7
8
|
import { registerIcon } from './chunk-M6GF5ED2.js';
|
|
@@ -13105,9 +13106,24 @@ function imageNodeView(cache, options = {}) {
|
|
|
13105
13106
|
if (node.attrs.chart) return chartNodeView(node, view, getPos, options);
|
|
13106
13107
|
const content = renderSpec(node);
|
|
13107
13108
|
if (content.tagName !== "IMG") return { dom: content, ignoreMutation: () => true };
|
|
13109
|
+
let painted;
|
|
13110
|
+
const fill = typeof node.attrs.pictureFill === "string" ? JSON.parse(node.attrs.pictureFill) : void 0;
|
|
13108
13111
|
const refresh = () => {
|
|
13109
13112
|
const src = node.attrs.svgPartName && cache.urlFor(String(node.attrs.svgPartName), "image/svg+xml") || cache.urlFor(String(node.attrs.partName), String(node.attrs.contentType));
|
|
13110
13113
|
if (src) content.setAttribute("src", src);
|
|
13114
|
+
if (src && pictureNeedsSvg(fill)) {
|
|
13115
|
+
const next = pictureSvg(
|
|
13116
|
+
content.ownerDocument,
|
|
13117
|
+
fill,
|
|
13118
|
+
src,
|
|
13119
|
+
Number(node.attrs.widthPx),
|
|
13120
|
+
Number(node.attrs.heightPx)
|
|
13121
|
+
);
|
|
13122
|
+
if (painted) painted.replaceWith(next);
|
|
13123
|
+
else content.after(next);
|
|
13124
|
+
painted = next;
|
|
13125
|
+
content.style.display = "none";
|
|
13126
|
+
}
|
|
13111
13127
|
content.classList.toggle("dve-image-missing", !src);
|
|
13112
13128
|
};
|
|
13113
13129
|
refresh();
|
|
@@ -13115,7 +13131,8 @@ function imageNodeView(cache, options = {}) {
|
|
|
13115
13131
|
const dom = document.createElement("span");
|
|
13116
13132
|
dom.className = ["dve-picture", placementClass(node.attrs.placement)].filter(Boolean).join(" ");
|
|
13117
13133
|
dom.append(content);
|
|
13118
|
-
|
|
13134
|
+
if (painted) dom.append(painted);
|
|
13135
|
+
dom.addEventListener("dblclick", () => {
|
|
13119
13136
|
const pos = getPos();
|
|
13120
13137
|
if (pos !== void 0 && view.editable) options.editPicture?.(pos);
|
|
13121
13138
|
});
|
|
@@ -13126,6 +13143,10 @@ function imageNodeView(cache, options = {}) {
|
|
|
13126
13143
|
preview: (width, height) => {
|
|
13127
13144
|
content.setAttribute("width", String(width));
|
|
13128
13145
|
content.setAttribute("height", String(height));
|
|
13146
|
+
if (painted) {
|
|
13147
|
+
painted.setAttribute("width", String(width));
|
|
13148
|
+
painted.setAttribute("height", String(height));
|
|
13149
|
+
}
|
|
13129
13150
|
}
|
|
13130
13151
|
});
|
|
13131
13152
|
dom.append(handle);
|
|
@@ -16081,8 +16102,13 @@ function createCrossReferenceDialog(getView, getModel, pageOf) {
|
|
|
16081
16102
|
}
|
|
16082
16103
|
function inlinePicture(image, values2) {
|
|
16083
16104
|
const url = image.partName ? values2.pictureUrl?.(image.partName, image.contentType) : void 0;
|
|
16084
|
-
const element = document.createElement(
|
|
16085
|
-
|
|
16105
|
+
const element = document.createElement(
|
|
16106
|
+
url && !pictureNeedsSvg(image.pictureFill) ? "img" : "span"
|
|
16107
|
+
);
|
|
16108
|
+
if (url && image.pictureFill && pictureNeedsSvg(image.pictureFill)) {
|
|
16109
|
+
element.append(pictureSvg(document, image.pictureFill, url, image.widthPx, image.heightPx));
|
|
16110
|
+
element.setAttribute("aria-label", image.altText ?? "");
|
|
16111
|
+
} else if (url) {
|
|
16086
16112
|
element.src = url;
|
|
16087
16113
|
element.alt = image.altText ?? "";
|
|
16088
16114
|
} else element.className = "dve-print-picture-missing";
|
|
@@ -16150,8 +16176,12 @@ function floatingPictures(content, page2, anchorTopPx, values2) {
|
|
|
16150
16176
|
}).map((float) => {
|
|
16151
16177
|
const { xPx, yPx } = floatPosition(float, page2, column, { topPx: anchorTopPx, heightPx: 0 });
|
|
16152
16178
|
const url = values2.pictureUrl?.(float.partName, float.contentType);
|
|
16153
|
-
const element = document.createElement(
|
|
16154
|
-
|
|
16179
|
+
const element = document.createElement(
|
|
16180
|
+
url && !pictureNeedsSvg(float.pictureFill) ? "img" : "div"
|
|
16181
|
+
);
|
|
16182
|
+
if (url && float.pictureFill && pictureNeedsSvg(float.pictureFill))
|
|
16183
|
+
element.append(pictureSvg(document, float.pictureFill, url, float.widthPx, float.heightPx));
|
|
16184
|
+
else if (url) element.src = url;
|
|
16155
16185
|
else element.classList.add("dve-print-picture-missing");
|
|
16156
16186
|
element.classList.add("dve-print-picture", "dve-print-float");
|
|
16157
16187
|
if (float.behindText) element.classList.add("dve-print-float-behind");
|
|
@@ -22499,6 +22529,15 @@ function pictureElement(object, pictureUrl) {
|
|
|
22499
22529
|
return element2;
|
|
22500
22530
|
}
|
|
22501
22531
|
const url = object.partName ? pictureUrl?.(object.partName, object.contentType) : void 0;
|
|
22532
|
+
if (url && object.pictureFill && pictureNeedsSvg(object.pictureFill)) {
|
|
22533
|
+
const element2 = document.createElement("span");
|
|
22534
|
+
element2.className = "dve-print-picture";
|
|
22535
|
+
element2.style.position = "absolute";
|
|
22536
|
+
element2.style.width = `${object.widthPx}px`;
|
|
22537
|
+
element2.style.height = `${object.heightPx}px`;
|
|
22538
|
+
element2.append(pictureSvg(document, object.pictureFill, url, object.widthPx, object.heightPx));
|
|
22539
|
+
return element2;
|
|
22540
|
+
}
|
|
22502
22541
|
const element = document.createElement(url ? "img" : "div");
|
|
22503
22542
|
if (url) {
|
|
22504
22543
|
element.src = url;
|
package/dist/fonts/catalog.d.ts
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A picture's native (unscaled) pixel dimensions, probed once per source and
|
|
3
|
+
* cached, for CSS math that must be relative to the image's OWN size rather
|
|
4
|
+
* than the box that paints it.
|
|
5
|
+
*
|
|
6
|
+
* `a:tile/@sx`/`@sy` (ECMA-376 §20.1.8.58) is one such consumer: it is a
|
|
7
|
+
* percentage of the picture's native pixel size, not of the container CSS
|
|
8
|
+
* `background-size: <percent>` resolves against (see `image-tiling.ts`).
|
|
9
|
+
* There is no CSS-only way to express "N% of this image's own intrinsic
|
|
10
|
+
* size" for a `background-image` layer (an `<img>` gets free intrinsic
|
|
11
|
+
* sizing via `width/height: auto`, but a repeating background layer does
|
|
12
|
+
* not), so the number has to come from a real decode.
|
|
13
|
+
*
|
|
14
|
+
* Framework-agnostic (`Image`/browser-only): each binding wraps
|
|
15
|
+
* {@link probeNativeImageSize} in its own reactive primitive (a hook, a
|
|
16
|
+
* `ref` + effect, a signal) to re-render once the async probe resolves,
|
|
17
|
+
* using {@link getCachedNativeImageSize} for the synchronous fast path on
|
|
18
|
+
* every render after the first.
|
|
19
|
+
*
|
|
20
|
+
* @module render/image-native-size
|
|
21
|
+
*/
|
|
22
|
+
/** A picture's native, unscaled pixel dimensions. */
|
|
23
|
+
export interface NativeImageSize {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The cached native size for `src`, if it has already been probed. Always
|
|
29
|
+
* safe to call during render: it never triggers a decode.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getCachedNativeImageSize(src: string | undefined): NativeImageSize | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Decode `src` far enough to read its intrinsic pixel size, caching the
|
|
34
|
+
* result (and de-duping concurrent callers for the same `src`). Resolves to
|
|
35
|
+
* `undefined` when running outside a browser (`Image` unavailable), the
|
|
36
|
+
* source fails to load, or reports a zero size.
|
|
37
|
+
*/
|
|
38
|
+
export declare function probeNativeImageSize(src: string): Promise<NativeImageSize | undefined>;
|
|
39
|
+
/** Release retained source URLs and ignore results from probes already in flight. */
|
|
40
|
+
export declare function clearNativeImageSizeCache(): void;
|
|
41
|
+
/** Test-only compatibility alias. */
|
|
42
|
+
export declare function _resetNativeImageSizeCacheForTests(): void;
|
|
43
|
+
//# sourceMappingURL=image-native-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-native-size.d.ts","sourceRoot":"","sources":["../src/image-native-size.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,qDAAqD;AACrD,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAOD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,CAE7F;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAoCtF;AAED,qFAAqF;AACrF,wBAAgB,yBAAyB,IAAI,IAAI,CAIhD;AAED,qCAAqC;AACrC,wBAAgB,kCAAkC,IAAI,IAAI,CAEzD"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-TGG36HHF.js';
|
|
2
2
|
export { createRecoveryScheduler } from './chunk-DA57FPSN.js';
|
|
3
3
|
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-CDC5MAZS.js';
|
|
4
|
-
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } 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-
|
|
6
|
-
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-
|
|
4
|
+
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-GZNBWWJ5.js';
|
|
5
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-FFM3WVLU.js';
|
|
6
|
+
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-BOTLS2PR.js';
|
|
7
7
|
import './chunk-CDAXY5KC.js';
|
|
8
8
|
import './chunk-NDUD5JJB.js';
|
|
9
9
|
import './chunk-KJMAVPQB.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the inner `<filter>` markup for a complex artistic effect.
|
|
3
|
+
* Mirrors React's `buildFilterPrimitives`. Returns `undefined` for effects that
|
|
4
|
+
* don't need an SVG filter (handled via CSS instead).
|
|
5
|
+
*/
|
|
6
|
+
export declare function buildArtisticFilterMarkup(effectName: string, radius: number): string | undefined;
|
|
7
|
+
export declare function buildSimpleArtisticCss(effect: string, radius: number): string;
|
|
8
|
+
export declare const ARTISTIC_PREVIEW_EFFECTS: Set<string>;
|
|
9
|
+
//# sourceMappingURL=picture-artistic-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-artistic-filters.d.ts","sourceRoot":"","sources":["../src/picture-artistic-filters.ts"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoKhG;AAGD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA+E7E;AAED,eAAO,MAAM,wBAAwB,aA6DnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-artistic-preview.d.ts","sourceRoot":"","sources":["../src/picture-artistic-preview.ts"],"names":[],"mappings":"AAMA,4FAA4F;AAC5F,wBAAgB,oBAAoB,CACnC,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ,UAAU,EAAE,GAAG,SAAS,CA2C1B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type DrawingPictureEffect } from 'ooxml-core/drawingml';
|
|
2
2
|
/** Ordered supported picture effects. Unknown operations remain in the model and are reported. */
|
|
3
|
-
export declare function pictureEffectFilter(doc: Document, defs: SVGDefsElement, effects: readonly DrawingPictureEffect[]): {
|
|
3
|
+
export declare function pictureEffectFilter(doc: Document, defs: SVGDefsElement, effects: readonly DrawingPictureEffect[], scheme?: Readonly<Record<string, string>>): {
|
|
4
4
|
filter?: string;
|
|
5
5
|
unapplied: string[];
|
|
6
|
+
approximated?: string[];
|
|
6
7
|
};
|
|
8
|
+
//# sourceMappingURL=picture-effects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-effects.d.ts","sourceRoot":"","sources":["../src/picture-effects.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG3F,kGAAkG;AAClG,wBAAgB,mBAAmB,CAClC,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC3C;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAmGnE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DrawingFill } from 'ooxml-core/drawingml';
|
|
2
|
+
export interface PictureMedia {
|
|
3
|
+
url: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface PicturePaintContext {
|
|
8
|
+
scheme?: Readonly<Record<string, string>>;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
rotation?: number;
|
|
12
|
+
flipHorizontal?: boolean;
|
|
13
|
+
flipVertical?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Shared SVG picture paint, clipped in source space before tile/mirror placement. */
|
|
16
|
+
export declare function picturePaint(doc: Document, defs: SVGDefsElement, fill: Extract<DrawingFill, {
|
|
17
|
+
kind: 'picture';
|
|
18
|
+
}>, media: string | PictureMedia, context?: PicturePaintContext): {
|
|
19
|
+
paint: string;
|
|
20
|
+
unapplied: string[];
|
|
21
|
+
approximated?: string[];
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=picture-paint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-paint.d.ts","sourceRoot":"","sources":["../src/picture-paint.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,mBAAmB;IACnC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD,sFAAsF;AACtF,wBAAgB,YAAY,CAC3B,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EAC/C,KAAK,EAAE,MAAM,GAAG,YAAY,EAC5B,OAAO,GAAE,mBAA6C,GACpD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CA4JjE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DrawingPictureEffect } from 'ooxml-core/drawingml';
|
|
2
|
+
export interface PicturePixelImage {
|
|
3
|
+
url: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const needsPicturePixels: (effects: readonly DrawingPictureEffect[]) => boolean;
|
|
8
|
+
export declare function cachedPicturePixels(url: string, effects: readonly DrawingPictureEffect[], scheme?: Readonly<Record<string, string>>): PicturePixelImage | undefined;
|
|
9
|
+
/** Rasterize nonlinear stages in order, flattening preceding SVG effects before each pixel stage. */
|
|
10
|
+
export declare function probePicturePixels(doc: Document, url: string, effects: readonly DrawingPictureEffect[], scheme?: Readonly<Record<string, string>>): Promise<PicturePixelImage | undefined>;
|
|
11
|
+
//# sourceMappingURL=picture-pixels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-pixels.d.ts","sourceRoot":"","sources":["../src/picture-pixels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAIjE,MAAM,WAAW,iBAAiB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAQD,eAAO,MAAM,kBAAkB,YAAa,SAAS,oBAAoB,EAAE,YAGzE,CAAC;AACH,wBAAgB,mBAAmB,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC3C,iBAAiB,GAAG,SAAS,CAG/B;AACD,qGAAqG;AACrG,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,QAAQ,EACb,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC3C,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAiExC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DrawingStandardPictureEffect } from 'ooxml-core/drawingml';
|
|
2
|
+
export declare function standardPictureFilter(doc: Document, effect: DrawingStandardPictureEffect, scheme?: Readonly<Record<string, string>>, prefix?: string): {
|
|
3
|
+
nodes: SVGElement[];
|
|
4
|
+
unapplied?: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=picture-standard-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-standard-filter.d.ts","sourceRoot":"","sources":["../src/picture-standard-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,4BAA4B,EACjC,MAAM,sBAAsB,CAAC;AAK9B,wBAAgB,qBAAqB,CACpC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,4BAA4B,EACpC,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,EAC7C,MAAM,SAAY,GAChB;IAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAsK7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DrawingFill } from 'ooxml-core/drawingml';
|
|
2
|
+
import { type PicturePaintContext } from './picture-paint.js';
|
|
3
|
+
import type { PictureMedia } from './picture-paint.js';
|
|
4
|
+
export declare function pictureNeedsSvg(fill: Extract<DrawingFill, {
|
|
5
|
+
kind: 'picture';
|
|
6
|
+
}> | undefined): boolean;
|
|
7
|
+
export declare function pictureSvg(doc: Document, fill: Extract<DrawingFill, {
|
|
8
|
+
kind: 'picture';
|
|
9
|
+
}>, url: string | PictureMedia, width: number, height: number, context?: Partial<PicturePaintContext>): SVGSVGElement;
|
|
10
|
+
//# sourceMappingURL=picture-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-view.d.ts","sourceRoot":"","sources":["../src/picture-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GAAG,SAAS,GACzD,OAAO,CAQT;AACD,wBAAgB,UAAU,CACzB,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EAC/C,GAAG,EAAE,MAAM,GAAG,YAAY,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,GACxC,aAAa,CAoBf"}
|
|
@@ -1,29 +1,7 @@
|
|
|
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-WZHYA2B3.mjs';
|
|
2
|
+
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-QK6LJT3K.mjs';
|
|
3
|
+
import { buildChart3DBoxFaceColors } from 'ooxml-core/chart';
|
|
3
4
|
|
|
4
|
-
// src/pptx/render/chart-3d-shading.ts
|
|
5
|
-
var FACE_SHADE_AMOUNT = {
|
|
6
|
-
front: 0,
|
|
7
|
-
top: 0.25,
|
|
8
|
-
right: 0.36,
|
|
9
|
-
left: 0.36,
|
|
10
|
-
back: 0.36,
|
|
11
|
-
bottom: 0.5
|
|
12
|
-
};
|
|
13
|
-
function shadeChart3DFace(baseColor, face) {
|
|
14
|
-
const amount = FACE_SHADE_AMOUNT[face];
|
|
15
|
-
return amount === 0 ? baseColor : shade(baseColor, amount);
|
|
16
|
-
}
|
|
17
|
-
function buildChart3DBoxFaceColors(baseColor) {
|
|
18
|
-
return [
|
|
19
|
-
shadeChart3DFace(baseColor, "right"),
|
|
20
|
-
shadeChart3DFace(baseColor, "left"),
|
|
21
|
-
shadeChart3DFace(baseColor, "top"),
|
|
22
|
-
shadeChart3DFace(baseColor, "bottom"),
|
|
23
|
-
shadeChart3DFace(baseColor, "front"),
|
|
24
|
-
shadeChart3DFace(baseColor, "back")
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
5
|
var NORMAL_SHADE = {
|
|
28
6
|
box: [0.64, 0.75, 1],
|
|
29
7
|
cylinder: [0.62, 0.75, 1.07],
|