ooxml-ui 1.43.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/{chunk-NH5ZSZMI.js → chunk-2YRHRV4H.js} +1 -1
- package/dist/{chunk-JWBWLGEY.js → chunk-LPI7LT4B.js} +2 -2
- package/dist/{chunk-2ZYRZANE.js → chunk-MWDG776V.js} +1 -1
- package/dist/{chunk-I57TCM2Q.js → chunk-UEFVC6V4.js} +1 -1
- package/dist/{chunk-M4ARYL3L.js → chunk-ZTLP52FH.js} +1 -1
- package/dist/controls.js +1 -1
- package/dist/docx.js +4 -4
- package/dist/index.js +4 -4
- package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-7LIMCTEM.mjs} +3 -2
- package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-RCWYLVC3.cjs} +38 -37
- package/dist/pptx/{chunk-W2QJX2ON.mjs → chunk-2P6TH4ZE.mjs} +3 -0
- package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-3DJZBAQ2.mjs} +1 -1
- package/dist/pptx/{chunk-5BINBXFV.mjs → chunk-6JTQ7AG6.mjs} +3 -3
- package/dist/pptx/{chunk-P4NVINSK.cjs → chunk-CWBVJ4DC.cjs} +9257 -8918
- package/dist/pptx/chunk-FI2ATACZ.cjs +147 -0
- package/dist/pptx/chunk-G5NEBI7N.mjs +135 -0
- package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-GYI2TFSW.cjs} +3 -126
- package/dist/pptx/{chunk-7FTP7OOA.mjs → chunk-HGT3CA36.mjs} +6221 -5845
- package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-HTFYAGHG.cjs} +2864 -167
- package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-LOUVYGWX.cjs} +12 -12
- package/dist/pptx/{chunk-UGSMMZU6.cjs → chunk-MZCAYJ7H.cjs} +49 -49
- package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-S6P7UWGZ.mjs} +3 -115
- package/dist/pptx/{chunk-ZHVKGGLQ.cjs → chunk-UFJBHFSD.cjs} +3 -0
- package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-XL5AF4U3.mjs} +2750 -175
- 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 +546 -459
- package/dist/pptx/dom/index.mjs +136 -50
- 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 +3917 -3664
- 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 +17 -1
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +2 -2
- 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/customization/customization-controller.d.ts +8 -0
- package/dist/pptx/render/customization/customization-controller.d.ts.map +1 -1
- 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 +10 -0
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
- package/dist/pptx/render/dash-square-cap.d.ts +34 -0
- package/dist/pptx/render/dash-square-cap.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts +25 -0
- package/dist/pptx/render/deck-webfont-outlines.d.ts.map +1 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts +59 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-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 +6 -0
- package/dist/pptx/render/embedded-fonts-sheet.d.ts.map +1 -1
- 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 +22 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/font-line-gap.d.ts +0 -18
- package/dist/pptx/render/font-line-gap.d.ts.map +1 -1
- package/dist/pptx/render/google-webfonts.d.ts +11 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +29 -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 +15 -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-css.d.ts +0 -7
- package/dist/pptx/render/morph-plan-css.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/options/font-download-policy.d.ts +52 -0
- package/dist/pptx/render/options/font-download-policy.d.ts.map +1 -0
- package/dist/pptx/render/options/index.d.ts +1 -0
- package/dist/pptx/render/options/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +2 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +46 -2
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-run-build.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-trailing-break.d.ts +15 -0
- package/dist/pptx/render/paragraph-trailing-break.d.ts.map +1 -0
- package/dist/pptx/render/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/shape-path-gradient-fill.d.ts +20 -0
- package/dist/pptx/render/shape-path-gradient-fill.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-effects.d.ts +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/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-attr-escape.d.ts +30 -0
- package/dist/pptx/render/svg-attr-escape.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts +6 -1
- package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
- package/dist/pptx/render/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 +37 -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-body-top-snap.d.ts +43 -0
- package/dist/pptx/render/text-body-top-snap.d.ts.map +1 -0
- package/dist/pptx/render/text-design-tracking.d.ts +20 -0
- package/dist/pptx/render/text-design-tracking.d.ts.map +1 -0
- package/dist/pptx/render/text-line-height.d.ts +8 -0
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-metric-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts +11 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-arch-fit.d.ts +51 -0
- package/dist/pptx/render/text-warp-arch-fit.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-arch.d.ts +65 -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-envelope-measure.d.ts +5 -0
- package/dist/pptx/render/text-warp-envelope-measure.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-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 +3 -1
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +11 -21
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-UP6DYY42.cjs → smartart-insert-preview-R7USUBIX.cjs} +8 -7
- package/dist/pptx/{smartart-insert-preview-DXFDFDSC.mjs → smartart-insert-preview-ZKVFXFSI.mjs} +7 -6
- package/dist/teams.js +2 -2
- package/dist/visio.js +23 -6
- package/dist/xlsx.js +7 -7
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The drop shadow a table style draws under the whole table.
|
|
3
|
+
*
|
|
4
|
+
* "Themed Style 1" and "Themed Style 2" reference a theme effect style from
|
|
5
|
+
* `a:tblBg/a:effectRef` (the third one is an outer shadow in every Office
|
|
6
|
+
* theme); PowerPoint paints it on the table's outline, which no cell can show,
|
|
7
|
+
* so it belongs on the `<table>` element (see `tableContainerCss`). The
|
|
8
|
+
* shadow takes the same blur profile as a shape's outer shadow
|
|
9
|
+
* (`effect-profile.ts`).
|
|
10
|
+
*
|
|
11
|
+
* @module render/table-style-shadow
|
|
12
|
+
*/
|
|
13
|
+
import type { ParsedTableStyleEntry } from 'ooxml-core/pptx';
|
|
14
|
+
/**
|
|
15
|
+
* The CSS `box-shadow` of the table style's background effect, or `undefined`
|
|
16
|
+
* when the style has none (or `entry` has not had its theme references
|
|
17
|
+
* resolved, see `resolveTableStyleThemeRefs`).
|
|
18
|
+
*/
|
|
19
|
+
export declare function tableStyleShadowCss(entry: ParsedTableStyleEntry | undefined): string | undefined;
|
|
20
|
+
//# sourceMappingURL=table-style-shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-style-shadow.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-style-shadow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAI7D;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAchG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style-theme-refs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-style-theme-refs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-style-theme-refs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-style-theme-refs.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACX,sBAAsB,EAEtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,MAAM,iBAAiB,CAAC;AAqBzB,0DAA0D;AAC1D,wBAAgB,aAAa,CAAC,MAAM,EAAE,sBAAsB,GAAG,SAAS,GAAG,OAAO,CASjF;AAwDD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACzC,KAAK,EAAE,qBAAqB,GAAG,SAAS,EACxC,YAAY,EAAE,qBAAqB,GAAG,SAAS,EAC/C,WAAW,EAAE,oBAAoB,GAAG,SAAS,GAC3C,qBAAqB,GAAG,SAAS,CA0BnC"}
|
|
@@ -149,6 +149,15 @@ export interface TableStyleContext {
|
|
|
149
149
|
* default so a binding can spread it unconditionally.
|
|
150
150
|
*/
|
|
151
151
|
export declare function tableContainerCss(tableData: PptxTableData | undefined): TableCellCss;
|
|
152
|
+
/**
|
|
153
|
+
* The style a table's frame (the element that clips the `<table>`) takes from
|
|
154
|
+
* its table style: the drop shadow "Themed Style 1/2" reference through
|
|
155
|
+
* `a:tblBg/a:effectRef`, drawn on the table's outline. It belongs on the
|
|
156
|
+
* frame, not the `<table>`, because the frame clips its content and would cut
|
|
157
|
+
* the shadow off. Empty for a style without an effect, so a binding can
|
|
158
|
+
* spread it unconditionally.
|
|
159
|
+
*/
|
|
160
|
+
export declare function tableFrameCss(tableData: PptxTableData | undefined, styleCtx?: TableStyleContext): TableCellCss;
|
|
152
161
|
/**
|
|
153
162
|
* Look up the table style entry for a style GUID, trying both the raw value
|
|
154
163
|
* and the braced-upper-case normalisation that OOXML uses.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EACX,qBAAqB,EAErB,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-style.ts"],"names":[],"mappings":"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"}
|
|
@@ -21,6 +21,11 @@ import type { PptxElement } from 'ooxml-core/pptx';
|
|
|
21
21
|
export type TextBlockStyle = Record<string, string | number>;
|
|
22
22
|
/** Knobs the five bindings differ on; everything else is identical for all. */
|
|
23
23
|
export interface TextBlockStyleOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Opt in to the `a:linkedTxbx` flow (clip chain members). Off by default:
|
|
26
|
+
* PowerPoint ignores the link and does not clip.
|
|
27
|
+
*/
|
|
28
|
+
linkedFlow?: boolean;
|
|
24
29
|
/**
|
|
25
30
|
* Colour used when the element authors none. React threads its
|
|
26
31
|
* theme-resolved default here; the other bindings pass their own constant.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-block-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-block-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,iBAAiB,CAAC;AAgChE,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE7D,+EAA+E;AAC/E,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAgCD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,qBAA0B,GACjC,cAAc,CAkOhB"}
|
|
1
|
+
{"version":3,"file":"text-block-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-block-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,iBAAiB,CAAC;AAgChE,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE7D,+EAA+E;AAC/E,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAgCD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,qBAA0B,GACjC,cAAc,CAkOhB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where PowerPoint puts the top of a text body, and how far the renderer's own
|
|
3
|
+
* body top is from it.
|
|
4
|
+
*
|
|
5
|
+
* PowerPoint snaps the top of a top-anchored text body to a whole device pixel
|
|
6
|
+
* before it lays any line out: the first baseline of a one-line box moved up
|
|
7
|
+
* by exactly one pixel when the shape top crossed `.5` of a pixel, and every
|
|
8
|
+
* line after it sits `round(B + k p)` below that snapped top (`B` the first
|
|
9
|
+
* baseline offset, `p` the line pitch, both unrounded; see
|
|
10
|
+
* `paragraph-baseline`). Measured on PowerPoint 16 exports with the shape top
|
|
11
|
+
* swept in 0.05pt steps (Calibri, Arial, Times New Roman, Consolas and Segoe
|
|
12
|
+
* UI, 12 to 72pt, 100% to 200%) and with insets: the snap point does not
|
|
13
|
+
* depend on the line spacing or the face. From 24pt (32px) up, the flip comes
|
|
14
|
+
* `SNAP_OFFSET_PX` earlier, which is where those sizes' glyph bottoms sit
|
|
15
|
+
* below the snapped line.
|
|
16
|
+
*
|
|
17
|
+
* The renderer paints the shape at its model position (a whole pixel) and adds
|
|
18
|
+
* the body inset as padding, which leaves the body top at a fractional pixel
|
|
19
|
+
* that the browser then rounds on its own. The move that puts it where
|
|
20
|
+
* PowerPoint's snapped top is, is the difference.
|
|
21
|
+
*
|
|
22
|
+
* @module render/text-body-top-snap
|
|
23
|
+
*/
|
|
24
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
25
|
+
/** The painted and exact top of an element's text body, in slide pixels. */
|
|
26
|
+
export interface BodyTop {
|
|
27
|
+
/** Where the renderer puts the body top (shape top plus padding). */
|
|
28
|
+
painted: number;
|
|
29
|
+
/** Where PowerPoint puts it, before it snaps it to a pixel. */
|
|
30
|
+
exact: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The text body top of `element`, or `undefined` when its first line is not
|
|
34
|
+
* placed from the top: another vertical anchor, rotated or flipped text or
|
|
35
|
+
* shape, vertical writing, or a group that is rotated or flipped.
|
|
36
|
+
*/
|
|
37
|
+
export declare function bodyTopOf(element: PptxElement): BodyTop | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* How far (px) to move a body top that is at `top.painted` so it lands on the
|
|
40
|
+
* pixel PowerPoint snaps `top.exact` to, for a first line of `sizePx` text.
|
|
41
|
+
*/
|
|
42
|
+
export declare function bodyTopSnapShift(top: BodyTop, sizePx: number): number;
|
|
43
|
+
//# sourceMappingURL=text-body-top-snap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-body-top-snap.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-body-top-snap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAYnD,4EAA4E;AAC5E,MAAM,WAAW,OAAO;IACvB,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAsBnE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGrE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The deck font: the first family of the resolved CSS list, unquoted. */
|
|
2
|
+
export declare function deckFamilyOf(fontFamily: string | undefined): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Whether the browser paints `family` itself rather than a stand-in: a string set in
|
|
5
|
+
* `family` followed by one fallback measures differently from the fallback alone only when
|
|
6
|
+
* the family exists, checked against two fallbacks so a family that equals one of them is
|
|
7
|
+
* still seen.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isFamilyPainted(ctx: CanvasRenderingContext2D, family: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The letter-spacing (CSS px) that gives `text` the width the deck font has in PowerPoint,
|
|
12
|
+
* or `undefined` when the deck font is painted, was not measured, or the text needs
|
|
13
|
+
* a glyph outside the measured range.
|
|
14
|
+
*
|
|
15
|
+
* @param natural The width (px) the browser paints `text` at without any spacing.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveDesignTrackingPx(ctx: CanvasRenderingContext2D, text: string, deckFamily: string | undefined, sizePx: number, bold: boolean, natural: number): number | undefined;
|
|
18
|
+
/** Test hook. */
|
|
19
|
+
export declare function resetDesignTrackingCache(): void;
|
|
20
|
+
//# sourceMappingURL=text-design-tracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-design-tracking.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-design-tracking.ts"],"names":[],"mappings":"AAuBA,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM/E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAmBtF;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,GAAG,EAAE,wBAAwB,EAC7B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAepB;AAED,iBAAiB;AACjB,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C"}
|
|
@@ -27,6 +27,14 @@ export interface LineHeightSource {
|
|
|
27
27
|
* vertical drift over a full text panel.
|
|
28
28
|
*/
|
|
29
29
|
export declare const DEFAULT_LINE_HEIGHT = 1.2;
|
|
30
|
+
/**
|
|
31
|
+
* An exact line pitch (`a:spcPts`) as PowerPoint lays it out: whole points,
|
|
32
|
+
* half up. A 14.3pt authored pitch lays out at 14pt (18.67px), 14.5pt at 15pt
|
|
33
|
+
* and 10.5pt at 11pt, measured on 8-line paragraphs of PowerPoint 16 exports
|
|
34
|
+
* (10.2 to 15.5pt in 0.1 and 0.5pt steps; the pitch stays unrounded in pixels,
|
|
35
|
+
* so 14pt is 18.67px and the baselines round one by one).
|
|
36
|
+
*/
|
|
37
|
+
export declare function exactPitchPoints(points: number): number;
|
|
30
38
|
/**
|
|
31
39
|
* Resolve a CSS `line-height` value from a TextStyle's spacing fields.
|
|
32
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-line-height.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-line-height.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAChC,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,aAAa,EAAE,OAAO,GACpB,MAAM,GAAG,MAAM,CAWjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACrC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,iBAAiB,UAAQ,GACvB,MAAM,CAKR;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACrC,MAAM,CAYR"}
|
|
1
|
+
{"version":3,"file":"text-line-height.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-line-height.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAChC,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,aAAa,EAAE,OAAO,GACpB,MAAM,GAAG,MAAM,CAWjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACrC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,iBAAiB,UAAQ,GACvB,MAAM,CAKR;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACrC,MAAM,CAYR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-metric-tracking.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-metric-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;
|
|
1
|
+
{"version":3,"file":"text-metric-tracking.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-metric-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,4EAA4E;AAC5E,MAAM,WAAW,WAAW;IAC3B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAgGD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAoD/E;AAED,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;CACjB;AAiBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,cAAc,EAAE,CAmBpF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAGzF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EACjB,YAAY,EAAE,MAAM,GAClB,MAAM,CAMR;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,IAAI,IAAI,CAI/C"}
|
|
@@ -16,9 +16,19 @@
|
|
|
16
16
|
* outline-level paragraph that authored no explicit `marL`). That copy is gone;
|
|
17
17
|
* React's `text-paragraph-render` is now a view layer over this descriptor.
|
|
18
18
|
*/
|
|
19
|
-
import type { PptxElement, TextSegment } from 'ooxml-core/pptx';
|
|
19
|
+
import type { PptxElement, TextSegment, TextStyle } from 'ooxml-core/pptx';
|
|
20
20
|
import type { RenderParagraph } from './paragraph-types.js';
|
|
21
21
|
import type { FieldSubstitutionContext } from './text-field-substitution.js';
|
|
22
|
+
/**
|
|
23
|
+
* The font a text body declares on its block (family with its substitution
|
|
24
|
+
* chain, size in px), which a paragraph's strut inherits. The family carries
|
|
25
|
+
* the body's PANOSE class like `buildTextBlockStyle` does, so a fixed-pitch
|
|
26
|
+
* face that is missing gets the same monospace stand-in here as on the block.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveBlockFont(textStyle: TextStyle | undefined, fontScale: number): {
|
|
29
|
+
fontFamily: string;
|
|
30
|
+
fontSizePx: number;
|
|
31
|
+
};
|
|
22
32
|
/**
|
|
23
33
|
* Group `element`'s text segments into rendered paragraphs. Paragraph
|
|
24
34
|
* separators are `isParagraphBreak` segments (post-edit remap) or bare `"\n"`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-paragraphs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-paragraphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-paragraphs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-paragraphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAc3E,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AA+B1E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,SAAS,EAAE,MAAM,GACf;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAO5C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,WAAW,EACpB,YAAY,CAAC,EAAE,wBAAwB,EACvC,gBAAgB,CAAC,EAAE,SAAS,WAAW,EAAE,EACzC,OAAO,CAAC,EAAE;IACT,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,GACC,eAAe,EAAE,CAkNnB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How PowerPoint fits a line of text to the arc of Arch Up, Arch Down, Button
|
|
3
|
+
* and Circle: text longer than the arc is not clipped or spilled over its ends,
|
|
4
|
+
* it is scaled down (both ways, so glyph height follows) until it exactly fills
|
|
5
|
+
* the arc. The arc is not always the whole half-ellipse (or loop): a start
|
|
6
|
+
* angle close to the one where the text flips to the other half leaves only a
|
|
7
|
+
* short stretch of it.
|
|
8
|
+
*
|
|
9
|
+
* Measured on PowerPoint 16 (rows of full-block glyphs and capital letters):
|
|
10
|
+
*
|
|
11
|
+
* - At 48 pt and at 60 pt the same capital row draws identically, as it must
|
|
12
|
+
* when the text length is pinned to the arc length.
|
|
13
|
+
* - Arch Up, Arch Down and Button: the available sweep is `540 - 2a` degrees
|
|
14
|
+
* for a start angle `a` (turned half a turn when the text sits on the lower
|
|
15
|
+
* half, see `archOnUpperHalf`) between 180 and 270 degrees, the whole half
|
|
16
|
+
* ellipse before that. The capacity at 66, 70, 75, 80 and 84 degrees was
|
|
17
|
+
* 168, 138, 102, 68 and 40 px for a 392 px box: the arc length of that sweep
|
|
18
|
+
* about the top or bottom of the box ellipse.
|
|
19
|
+
* - Circle: the sweep about the tip is `2 (360 - a)` degrees from 180 to 360
|
|
20
|
+
* and `2 (180 - a)` from 0 to 180, the whole loop at the other end.
|
|
21
|
+
*/
|
|
22
|
+
import type { PptxTextWarpPreset, TextSegment, TextStyle } from 'ooxml-core/pptx';
|
|
23
|
+
/** Sweep (degrees) of the arch ellipse left for the text: 180 is the whole half. */
|
|
24
|
+
export declare function archFitSweep(adj: number | undefined, half: 'up' | 'down'): number;
|
|
25
|
+
/** Sweep (degrees) of the Circle loop left for the text: 360 is the whole loop. */
|
|
26
|
+
export declare function circleFitSweep(adj: number | undefined): number;
|
|
27
|
+
/**
|
|
28
|
+
* The length (px) of the arc a warped line of `preset` may fill, or
|
|
29
|
+
* `undefined` for a preset that does not scale its text to the path.
|
|
30
|
+
*/
|
|
31
|
+
export declare function warpFitCapacity(preset: string, width: number, height: number, outward: number, adj: number | undefined): number | undefined;
|
|
32
|
+
/** The scale (at most 1) that fits `textWidth` into `capacity`. */
|
|
33
|
+
export declare function warpFitScale(capacity: number | undefined, textWidth: number | undefined): number;
|
|
34
|
+
/** The advance width (px) of a paragraph's runs as rendered, or `undefined` with nothing to measure with. */
|
|
35
|
+
export declare function measureWarpParagraphWidth(segments: readonly TextSegment[], elementStyle: TextStyle | undefined): number | undefined;
|
|
36
|
+
/** One paragraph's warp placement: its SVG path and the factor its font sizes are multiplied by. */
|
|
37
|
+
export interface WarpParagraphLayout {
|
|
38
|
+
d: string;
|
|
39
|
+
/** 1 unless the text is longer than the arc (see the module header). */
|
|
40
|
+
fitScale: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The path and the fit scale of every paragraph of a warped block, the one
|
|
44
|
+
* call every binding makes for the presets drawn along a path. Lines of the
|
|
45
|
+
* arch and loop presets lie one line pitch ({@link WARP_ARC_LINE_PITCH_EM}
|
|
46
|
+
* of the block's largest font) apart.
|
|
47
|
+
*/
|
|
48
|
+
export declare function warpParagraphLayouts(preset: PptxTextWarpPreset, width: number, height: number, paragraphs: readonly {
|
|
49
|
+
segments: readonly TextSegment[];
|
|
50
|
+
}[], adj: number | undefined, adj2: number | undefined, elementStyle: TextStyle | undefined): WarpParagraphLayout[];
|
|
51
|
+
//# sourceMappingURL=text-warp-arch-fit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-arch-fit.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-arch-fit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA6BlF,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAKjF;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAG9D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,MAAM,GAAG,SAAS,CAmBpB;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKhG;AAED,6GAA6G;AAC7G,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,YAAY,EAAE,SAAS,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAiBpB;AAED,oGAAoG;AACpG,MAAM,WAAW,mBAAmB;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,SAAS;IAAE,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAA;CAAE,EAAE,EAC3D,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,YAAY,EAAE,SAAS,GAAG,SAAS,GACjC,mBAAmB,EAAE,CA4BvB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arch ellipse PowerPoint draws for Arch Up, Arch Down and Button: the
|
|
3
|
+
* box's own ellipse, one half of it, with the text baseline on the path.
|
|
4
|
+
*
|
|
5
|
+
* Measured on PowerPoint 16 exports (a row of full-block glyphs, so the ink is
|
|
6
|
+
* the line box): the ellipse is centred horizontally, has the box's own radii
|
|
7
|
+
* and is shifted down by the default text frame inset, so the baseline of a
|
|
8
|
+
* single line passes that inset below the top edge (arch up) or the bottom
|
|
9
|
+
* edge (arch down) and the arc ends at mid height. The glyph tops point away
|
|
10
|
+
* from the centre for Arch Up and Button and toward it for Arch Down. Further
|
|
11
|
+
* lines lie on concentric ellipses one line pitch apart (see
|
|
12
|
+
* {@link warpLineOutward}).
|
|
13
|
+
*
|
|
14
|
+
* The start angle does not turn the arc: it only picks which half carries the
|
|
15
|
+
* text (see {@link archOnUpperHalf}).
|
|
16
|
+
*/
|
|
17
|
+
/** An angle in 60000ths of a degree, as degrees in [0, 360). */
|
|
18
|
+
export declare function normalizeWarpAngle(adj: number): number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether an arch or button preset puts its text on the upper half of the
|
|
21
|
+
* ellipse. Measured on PowerPoint 16 at every 15 degrees: from 90 up to, but
|
|
22
|
+
* not including, 270 degrees the text lies on the upper half of the box
|
|
23
|
+
* ellipse, from 270 round to 90 on the lower half. Arch Up and Button default
|
|
24
|
+
* to 180 degrees (upper half), Arch Down to 0 (lower half).
|
|
25
|
+
*/
|
|
26
|
+
export declare function archOnUpperHalf(adj: number | undefined, half: 'up' | 'down'): boolean;
|
|
27
|
+
/** Radii of the arch ellipse of a line: the box's own, `outward` px larger for each line further from the base line. */
|
|
28
|
+
export declare function archEllipseRadii(width: number, height: number, outward: number): {
|
|
29
|
+
rx: number;
|
|
30
|
+
ry: number;
|
|
31
|
+
};
|
|
32
|
+
/** A line's pitch on the arch and loop warps, in ems of the font size (1.2 em measured in Arial, Times New Roman, Calibri and Verdana, 52 px for 24 pt text). */
|
|
33
|
+
export declare const WARP_ARC_LINE_PITCH_EM = 1.2;
|
|
34
|
+
/**
|
|
35
|
+
* How far (px) the ellipse of a line lies outside the base ellipse. The text
|
|
36
|
+
* block stacks away from the centre of the box: the base ellipse carries the
|
|
37
|
+
* line nearest the centre (the last line of Arch Up, Button and Circle, the
|
|
38
|
+
* first line of Arch Down) and every other line lies one `gap` further out.
|
|
39
|
+
* Measured on PowerPoint 16 with two and three lines: the lines are one pitch
|
|
40
|
+
* apart, not scaled copies of each other.
|
|
41
|
+
*/
|
|
42
|
+
export declare function warpLineOutward(preset: string, lineIndex: number, lineCount: number, gap: number): number;
|
|
43
|
+
/**
|
|
44
|
+
* SVG path for the arch half-ellipse. `half` is the preset's own half (`up`:
|
|
45
|
+
* glyph tops away from the centre, `down`: toward it); a start angle in the
|
|
46
|
+
* other range turns the whole picture half a turn about the centre of the
|
|
47
|
+
* box, so Arch Up reads upside down along the lower half.
|
|
48
|
+
*/
|
|
49
|
+
export declare function archEllipsePath(width: number, height: number, outward: number, adj: number | undefined, half: 'up' | 'down'): string;
|
|
50
|
+
/** Radii of the Circle loop of a line, `outward` px larger for each line further from the base loop. */
|
|
51
|
+
export declare function circleLoopRadii(width: number, height: number, outward: number): {
|
|
52
|
+
rx: number;
|
|
53
|
+
ry: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The closed loop PowerPoint draws for Circle: an ellipse near the box
|
|
57
|
+
* ellipse run once around clockwise, with the text centred on the path. The
|
|
58
|
+
* start angle only picks the tip: from 180 round to 360 degrees (the default)
|
|
59
|
+
* the loop starts at the left tip, so a centred line sits on the right tip and
|
|
60
|
+
* runs down the right side; from 0 to 180 it starts at the right tip and the
|
|
61
|
+
* text sits on the left. A line further out lies on an ellipse `outward` px
|
|
62
|
+
* larger (see {@link warpLineOutward}).
|
|
63
|
+
*/
|
|
64
|
+
export declare function circleEllipsePath(width: number, height: number, outward: number, adj: number | undefined): string;
|
|
65
|
+
//# sourceMappingURL=text-warp-arch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-warp-arch.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-arch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,gEAAgE;AAChE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAGrF;AAED,wHAAwH;AACxH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACb;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAE5B;AAED,iKAAiK;AACjK,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,GACT,MAAM,CAGR;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,IAAI,GAAG,MAAM,GACjB,MAAM,CAaR;AAcD,wGAAwG;AACxG,wBAAgB,eAAe,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACb;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAK5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,MAAM,CAYR"}
|
|
@@ -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;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-map.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-map.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAI1D,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;CACrC;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,IAAI,CAAC,EAAE,YAAY,CAAC;CACpB;AA+ED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,KAAK,EAAE,gBAAgB,GACrB,YAAY,GAAG,SAAS,CAsD1B"}
|
|
@@ -12,6 +12,11 @@ export declare function toCanvasFont(font: EnvelopeFontSpec, sizePx?: number): s
|
|
|
12
12
|
* to measure with (SSR, or a test environment without a 2D canvas context).
|
|
13
13
|
*/
|
|
14
14
|
export declare function measureGlyphAdvances(text: string, font: EnvelopeFontSpec): number[];
|
|
15
|
+
/**
|
|
16
|
+
* The advance width of `text` in `font` (kerned, like the per-glyph advances
|
|
17
|
+
* above), or `undefined` when there is no canvas to measure with.
|
|
18
|
+
*/
|
|
19
|
+
export declare function measureTextAdvance(text: string, font: EnvelopeFontSpec): number | undefined;
|
|
15
20
|
/** A glyph's ink extent relative to its own origin (baseline, left advance edge). */
|
|
16
21
|
export interface GlyphInkExtent {
|
|
17
22
|
left: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-envelope-measure.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-measure.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAiBnE,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,SAA2B,GAAG,MAAM,CAG9F;AAeD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAsBnF;AAED,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,cAAc,GAAG,SAAS,CAwBhG;AAED,wDAAwD;AACxD,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
|
1
|
+
{"version":3,"file":"text-warp-envelope-measure.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-envelope-measure.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAiBnE,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,SAA2B,GAAG,MAAM,CAG9F;AAeD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAsBnF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAQ3F;AAED,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,cAAc,GAAG,SAAS,CAwBhG;AAED,wDAAwD;AACxD,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-warp-outline-webfont-fetch.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-outline-webfont-fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-warp-outline-webfont-fetch.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-warp-outline-webfont-fetch.ts"],"names":[],"mappings":"AAyFA,yFAAyF;AACzF,MAAM,MAAM,SAAS,GAAG,CACvB,GAAG,EAAE,MAAM,KACP,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,WAAW,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC,CAAC;AAoDpG;;;;;;;;GAQG;AACH,wBAAsB,8BAA8B,CACnD,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,SAAS,GAClB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CA4BjC"}
|
|
@@ -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,MAAM,MAAM,gBAAgB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzE;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACrB,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACrB,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACtB,GACD;IACA;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;CACxC,CAAC;AAEL,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,gBAAgB,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,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"}
|