Skip to content

Commit 7a78f71

Browse files
add index.d.ts
1 parent f46cac1 commit 7a78f71

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

dist/index.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export interface Shape {
1717
shapType: string
1818
id: string
1919
name: string
20-
idx: number
2120
}
2221

2322
export interface Text {
@@ -36,7 +35,6 @@ export interface Text {
3635
content: string
3736
id: string
3837
name: string
39-
idx: number
4038
}
4139

4240
export interface Image {
@@ -111,4 +109,12 @@ export type Element = BaseElement | Group
111109
export interface Slide {
112110
fill: string
113111
elements: Element[],
112+
}
113+
114+
export const parse: (file: File) => {
115+
slides: Slide[]
116+
size: {
117+
width: number
118+
height: number
119+
}
114120
}

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "GPL-3.0",
1616
"dependencies": {
1717
"jszip": "^3.10.1",
18-
"tinycolor2": "^1.4.2",
18+
"tinycolor2": "1.6.0",
1919
"txml": "^5.1.1"
2020
},
2121
"devDependencies": {

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)