pptxtojson 0.0.5 → 0.0.7

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/.eslintrc.cjs CHANGED
@@ -42,7 +42,7 @@ module.exports = {
42
42
  'default-case': 'error',
43
43
  'consistent-this': ['error', '_this'],
44
44
  'max-depth': ['error', 6],
45
- 'max-lines': ['error', 1200],
45
+ 'max-lines': ['error', 2000],
46
46
  'no-multi-str': 'error',
47
47
  'space-infix-ops': 'error',
48
48
  'space-before-blocks': ['error', 'always'],
package/dist/index.d.ts CHANGED
@@ -102,13 +102,28 @@ export interface Group {
102
102
  top: number
103
103
  width: number
104
104
  height: number
105
- elements: BaseElement[],
105
+ elements: BaseElement[]
106
106
  }
107
107
  export type Element = BaseElement | Group
108
108
 
109
+ export interface SlideColorFill {
110
+ type: 'color'
111
+ value: string
112
+ }
113
+
114
+ export interface SlideImageFill {
115
+ type: 'image'
116
+ value: {
117
+ picBase64: string
118
+ opacity: number
119
+ }
120
+ }
121
+
122
+ export type SlideFill = SlideColorFill | SlideImageFill
123
+
109
124
  export interface Slide {
110
- fill: string
111
- elements: Element[],
125
+ fill: SlideFill
126
+ elements: Element[]
112
127
  }
113
128
 
114
129
  export const parse: (file: ArrayBuffer) => {