pptx-ts 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -114
- package/dist/{autopage-odPz7zZO.js → autopage-D4kyVp11.js} +5 -5
- package/dist/{autopage-odPz7zZO.js.map → autopage-D4kyVp11.js.map} +1 -1
- package/dist/{body-insets-Dw_BeWD_.js → body-insets-kVHmjGc6.js} +2 -2
- package/dist/{body-insets-Dw_BeWD_.js.map → body-insets-kVHmjGc6.js.map} +1 -1
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +5 -5
- package/dist/{clip-Bl01BPcN.d.ts → clip-DHDlnHUq.d.ts} +2 -2
- package/dist/{clip-Bl01BPcN.d.ts.map → clip-DHDlnHUq.d.ts.map} +1 -1
- package/dist/{diagnostics-D8ot4Ei7.d.ts → diagnostics-DiMmBU8P.d.ts} +6 -6
- package/dist/{diagnostics-D8ot4Ei7.d.ts.map → diagnostics-DiMmBU8P.d.ts.map} +1 -1
- package/dist/{embedded-fonts-DarT9aoa.d.ts → embedded-fonts-CI_YGW2d.d.ts} +2 -2
- package/dist/{embedded-fonts-DarT9aoa.d.ts.map → embedded-fonts-CI_YGW2d.d.ts.map} +1 -1
- package/dist/{entry-compose-DCnvBZz2.d.ts → entry-compose-6hF9aTmT.d.ts} +19 -17
- package/dist/{entry-compose-DCnvBZz2.d.ts.map → entry-compose-6hF9aTmT.d.ts.map} +1 -1
- package/dist/{enums-BUKTUB6V.d.ts → enums-DQRpVOLh.d.ts} +3 -3
- package/dist/{enums-BUKTUB6V.d.ts.map → enums-DQRpVOLh.d.ts.map} +1 -1
- package/dist/{errors-C4oENPcu.js → errors-Da2nXCJm.js} +6 -6
- package/dist/{errors-C4oENPcu.js.map → errors-Da2nXCJm.js.map} +1 -1
- package/dist/families.d.ts +6 -6
- package/dist/families.js +2 -2
- package/dist/{fit-Cb7naFj6.js → fit-CcXbg__l.js} +10 -10
- package/dist/{fit-Cb7naFj6.js.map → fit-CcXbg__l.js.map} +1 -1
- package/dist/{font-metrics-v5fn7s7e.d.ts → font-metrics-CBGmhLo0.d.ts} +6 -6
- package/dist/{font-metrics-v5fn7s7e.d.ts.map → font-metrics-CBGmhLo0.d.ts.map} +1 -1
- package/dist/{grid-DikTjFey.js → grid-9B2w5EaY.js} +2 -2
- package/dist/{grid-DikTjFey.js.map → grid-9B2w5EaY.js.map} +1 -1
- package/dist/{html-dom-Iuog2wdK.js → html-dom-DvJmuHt2.js} +10 -10
- package/dist/html-dom-DvJmuHt2.js.map +1 -0
- package/dist/html.d.ts +3 -3
- package/dist/html.js +2 -2
- package/dist/{image-size-CvN2iCA4.js → image-size-DwDbakcl.js} +64 -5
- package/dist/image-size-DwDbakcl.js.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/inspect.d.ts +4 -4
- package/dist/inspect.js +4 -4
- package/dist/inspect.js.map +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/math.js +1 -1
- package/dist/measure.d.ts +3 -3
- package/dist/measure.js +2 -2
- package/dist/node.d.ts +7 -7
- package/dist/node.js +3 -3
- package/dist/{notes-Dh12JAbn.js → notes-BcT571R4.js} +19 -18
- package/dist/notes-BcT571R4.js.map +1 -0
- package/dist/options-internal-WqgMf720.js.map +1 -1
- package/dist/{package-J49Ck6S2.d.ts → package-KoEgVwII.d.ts} +6 -2
- package/dist/{package-J49Ck6S2.d.ts.map → package-KoEgVwII.d.ts.map} +1 -1
- package/dist/{pres-C6qgOFAa.d.ts → pres-BA9_lJbY.d.ts} +32 -12
- package/dist/pres-BA9_lJbY.d.ts.map +1 -0
- package/dist/{presentation-DGYlAWhl.js → presentation-Cyl74rq2.js} +70 -35
- package/dist/presentation-Cyl74rq2.js.map +1 -0
- package/dist/{presentation-types-8jLQHI4M.d.ts → presentation-types-B3VQH4Bz.d.ts} +19 -15
- package/dist/presentation-types-B3VQH4Bz.d.ts.map +1 -0
- package/dist/read.d.ts +6 -6
- package/dist/read.js +3 -3
- package/dist/script.d.ts +2 -2
- package/dist/script.d.ts.map +1 -1
- package/dist/script.js +11 -11
- package/dist/script.js.map +1 -1
- package/dist/{shapes-re0KyQk_.js → shapes-BcyFdZpp.js} +14 -10
- package/dist/shapes-BcyFdZpp.js.map +1 -0
- package/dist/{slide-Dx2ZeVZ6.d.ts → slide-BqPtyKmb.d.ts} +12 -7
- package/dist/slide-BqPtyKmb.d.ts.map +1 -0
- package/dist/{table-cell-margins-EVg0EwxT.js → table-cell-margins-PDshga8T.js} +4 -4
- package/dist/{table-cell-margins-EVg0EwxT.js.map → table-cell-margins-PDshga8T.js.map} +1 -1
- package/dist/{table-dom-BTDP3lEP.js → table-dom-CVbvUfgh.js} +3 -3
- package/dist/{table-dom-BTDP3lEP.js.map → table-dom-CVbvUfgh.js.map} +1 -1
- package/dist/{text-KnLOtEEu.js → text-BvFFMMFQ.js} +38 -36
- package/dist/{text-KnLOtEEu.js.map → text-BvFFMMFQ.js.map} +1 -1
- package/dist/{text-anchor-CrYXAfUu.js → text-anchor-BgLPbwbL.js} +2 -2
- package/dist/{text-anchor-CrYXAfUu.js.map → text-anchor-BgLPbwbL.js.map} +1 -1
- package/dist/{units-internal-XJlf-hOl.js → units-internal-DFcUYjh3.js} +11 -6
- package/dist/units-internal-DFcUYjh3.js.map +1 -0
- package/dist/{zip-C0leZZMj.d.ts → zip-CTll_dr0.d.ts} +2 -2
- package/dist/{zip-C0leZZMj.d.ts.map → zip-CTll_dr0.d.ts.map} +1 -1
- package/dist/{zip-CKd8ihcf.js → zip-CYZ0F6BV.js} +2 -2
- package/dist/{zip-CKd8ihcf.js.map → zip-CYZ0F6BV.js.map} +1 -1
- package/dist/zip.d.ts +2 -2
- package/dist/zip.js +2 -2
- package/dist/{zoom-cX9sllpH.js → zoom-BoNyOlPm.js} +66 -52
- package/dist/zoom-BoNyOlPm.js.map +1 -0
- package/package.json +39 -31
- package/skills/ts-pptx-upstream/SKILL.md +18 -18
- package/dist/html-dom-Iuog2wdK.js.map +0 -1
- package/dist/image-size-CvN2iCA4.js.map +0 -1
- package/dist/notes-Dh12JAbn.js.map +0 -1
- package/dist/pres-C6qgOFAa.d.ts.map +0 -1
- package/dist/presentation-DGYlAWhl.js.map +0 -1
- package/dist/presentation-types-8jLQHI4M.d.ts.map +0 -1
- package/dist/shapes-re0KyQk_.js.map +0 -1
- package/dist/slide-Dx2ZeVZ6.d.ts.map +0 -1
- package/dist/units-internal-XJlf-hOl.js.map +0 -1
- package/dist/zoom-cX9sllpH.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as warn, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError } from "./errors-
|
|
2
|
-
import { _ as resolveCellMarginsInches, b as resolveTableColWidthsEmu, d as marginToEmu, s as getSmartParseNumber, t as autoPageLineHeightEmu, v as resolveInsetsEmu, x as resolveTableRowHeightEmu } from "./units-internal-
|
|
3
|
-
import { D as emuToInches, I as EMU_PER_POINT } from "./table-cell-margins-
|
|
1
|
+
import { l as warn, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError } from "./errors-Da2nXCJm.js";
|
|
2
|
+
import { _ as resolveCellMarginsInches, b as resolveTableColWidthsEmu, d as marginToEmu, s as getSmartParseNumber, t as autoPageLineHeightEmu, v as resolveInsetsEmu, x as resolveTableRowHeightEmu } from "./units-internal-DFcUYjh3.js";
|
|
3
|
+
import { D as emuToInches, I as EMU_PER_POINT } from "./table-cell-margins-PDshga8T.js";
|
|
4
4
|
import { t as pickDefined } from "./options-internal-WqgMf720.js";
|
|
5
|
-
import { t as BODY_INSET_DEFAULTS_EMU } from "./body-insets-
|
|
6
|
-
import { n as tableColCount, r as walkTableGrid } from "./grid-
|
|
5
|
+
import { t as BODY_INSET_DEFAULTS_EMU } from "./body-insets-kVHmjGc6.js";
|
|
6
|
+
import { n as tableColCount, r as walkTableGrid } from "./grid-9B2w5EaY.js";
|
|
7
7
|
//#region src/measure/font-collection.ts
|
|
8
8
|
/**
|
|
9
9
|
* Font **collection** (`.ttc` / `.otc`) support for the write-side metrics.
|
|
@@ -500,7 +500,7 @@ const MIN_FONT_SCALE_PCT = 25;
|
|
|
500
500
|
* each glyph advance up — so PowerPoint wraps marginally earlier and its fitted
|
|
501
501
|
* box is marginally taller. Inflating measured width and height by these factors
|
|
502
502
|
* makes the computed `fontScale` ≤ PowerPoint's across the calibration oracle
|
|
503
|
-
* (`test/read/autofit-calibration-oracle.test.
|
|
503
|
+
* (`test/read/autofit-calibration-oracle.test.ts`: 0 violations over the Aptos
|
|
504
504
|
* cases). They err on the side of shrinking slightly too much, never overflowing.
|
|
505
505
|
*/
|
|
506
506
|
const WIDTH_SAFETY_FACTOR = 1.03;
|
|
@@ -752,7 +752,7 @@ function solveShrink(paragraphs, box, resolve) {
|
|
|
752
752
|
//#endregion
|
|
753
753
|
//#region src/measure/paragraphs.ts
|
|
754
754
|
/**
|
|
755
|
-
* ts
|
|
755
|
+
* pptx-ts: turning a slide text object into the simulator's inputs
|
|
756
756
|
*
|
|
757
757
|
* The lower half of the measured-fit pass: normalize a text object's runs into `FitParagraph`s,
|
|
758
758
|
* resolve its body insets and box, and work out how a height change is shared between `off.y` and
|
|
@@ -922,7 +922,7 @@ function anchorTopShareOfDelta(opts) {
|
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/gen/table/cell-inherit.ts
|
|
924
924
|
/**
|
|
925
|
-
* ts
|
|
925
|
+
* pptx-ts: what a table cell inherits from its table.
|
|
926
926
|
*
|
|
927
927
|
* A cell that states nothing takes the table's value, and two paths resolve that: the emitter,
|
|
928
928
|
* building the bag it hands to the text-body writer, and the measured-fit pass, building the
|
|
@@ -970,7 +970,7 @@ const CELL_INHERITED_KEYS = [...CELL_INHERITED_TEXT_KEYS, ...CELL_INHERITED_EMIT
|
|
|
970
970
|
//#endregion
|
|
971
971
|
//#region src/measure/table-fit.ts
|
|
972
972
|
/**
|
|
973
|
-
* ts
|
|
973
|
+
* pptx-ts: measuring a table's row heights and cell fits
|
|
974
974
|
*
|
|
975
975
|
* A table is measured cell by cell against its resolved grid: each cell inherits the table's text
|
|
976
976
|
* options where it sets none, gets its own margins resolved to EMU insets, and is laid out inside
|
|
@@ -1435,4 +1435,4 @@ function restorer(target, key) {
|
|
|
1435
1435
|
//#endregion
|
|
1436
1436
|
export { getHeuristicFontMetrics as _, CELL_INHERITED_KEYS as a, isFontCollection as b, HEIGHT_SAFETY_FACTOR as c, WIDTH_SAFETY_FACTOR as d, measureHeightPt as f, FontMetricsRegistry as g, solveShrink as h, computeTableLayout as i, MIN_FONT_SCALE_PCT as l, solveResize as m, measureText as n, buildFitParagraphs as o, measureLayout as p, requireBoxHeight as r, FONT_SCALE_STEP_PCT as s, applyMeasuredFit as t, SINGLE_LINE_PITCH as u, makeRegistryResolver as v, listFontFaces as x, parseFontMetrics as y };
|
|
1437
1437
|
|
|
1438
|
-
//# sourceMappingURL=fit-
|
|
1438
|
+
//# sourceMappingURL=fit-CcXbg__l.js.map
|