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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-animation.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-animation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"morph-animation.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-animation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAwBvD,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAW/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAU/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,GACpB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAyBzC;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC5C,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,GACpB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAyBrF;AAoFD;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO,CAMjG;AAKD;;;;;;;;;;;;;;;;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,wBAAgB,kCAAkC,CACjD,QAAQ,EAAE,WAAW,EAAE,EACvB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAChB,mBAAmB,EAAE,CAuCvB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iCAAiC,CAChD,QAAQ,EAAE,WAAW,EAAE,EACvB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAChB,mBAAmB,EAAE,CAuCvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,WAAW,EAC1B,SAAS,EAAE,MAAM,GACf,mBAAmB,EAAE,CAkBvB;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,SAAS,EAClB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,SAAoB,EAC1B,UAAU,SAAI,EACd,OAAO,CAAC,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,aAAa,GAClB,mBAAmB,EAAE,CA2HvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"morph-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KA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,EACf,OAAO,CAAC,EAAE,gBAAgB,EAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,GACjF,gBAAgB,CA2ElB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An elbow or curved connector carried the way PowerPoint's Morph carries it.
|
|
3
|
+
*
|
|
4
|
+
* Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object, 2 s,
|
|
5
|
+
* a 6 pt `bentConnector3` and `curvedConnector3`):
|
|
6
|
+
*
|
|
7
|
+
* - the stroke keeps its width for the whole morph (8 px on every frame while
|
|
8
|
+
* the box grows 3x), where our journey scales the wrapper and the stroke with it;
|
|
9
|
+
* - the route is re-evaluated per frame from the interpolated box: the bend
|
|
10
|
+
* stays at its `adj` fraction of the box (0.50 on every frame), the
|
|
11
|
+
* segments grow with the box and the corners stay square;
|
|
12
|
+
* - a flip is a SIGNED extent that passes through zero: an elbow flipped
|
|
13
|
+
* horizontally narrows to a vertical bar and opens out mirrored, it does
|
|
14
|
+
* not swap sides or cross-fade;
|
|
15
|
+
* - an `adj` change moves the bend linearly from one fraction to the other.
|
|
16
|
+
*
|
|
17
|
+
* So each frame's path is the pair's unit-box route (evaluated unflipped, the
|
|
18
|
+
* two ends' paths blended when their `adj` differ) mapped onto the interpolated
|
|
19
|
+
* centre, SIGNED extent and rotation, drawn in slide coordinates. The strand
|
|
20
|
+
* undoes the whole journey (`transform: W(p)^-1`), so the wrapper and the
|
|
21
|
+
* inverse cancel and the stroke is drawn at its own width, uniformly, whatever
|
|
22
|
+
* the anisotropic scale of the journey.
|
|
23
|
+
*
|
|
24
|
+
* Both halves of a pair get the same path, so a ghost and its incoming half
|
|
25
|
+
* stay on top of each other. Arrowheads and dashes are not touched here.
|
|
26
|
+
*
|
|
27
|
+
* @module render/morph-connector-carry
|
|
28
|
+
*/
|
|
29
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
30
|
+
import type { MorphAnimationStyle, MorphPair } from './morph-types.js';
|
|
31
|
+
/** Which half of a pair a carry is painted on: its box is the local frame. */
|
|
32
|
+
export type MorphConnectorHalf = 'from' | 'to';
|
|
33
|
+
/** Whether `element` is a single-strand elbow or curved connector the carry can re-path. */
|
|
34
|
+
export declare function isCarriedPathConnector(element: PptxElement): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The baked keyframes body for the painted strand of one half of a pair of
|
|
37
|
+
* elbow or curved connectors whose box, flips, rotation or `adj` differ, or
|
|
38
|
+
* `undefined` when the pair is not one.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildMorphConnectorCarry(from: PptxElement, to: PptxElement, half: MorphConnectorHalf): string | undefined;
|
|
41
|
+
/** The animation of one half's painted strand (`target: 'line'`), or none. */
|
|
42
|
+
export declare function buildMorphConnectorAnimations(pair: MorphPair, id: string, half: MorphConnectorHalf, durationMs: number, tag: string): MorphAnimationStyle[];
|
|
43
|
+
//# sourceMappingURL=morph-connector-carry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-connector-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-connector-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoBnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAC;AAEpF,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,IAAI,CAAC;AAK/C,4FAA4F;AAC5F,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAOpE;AA0DD;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,IAAI,EAAE,kBAAkB,GACtB,MAAM,GAAG,SAAS,CAsCpB;AAED,8EAA8E;AAC9E,wBAAgB,6BAA6B,CAC5C,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,kBAAkB,EACxB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,GACT,mBAAmB,EAAE,CAYvB"}
|
|
@@ -56,6 +56,8 @@ export declare function morphEffectsDiffer(from: PptxElement, to: PptxElement):
|
|
|
56
56
|
export interface MorphEffectCarry {
|
|
57
57
|
/** A keyframes body (stops on the morph's eased progress), run with `linear` timing. */
|
|
58
58
|
readonly keyframes: string;
|
|
59
|
+
/** CSS to emit before the keyframes (the `@property` the keyframes animate). */
|
|
60
|
+
readonly prelude?: string;
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
61
63
|
* Who paints the outgoing effects: the half itself (`alone`), or the ghost
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-effect-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"morph-effect-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAanD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAO9E;AAED,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAChC,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,YAAY,CAAC;AA0GxD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE,kBAA4B,GACnC,gBAAgB,GAAG,SAAS,CAiD9B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A morphing shape's silhouette shadow, glow and inner shadow, dissolved the way
|
|
3
|
+
* PowerPoint dissolves them (see `morph-effect-carry`): the outgoing end's
|
|
4
|
+
* effects, riding the box at `1 - p`, and the incoming end's at `p`.
|
|
5
|
+
*
|
|
6
|
+
* Both ends are layers of ONE filter on the arriving shape (`silhouette-morph-
|
|
7
|
+
* registry` hands it the outgoing end, scaled into the arriving frame). Each
|
|
8
|
+
* layer reads the morph's eased progress from the `--pptx-morph-p` custom
|
|
9
|
+
* property, which this module animates on the same container as the other
|
|
10
|
+
* effect keyframes (an `@property` registration makes it interpolate).
|
|
11
|
+
*
|
|
12
|
+
* @module render/morph-effect-silhouette
|
|
13
|
+
*/
|
|
14
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
15
|
+
/** Registers the property so the keyframes interpolate it instead of flipping it. */
|
|
16
|
+
export declare const MORPH_PROGRESS_PROPERTY = "@property --pptx-morph-p {\n\tsyntax: '<number>';\n\tinherits: true;\n\tinitial-value: 1;\n}";
|
|
17
|
+
/**
|
|
18
|
+
* Registers the dissolve of an arriving silhouette shape and returns whether it
|
|
19
|
+
* applies (`underGhost`: the outgoing end's effects stay with the ghost) (the arriving end paints a silhouette and the outgoing one has effects
|
|
20
|
+
* that differ from it once scaled into the arriving frame).
|
|
21
|
+
*/
|
|
22
|
+
export declare function registerSilhouetteDissolve(from: PptxElement, to: PptxElement, painter?: 'alone' | 'underGhost'): boolean;
|
|
23
|
+
//# sourceMappingURL=morph-effect-silhouette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-effect-silhouette.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-silhouette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAanD,qFAAqF;AACrF,eAAO,MAAM,uBAAuB,iGAAwG,CAAC;AAqD7I;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,OAAO,GAAG,YAAsB,GACvC,OAAO,CAkBT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-geometry-key.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-geometry-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"morph-geometry-key.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-geometry-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAGzE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAInF"}
|
|
@@ -28,6 +28,33 @@ export type MorphLineHalf = 'from' | 'to';
|
|
|
28
28
|
export interface MorphLineCarry {
|
|
29
29
|
readonly keyframes: string;
|
|
30
30
|
}
|
|
31
|
+
/** `[a, b, c, d, e, f]`: CSS `matrix()` order (`x' = a x + c y + e`, `y' = b x + d y + f`). */
|
|
32
|
+
export type Matrix = readonly [number, number, number, number, number, number];
|
|
33
|
+
export type Vec = readonly [number, number];
|
|
34
|
+
/** A matrix entry to five places: a rotation's sine is a long lever over a long line. */
|
|
35
|
+
export declare const precise: (value: number) => number;
|
|
36
|
+
export declare const IDENTITY: Matrix;
|
|
37
|
+
export declare const STOPS = 24;
|
|
38
|
+
export declare const EPSILON = 0.5;
|
|
39
|
+
export declare const DEG: number;
|
|
40
|
+
export declare function mul(m: Matrix, n: Matrix): Matrix;
|
|
41
|
+
export declare function invert(m: Matrix): Matrix | undefined;
|
|
42
|
+
export declare const translate: (x: number, y: number) => Matrix;
|
|
43
|
+
export declare const scale: (x: number, y: number) => Matrix;
|
|
44
|
+
export declare function rotate(deg: number): Matrix;
|
|
45
|
+
export declare function apply(m: Matrix, v: Vec): Vec;
|
|
46
|
+
/** The journey of one half's wrapper: its own box, and the keyframe values at each end. */
|
|
47
|
+
export interface Journey {
|
|
48
|
+
readonly local: PptxElement;
|
|
49
|
+
readonly shift: readonly [Vec, Vec];
|
|
50
|
+
readonly turn: readonly [number, number];
|
|
51
|
+
readonly stretch: readonly [Vec, Vec];
|
|
52
|
+
}
|
|
53
|
+
export declare function centre(el: PptxElement): Vec;
|
|
54
|
+
export declare function journeyOf(from: PptxElement, to: PptxElement, half: MorphLineHalf): Journey;
|
|
55
|
+
/** The wrapper's local-to-slide matrix at eased progress `p`. */
|
|
56
|
+
export declare function wrapperAt(journey: Journey, p: number): Matrix;
|
|
57
|
+
export declare function lineWidth(el: PptxElement): number;
|
|
31
58
|
/** Whether `element` is a straight, single-strand connector or line the carry can re-path. */
|
|
32
59
|
export declare function isCarriedLine(element: PptxElement): boolean;
|
|
33
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-line-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph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AE,CAYvB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a line looks like at its ENDS: arrowheads, and how a morph treats a
|
|
3
|
+
* change in them.
|
|
4
|
+
*
|
|
5
|
+
* Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object): a
|
|
6
|
+
* connector whose arrowhead changes type or size (triangle to oval, medium to
|
|
7
|
+
* long) keeps its body at full strength and dissolves one head into the other
|
|
8
|
+
* in place (no scaling of the head), and a dashed line turning into another
|
|
9
|
+
* dash pattern blends the two. But a line that GAINS or LOSES something at an
|
|
10
|
+
* end or along its length (an arrowhead at either end appearing or going, a
|
|
11
|
+
* dashed line turning solid or back) is NOT paired: the old line fades out
|
|
12
|
+
* where it stood (body included, gone by about 15-25% of the morph) and the new
|
|
13
|
+
* one fades in from about 50-55%, the unmatched pair's dissolve (compare
|
|
14
|
+
* `morph-geometry-key`), measured over eight such changes in two decks. So the
|
|
15
|
+
* arrowheads and the dash are part of the pair's appearance, like its fill.
|
|
16
|
+
*
|
|
17
|
+
* @module render/morph-line-ends
|
|
18
|
+
*/
|
|
19
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
20
|
+
/** The normalised arrowheads of a connector style: no head is `''`, a default size is `med`. */
|
|
21
|
+
export declare function morphArrowSignature(style: object | undefined): string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether two connectors differ in having a dash or an arrowhead at an end,
|
|
24
|
+
* which PowerPoint does not pair on identity alone (a `!!` name still does).
|
|
25
|
+
*/
|
|
26
|
+
export declare function morphLineEndsBreakPair(from: PptxElement, to: PptxElement): boolean;
|
|
27
|
+
//# sourceMappingURL=morph-line-ends.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-line-ends.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-line-ends.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAsB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAIvE,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAWrE;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAUlF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How far ahead of its eased progress PowerPoint's Morph grows a line's box.
|
|
3
|
+
*
|
|
4
|
+
* Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object): a
|
|
5
|
+
* straight or elbow connector's centre follows the eased progress `p` exactly,
|
|
6
|
+
* but each extent (width, height) overshoots the linear blend of its two ends.
|
|
7
|
+
* Per axis, with `lo`, `hi` the smaller and larger extent of the pair, `r = hi / lo`:
|
|
8
|
+
*
|
|
9
|
+
* extent(p) = lerp(a0, a1, p) + |a1 - a0| * hi / (hi + lo) * G * p * (1 - p)
|
|
10
|
+
* G = (1 - exp(-3.2 (r - 1))) * coupling(x)
|
|
11
|
+
*
|
|
12
|
+
* so a grow AND a shrink are both larger than the straight blend mid-flight
|
|
13
|
+
* (3x: +0.75 * |delta| * p(1-p), 4x: +0.80, 10x: +0.91). The ratio term is the
|
|
14
|
+
* small-ratio fade: a 1.1x resize has no overshoot, 1.25x half of it, 1.4x 70%,
|
|
15
|
+
* 2x 95% (measured at 1.1x to 2x, grow and shrink: the old law without it was 4 pt
|
|
16
|
+
* off at 1.4x). `coupling` ties the resize to the centre's travel `d` along the same
|
|
17
|
+
* axis, with `x = d / (|a1 - a0| / 2)` (`x = 1` is an end that stays put): `x^1.14`
|
|
18
|
+
* while `x <= 1` (a box that grows in place about a fixed centre, `x = 0`, is exactly
|
|
19
|
+
* linear), and `min(1, 1.1 / x^0.94)` beyond. Fitted to 43 synthetic cases: mean abs
|
|
20
|
+
* error 1.5 pt where the straight blend was 40 pt.
|
|
21
|
+
*
|
|
22
|
+
* The law runs on the SIGNED extent along each slide axis, which makes it cover:
|
|
23
|
+
*
|
|
24
|
+
* - rotated lines: PowerPoint blends the two ends' END POINTS (a pure rotation about
|
|
25
|
+
* a fixed centre shortens the chord mid-turn, as the blend of the end points does;
|
|
26
|
+
* a resize about a fixed centre has no overshoot), then the overshoot above applies
|
|
27
|
+
* to each slide axis' span with the centre travel taken per axis. That makes a
|
|
28
|
+
* line that turns while its centre moves 112 pt measure 306 long mid-turn (the bare
|
|
29
|
+
* chord is 272), as PowerPoint does. Two ends that share one rotation (a line that
|
|
30
|
+
* keeps its angle and resizes) overshoot along their own length instead, measured
|
|
31
|
+
* at 2x to within 1.4 pt;
|
|
32
|
+
* - an axis the two ends flip differently on: the extent passes through zero, and
|
|
33
|
+
* the overshoot is `hi * (r - 1) / (r - 1 + 0.56) * coupling(x)` (x from the
|
|
34
|
+
* magnitudes) towards the larger end, where `hi` is the larger magnitude
|
|
35
|
+
* (1.5x: 0.47, 2x: 0.65, 4x: 0.81 of `hi`; equal magnitudes: none).
|
|
36
|
+
*
|
|
37
|
+
* Freeform open paths and arcs were measured too and do NOT overshoot: their box
|
|
38
|
+
* follows the plain linear blend (fraction of the resize done equals `p` to 0.01).
|
|
39
|
+
*
|
|
40
|
+
* Plain rectangles do not show it, so only lines and connectors use this.
|
|
41
|
+
*
|
|
42
|
+
* @module render/morph-line-reach
|
|
43
|
+
*/
|
|
44
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
45
|
+
/** The coupling of a resize to the centre's travel (`x` in half-deltas). */
|
|
46
|
+
export declare function reachCoupling(x: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* One axis' SIGNED extent overshoot at eased progress `p`: what PowerPoint adds to
|
|
49
|
+
* the linear blend of the signed extents `s0` and `s1` (positive towards the larger
|
|
50
|
+
* end's sign). `centreTravel` is the centre's absolute move along the axis.
|
|
51
|
+
*/
|
|
52
|
+
export declare function reachOffset(s0: number, s1: number, centreTravel: number, p: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* One axis' magnitude at eased progress `p`: the linear blend plus PowerPoint's
|
|
55
|
+
* overshoot. `centreTravel` is the centre's absolute move along the axis.
|
|
56
|
+
*/
|
|
57
|
+
export declare function reachedExtent(a0: number, a1: number, centreTravel: number, p: number): number;
|
|
58
|
+
/**
|
|
59
|
+
* What PowerPoint adds to the linearly blended end-to-end vector of a pair at `p`,
|
|
60
|
+
* `[dx, dy]` on the slide axes. `allowRotation` is true for a straight line (its end
|
|
61
|
+
* points are blended whatever the rotation and flips); an elbow or curved connector
|
|
62
|
+
* whose box turns is blended on the box instead, and one that flips on an axis was
|
|
63
|
+
* not measured either, so those get none.
|
|
64
|
+
*/
|
|
65
|
+
export declare function reachOffsets(from: PptxElement, to: PptxElement, p: number, allowRotation?: boolean): readonly [number, number];
|
|
66
|
+
/**
|
|
67
|
+
* The factors by which a pair's linearly blended width and height are scaled at
|
|
68
|
+
* `p` (1 when an axis has no overshoot), for the pair's unrotated, unflipped-alike
|
|
69
|
+
* axes. Kept for callers that scale rather than offset.
|
|
70
|
+
*/
|
|
71
|
+
export declare function reachFactors(from: PptxElement, to: PptxElement, p: number): readonly [number, number];
|
|
72
|
+
//# sourceMappingURL=morph-line-reach.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-line-reach.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-line-reach.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM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,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAkCrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,EACpC,eAAe,GAAE,WAAW,CAAC,MAAM,CAAa,GAC9C,GAAG,CAAC,MAAM,CAAC,CAqDb"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which matched pairs have their text carried apart from the whole element,
|
|
3
|
+
* and the copies that carry it: piece by piece, glyph by glyph, or body apart
|
|
4
|
+
* from text (see `morph-text-piece-plan`, `morph-text-glyph-plan`,
|
|
5
|
+
* `morph-text-body`). One dispatch for the three, in the order they claim
|
|
6
|
+
* pairs, so no pair is carried twice.
|
|
7
|
+
*
|
|
8
|
+
* @module render/morph-plan-carry
|
|
9
|
+
*/
|
|
10
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
11
|
+
import type { MorphTextBodyPlan } from './morph-text-body.js';
|
|
12
|
+
import type { MorphTextMeasure } from './morph-text-frame.js';
|
|
13
|
+
import type { MorphTextPiecePlan } from './morph-text-piece-plan.js';
|
|
14
|
+
import type { MorphMode, MorphPair } from './morph-types.js';
|
|
15
|
+
/** Everything {@link planMorphTextCarry} reads about the transition. */
|
|
16
|
+
export interface MorphTextCarryInput {
|
|
17
|
+
readonly mode: MorphMode;
|
|
18
|
+
readonly durationMs: number;
|
|
19
|
+
readonly measureText: MorphTextMeasure | undefined;
|
|
20
|
+
readonly pairs: readonly MorphPair[];
|
|
21
|
+
readonly ghostIds: ReadonlySet<string>;
|
|
22
|
+
readonly flattenedOutgoing: readonly PptxElement[];
|
|
23
|
+
readonly flattenedIncoming: readonly PptxElement[];
|
|
24
|
+
/** Whether the plan holds a container animation for an incoming id yet. */
|
|
25
|
+
readonly animated: (id: string) => boolean;
|
|
26
|
+
readonly outlineAnimations: Map<string, string>;
|
|
27
|
+
readonly customGeometryAnimations: Map<string, string>;
|
|
28
|
+
readonly outlineStrandAnimations: Map<string, string[]>;
|
|
29
|
+
}
|
|
30
|
+
/** The copies that carry text apart from its element. */
|
|
31
|
+
export interface MorphTextCarry {
|
|
32
|
+
/** Outgoing text id -> the incoming text it adopts the layout of while offstage. */
|
|
33
|
+
offstageRestyles: Map<string, PptxElement>;
|
|
34
|
+
/** Piece, glyph and body copies merged into one plan. */
|
|
35
|
+
pieces: MorphTextPiecePlan;
|
|
36
|
+
/** The body-apart-from-text half of {@link MorphTextCarry.pieces}. */
|
|
37
|
+
bodies: MorphTextBodyPlan;
|
|
38
|
+
}
|
|
39
|
+
/** Plan every text carry of the transition and merge them into one piece plan. */
|
|
40
|
+
export declare function planMorphTextCarry(input: MorphTextCarryInput): MorphTextCarry;
|
|
41
|
+
//# sourceMappingURL=morph-plan-carry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-plan-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1D,wEAAwE;AACxE,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,WAAW,EAAE,CAAC;IACnD,QAAQ,CAAC,iBAAiB,EAAE,SAAS,WAAW,EAAE,CAAC;IACnD,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACxD;AAED,yDAAyD;AACzD,MAAM,WAAW,cAAc;IAC9B,oFAAoF;IACpF,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3C,yDAAyD;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,sEAAsE;IACtE,MAAM,EAAE,iBAAiB,CAAC;CAC1B;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,cAAc,CAkD7E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sort the flat list `morph-animation` generates into the channels of a plan:
|
|
3
|
+
* container animations by half, the `<img>` crop channel, the outline,
|
|
4
|
+
* custom-geometry and connector-strand channels (see {@link MorphTransitionPlan}).
|
|
5
|
+
*
|
|
6
|
+
* @module render/morph-plan-channels
|
|
7
|
+
*/
|
|
8
|
+
import type { generateFullMorphTransition } from './morph-animation.js';
|
|
9
|
+
/** The animations `morph-animation` generated for one transition. */
|
|
10
|
+
export type MorphGeneratedAnimations = ReturnType<typeof generateFullMorphTransition>;
|
|
11
|
+
/** The generated animations, partitioned by the channel a binding applies them on. */
|
|
12
|
+
export interface MorphAnimationChannels {
|
|
13
|
+
/** Every `@keyframes` block, in generation order. */
|
|
14
|
+
keyframes: string[];
|
|
15
|
+
incomingAnimations: Map<string, string>;
|
|
16
|
+
outgoingAnimations: Map<string, string>;
|
|
17
|
+
incomingImageAnimations: Map<string, string>;
|
|
18
|
+
outgoingImageAnimations: Map<string, string>;
|
|
19
|
+
outlineAnimations: Map<string, string>;
|
|
20
|
+
outlineStrandAnimations: Map<string, string[]>;
|
|
21
|
+
customGeometryAnimations: Map<string, string>;
|
|
22
|
+
lineAnimations: Map<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Partition `animations` into channels. `outgoingIds` is the id set of the
|
|
26
|
+
* outgoing slide's (flattened) elements: partitioning on it, rather than on id
|
|
27
|
+
* shape, keeps the id format an implementation detail of core.
|
|
28
|
+
*/
|
|
29
|
+
export declare function partitionMorphAnimations(animations: MorphGeneratedAnimations, outgoingIds: ReadonlySet<string>): MorphAnimationChannels;
|
|
30
|
+
//# sourceMappingURL=morph-plan-channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-plan-channels.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-channels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,qEAAqE;AACrE,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF,sFAAsF;AACtF,MAAM,WAAW,sBAAsB;IACtC,qDAAqD;IACrD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/C,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,UAAU,EAAE,wBAAwB,EACpC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,sBAAsB,CAwExB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MorphCrossfadeGroup } from './morph-crossfade-group.js';
|
|
2
|
+
/**
|
|
3
|
+
* Move a grouped pair's dissolve off the two elements and onto their wrappers.
|
|
4
|
+
*
|
|
5
|
+
* A pair that dissolves where it stands does not move, so the journey keyframes
|
|
6
|
+
* it was given are `translate(0, 0) scale(1, 1) rotate(0deg)` at both ends. They
|
|
7
|
+
* animate nothing and cost a compositing layer, whose raster the browser snaps
|
|
8
|
+
* to whole device pixels - the wording is then painted a fraction of a pixel
|
|
9
|
+
* from where the live stage paints it and twitches as the overlay comes and
|
|
10
|
+
* goes. Dropping them and running only the fade, on the slide-sized wrapper the
|
|
11
|
+
* binding puts each half in, measured pixel-identical to the settled slide
|
|
12
|
+
* (issue #161; the same reasoning already governs an inert pair's ghost).
|
|
13
|
+
*
|
|
14
|
+
* A pair that MOVES keeps everything on the element: it needs the journey, and
|
|
15
|
+
* a travelling shape cannot be seen to snap.
|
|
16
|
+
*/
|
|
17
|
+
export declare function liftCrossfadeToWrapper(group: MorphCrossfadeGroup, animations: readonly {
|
|
18
|
+
elementId: string;
|
|
19
|
+
animation: string;
|
|
20
|
+
keyframes: string;
|
|
21
|
+
target?: string;
|
|
22
|
+
}[], outgoingAnimations: Map<string, string>, overlayIncomingAnimations: Map<string, string>): MorphCrossfadeGroup;
|
|
23
|
+
//# sourceMappingURL=morph-plan-crossfade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-plan-crossfade.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-crossfade.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,mBAAmB,EAC1B,UAAU,EAAE,SAAS;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,EAAE,EACH,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACvC,yBAAyB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5C,mBAAmB,CA8DrB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { MorphTransitionPlan } from './morph-plan-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Render a plan as a self-contained stylesheet that drives the morph purely
|
|
4
|
+
* through CSS, with no per-element prop plumbing.
|
|
5
|
+
*
|
|
6
|
+
* Every binding already stamps `data-element-id` on each rendered element, so
|
|
7
|
+
* scoping rules to an ancestor carrying `scopeAttribute` is enough to animate
|
|
8
|
+
* a whole slide. This is what lets Vue / Angular / Svelte / Vanilla play a
|
|
9
|
+
* morph without threading an animation map through their slide-stage
|
|
10
|
+
* components.
|
|
11
|
+
*
|
|
12
|
+
* @param plan - The plan to render.
|
|
13
|
+
* @param scopeAttribute - Attribute (already present on the ancestor) that
|
|
14
|
+
* scopes these rules, e.g. `data-pptx-morph-incoming`. Pass an empty string
|
|
15
|
+
* to emit document-level rules: element ids embed their slide path, so they
|
|
16
|
+
* are unique to the slide being animated and need no ancestor to disambiguate.
|
|
17
|
+
* That is what lets a binding whose incoming slide is rendered OUTSIDE the
|
|
18
|
+
* overlay (Angular, React) still drive it from here.
|
|
19
|
+
* @param which - Which half to emit: the live stage's `incoming` elements, the
|
|
20
|
+
* overlay's `outgoing` ghosts, or the `lifted` copies the overlay paints over
|
|
21
|
+
* those ghosts (see {@link MorphTransitionPlan.overlayIncomingElements}).
|
|
22
|
+
* @returns Keyframes plus the scoped `animation` rules, ready to inject.
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildMorphScopedCss(plan: MorphTransitionPlan, scopeAttribute: string, which?: 'incoming' | 'outgoing' | 'lifted'): string;
|
|
25
|
+
/**
|
|
26
|
+
* Just the `animation` rules of a plan, with no `@keyframes` block.
|
|
27
|
+
*
|
|
28
|
+
* For a binding that already injects {@link MorphTransitionPlan.keyframesCss}
|
|
29
|
+
* itself and applies the element-level animations some other way (React merges
|
|
30
|
+
* them into its per-element animation state), but still needs the descendant
|
|
31
|
+
* rules that {@link MorphTransitionPlan.incomingImageAnimations} cannot be
|
|
32
|
+
* expressed as an inline style for.
|
|
33
|
+
*
|
|
34
|
+
* @param plan - The plan to render.
|
|
35
|
+
* @param scopeAttribute - As {@link buildMorphScopedCss}.
|
|
36
|
+
* @param which - Which half of the transition to emit.
|
|
37
|
+
* @param only - `'image'` emits only the `<img>` descendant rules; omit for all.
|
|
38
|
+
* @returns The newline-joined rules (no trailing newline); `''` when there are none.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildMorphAnimationRules(plan: MorphTransitionPlan, scopeAttribute: string, which?: 'incoming' | 'outgoing' | 'lifted', only?: 'image'): string;
|
|
41
|
+
/**
|
|
42
|
+
* The outline-path rules of a plan (see
|
|
43
|
+
* {@link MorphTransitionPlan.outlineAnimations}), keyed on `keyAttribute`.
|
|
44
|
+
*
|
|
45
|
+
* {@link buildMorphAnimationRules} keys them on `data-element-id`; a binding
|
|
46
|
+
* whose overlay paints its halves without that attribute (React's overlay
|
|
47
|
+
* wraps each one in a `data-pptx-morph-outgoing` / `data-pptx-morph-lifted`
|
|
48
|
+
* element named after its id instead) passes that attribute. A re-pathed
|
|
49
|
+
* outline animates the CSS `d` property, so the rules sit behind a support
|
|
50
|
+
* check; without it the static path stays, scaled with its box as before.
|
|
51
|
+
*
|
|
52
|
+
* @returns The rules, or `''` when the plan re-paths no outline.
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildMorphOutlineRules(plan: MorphTransitionPlan, keyAttribute: string, prefix?: string): string;
|
|
55
|
+
//# sourceMappingURL=morph-plan-css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-plan-css.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-css.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAyB9D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,mBAAmB,EACzB,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,UAAU,GAAG,UAAU,GAAG,QAAqB,GACpD,MAAM,CAER;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,mBAAmB,EACzB,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,UAAU,GAAG,UAAU,GAAG,QAAqB,EACtD,IAAI,CAAC,EAAE,OAAO,GACZ,MAAM,CAwCR;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,mBAAmB,EACzB,YAAY,EAAE,MAAM,EACpB,MAAM,SAAK,GACT,MAAM,CA2BR"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which incoming shapes the overlay paints above the ghosts instead of leaving
|
|
3
|
+
* them on the live stage (see {@link MorphTransitionPlan.overlayIncomingElements}).
|
|
4
|
+
*
|
|
5
|
+
* @module render/morph-plan-lift
|
|
6
|
+
*/
|
|
7
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
8
|
+
import type { MorphTextMeasure } from './morph-text-frame.js';
|
|
9
|
+
import type { MorphMode, MorphPair } from './morph-types.js';
|
|
10
|
+
/** Everything {@link resolveMorphLiftedIds} reads about the transition. */
|
|
11
|
+
export interface MorphLiftInput {
|
|
12
|
+
readonly mode: MorphMode;
|
|
13
|
+
readonly measureText: MorphTextMeasure | undefined;
|
|
14
|
+
/** Every matched pair. */
|
|
15
|
+
readonly pairs: readonly MorphPair[];
|
|
16
|
+
/** The pairs not carried piece by piece. */
|
|
17
|
+
readonly wholePairs: readonly MorphPair[];
|
|
18
|
+
readonly ghostIds: ReadonlySet<string>;
|
|
19
|
+
readonly flattenedOutgoing: readonly PptxElement[];
|
|
20
|
+
readonly flattenedIncoming: readonly PptxElement[];
|
|
21
|
+
/** Incoming ids of the pairs carried piece by piece. */
|
|
22
|
+
readonly pieceToIds: ReadonlySet<string>;
|
|
23
|
+
/** Incoming ids a body carry raises above the ghosts. */
|
|
24
|
+
readonly risingIds: Iterable<string>;
|
|
25
|
+
/** Whether the plan holds a container animation for an incoming id. */
|
|
26
|
+
readonly animated: (id: string) => boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The incoming ids the overlay paints above the ghosts.
|
|
30
|
+
*
|
|
31
|
+
* Everything the overlay paints hides whatever the live stage is doing
|
|
32
|
+
* underneath, which is wrong for a shape that ARRIVES on top of a ghost:
|
|
33
|
+
* it dissolves in where nobody can see it and appears in one frame when the
|
|
34
|
+
* overlay is torn down (issue #146 - the wheel's centre disc is unchanged,
|
|
35
|
+
* so its opaque ghost sat over the new title, body and button for the whole
|
|
36
|
+
* morph). Those few move up into the overlay, above the ghosts, and the
|
|
37
|
+
* copy on the stage is held invisible so the two never composite.
|
|
38
|
+
*
|
|
39
|
+
* Only a ghost that KEEPS its opacity counts. One that dissolves is out of
|
|
40
|
+
* the way inside the first quarter, long before an arrival begins to appear,
|
|
41
|
+
* so it hides nothing worth moving an animation for.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveMorphLiftedIds(input: MorphLiftInput): Set<string>;
|
|
44
|
+
//# sourceMappingURL=morph-plan-lift.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-plan-lift.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-lift.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1D,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACnD,0BAA0B;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,WAAW,EAAE,CAAC;IACnD,QAAQ,CAAC,iBAAiB,EAAE,SAAS,WAAW,EAAE,CAAC;IACnD,wDAAwD;IACxD,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,yDAAyD;IACzD,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrC,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CAC3C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,CA0ExE"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assemble the overlay of a plan: hand the lifted arrivals and the piece copies
|
|
3
|
+
* their animations, group the cross-dissolving pairs, and stack everything the
|
|
4
|
+
* overlay paints back to front (see {@link MorphTransitionPlan.overlayStack}).
|
|
5
|
+
*
|
|
6
|
+
* @module render/morph-plan-overlay
|
|
7
|
+
*/
|
|
8
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
9
|
+
import type { MorphCrossfadeGroup } from './morph-crossfade-group.js';
|
|
10
|
+
import type { MorphOverlayLayer } from './morph-overlay-layers.js';
|
|
11
|
+
import type { MorphOverlayStackEntry } from './morph-overlay-stack.js';
|
|
12
|
+
import type { MorphGeneratedAnimations } from './morph-plan-channels.js';
|
|
13
|
+
import type { MorphTextPiecePlan } from './morph-text-piece-plan.js';
|
|
14
|
+
import type { MorphPair } from './morph-types.js';
|
|
15
|
+
/** The maps {@link settleMorphLifts} reads and edits in place. */
|
|
16
|
+
export interface MorphSettleInput {
|
|
17
|
+
readonly durationMs: number;
|
|
18
|
+
readonly lifted: ReadonlySet<string>;
|
|
19
|
+
readonly pieces: MorphTextPiecePlan;
|
|
20
|
+
readonly pieceFromIds: ReadonlySet<string>;
|
|
21
|
+
readonly pieceToIds: ReadonlySet<string>;
|
|
22
|
+
readonly incomingAnimations: Map<string, string>;
|
|
23
|
+
readonly outgoingAnimations: Map<string, string>;
|
|
24
|
+
readonly outlineAnimations: Map<string, string>;
|
|
25
|
+
readonly outlineStrandAnimations: Map<string, string[]>;
|
|
26
|
+
readonly customGeometryAnimations: Map<string, string>;
|
|
27
|
+
/** The plan's keyframes; the hold and the pieces' blocks are appended. */
|
|
28
|
+
readonly keyframes: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Move each lifted arrival's animation to the overlay and hold its stage copy
|
|
32
|
+
* invisible; hold the piece pairs' stage copies too and drop the animations of
|
|
33
|
+
* the ghosts and outlines the pieces replace.
|
|
34
|
+
*
|
|
35
|
+
* @returns The animations of the copies the overlay paints above the ghosts.
|
|
36
|
+
*/
|
|
37
|
+
export declare function settleMorphLifts(input: MorphSettleInput): Map<string, string>;
|
|
38
|
+
/** Everything {@link assembleMorphOverlay} reads. */
|
|
39
|
+
export interface MorphOverlayInput {
|
|
40
|
+
readonly animations: MorphGeneratedAnimations;
|
|
41
|
+
readonly pairs: readonly MorphPair[];
|
|
42
|
+
readonly wholePairs: readonly MorphPair[];
|
|
43
|
+
readonly ghostIds: ReadonlySet<string>;
|
|
44
|
+
readonly ghostElements: readonly PptxElement[];
|
|
45
|
+
readonly flattenedOutgoing: readonly PptxElement[];
|
|
46
|
+
readonly flattenedIncoming: readonly PptxElement[];
|
|
47
|
+
readonly pieces: MorphTextPiecePlan;
|
|
48
|
+
readonly outgoingAnimations: Map<string, string>;
|
|
49
|
+
/** Edited in place: the pieces' incoming animations join it. */
|
|
50
|
+
readonly overlayIncomingAnimations: Map<string, string>;
|
|
51
|
+
}
|
|
52
|
+
/** What the overlay paints and in which order. */
|
|
53
|
+
export interface MorphOverlay {
|
|
54
|
+
crossfadeGroups: MorphCrossfadeGroup[];
|
|
55
|
+
outgoingElements: PptxElement[];
|
|
56
|
+
overlayIncomingElements: PptxElement[];
|
|
57
|
+
overlayLayers: MorphOverlayLayer[];
|
|
58
|
+
overlayStack: MorphOverlayStackEntry[];
|
|
59
|
+
}
|
|
60
|
+
/** Group, filter and stack the overlay's contents. */
|
|
61
|
+
export declare function assembleMorphOverlay(input: MorphOverlayInput): MorphOverlay;
|
|
62
|
+
//# sourceMappingURL=morph-plan-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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