pptxtojson 0.0.2 → 0.0.4

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 CHANGED
@@ -17,7 +17,7 @@
17
17
  ```
18
18
 
19
19
  ```js
20
- import { parse } from 'pptxtojson/dist/index.esm'
20
+ import { parse } from 'pptxtojson'
21
21
 
22
22
  document.querySelector('input').addEventListener('change', evt => {
23
23
  const file = evt.target.files[0]
package/dist/index.d.ts CHANGED
@@ -17,7 +17,6 @@ export interface Shape {
17
17
  shapType: string
18
18
  id: string
19
19
  name: string
20
- idx: number
21
20
  }
22
21
 
23
22
  export interface Text {
@@ -36,7 +35,6 @@ export interface Text {
36
35
  content: string
37
36
  id: string
38
37
  name: string
39
- idx: number
40
38
  }
41
39
 
42
40
  export interface Image {
@@ -111,4 +109,12 @@ export type Element = BaseElement | Group
111
109
  export interface Slide {
112
110
  fill: string
113
111
  elements: Element[],
112
+ }
113
+
114
+ export const parse: (file: ArrayBuffer) => {
115
+ slides: Slide[]
116
+ size: {
117
+ width: number
118
+ height: number
119
+ }
114
120
  }