ooxml-ui 1.41.0 → 1.42.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 +1 -0
- package/dist/building-block-styles.d.ts +1 -0
- package/dist/chart/data-sheet-keys.d.ts +1 -0
- package/dist/chart/data-sheet.d.ts +2 -1
- package/dist/chart/design-galleries.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-advanced-space.d.ts +1 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-fields.d.ts +1 -0
- package/dist/chart/format-pane-fill-line.d.ts +1 -0
- package/dist/chart/format-pane-intent.d.ts +1 -0
- package/dist/chart/format-pane-locales/de.d.ts +1 -0
- package/dist/chart/format-pane-locales/en.d.ts +1 -0
- package/dist/chart/format-pane-text.d.ts +1 -0
- package/dist/chart/format-pane-translate.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/chrome/account.d.ts +2 -1
- package/dist/chrome/print-preview.d.ts +2 -1
- package/dist/chrome/ruler.d.ts +2 -1
- package/dist/chrome/status-bar.d.ts +2 -1
- package/dist/chrome/tab-drag.d.ts +1 -0
- package/dist/chrome/task-pane.d.ts +2 -1
- package/dist/comments/mentions.d.ts +1 -0
- package/dist/comments/types.d.ts +1 -0
- package/dist/controls.d.ts +1 -0
- package/dist/dialog/chart-picker.d.ts +2 -1
- package/dist/dialog/dialog-footer.d.ts +2 -1
- package/dist/dialog/dialog-session.d.ts +1 -0
- package/dist/dialog/dialog.d.ts +2 -1
- package/dist/dialog/focus.d.ts +1 -0
- package/dist/dialog/message-dialogs.d.ts +1 -0
- package/dist/dialog/options-categories.d.ts +1 -0
- package/dist/dialog/options-controls.d.ts +1 -0
- package/dist/dialog/progress-dialog.d.ts +2 -1
- package/dist/dialog/share-dialog-locales.d.ts +1 -0
- package/dist/dialog/share-dialog.d.ts +2 -1
- package/dist/files/cloud-files-view.d.ts +1 -0
- package/dist/files/connected-services.d.ts +2 -1
- package/dist/files/open-places.d.ts +2 -1
- package/dist/fonts/availability.d.ts +1 -0
- package/dist/fonts/catalog.d.ts +1 -0
- package/dist/fonts/custom-fonts.d.ts +1 -0
- package/dist/form/checkbox.d.ts +2 -1
- package/dist/form/color-custom.d.ts +2 -1
- package/dist/form/color-grid.d.ts +2 -1
- package/dist/form/color-input/live-color-leaves.d.ts +1 -0
- package/dist/form/radio.d.ts +2 -1
- package/dist/form/search-field.d.ts +2 -1
- package/dist/form/symbol-picker.d.ts +2 -1
- package/dist/form/zoom-slider.d.ts +2 -1
- package/dist/image-native-size.d.ts +1 -0
- package/dist/menu/command-search.d.ts +2 -1
- package/dist/menu/context-menu.d.ts +2 -1
- package/dist/menu/menu-item.d.ts +2 -1
- package/dist/notices/paste-options.d.ts +2 -1
- package/dist/notices/toasts.d.ts +2 -1
- package/dist/picture-standard-filter.d.ts +1 -0
- package/dist/pptx/{chunk-IN46QNJE.mjs → chunk-BA4CJI4U.mjs} +35 -3
- package/dist/pptx/{chunk-JU3ZV73R.mjs → chunk-C7G2CSU2.mjs} +2 -2
- package/dist/pptx/{chunk-7XXOLM7H.cjs → chunk-CK6RYGB4.cjs} +37 -2
- package/dist/pptx/{chunk-J6PRXB72.mjs → chunk-OPLK7GPB.mjs} +2568 -1673
- package/dist/pptx/{chunk-RN3JVXVN.cjs → chunk-RI4YZ4AG.cjs} +2588 -1681
- package/dist/pptx/{chunk-4SZSTDER.cjs → chunk-XTYRGVT5.cjs} +47 -47
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts +19 -0
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts.map +1 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +438 -395
- package/dist/pptx/dom/index.d.ts +1 -0
- package/dist/pptx/dom/index.d.ts.map +1 -1
- package/dist/pptx/dom/index.mjs +56 -15
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +3169 -3109
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/connector-path.d.ts +15 -0
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +10 -0
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/device-pixel-stroke.d.ts +43 -6
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/effect-profile.d.ts +53 -0
- package/dist/pptx/render/effect-profile.d.ts.map +1 -0
- package/dist/pptx/render/font-settled.d.ts +14 -0
- package/dist/pptx/render/font-settled.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts +1 -24
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-effect-carry.d.ts +4 -5
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-flip-turn.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-carry.d.ts +40 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +13 -0
- package/dist/pptx/render/morph-plan.d.ts.map +1 -1
- package/dist/pptx/render/morph-rotation.d.ts +30 -0
- package/dist/pptx/render/morph-rotation.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry-strands.d.ts +36 -0
- package/dist/pptx/render/morph-shape-carry-strands.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry.d.ts +5 -0
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-soft-edge-blend.d.ts +38 -0
- package/dist/pptx/render/morph-soft-edge-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body.d.ts +1 -1
- package/dist/pptx/render/morph-text-body.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-frame.d.ts +2 -0
- package/dist/pptx/render/morph-text-frame.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-glyph-plan.d.ts +31 -0
- package/dist/pptx/render/morph-text-glyph-plan.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts +27 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-lines.d.ts +8 -6
- package/dist/pptx/render/morph-text-lines.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-piece-caps.d.ts +36 -0
- package/dist/pptx/render/morph-text-piece-caps.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-pieces.d.ts +6 -1
- package/dist/pptx/render/morph-text-pieces.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-transform.d.ts +2 -0
- package/dist/pptx/render/morph-text-transform.d.ts.map +1 -1
- package/dist/pptx/render/morph-types.d.ts +11 -2
- package/dist/pptx/render/morph-types.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline-settle.d.ts +8 -0
- package/dist/pptx/render/paragraph-baseline-settle.d.ts.map +1 -0
- package/dist/pptx/render/paragraph-baseline.d.ts +76 -13
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-types.d.ts +6 -0
- package/dist/pptx/render/paragraph-types.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts +7 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-body-layout.d.ts.map +1 -1
- package/dist/pptx/render/text-effects.d.ts +6 -11
- package/dist/pptx/render/text-effects.d.ts.map +1 -1
- package/dist/pptx/render/text-line-height.d.ts +8 -8
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraph-style.d.ts +13 -0
- package/dist/pptx/render/text-paragraph-style.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-shrink-block.d.ts +23 -0
- package/dist/pptx/render/text-shrink-block.d.ts.map +1 -0
- package/dist/pptx/render/visual-effects.d.ts +3 -1
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-GA6ELFRB.mjs → smartart-insert-preview-AE7D4I7L.mjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-PQTEVG7C.cjs → smartart-insert-preview-P4NV2FRD.cjs} +4 -4
- package/dist/render-cache.d.ts +1 -0
- package/dist/ribbon/auto-collapse.d.ts +1 -0
- package/dist/ribbon/button.d.ts +2 -1
- package/dist/ribbon/gallery-styles.d.ts +1 -0
- package/dist/ribbon/keytip-run.d.ts +1 -0
- package/dist/ribbon/overflow.d.ts +1 -0
- package/dist/ribbon/ribbon-section.d.ts +2 -1
- package/dist/ribbon/ribbon-stack.d.ts +2 -1
- package/dist/ribbon/safe-svg.d.ts +1 -0
- package/dist/ribbon/scroll-more.d.ts +1 -0
- package/dist/smartart/smartart-picker.d.ts +2 -1
- package/dist/smartart/smartart-text-pane-tools.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The vertical mapping of a text piece whose face changes between the halves.
|
|
3
|
+
*
|
|
4
|
+
* PowerPoint 16 (`CreateVideo`, 32 pt, same line breaks) stretches every run
|
|
5
|
+
* onto its own counterpart's capital height, about that line's own baseline:
|
|
6
|
+
* two lines Calibri -> Arial grow each "L" 27 -> 31 px while the baselines stay
|
|
7
|
+
* 51-52 px apart. One transform for a box cannot do both, so a pair like that
|
|
8
|
+
* is carried per line (and per face within a line), each piece scaled about its
|
|
9
|
+
* own baseline by its own capital-height ratio.
|
|
10
|
+
*
|
|
11
|
+
* @module render/morph-text-piece-caps
|
|
12
|
+
*/
|
|
13
|
+
import type { MorphFontMetrics } from './morph-text-baseline.js';
|
|
14
|
+
import type { TextFrame } from './morph-text-frame-read.js';
|
|
15
|
+
import type { MorphTextLayout, MorphTextWord } from './morph-text-lines.js';
|
|
16
|
+
/** A font shorthand without its sizes: the face (family, weight, style). */
|
|
17
|
+
export declare const faceOf: (font: string) => string;
|
|
18
|
+
/** The canvas font the first character of `word` is painted in. */
|
|
19
|
+
export declare function wordFont(frame: TextFrame, word: MorphTextWord): string | undefined;
|
|
20
|
+
/** One half of a piece: its frame, its word layout and the piece's first word. */
|
|
21
|
+
export interface PieceHalf {
|
|
22
|
+
frame: TextFrame;
|
|
23
|
+
layout: MorphTextLayout;
|
|
24
|
+
head: MorphTextWord;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Where a piece's two halves anchor vertically (their baselines, from each
|
|
28
|
+
* element's top) and how tall one is against the other, or `undefined` when
|
|
29
|
+
* the face does not change or nothing says (the piece then keeps its line-box
|
|
30
|
+
* mapping).
|
|
31
|
+
*/
|
|
32
|
+
export declare function pieceCapMapping(a: PieceHalf, b: PieceHalf, metrics: MorphFontMetrics): {
|
|
33
|
+
baselines: [number, number];
|
|
34
|
+
scaleY: number;
|
|
35
|
+
} | undefined;
|
|
36
|
+
//# sourceMappingURL=morph-text-piece-caps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morph-text-piece-caps.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-piece-caps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGzE,4EAA4E;AAC5E,eAAO,MAAM,MAAM,SAAU,MAAM,KAAG,MAAwC,CAAC;AAE/E,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAOlF;AAED,kFAAkF;AAClF,MAAM,WAAW,SAAS;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,CAAC,EAAE,SAAS,EACZ,CAAC,EAAE,SAAS,EACZ,OAAO,EAAE,gBAAgB,GACvB;IAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiB7D"}
|
|
@@ -51,6 +51,7 @@ import type { PptxElement } from 'ooxml-core/pptx';
|
|
|
51
51
|
import type { MorphTextAlignment, MorphTextMeasure } from './morph-text-frame.js';
|
|
52
52
|
import type { MorphTextInkMeasure } from './morph-text-ink.js';
|
|
53
53
|
import type { MorphTextBand } from './morph-text-bands.js';
|
|
54
|
+
import type { MorphFontMetrics } from './morph-text-baseline.js';
|
|
54
55
|
export type { MorphTextBand } from './morph-text-bands.js';
|
|
55
56
|
/** One piece: how it maps across, and the part of each half it shows. */
|
|
56
57
|
export interface MorphTextPiece {
|
|
@@ -83,5 +84,9 @@ export interface MorphTextPieceSplit {
|
|
|
83
84
|
* @param ink - Ink measurement for the bands' edges; defaults to a canvas
|
|
84
85
|
* when `measure` does, and to none (line-box edges) otherwise.
|
|
85
86
|
*/
|
|
86
|
-
export declare function resolveMorphTextPieces(from: PptxElement, to: PptxElement, measure?: MorphTextMeasure, ink?: MorphTextInkMeasure | undefined
|
|
87
|
+
export declare function resolveMorphTextPieces(from: PptxElement, to: PptxElement, measure?: MorphTextMeasure, ink?: MorphTextInkMeasure | undefined, options?: {
|
|
88
|
+
metrics?: MorphFontMetrics;
|
|
89
|
+
/** Refuse unless every piece whose face changes can be scaled about its baseline. */
|
|
90
|
+
requireCaps?: boolean;
|
|
91
|
+
}): MorphTextPieceSplit | undefined;
|
|
87
92
|
//# sourceMappingURL=morph-text-pieces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-text-pieces.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-pieces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"morph-text-pieces.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-pieces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,kDAAkD;IAClD,QAAQ,EAAE,aAAa,CAAC;IACxB,kDAAkD;IAClD,MAAM,EAAE,aAAa,CAAC;CACtB;AAED,uFAAuF;AACvF,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,gBAA6C,EACtD,GAAG,GAAE,mBAAmB,GAAG,SAEf,EACZ,OAAO,GAAE;IACR,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,qFAAqF;IACrF,WAAW,CAAC,EAAE,OAAO,CAAC;CACjB,GACJ,mBAAmB,GAAG,SAAS,CAiGjC"}
|
|
@@ -80,6 +80,8 @@ export interface MorphTextTransform {
|
|
|
80
80
|
sy: number;
|
|
81
81
|
tail?: MorphPoint;
|
|
82
82
|
}
|
|
83
|
+
/** Where a turning half's pivot stands on the slide, at its own rotation. */
|
|
84
|
+
export declare function pivotOnSlide(centre: MorphPoint, pivot: MorphPoint, rotation: number): MorphPoint;
|
|
83
85
|
/**
|
|
84
86
|
* The incoming half's STARTING transform: it is painted at its own geometry and
|
|
85
87
|
* has to begin with its text laid over the outgoing text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-text-transform.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-transform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,4BAA4B;AAC5B,MAAM,WAAW,UAAU;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,EAAE,EAAE,UAAU,CAAA;KAAE,CAAC;IAC/C;;;;;OAKG;IACH,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE;YAAE,IAAI,EAAE,UAAU,CAAC;YAAC,EAAE,EAAE,UAAU,CAAA;SAAE,CAAA;KAAE,CAAC;CAClF;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"morph-text-transform.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-transform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,4BAA4B;AAC5B,MAAM,WAAW,UAAU;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CA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B,GAAG,cAAc,CAAC,GAC3D,MAAM,CASR"}
|
|
@@ -41,12 +41,21 @@ export interface MorphAnimationStyle {
|
|
|
41
41
|
* `data-pptx-outline` on, which a resizing shape re-paths per frame (see
|
|
42
42
|
* `morph-shape-carry`). `custom` is the paths of the custom-geometry
|
|
43
43
|
* `<svg data-pptx-custom-geometry>` a binding paints a freeform with (in
|
|
44
|
-
* path units), which a reshaping freeform re-paths per frame too.
|
|
44
|
+
* path units), which a reshaping freeform re-paths per frame too. `line` is
|
|
45
|
+
* the painted strand a binding stamps `data-pptx-line` on in a straight
|
|
46
|
+
* connector, which keeps its width while the wrapper's journey scales
|
|
47
|
+
* (see `morph-line-carry`).
|
|
45
48
|
*/
|
|
46
49
|
target?: MorphAnimationTarget;
|
|
50
|
+
/**
|
|
51
|
+
* With `target: 'outline'`: the position (from 0) of the overlay path the
|
|
52
|
+
* animation belongs on, for a compound outline whose strands are separate
|
|
53
|
+
* paths with their own geometry. Absent, it animates every path.
|
|
54
|
+
*/
|
|
55
|
+
strand?: number;
|
|
47
56
|
}
|
|
48
57
|
/** @see MorphAnimationStyle.target */
|
|
49
|
-
export type MorphAnimationTarget = 'element' | 'image' | 'outline' | 'custom';
|
|
58
|
+
export type MorphAnimationTarget = 'element' | 'image' | 'outline' | 'custom' | 'line';
|
|
50
59
|
/** Morph granularity mode matching PowerPoint's morph effect options. */
|
|
51
60
|
export type MorphMode = 'object' | 'word' | 'character';
|
|
52
61
|
/** A single token (word or character) with its computed position for text morphing. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morph-types.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOnD,2EAA2E;AAC3E,MAAM,WAAW,SAAS;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,WAAW,CAAC;CACvB;AAED,oEA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G;AACH,eAAO,MAAM,qBAAqB,QAA0B,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,QAAuC,CAAC;AAChF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAyB,CAAC;AAE3D,mEAAmE;AACnE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Place every marked paragraph under `root` on the baseline of the font it now paints with. */
|
|
2
|
+
export declare function settleBaselines(root?: ParentNode): number;
|
|
3
|
+
/**
|
|
4
|
+
* Start watching for loaded fonts and new paragraphs (once per page). Call it
|
|
5
|
+
* when a paragraph was marked pending; it costs nothing before that.
|
|
6
|
+
*/
|
|
7
|
+
export declare function armBaselineSettle(): void;
|
|
8
|
+
//# sourceMappingURL=paragraph-baseline-settle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph-baseline-settle.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/paragraph-baseline-settle.ts"],"names":[],"mappings":"AA4BA,gGAAgG;AAChG,wBAAgB,eAAe,CAAC,IAAI,GAAE,UAAqB,GAAG,MAAM,CAsBnE;AAkBD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAaxC"}
|
|
@@ -5,11 +5,16 @@
|
|
|
5
5
|
* CSS centres the line height on the font's own ascent and descent (half the
|
|
6
6
|
* leading above, half below), so changing `line-height` by some amount moves
|
|
7
7
|
* every baseline by half of it. PowerPoint does not. Measured on PowerPoint 16
|
|
8
|
-
* slide exports (
|
|
9
|
-
* and
|
|
8
|
+
* slide exports (one-line paragraphs, 49 font and size pairs at single spacing
|
|
9
|
+
* and four fonts at `a:spcPct` 70% to 200% and `a:spcPts` 30 to 60pt, read at
|
|
10
10
|
* 4px per point), with `p` the line pitch, `s` the font size and `D` the
|
|
11
|
-
*
|
|
11
|
+
* descent PowerPoint keeps below the baseline:
|
|
12
12
|
*
|
|
13
|
+
* - Single spacing is a pitch of exactly `1.2 s` for every font, with the
|
|
14
|
+
* font's own ascent and descent (the Windows metrics, `winAscent` and
|
|
15
|
+
* `winDescent`) scaled to fill it: the baseline sits `1.2 s a / (a + d)`
|
|
16
|
+
* from the top of the line, so `D = 1.2 s d / (a + d)`. Calibri measured
|
|
17
|
+
* 0.940 em, Arial 0.975, Georgia 0.969, Segoe UI 0.975, Verdana 0.994.
|
|
13
18
|
* - A line taller than single spacing (`p > 1.2 s`) sits its baseline at
|
|
14
19
|
* exactly 75% of the pitch, whatever the font: 102% to 200% and every exact
|
|
15
20
|
* pitch above single all measured `0.75 p` (plus the glyph overshoot).
|
|
@@ -20,13 +25,10 @@
|
|
|
20
25
|
* So `baseline = p > 1.2 s ? 0.75 p : max(0.75 p, p - D)`. The jump at single
|
|
21
26
|
* spacing is real: 102% put the Calibri baseline 0.75pt HIGHER than 100% did.
|
|
22
27
|
*
|
|
23
|
-
* The move is
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* lines from the browser's metrics moved the most common text, Calibri at
|
|
28
|
-
* 100%, by a fraction of a pixel the wrong way; only the change the spacing
|
|
29
|
-
* makes is applied.
|
|
28
|
+
* The move is the whole difference between that baseline and the one CSS
|
|
29
|
+
* gives the line (see {@link cssBaseline}), single spacing included: fonts
|
|
30
|
+
* differ in where CSS puts their single line (Arial and Georgia sat 1.5pt
|
|
31
|
+
* high at 40pt, Segoe UI 1.4pt low), so no font is left to the flow.
|
|
30
32
|
*
|
|
31
33
|
* @module render/paragraph-baseline
|
|
32
34
|
*/
|
|
@@ -36,23 +38,46 @@ import type { ParagraphRun, RenderParagraph } from './paragraph-types.js';
|
|
|
36
38
|
export interface FontBox {
|
|
37
39
|
ascent: number;
|
|
38
40
|
descent: number;
|
|
41
|
+
/**
|
|
42
|
+
* Set when the box describes a stand-in: the font is a web font that has
|
|
43
|
+
* not loaded yet (or is missing), so the browser measured a fallback face.
|
|
44
|
+
* Such a box is never cached, and a paragraph placed from it is settled
|
|
45
|
+
* again once the fonts have loaded (see `paragraph-baseline-settle`).
|
|
46
|
+
*/
|
|
47
|
+
provisional?: boolean;
|
|
48
|
+
/** Of a provisional box: the font is a web font that is still loading, so its own box is about to be known. */
|
|
49
|
+
loading?: boolean;
|
|
39
50
|
}
|
|
40
51
|
/** Ascent and descent of a CSS `font` shorthand, or `undefined` when they cannot be measured. */
|
|
41
52
|
export type FontBoxMeasure = (font: string) => FontBox | undefined;
|
|
42
53
|
/** PowerPoint's baseline, in px from the top of a line `pitch` tall of text `size` px. */
|
|
43
54
|
export declare function powerPointBaseline(pitch: number, size: number, descent: number): number;
|
|
55
|
+
/**
|
|
56
|
+
* The descent (px) PowerPoint keeps below the baseline of a single line of
|
|
57
|
+
* `size` px text: the font's ascent and descent scaled to fill its 1.2 pitch.
|
|
58
|
+
* `box` is the font's ascent and descent at any one size.
|
|
59
|
+
*/
|
|
60
|
+
export declare function powerPointDescent(size: number, box: FontBox): number;
|
|
44
61
|
/** One inline box CSS puts on a line: its `line-height` in px and its font's box. */
|
|
45
62
|
export interface CssLineBox {
|
|
46
63
|
lineHeight: number;
|
|
47
64
|
font: FontBox;
|
|
48
65
|
}
|
|
49
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The baseline CSS gives a line holding `boxes`, in px from the line's top.
|
|
68
|
+
* Layout works on whole-pixel ascents and descents and floors the leading it
|
|
69
|
+
* puts above a box (`ascent + floor((lineHeight - ascent - descent) / 2)`),
|
|
70
|
+
* which moves a line by up to half a pixel against the unrounded centring.
|
|
71
|
+
*/
|
|
50
72
|
export declare function cssBaseline(boxes: readonly CssLineBox[]): number;
|
|
51
73
|
/**
|
|
52
74
|
* {@link FontBoxMeasure} on a 2D canvas (`fontBoundingBoxAscent` /
|
|
53
75
|
* `fontBoundingBoxDescent`, the metrics the browser lays a line box out
|
|
54
|
-
* with). Answers `undefined` outside a browser
|
|
55
|
-
*
|
|
76
|
+
* with). Answers `undefined` outside a browser. A font that has not settled
|
|
77
|
+
* (see `isFontSettled`: a web font still loading, or one that is missing)
|
|
78
|
+
* is measured on the stand-in the browser paints it with, flagged
|
|
79
|
+
* `provisional` and left out of the cache, so a stand-in's box is never
|
|
80
|
+
* mistaken for the font's own once it has loaded.
|
|
56
81
|
*/
|
|
57
82
|
export declare const measureFontBoxWithCanvas: FontBoxMeasure;
|
|
58
83
|
/** What {@link resolveParagraphBaselineShift} reads from one paragraph. */
|
|
@@ -74,6 +99,34 @@ export interface BaselineShiftInput {
|
|
|
74
99
|
* same baseline offset, so one move fixes them all and leaves the flow alone.
|
|
75
100
|
*/
|
|
76
101
|
export declare function resolveParagraphBaselineShift(input: BaselineShiftInput): number | undefined;
|
|
102
|
+
/** What {@link baselineShiftOf} reads: one line's size, pitch and font boxes. */
|
|
103
|
+
export interface BaselineGeometry {
|
|
104
|
+
/** Font size (px) of the text and its line pitch (px). */
|
|
105
|
+
size: number;
|
|
106
|
+
pitch: number;
|
|
107
|
+
/** The inline boxes on the line: the paragraph strut, then the text run. */
|
|
108
|
+
boxes: readonly [CssLineBox, CssLineBox];
|
|
109
|
+
/** The text's font box at a large size, whose proportions PowerPoint scales to its pitch. */
|
|
110
|
+
reference: FontBox;
|
|
111
|
+
/** The paragraph strut's font size (px). */
|
|
112
|
+
strutSizePx: number;
|
|
113
|
+
/**
|
|
114
|
+
* The boxes are those of a stand-in for a web font that is still loading.
|
|
115
|
+
* Its own proportions are not known yet, so the move is only what the
|
|
116
|
+
* spacing changes from single spacing, which the renderer leaves where the
|
|
117
|
+
* browser puts it; the paragraph is placed again when the font has loaded.
|
|
118
|
+
*/
|
|
119
|
+
loading?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/** How far (px) to move a line so its baseline is PowerPoint's, or `undefined` for no move. */
|
|
122
|
+
export declare function baselineShiftOf(geometry: BaselineGeometry): number | undefined;
|
|
123
|
+
/** The font a paragraph's text is measured at for the proportions PowerPoint scales to its pitch. */
|
|
124
|
+
export declare function referenceFont(style: ParagraphRun['style'], family: string): string;
|
|
125
|
+
/** {@link resolveParagraphBaselineShift} that also says whether a stand-in font was measured. */
|
|
126
|
+
export declare function resolveParagraphBaseline(input: BaselineShiftInput): {
|
|
127
|
+
shift: number | undefined;
|
|
128
|
+
provisional: boolean;
|
|
129
|
+
} | undefined;
|
|
77
130
|
/**
|
|
78
131
|
* Move `paragraph` onto PowerPoint's baselines (see
|
|
79
132
|
* {@link resolveParagraphBaselineShift}) with a relative `top`, which leaves
|
|
@@ -84,4 +137,14 @@ export declare function applyParagraphBaselineShift(paragraph: RenderParagraph,
|
|
|
84
137
|
fontFamily: string;
|
|
85
138
|
fontSizePx: number;
|
|
86
139
|
}, measure?: FontBoxMeasure): void;
|
|
140
|
+
/** The custom property that marks a paragraph placed from a stand-in font's box. */
|
|
141
|
+
export declare const BASELINE_PENDING_VAR = "--pptx-baseline-pending";
|
|
142
|
+
/**
|
|
143
|
+
* What a placement needs to be redone once its font has loaded, as a value a
|
|
144
|
+
* style declaration can carry in every binding: the first text run's font and
|
|
145
|
+
* the paragraph's line height and strut, URI-encoded JSON.
|
|
146
|
+
*/
|
|
147
|
+
export declare function encodePendingBaseline(input: BaselineShiftInput): string;
|
|
148
|
+
/** The input {@link encodePendingBaseline} recorded, or `undefined` when the value is not one. */
|
|
149
|
+
export declare function decodePendingBaseline(value: string): BaselineShiftInput | undefined;
|
|
87
150
|
//# sourceMappingURL=paragraph-baseline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph-baseline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/paragraph-baseline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paragraph-baseline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/paragraph-baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAE,SAAS,EA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+132,12 @@ export interface RenderParagraph {
|
|
|
132
132
|
* `paragraphStyle`; carried for code that models the layout (morph).
|
|
133
133
|
*/
|
|
134
134
|
baselineShiftPx?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Set when the baseline was placed from a stand-in font's metrics because
|
|
137
|
+
* the paragraph's web font had not loaded; `paragraphStyle` then carries
|
|
138
|
+
* the `--pptx-baseline-pending` marker `settleBaselines` places it again by.
|
|
139
|
+
*/
|
|
140
|
+
baselineProvisional?: boolean;
|
|
135
141
|
/**
|
|
136
142
|
* `font-size` in px to set on the paragraph element so its CSS line boxes
|
|
137
143
|
* are built from its OWN runs rather than the text body's default size.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph-types.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/paragraph-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;;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E,CAAC;IACxC,qFAAqF;IACrF,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,iEAAiE;IACjE,WAAW,EAAE,QAAQ,CAAC;IACtB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;OASG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;CACxC"}
|
|
@@ -52,6 +52,13 @@ export interface StrokeOutlineStrand {
|
|
|
52
52
|
*/
|
|
53
53
|
cssStrokeWidth: string;
|
|
54
54
|
offset: number;
|
|
55
|
+
/**
|
|
56
|
+
* An inline CSS `transform` that snaps this strand to the device grid the way
|
|
57
|
+
* PowerPoint's export does (see `snappedStrokeTransform`), set only for the
|
|
58
|
+
* axis-aligned outline of a plain rectangle or a horizontal / vertical line.
|
|
59
|
+
* Write it as a style property next to {@link cssStrokeWidth}.
|
|
60
|
+
*/
|
|
61
|
+
cssTransform?: string;
|
|
55
62
|
/**
|
|
56
63
|
* Path data for this strand when it is not the outline's own `d`: the
|
|
57
64
|
* edge bleed (see {@link buildStrokeOutline}) traces the widened clip's edge.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stroke-outline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stroke-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"stroke-outline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stroke-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,iBAAiB,CAAC;AAQ/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAS/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAU3D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAS1E,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,aAAa,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACX;AAED,yEAAyE;AAC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M,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,yBAAyB,GAAG,SAAS,CAkCvC;AAuID;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAKtE;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS,CA+DlF;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAO7E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-cell-paragraphs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-paragraphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,aAAa,EAA0B,MAAM,iBAAiB,CAAC;AAI7E,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"table-cell-paragraphs.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-paragraphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,aAAa,EAA0B,MAAM,iBAAiB,CAAC;AAI7E,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQ/D,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,YAAY,CAAC;IAClB,IAAI,EAAE,WAAW,EAAE,CAAC;CACpB;AA6KD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,kBAAkB,EAAE,GAAG,SAAS,CAuCzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-body-layout.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-body-layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-body-layout.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-body-layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAqC9D,wEAAwE;AACxE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAKlE;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC/B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,eAAe,CAWxF;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAC7B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,EAC/B,cAAc,CAAC,EAAE,MAAM,GACrB,MAAM,GAAG,SAAS,CA2BpB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAI9F;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,CAiFlF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAkBrF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gCAAgC,CAC/C,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GAClB,mBAAmB,CAkBrB"}
|
|
@@ -56,17 +56,12 @@ export declare function getTextAlphaOpacity(style: TextStyle): number | undefine
|
|
|
56
56
|
/**
|
|
57
57
|
* Build a CSS `filter` value for a text run's glow (`a:glow`).
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* opacity - the same 0.33/0.66/1.0 radius and opacity falloff
|
|
66
|
-
* {@link getGlowBoxShadowCss} already uses for a SHAPE's glow (`box-shadow`
|
|
67
|
-
* layers) - builds up a denser core near the glyph with a shorter actual
|
|
68
|
-
* fade tail, matching PowerPoint's tighter halo far more closely than one
|
|
69
|
-
* wide blur.
|
|
59
|
+
* PowerPoint's glow grows the glyph by about 0.42 of its radius and then blurs
|
|
60
|
+
* it (see `effect-profile.ts`); a single `drop-shadow()` only blurs, so it
|
|
61
|
+
* paints a thin, pale cloud. Three equal `drop-shadow()`s chained (each shadows
|
|
62
|
+
* the previous one's output) build the solid halo: mean abs diff outside the
|
|
63
|
+
* glyphs against PowerPoint's export of an 80 pt bold run, 0.36 where the
|
|
64
|
+
* 0.33/0.66/1.0 stack read 0.77.
|
|
70
65
|
*/
|
|
71
66
|
export declare function buildTextGlowFilter(style: TextStyle): string | undefined;
|
|
72
67
|
//# sourceMappingURL=text-effects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAmCvE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAgB5E;AAED,4DAA4D;AAC5D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAKxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAK5E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAYvE;AAED,gEAAgE;AAChE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAQxE;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAexE"}
|
|
@@ -52,14 +52,14 @@ export declare function resolveLineHeight(textStyle: LineHeightSource | undefine
|
|
|
52
52
|
* stacked on PowerPoint's {@link DEFAULT_LINE_HEIGHT} single-spacing pitch,
|
|
53
53
|
* or that base itself when no multiplier is set.
|
|
54
54
|
*
|
|
55
|
-
* `compatLineSpacing` (`a:bodyPr/@compatLnSpc`)
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* `
|
|
61
|
-
*
|
|
62
|
-
*
|
|
55
|
+
* `compatLineSpacing` (`a:bodyPr/@compatLnSpc`) changes nothing here. It was
|
|
56
|
+
* once modelled as "the multiplier alone, no 1.2 pitch", which was never
|
|
57
|
+
* measured and painted every body of the older Office themes (whose master
|
|
58
|
+
* sets `compatLnSpc="1"`) about 17% too tight. PowerPoint 16 static exports
|
|
59
|
+
* of Calibri, Arial and Verdana at 28pt with `compatLnSpc` 0 and 1 and
|
|
60
|
+
* `lnSpc` unset, 90% and 150% all lay out at 1.2x the font size times the
|
|
61
|
+
* multiplier with the flag on (44.8, 40.3 and 67.2px at 37.3px). The
|
|
62
|
+
* parameter stays so callers keep their signature.
|
|
63
63
|
*/
|
|
64
64
|
export declare function proportionalLineHeight(lineSpacing: number | undefined, compatLineSpacing?: boolean): number;
|
|
65
65
|
/**
|
|
@@ -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,
|
|
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"}
|
|
@@ -67,4 +67,17 @@ export declare function resolveCssTextAlign(align: TextStyle['align'] | undefine
|
|
|
67
67
|
* excluded.
|
|
68
68
|
*/
|
|
69
69
|
export declare function resolveTextAlignLast(align: TextStyle['align'] | undefined): 'justify' | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* The `text-justify` of `algn="dist"`, set beside its `text-align-last`. PowerPoint distributes LETTERS,
|
|
72
|
+
* not words: on every line of a distributed paragraph (the last line, a
|
|
73
|
+
* single-line paragraph, and the full lines above it) the slack is spread
|
|
74
|
+
* evenly after each character, spaces included, leaving the last character
|
|
75
|
+
* flush with the right edge. COM-measured on static exports: "Hello" in a
|
|
76
|
+
* 6 in box becomes "H e l l o" edge to edge, "Hello world" keeps a wider gap
|
|
77
|
+
* only because the space takes its own share, and "aa bb cc ..." on a full
|
|
78
|
+
* line spreads its letters too. CSS `text-justify: inter-character` does the
|
|
79
|
+
* same under `text-align: justify` (Chromium and Firefox); WebKit ignores it
|
|
80
|
+
* and keeps spreading words, which is the best it can do.
|
|
81
|
+
*/
|
|
82
|
+
export declare const DISTRIBUTED_TEXT_JUSTIFY = "inter-character";
|
|
70
83
|
//# sourceMappingURL=text-paragraph-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-paragraph-style.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-paragraph-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE;QACR,KAAK,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC;QACzC;;;;;;;WAOG;QACH,mBAAmB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC;KACvD,CAAC;CACF;AAED,+EAA+E;AAC/E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAErF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,YAAY,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAChD,UAAU,EAAE,OAAO,GAAG,SAAS,GAC7B,OAAO,GAAG,SAAS,CAqBrB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,YAAY,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAChD,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,GAC1C,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,CAQhC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,EACrC,KAAK,EAAE,OAAO,GACZ,YAAY,GAAG,SAAS,CAS1B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oB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S,GAAG,SAAS,GAAG,SAAS,CAEjG;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,oBAAoB,CAAC"}
|
|
@@ -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,MAAM,iBAAiB,CAAC;AAahE,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AA+B1E;;;;;;;;;;;;;;;;;;;;;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,CAsNnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The horizontal offset of an `a:bodyPr/@anchorCtr="1"` text block.
|
|
3
|
+
*
|
|
4
|
+
* PowerPoint shrinks the block to its longest line (the bounding box of every
|
|
5
|
+
* wrapped line) and centres THAT box in the text area; each line keeps its own
|
|
6
|
+
* alignment inside it (PowerPoint 16 exports: left, centre and right aligned,
|
|
7
|
+
* one to four wrapped lines, insets and a turned box). CSS `fit-content` only
|
|
8
|
+
* shrinks a block that does not wrap: a wrapped one keeps the full column, so
|
|
9
|
+
* its lines sat at the wrong x. The lines are broken here with the canvas
|
|
10
|
+
* measurer the morph text layout already uses, and the whole block is moved by
|
|
11
|
+
* the one offset that centres their bounding box.
|
|
12
|
+
*
|
|
13
|
+
* @module render/text-shrink-block
|
|
14
|
+
*/
|
|
15
|
+
import type { PptxElement } from 'ooxml-core/pptx';
|
|
16
|
+
/**
|
|
17
|
+
* How far (px, positive to the right) the full-column block has to move to be
|
|
18
|
+
* the shrink-wrapped block PowerPoint draws, or `undefined` when the lines
|
|
19
|
+
* cannot be measured with confidence (no canvas, mixed faces, bullets, ...),
|
|
20
|
+
* where the caller keeps `fit-content`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function shrinkBlockOffset(element: PptxElement): number | undefined;
|
|
23
|
+
//# sourceMappingURL=text-shrink-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-shrink-block.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/text-shrink-block.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAoB1E"}
|
|
@@ -179,7 +179,9 @@ export declare function hasEffectDagProperties(style: ShapeStyle | undefined): b
|
|
|
179
179
|
* @param style - The shape style.
|
|
180
180
|
* @param elementId - Element ID, forwarded to the DAG duotone reference.
|
|
181
181
|
*/
|
|
182
|
-
export declare function getEffectFilterCss(style: ShapeStyle | undefined, elementId?: string
|
|
182
|
+
export declare function getEffectFilterCss(style: ShapeStyle | undefined, elementId?: string, options?: {
|
|
183
|
+
glow?: boolean;
|
|
184
|
+
}): string | undefined;
|
|
183
185
|
/** Extract CSS `opacity` (0–1) from `dagAlphaModFix`, or `undefined`. */
|
|
184
186
|
export declare function getEffectDagOpacity(style: ShapeStyle | undefined): number | undefined;
|
|
185
187
|
/** Map `dagFillOverlayBlend` to a CSS `mix-blend-mode`, or `undefined`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/visual-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"visual-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/visual-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAQ3D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMnD;AAiDD;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IACnC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,OAAO,CAAC,EAAE,mBAAmB,GAC3B,MAAM,GAAG,SAAS,CA6DpB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC/C,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,OAAO,CAAC,EAAE,mBAAmB,GAC3B,MAAM,GAAG,SAAS,CA6EpB;AAuBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAyBnF;AAED;;;GAGG;AACH,wBAAgB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OAAO,GAAE;IAAE,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9C,mBAAmB,CAmGrB;AAED,wEAAwE;AACxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE7D"}
|
package/dist/pptx/{smartart-insert-preview-GA6ELFRB.mjs → smartart-insert-preview-AE7D4I7L.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-C7G2CSU2.mjs';
|
|
2
|
+
import './chunk-OPLK7GPB.mjs';
|
|
3
3
|
import './chunk-DH6EKOVI.mjs';
|
|
4
4
|
import './chunk-RQJOOXRG.mjs';
|
|
5
5
|
import './chunk-7BHPBO2O.mjs';
|
|
@@ -23,7 +23,7 @@ import './chunk-T7FRLIDM.mjs';
|
|
|
23
23
|
import './chunk-TW5UQCZS.mjs';
|
|
24
24
|
import './chunk-IB6ZM2E2.mjs';
|
|
25
25
|
import './chunk-JA7WYSRE.mjs';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-BA4CJI4U.mjs';
|
|
27
27
|
import './chunk-2V5ATMMB.mjs';
|
|
28
28
|
import './chunk-7JBQPQ6G.mjs';
|
|
29
29
|
import './chunk-A62C6PSL.mjs';
|
package/dist/pptx/{smartart-insert-preview-PQTEVG7C.cjs → smartart-insert-preview-P4NV2FRD.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkXTYRGVT5_cjs = require('./chunk-XTYRGVT5.cjs');
|
|
4
|
+
require('./chunk-RI4YZ4AG.cjs');
|
|
5
5
|
require('./chunk-JP26TA3Q.cjs');
|
|
6
6
|
require('./chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('./chunk-W3X2UVYQ.cjs');
|
|
@@ -25,7 +25,7 @@ require('./chunk-USBRSEJK.cjs');
|
|
|
25
25
|
require('./chunk-YZWKNFPU.cjs');
|
|
26
26
|
require('./chunk-FOE75Z6N.cjs');
|
|
27
27
|
require('./chunk-NTXHQHCS.cjs');
|
|
28
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-CK6RYGB4.cjs');
|
|
29
29
|
require('./chunk-G4WRLFMJ.cjs');
|
|
30
30
|
require('./chunk-HJ3JZXOL.cjs');
|
|
31
31
|
require('./chunk-73IDQGYI.cjs');
|
|
@@ -44,5 +44,5 @@ require('./chunk-PBZWDEXQ.cjs');
|
|
|
44
44
|
|
|
45
45
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkXTYRGVT5_cjs.buildSmartArtInsertPreview; }
|
|
48
48
|
});
|
package/dist/render-cache.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const RENDER_CACHE_MAX_BYTES: number;
|
|
2
2
|
/** FIFO retention limit; oversized results still render, but are not memoised. */
|
|
3
3
|
export declare function setBoundedRenderCache<T>(cache: Map<string, T>, key: string, value: T, maxEntries: number): void;
|
|
4
|
+
//# sourceMappingURL=render-cache.d.ts.map
|
|
@@ -5,3 +5,4 @@ export declare const SHORT_VIEWPORT_MEDIA = "(max-height: 500px)";
|
|
|
5
5
|
* viewport collapses it (as Office does), so the document keeps the height.
|
|
6
6
|
*/
|
|
7
7
|
export declare function resolveCollapsed(shortViewport: boolean, userChoice: boolean | undefined): boolean;
|
|
8
|
+
//# sourceMappingURL=auto-collapse.d.ts.map
|
package/dist/ribbon/button.d.ts
CHANGED
|
@@ -57,4 +57,5 @@ export declare class OfficeUiButton extends OfficeElement {
|
|
|
57
57
|
private onClick;
|
|
58
58
|
protected render(): import("lit").TemplateResult<1>;
|
|
59
59
|
}
|
|
60
|
-
export declare const defineButton: import("../
|
|
60
|
+
export declare const defineButton: import("../registry.js").Definer;
|
|
61
|
+
//# sourceMappingURL=button.d.ts.map
|