ooxml-ui 1.42.0 → 1.44.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/base.d.ts +0 -1
- package/dist/chart/design-galleries.d.ts +1 -0
- package/dist/chart/format-pane-3d.d.ts +0 -1
- package/dist/chart/format-pane-advanced-intent.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-axis.d.ts +0 -1
- package/dist/chart/format-pane-common.d.ts +0 -1
- package/dist/chart/format-pane-effects.d.ts +0 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-locales/es.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-options.d.ts +0 -1
- package/dist/chart/format-pane-space.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chrome/find-bar.d.ts +1 -2
- package/dist/chrome/status-bar.d.ts +2 -0
- package/dist/chrome/status-bar.d.ts.map +1 -1
- package/dist/{chunk-4RFFOPBU.js → chunk-2ZYRZANE.js} +1 -1
- package/dist/{chunk-Y6KY34VD.js → chunk-I57TCM2Q.js} +57 -11
- package/dist/{chunk-TTT5IQBU.js → chunk-JWBWLGEY.js} +2 -2
- package/dist/{chunk-LBIABP4I.js → chunk-M4ARYL3L.js} +1 -1
- package/dist/{chunk-7L4NP4HN.js → chunk-NH5ZSZMI.js} +1 -1
- package/dist/controls.d.ts +1 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/dialog/message-dialogs.d.ts.map +1 -1
- package/dist/docx/locales/en-app.d.ts +5 -0
- package/dist/docx/locales/en.d.ts +5 -0
- package/dist/docx/localization-strings.d.ts +5 -0
- package/dist/docx/title-bar.d.ts +2 -1
- package/dist/docx.js +40 -11
- package/dist/embedding/region-host.d.ts +0 -1
- package/dist/files/save-progress-label.d.ts +22 -0
- package/dist/files/save-progress-label.d.ts.map +1 -0
- package/dist/fonts/custom-fonts.d.ts +0 -1
- package/dist/form/color-swatches.d.ts +0 -1
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/picture-artistic-filters.d.ts +0 -1
- package/dist/picture-artistic-preview.d.ts +0 -1
- package/dist/picture-effects.d.ts +1 -0
- package/dist/picture-paint.d.ts +0 -1
- package/dist/picture-view.d.ts +1 -0
- package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-D6OJTZYC.mjs} +3 -2
- package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-PC2RUBL4.cjs} +38 -37
- package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-2GDYTHUY.cjs} +12 -12
- package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-2SO3BL67.cjs} +2706 -160
- package/dist/pptx/{chunk-C7G2CSU2.mjs → chunk-BNPTGOEZ.mjs} +3 -3
- package/dist/pptx/{chunk-OPLK7GPB.mjs → chunk-D3DQS2J2.mjs} +7908 -7828
- package/dist/pptx/chunk-EDIAPF6J.mjs +135 -0
- package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-H6M3FKNG.mjs} +1 -1
- package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-HB6CH2FF.cjs} +3 -126
- package/dist/pptx/chunk-HWJKBKCW.cjs +147 -0
- package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-KYTG7WNC.mjs} +3 -115
- package/dist/pptx/{chunk-RI4YZ4AG.cjs → chunk-LK35P6RE.cjs} +10303 -10275
- package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-TDALHSYV.mjs} +2605 -168
- package/dist/pptx/{chunk-SF3MYUTD.mjs → chunk-W2QJX2ON.mjs} +5 -0
- package/dist/pptx/{chunk-XTYRGVT5.cjs → chunk-ZH35NTNU.cjs} +49 -49
- package/dist/pptx/{chunk-WNDGU3GQ.cjs → chunk-ZHVKGGLQ.cjs} +5 -0
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/equation.d.ts.map +1 -1
- package/dist/pptx/dom/elements/media.d.ts.map +1 -1
- package/dist/pptx/dom/elements/ole.d.ts.map +1 -1
- package/dist/pptx/dom/elements/reflection-mirror-content.d.ts.map +1 -1
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts +5 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/table.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-warp.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +527 -449
- package/dist/pptx/dom/index.mjs +116 -39
- package/dist/pptx/export/html2canvas-clone.cjs +7 -6
- package/dist/pptx/export/html2canvas-clone.mjs +2 -1
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3844 -3659
- package/dist/pptx/index.mjs +6 -5
- package/dist/pptx/render/chart-combo-stock.cjs +4 -3
- package/dist/pptx/render/chart-combo-stock.mjs +2 -1
- package/dist/pptx/render/chart-overlays.cjs +8 -7
- package/dist/pptx/render/chart-overlays.mjs +2 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +5 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +2 -1
- package/dist/pptx/render/chart-view-model.cjs +45 -44
- package/dist/pptx/render/chart-view-model.mjs +2 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +7 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +2 -1
- package/dist/pptx/render/connector-dash.d.ts +2 -1
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +1 -1
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +4 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/controller/save-progress-controller.d.ts +56 -0
- package/dist/pptx/render/controller/save-progress-controller.d.ts.map +1 -0
- package/dist/pptx/render/dash-path-start.d.ts +38 -0
- package/dist/pptx/render/dash-path-start.d.ts.map +1 -0
- package/dist/pptx/render/dash-pattern.d.ts +61 -0
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-exact.d.ts +34 -0
- package/dist/pptx/render/device-pixel-exact.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-group.d.ts +42 -0
- package/dist/pptx/render/device-pixel-group.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-stroke.d.ts +21 -3
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/element-style-transform.d.ts +6 -5
- package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
- package/dist/pptx/render/embedded-fonts-sheet.d.ts +31 -0
- package/dist/pptx/render/embedded-fonts-sheet.d.ts.map +1 -0
- package/dist/pptx/render/equation-box-style.d.ts +23 -0
- package/dist/pptx/render/equation-box-style.d.ts.map +1 -0
- package/dist/pptx/render/fill-style.d.ts +16 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/font-line-gap.d.ts +3 -0
- package/dist/pptx/render/font-line-gap.d.ts.map +1 -0
- package/dist/pptx/render/font-settled.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +20 -0
- package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -0
- package/dist/pptx/render/group-fill.d.ts.map +1 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts +23 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +12 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/linked-text-box-overflow.d.ts +20 -5
- package/dist/pptx/render/linked-text-box-overflow.d.ts.map +1 -1
- package/dist/pptx/render/media-control-bar.d.ts +41 -0
- package/dist/pptx/render/media-control-bar.d.ts.map +1 -0
- package/dist/pptx/render/media-playback.d.ts +6 -6
- package/dist/pptx/render/media-playback.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-connector-carry.d.ts +43 -0
- package/dist/pptx/render/morph-connector-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-carry.d.ts +2 -0
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-effect-silhouette.d.ts +23 -0
- package/dist/pptx/render/morph-effect-silhouette.d.ts.map +1 -0
- package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-carry.d.ts +27 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-ends.d.ts +27 -0
- package/dist/pptx/render/morph-line-ends.d.ts.map +1 -0
- package/dist/pptx/render/morph-line-reach.d.ts +72 -0
- package/dist/pptx/render/morph-line-reach.d.ts.map +1 -0
- package/dist/pptx/render/morph-overlay-order.d.ts.map +1 -1
- package/dist/pptx/render/morph-plan-carry.d.ts +41 -0
- package/dist/pptx/render/morph-plan-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-channels.d.ts +30 -0
- package/dist/pptx/render/morph-plan-channels.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-crossfade.d.ts +23 -0
- package/dist/pptx/render/morph-plan-crossfade.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-css.d.ts +55 -0
- package/dist/pptx/render/morph-plan-css.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-lift.d.ts +44 -0
- package/dist/pptx/render/morph-plan-lift.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-overlay.d.ts +62 -0
- package/dist/pptx/render/morph-plan-overlay.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-types.d.ts +208 -0
- package/dist/pptx/render/morph-plan-types.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +4 -252
- package/dist/pptx/render/morph-plan.d.ts.map +1 -1
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +39 -0
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts.map +1 -1
- package/dist/pptx/render/shape-geometry-base.d.ts +73 -0
- package/dist/pptx/render/shape-geometry-base.d.ts.map +1 -0
- package/dist/pptx/render/shape-geometry-cascade.d.ts +7 -37
- package/dist/pptx/render/shape-geometry-cascade.d.ts.map +1 -1
- package/dist/pptx/render/silhouette-effects.d.ts +118 -0
- package/dist/pptx/render/silhouette-effects.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts +19 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts +6 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts +36 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts.map +1 -0
- package/dist/pptx/render/status-bar-state.d.ts +7 -1
- package/dist/pptx/render/status-bar-state.d.ts.map +1 -1
- package/dist/pptx/render/stroke-only-preset.d.ts +22 -0
- package/dist/pptx/render/stroke-only-preset.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/subpath-fill-overlay.d.ts +11 -5
- package/dist/pptx/render/subpath-fill-overlay.d.ts.map +1 -1
- package/dist/pptx/render/subpath-geometry.d.ts +38 -0
- package/dist/pptx/render/subpath-geometry.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
- package/dist/pptx/render/svg-id-scope.d.ts +8 -0
- package/dist/pptx/render/svg-id-scope.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-baseline.d.ts +36 -0
- package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts +21 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-css.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts +13 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/table-style-bg-settle.d.ts +43 -0
- package/dist/pptx/render/table-style-bg-settle.d.ts.map +1 -0
- package/dist/pptx/render/table-style-bg-span.d.ts +26 -0
- package/dist/pptx/render/table-style-bg-span.d.ts.map +1 -0
- package/dist/pptx/render/table-style-borders.d.ts.map +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts.map +1 -1
- package/dist/pptx/render/table-style-fill.d.ts.map +1 -1
- package/dist/pptx/render/table-style-shadow.d.ts +20 -0
- package/dist/pptx/render/table-style-shadow.d.ts.map +1 -0
- package/dist/pptx/render/table-style-theme-refs.d.ts.map +1 -1
- package/dist/pptx/render/table-style.d.ts +9 -0
- package/dist/pptx/render/table-style.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts +5 -0
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-field-substitution.d.ts +13 -14
- package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts +11 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-arch.d.ts +25 -0
- package/dist/pptx/render/text-warp-arch.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts +53 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-map.d.ts +12 -0
- package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-polygon-clip.d.ts +21 -0
- package/dist/pptx/render/text-warp-polygon-clip.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts +21 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts +19 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-run-paint.d.ts +19 -0
- package/dist/pptx/render/text-warp-run-paint.d.ts.map +1 -0
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +9 -0
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-P4NV2FRD.cjs → smartart-insert-preview-55QCEISC.cjs} +8 -7
- package/dist/pptx/{smartart-insert-preview-AE7D4I7L.mjs → smartart-insert-preview-GPBTE3HU.mjs} +7 -6
- package/dist/pptx/web-components/status-bar.d.ts.map +1 -1
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/ribbon-group.d.ts +1 -2
- package/dist/ribbon/svg-preview.d.ts +0 -1
- package/dist/teams.js +2 -2
- package/dist/visio/title-bar.d.ts +3 -1
- package/dist/visio/viewer-backstage.d.ts +2 -0
- package/dist/visio/viewer-file-commands.d.ts +2 -2
- package/dist/visio.js +75 -20
- package/dist/xlsx/editor-files.d.ts +1 -1
- package/dist/xlsx/title-bar.d.ts +2 -1
- package/dist/xlsx.js +21 -12
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The envelope presets whose two paths are not functions of x: the two rings
|
|
3
|
+
* and Circle Pour. Their text runs once around a closed loop, so the warp maps
|
|
4
|
+
* the text block onto a pair of loops (see `text-warp-envelope-map.ts`).
|
|
5
|
+
*
|
|
6
|
+
* Measured on PowerPoint 16 (rows of full-block glyphs and letter rows, at
|
|
7
|
+
* several adjusts, font sizes and text lengths):
|
|
8
|
+
*
|
|
9
|
+
* - Circle Pour: the top path is the box ellipse, the bottom path the same
|
|
10
|
+
* ellipse scaled by `adj2` (default 50%) around the centre. Both start at
|
|
11
|
+
* the angle `adj1` (default 180 degrees, the left tip) and run clockwise.
|
|
12
|
+
* Glyph tops point outward.
|
|
13
|
+
* - Ring Inside: two congruent ellipses, one above the other, each as wide as
|
|
14
|
+
* the box and `a h` tall (`a` is `adj`, pinned to 50%..99%, default 60%),
|
|
15
|
+
* one touching the top of the box and one the bottom. The ink is where
|
|
16
|
+
* exactly one of them covers: the first half of the text runs along the top
|
|
17
|
+
* half of the upper ellipse left to right, its glyphs reaching down to the
|
|
18
|
+
* top half of the lower ellipse, and the second half runs back along the
|
|
19
|
+
* bottom half of the lower ellipse (upside down), reaching up to the bottom
|
|
20
|
+
* half of the upper one. The sweep between the two arcs overshoots the
|
|
21
|
+
* ellipse near the left and right tips, where PowerPoint draws nothing, so
|
|
22
|
+
* a glyph in the upper half is clipped to the upper ellipse and one in the
|
|
23
|
+
* lower half to the lower ellipse.
|
|
24
|
+
* - Ring Outside: the same bands, but the text starts along the lower band
|
|
25
|
+
* left to right and glyph tops point at the middle of the box.
|
|
26
|
+
*
|
|
27
|
+
* Every piece covers an equal share of the text: the two arcs of a ring are
|
|
28
|
+
* each half of the loop.
|
|
29
|
+
*/
|
|
30
|
+
/** A point in shape-box units. */
|
|
31
|
+
export interface ClosedPathPoint {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
}
|
|
35
|
+
/** An axis-aligned ellipse in shape-box units. */
|
|
36
|
+
export interface ClosedPathEllipse {
|
|
37
|
+
cx: number;
|
|
38
|
+
cy: number;
|
|
39
|
+
rx: number;
|
|
40
|
+
ry: number;
|
|
41
|
+
}
|
|
42
|
+
/** A top and a bottom path, each as pieces covering equal shares of the text. */
|
|
43
|
+
export interface ClosedWarpPaths {
|
|
44
|
+
top: ClosedPathPoint[][];
|
|
45
|
+
bottom: ClosedPathPoint[][];
|
|
46
|
+
/** Per piece, the ellipse the ink of that piece is clipped to (none for an unclipped piece). */
|
|
47
|
+
clips?: (ClosedPathEllipse | undefined)[];
|
|
48
|
+
}
|
|
49
|
+
/** Presets drawn with {@link closedWarpPaths}. */
|
|
50
|
+
export declare const CLOSED_PATH_PRESETS: ReadonlySet<string>;
|
|
51
|
+
/** The top and bottom loops of a closed-path preset, or `undefined` for any other preset. */
|
|
52
|
+
export declare function closedWarpPaths(preset: string, width: number, height: number, adj: number | undefined, adj2: number | undefined): ClosedWarpPaths | undefined;
|
|
53
|
+
//# sourceMappingURL=text-warp-closed-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-closed-paths.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-closed-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,kCAAkC;AAClC,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACX;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,eAAe,EAAE,EAAE,CAAC;IACzB,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC;IAC5B,gGAAgG;IAChG,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,SAAS,CAAC,EAAE,CAAC;CAC1C;AAED,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAIlD,CAAC;AA0EH,6FAA6F;AAC7F,wBAAgB,eAAe,CAC9B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,eAAe,GAAG,SAAS,CAQ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-curves.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-curves.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-curves.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-curves.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAyCrD,CAAC;AAEH,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE;AAsCD,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,sBAAsB,GAAG,SAAS,CAyEpC;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,EACd,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,kBAAkB,CAOpB;AAED,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,EAAE,sBAGnC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ClipPoint } from './text-warp-polygon-clip.js';
|
|
1
2
|
/** The unwarped text block's bounding box, in layout coordinates. */
|
|
2
3
|
export interface EnvelopeBlockBox {
|
|
3
4
|
left: number;
|
|
@@ -5,12 +6,23 @@ export interface EnvelopeBlockBox {
|
|
|
5
6
|
right: number;
|
|
6
7
|
bottom: number;
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Limits the ink of a warp to regions of the shape box: the glyph outlines are
|
|
11
|
+
* cut at the layout `x` positions `splitsX` into consecutive parts, and part
|
|
12
|
+
* `i` is clipped, once mapped, to the convex polygon `regions[i]` (not at all
|
|
13
|
+
* when that is `undefined`).
|
|
14
|
+
*/
|
|
15
|
+
export interface EnvelopeClip {
|
|
16
|
+
splitsX: number[];
|
|
17
|
+
regions: (ClipPoint[] | undefined)[];
|
|
18
|
+
}
|
|
8
19
|
/** Maps an unwarped layout point onto the warped shape box. */
|
|
9
20
|
export interface EnvelopeWarp {
|
|
10
21
|
map(x: number, y: number): {
|
|
11
22
|
x: number;
|
|
12
23
|
y: number;
|
|
13
24
|
};
|
|
25
|
+
clip?: EnvelopeClip;
|
|
14
26
|
}
|
|
15
27
|
/**
|
|
16
28
|
* Build the envelope mapping for `preset` in a `width` x `height` shape box,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-map.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-map.ts"],"names":[],"mappings":"AAsCA,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IACh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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-glyph-outline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-glyph-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"text-warp-glyph-outline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-glyph-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D;IAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D;IACA,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CAClB,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CAClB,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC;AAE1B,mBAAmB;AACnB,MAAM,WAAW,YAAY;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAKD;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,UAAU,EAAE,MAAM,GAChB,YAAY,EAAE,EAAE,CAsElB;AAED,uFAAuF;AACvF,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GACtC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAc1E;AAQD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,IAAI,EAAE,YAAY,EAClB,UAAU,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CAkBpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convex polygon clipping (Sutherland-Hodgman) for the warped glyph outlines
|
|
3
|
+
* of the closed-path presets, whose ink is limited to an ellipse (see
|
|
4
|
+
* `text-warp-closed-paths.ts`).
|
|
5
|
+
*/
|
|
6
|
+
/** A point of a polygon. */
|
|
7
|
+
export interface ClipPoint {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
/** Vertices of an ellipse in increasing angle, as a convex clip polygon. */
|
|
12
|
+
export declare function ellipsePolygon(cx: number, cy: number, rx: number, ry: number, vertices?: number): ClipPoint[];
|
|
13
|
+
/**
|
|
14
|
+
* `subject` clipped to the convex polygon `clip` (in the orientation
|
|
15
|
+
* {@link ellipsePolygon} produces). A concave subject keeps its fill, with
|
|
16
|
+
* zero-width bridges along the clip boundary where it is cut in several parts.
|
|
17
|
+
*/
|
|
18
|
+
export declare function clipPolygonConvex(subject: ClipPoint[], clip: ClipPoint[]): ClipPoint[];
|
|
19
|
+
/** The part of `polygon` with `x` below `limit` (`side` -1) or at or above it (`side` 1). */
|
|
20
|
+
export declare function clipPolygonByX(polygon: ClipPoint[], limit: number, side: -1 | 1): ClipPoint[];
|
|
21
|
+
//# sourceMappingURL=text-warp-polygon-clip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-polygon-clip.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-polygon-clip.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4BAA4B;AAC5B,MAAM,WAAW,SAAS;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAC7B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,QAAQ,SAAM,GACZ,SAAS,EAAE,CAOb;AA2BD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAQtF;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,CAE7F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Top/bottom curve definitions for the `prstTxWarp` presets whose two paths
|
|
3
|
+
* are plain functions of x but were drawn from a single reconstructed
|
|
4
|
+
* baseline before: the shape presets (stop, triangle, chevron), the curves,
|
|
5
|
+
* the waves, and the fade, slant and cascade families.
|
|
6
|
+
*
|
|
7
|
+
* Every number here was measured against PowerPoint 16: each preset was
|
|
8
|
+
* exported with a row of full-block glyphs, whose ink fills exactly the area
|
|
9
|
+
* between the two paths, and the boundary was read off per column (at the
|
|
10
|
+
* default adjust and at two or more others). The guide shapes follow the
|
|
11
|
+
* `presetTextWarpDefinitions.xml` structure the existing definitions were
|
|
12
|
+
* transcribed from; only the constants the measurement fixed are used.
|
|
13
|
+
*
|
|
14
|
+
* Coordinates are guide names resolved against the normalised 100000 box by
|
|
15
|
+
* `text-warp-preset-sampler.ts`. `adj` is the first adjust (`adj1` in the
|
|
16
|
+
* wave presets). The wave presets' second adjust (`adj2`, a horizontal
|
|
17
|
+
* shift) is not modelled yet and reads as its default of 0.
|
|
18
|
+
*/
|
|
19
|
+
import type { WarpPresetDefinition } from './text-warp-preset-definitions.js';
|
|
20
|
+
export declare const WARP_PRESET_DEFINITIONS_EXTRA: Readonly<Record<string, WarpPresetDefinition>>;
|
|
21
|
+
//# sourceMappingURL=text-warp-preset-definitions-extra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-preset-definitions-extra.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-definitions-extra.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAGX,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AAgIxC,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CA2IxF,CAAC"}
|
|
@@ -66,7 +66,24 @@ export type WarpCurveSegment = {
|
|
|
66
66
|
readonly hR: string;
|
|
67
67
|
readonly stAng: string;
|
|
68
68
|
readonly swAng: string;
|
|
69
|
+
} | {
|
|
70
|
+
/**
|
|
71
|
+
* A path made of several pieces side by side along x: each part
|
|
72
|
+
* covers `x0..x1` (guide names) and is sampled with its own local
|
|
73
|
+
* `0..1` position. Quadratic and cubic parts keep the control
|
|
74
|
+
* points at their usual even x spacing inside that span.
|
|
75
|
+
*/
|
|
76
|
+
readonly type: 'chain';
|
|
77
|
+
readonly parts: readonly WarpChainPart[];
|
|
69
78
|
};
|
|
79
|
+
/** One piece of a `chain` curve. */
|
|
80
|
+
export interface WarpChainPart {
|
|
81
|
+
readonly x0: string;
|
|
82
|
+
readonly x1: string;
|
|
83
|
+
readonly seg: Exclude<WarpCurveSegment, {
|
|
84
|
+
readonly type: 'chain';
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
70
87
|
/** Guide names for where a path starts and ends horizontally. */
|
|
71
88
|
export interface WarpCurveXExtent {
|
|
72
89
|
readonly startX: string;
|
|
@@ -75,6 +92,8 @@ export interface WarpCurveXExtent {
|
|
|
75
92
|
/** One preset's transcribed guide list plus its top/bottom curve segments. */
|
|
76
93
|
export interface WarpPresetDefinition {
|
|
77
94
|
readonly defaultAdj: number;
|
|
95
|
+
/** Value `adj2` takes when absent (0 when omitted). */
|
|
96
|
+
readonly defaultAdj2?: number;
|
|
78
97
|
readonly gdLst: readonly GeometryGuide[];
|
|
79
98
|
readonly top: WarpCurveSegment;
|
|
80
99
|
readonly bottom: WarpCurveSegment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-preset-definitions.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-warp-preset-definitions.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,2FAA2F;AAC3F,M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AO,CAAA;KAAE,CAAC,CAAC;CACpE;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAED,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAeD,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CA2KlF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-preset-sampler.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-sampler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-warp-preset-sampler.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-preset-sampler.ts"],"names":[],"mappings":"AAsLA,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,gBAAgB,GAAG,SAAS,CAmB9B;AAED,iGAAiG;AACjG,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAmBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,GACtB,kBAAkB,GAAG,SAAS,CAchC;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE/D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TextSegment, TextStyle } from 'ooxml-core/pptx';
|
|
2
|
+
/** The paint of one warped run, as SVG presentation values every binding maps onto its template. */
|
|
3
|
+
export interface WarpRunPaint {
|
|
4
|
+
/** SVG `fill`: an SVG `<text>` is painted by `fill`, never by CSS `color`. */
|
|
5
|
+
fill: string;
|
|
6
|
+
fontFamily: string;
|
|
7
|
+
fontSizePx: number;
|
|
8
|
+
/** `bold`, a numeric weight, or undefined for 400. */
|
|
9
|
+
fontWeight: string | undefined;
|
|
10
|
+
fontStyle: 'italic' | undefined;
|
|
11
|
+
textDecoration: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolve a segment's SVG paint, falling back to the element's text style.
|
|
15
|
+
* `fallbackColor` and `defaultFontSizePx` apply only when neither the run nor
|
|
16
|
+
* the element declares one.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveWarpRunPaint(segment: TextSegment | undefined, elementStyle: TextStyle | undefined, fallbackColor?: string, defaultFontSizePx?: number): WarpRunPaint;
|
|
19
|
+
//# sourceMappingURL=text-warp-run-paint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-run-paint.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-run-paint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO9D,oGAAoG;AACpG,MAAM,WAAW,YAAY;IAC5B,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,YAAY,EAAE,SAAS,GAAG,SAAS,EACnC,aAAa,SAAY,EACzB,iBAAiB,SAAK,GACpB,YAAY,CAkBd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-warp.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAQpF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AA6EnE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAczE;AAED,qDAAqD;AACrD,eAAO,MAAM,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AC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAKhF;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAKzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,MAAM,CAQR;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,sBAAgB,CAAC;AAIzC;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAChC,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,eAAe,EAAE,MAAM,CAAC;CACxB;AAmBD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CA8D9B;AAcD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CA+CjG;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,EAC/C,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CAS9B"}
|
|
@@ -109,6 +109,8 @@ export declare function getGlowBoxShadowCss(color: string | undefined, radius: n
|
|
|
109
109
|
*/
|
|
110
110
|
export declare function getBoxShadowCss(style: ShapeStyle | undefined, options?: {
|
|
111
111
|
includeGlow?: boolean;
|
|
112
|
+
includeOuter?: boolean;
|
|
113
|
+
includeInner?: boolean;
|
|
112
114
|
}, context?: ShadowRenderContext): string | undefined;
|
|
113
115
|
/** Alias of {@link getOuterShadowCss} (React `buildShadowCssFromShapeStyle`). */
|
|
114
116
|
export declare const buildShadowCssFromShapeStyle: typeof getOuterShadowCss;
|
|
@@ -257,6 +259,13 @@ export declare function getSoftEdgeFilterId(elementId: string): string;
|
|
|
257
259
|
* element id is supplied). Returns `undefined` when no soft edge is configured.
|
|
258
260
|
*/
|
|
259
261
|
export declare function getSoftEdgeSvgFilter(style: ShapeStyle | undefined, elementId: string): SvgFilterDefinition | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* The `<filter>` markup a shape's effect filters need, as one definition: the
|
|
264
|
+
* soft-edge feather and the silhouette shadow / glow filter. A binding injects
|
|
265
|
+
* `filterMarkup` once next to the element (a hidden `<svg><defs>`); the
|
|
266
|
+
* `filter` that references them is already on the container.
|
|
267
|
+
*/
|
|
268
|
+
export declare function getShapeEffectFilterDefs(element: PptxElement): SvgFilterDefinition | undefined;
|
|
260
269
|
/**
|
|
261
270
|
* Build a self-contained, hidden `<svg>` wrapper containing a duotone
|
|
262
271
|
* `<filter>` (BT.709 grayscale → linear two-colour ramp), suitable for direct
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/visual-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"visual-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/visual-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM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AS,EAAE,MAAM,GACf,mBAAmB,GAAG,SAAS,CAgBjC;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,GAAG,SAAS,CAe9F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACZ,MAAM,CA2BR;AAID;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IACnC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CASjF;AAED,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE;IAAE,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9C,mBAAmB,CA2GrB;AAED,wEAAwE;AACxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE7D"}
|
package/dist/pptx/{smartart-insert-preview-P4NV2FRD.cjs → smartart-insert-preview-55QCEISC.cjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkZH35NTNU_cjs = require('./chunk-ZH35NTNU.cjs');
|
|
4
|
+
require('./chunk-LK35P6RE.cjs');
|
|
5
|
+
require('./chunk-2GDYTHUY.cjs');
|
|
6
6
|
require('./chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('./chunk-W3X2UVYQ.cjs');
|
|
8
8
|
require('./chunk-WSTWYZFM.cjs');
|
|
@@ -22,11 +22,12 @@ require('./chunk-FFWLDANS.cjs');
|
|
|
22
22
|
require('./chunk-ZJFN5POF.cjs');
|
|
23
23
|
require('./chunk-OJFD3SHS.cjs');
|
|
24
24
|
require('./chunk-USBRSEJK.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-2SO3BL67.cjs');
|
|
26
26
|
require('./chunk-FOE75Z6N.cjs');
|
|
27
27
|
require('./chunk-NTXHQHCS.cjs');
|
|
28
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-HB6CH2FF.cjs');
|
|
29
29
|
require('./chunk-G4WRLFMJ.cjs');
|
|
30
|
+
require('./chunk-HWJKBKCW.cjs');
|
|
30
31
|
require('./chunk-HJ3JZXOL.cjs');
|
|
31
32
|
require('./chunk-73IDQGYI.cjs');
|
|
32
33
|
require('./chunk-3CYWRMYZ.cjs');
|
|
@@ -36,7 +37,7 @@ require('./chunk-UPN5FFKP.cjs');
|
|
|
36
37
|
require('./chunk-FQUX6AUU.cjs');
|
|
37
38
|
require('./chunk-XZSGVMRN.cjs');
|
|
38
39
|
require('./chunk-U47LRWDT.cjs');
|
|
39
|
-
require('./chunk-
|
|
40
|
+
require('./chunk-ZHVKGGLQ.cjs');
|
|
40
41
|
require('./chunk-3RIGT7H6.cjs');
|
|
41
42
|
require('./chunk-PBZWDEXQ.cjs');
|
|
42
43
|
|
|
@@ -44,5 +45,5 @@ require('./chunk-PBZWDEXQ.cjs');
|
|
|
44
45
|
|
|
45
46
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkZH35NTNU_cjs.buildSmartArtInsertPreview; }
|
|
48
49
|
});
|
package/dist/pptx/{smartart-insert-preview-AE7D4I7L.mjs → smartart-insert-preview-GPBTE3HU.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-BNPTGOEZ.mjs';
|
|
2
|
+
import './chunk-D3DQS2J2.mjs';
|
|
3
|
+
import './chunk-H6M3FKNG.mjs';
|
|
4
4
|
import './chunk-RQJOOXRG.mjs';
|
|
5
5
|
import './chunk-7BHPBO2O.mjs';
|
|
6
6
|
import './chunk-A63ASSCH.mjs';
|
|
@@ -20,11 +20,12 @@ import './chunk-7FXQHSPE.mjs';
|
|
|
20
20
|
import './chunk-L55MIOBC.mjs';
|
|
21
21
|
import './chunk-PMURSMHH.mjs';
|
|
22
22
|
import './chunk-T7FRLIDM.mjs';
|
|
23
|
-
import './chunk-
|
|
23
|
+
import './chunk-TDALHSYV.mjs';
|
|
24
24
|
import './chunk-IB6ZM2E2.mjs';
|
|
25
25
|
import './chunk-JA7WYSRE.mjs';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-KYTG7WNC.mjs';
|
|
27
27
|
import './chunk-2V5ATMMB.mjs';
|
|
28
|
+
import './chunk-EDIAPF6J.mjs';
|
|
28
29
|
import './chunk-7JBQPQ6G.mjs';
|
|
29
30
|
import './chunk-A62C6PSL.mjs';
|
|
30
31
|
import './chunk-5VSUIPDX.mjs';
|
|
@@ -34,6 +35,6 @@ import './chunk-IEAO7N4E.mjs';
|
|
|
34
35
|
import './chunk-XAOEDYA5.mjs';
|
|
35
36
|
import './chunk-G4VNRJUX.mjs';
|
|
36
37
|
import './chunk-AEQGGKRZ.mjs';
|
|
37
|
-
import './chunk-
|
|
38
|
+
import './chunk-W2QJX2ON.mjs';
|
|
38
39
|
import './chunk-PM2SOLK3.mjs';
|
|
39
40
|
import './chunk-PEDGPFLR.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/status-bar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAsB,MAAM,gBAAgB,CAAC;AAG/E,OAAO,KAAK,EAAsB,eAAe,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKzF,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;AACjE,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,KAAK,EAAE,kBAAkB,CAAC;CAC1B;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,sBAAsB,CAAC;KAC7C;CACD;AAKD,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../../src/pptx/web-components/status-bar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAsB,MAAM,gBAAgB,CAAC;AAG/E,OAAO,KAAK,EAAsB,eAAe,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKzF,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;AACjE,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,KAAK,EAAE,kBAAkB,CAAC;CAC1B;AACD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,sBAAsB,CAAC;KAC7C;CACD;AAKD,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,oBAAoB,CAuDpF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAuCzE"}
|
package/dist/render-cache.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const RENDER_CACHE_MAX_BYTES: number;
|
|
2
2
|
/** FIFO retention limit; oversized results still render, but are not memoised. */
|
|
3
3
|
export declare function setBoundedRenderCache<T>(cache: Map<string, T>, key: string, value: T, maxEntries: number): void;
|
|
4
|
-
//# sourceMappingURL=render-cache.d.ts.map
|
|
@@ -32,5 +32,4 @@ export declare class OfficeUiRibbonGroup extends OfficeElement {
|
|
|
32
32
|
protected willUpdate(): void;
|
|
33
33
|
protected render(): import("lit").TemplateResult<1>;
|
|
34
34
|
}
|
|
35
|
-
export declare const defineRibbonGroup: import("../
|
|
36
|
-
//# sourceMappingURL=ribbon-group.d.ts.map
|
|
35
|
+
export declare const defineRibbonGroup: import("../index.js").Definer;
|
|
@@ -4,4 +4,3 @@ export declare function escapeSvgText(text: string): string;
|
|
|
4
4
|
export declare function safeColor(color: string | undefined, fallback?: string): string;
|
|
5
5
|
/** The shared shell every tile uses. */
|
|
6
6
|
export declare function svgTile(width: number, height: number, defs: string, body: string): string;
|
|
7
|
-
//# sourceMappingURL=svg-preview.d.ts.map
|
package/dist/teams.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
1
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-NH5ZSZMI.js';
|
|
2
2
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-4ZSZPUE5.js';
|
|
3
3
|
import './chunk-CDAXY5KC.js';
|
|
4
4
|
import './chunk-NDUD5JJB.js';
|
|
5
5
|
import './chunk-KJMAVPQB.js';
|
|
6
6
|
import './chunk-N6AKS4ED.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-I57TCM2Q.js';
|
|
8
8
|
import './chunk-M6GF5ED2.js';
|
|
9
9
|
import './chunk-4OBMFPGF.js';
|
|
10
10
|
import './chunk-Q6WZEGAM.js';
|
|
@@ -9,4 +9,6 @@ import type { QuickAccessCommand } from './viewer-behaviour.js';
|
|
|
9
9
|
export declare function createTitleBar(doc: Document): HTMLElement;
|
|
10
10
|
export declare function renderTitleBar(bar: HTMLElement, state: ViewerState, fileName: string, profile: OfficeProfile,
|
|
11
11
|
/** Which Quick Access Toolbar commands to show; all of them when omitted. */
|
|
12
|
-
shown?: Readonly<Partial<Record<`qat-${QuickAccessCommand}`, boolean
|
|
12
|
+
shown?: Readonly<Partial<Record<`qat-${QuickAccessCommand}`, boolean>>>,
|
|
13
|
+
/** The progress of a save to host storage; replaces the status while it runs. */
|
|
14
|
+
saveLabel?: string): void;
|
|
@@ -48,6 +48,8 @@ export interface BackstageHost {
|
|
|
48
48
|
revision?(): unknown;
|
|
49
49
|
/** The drawing (as it was at `revision`) was saved to host storage under `fileName`. */
|
|
50
50
|
savedToStorage?(fileName: string, revision: unknown): void;
|
|
51
|
+
/** The progress of a host save as status text (undefined when it ends); `announce` for a live region. */
|
|
52
|
+
saveProgress?(label: string | undefined, announce: boolean): void;
|
|
51
53
|
/** A host save failed (reported as `document-error`). */
|
|
52
54
|
saveFailed?(error: Error): void;
|
|
53
55
|
/** A copy was downloaded: the AutoRecover copy has done its job. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DocumentStorage, type VisioFileCommand } from 'ooxml-core/embedding';
|
|
1
|
+
import { type DocumentSaveMeta, type DocumentStorage, type VisioFileCommand } from 'ooxml-core/embedding';
|
|
2
2
|
/**
|
|
3
3
|
* Announces a File command as the cancelable `file-command` event, the same contract as Word and
|
|
4
4
|
* Excel. Returns false when a host canceled it to handle the command itself.
|
|
@@ -12,6 +12,6 @@ export declare function drawingExtension(fileName: string): 'vsdx' | 'vsdm';
|
|
|
12
12
|
/** The name a drawing is saved under in host storage: its own name as a .vsdx (or .vsdm). */
|
|
13
13
|
export declare function storageFileName(fileName: string): string;
|
|
14
14
|
/** Saves the drawing's bytes to the host's storage; resolves with the name it now has. */
|
|
15
|
-
export declare function saveDrawingToStorage(storage: DocumentStorage, bytes: Uint8Array, fileName: string): Promise<string>;
|
|
15
|
+
export declare function saveDrawingToStorage(storage: DocumentStorage, bytes: Uint8Array, fileName: string, onProgress?: DocumentSaveMeta['onProgress']): Promise<string>;
|
|
16
16
|
/** File > Open through the host's storage: the chosen drawing as a named File, or undefined. */
|
|
17
17
|
export declare function openFromStorage(storage: DocumentStorage, doc: Document): Promise<File | undefined>;
|