pptx-browser 4.1.1 → 4.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-browser",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Render, edit, and export PowerPoint (PPTX) slides. Canvas rendering, SVG export, PDF export, PPTX writer/template engine, slide show, text extraction, animations. Zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/colors.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * colors.js — OOXML colour resolution: all 6 colour types, all transforms.
3
3
  */
4
4
 
5
- import { attrInt, clamp } from './utils.js';
5
+ import { g1, attrInt, clamp } from './utils.js';
6
6
 
7
7
  // ── Hex / RGB / HLS conversion ──────────────────────────────────────────────
8
8
 
package/src/index.js CHANGED
@@ -36,6 +36,12 @@ import {
36
36
  } from './render.js';
37
37
  import { PptxWriter } from './writer.js';
38
38
  import { exportToPdf, downloadAsPdf, exportSlideToPdf } from './pdf.js';
39
+ import { parseAnimations, parseTransition, PptxPlayer } from './animation.js';
40
+ import { renderSlideToSvg, renderAllSlidesToSvg } from './svg.js';
41
+ import { loadEmbeddedFonts, listEmbeddedFonts } from './fntdata.js';
42
+ import { extractSlide, extractAll, extractText, searchSlides } from './extract.js';
43
+ import { SlideShow } from './slideshow.js';
44
+ import { copySlideToClipboard, downloadSlide, downloadAllSlides, createLazyDeck } from './clipboard.js';
39
45
 
40
46
  export default class PptxRenderer {
41
47
  constructor() {
package/src/render.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * All rendering is done onto a Canvas 2D context.
7
7
  */
8
8
 
9
- import { g1, gtn, attr, attrInt, EMU_PER_PT } from './utils.js';
9
+ import { parseXml, g1, gtn, attr, attrInt, EMU_PER_PT } from './utils.js';
10
10
  import { resolveColorElement, findFirstColorChild, colorToCss, getRunColorInherited } from './colors.js';
11
11
  import { drawPresetGeom } from './shapes.js';
12
12
  import { buildFontInherited } from './fonts.js';