build: pptxtojson update

This commit is contained in:
pipipi-pikachu 2024-02-22 21:49:44 +08:00
parent dddf6a96c3
commit 1ddbd3478d
3 changed files with 10 additions and 10 deletions

14
package-lock.json generated
View File

@ -23,7 +23,7 @@
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"pptxgenjs": "^3.12.0", "pptxgenjs": "^3.12.0",
"pptxtojson": "^0.1.3", "pptxtojson": "^0.1.4",
"prosemirror-commands": "^1.5.2", "prosemirror-commands": "^1.5.2",
"prosemirror-dropcursor": "^1.8.1", "prosemirror-dropcursor": "^1.8.1",
"prosemirror-gapcursor": "^1.3.2", "prosemirror-gapcursor": "^1.3.2",
@ -4011,9 +4011,9 @@
} }
}, },
"node_modules/pptxtojson": { "node_modules/pptxtojson": {
"version": "0.1.3", "version": "0.1.4",
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-0.1.3.tgz", "resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-0.1.4.tgz",
"integrity": "sha512-UKtoa9jiyMyZYHTiRTPjVdnByzGK0e7xcscpMTTBSUFVKvX1dnNGfYxqyY54RxppYm10ZVb4TJhmxBLnu+M0xw==", "integrity": "sha512-cAWEPk5/vvj/vcm+eO+yfrwr2bRL6qpRyuIM4HPXKJdfTAwgR2lYeqO37A55eRy4j/SbtoIW6l1+J0yCR98F+g==",
"dependencies": { "dependencies": {
"jszip": "^3.10.1", "jszip": "^3.10.1",
"tinycolor2": "1.6.0", "tinycolor2": "1.6.0",
@ -8098,9 +8098,9 @@
} }
}, },
"pptxtojson": { "pptxtojson": {
"version": "0.1.3", "version": "0.1.4",
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-0.1.3.tgz", "resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-0.1.4.tgz",
"integrity": "sha512-UKtoa9jiyMyZYHTiRTPjVdnByzGK0e7xcscpMTTBSUFVKvX1dnNGfYxqyY54RxppYm10ZVb4TJhmxBLnu+M0xw==", "integrity": "sha512-cAWEPk5/vvj/vcm+eO+yfrwr2bRL6qpRyuIM4HPXKJdfTAwgR2lYeqO37A55eRy4j/SbtoIW6l1+J0yCR98F+g==",
"requires": { "requires": {
"jszip": "^3.10.1", "jszip": "^3.10.1",
"tinycolor2": "1.6.0", "tinycolor2": "1.6.0",

View File

@ -28,7 +28,7 @@
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"pptxgenjs": "^3.12.0", "pptxgenjs": "^3.12.0",
"pptxtojson": "^0.1.3", "pptxtojson": "^0.1.4",
"prosemirror-commands": "^1.5.2", "prosemirror-commands": "^1.5.2",
"prosemirror-dropcursor": "^1.8.1", "prosemirror-dropcursor": "^1.8.1",
"prosemirror-gapcursor": "^1.3.2", "prosemirror-gapcursor": "^1.3.2",

View File

@ -138,8 +138,8 @@ export default () => {
const parseElements = (elements: Element[]) => { const parseElements = (elements: Element[]) => {
for (const el of elements) { for (const el of elements) {
const originWidth = el.width const originWidth = el.width || 1
const originHeight = el.height const originHeight = el.height || 1
const originLeft = el.left const originLeft = el.left
const originTop = el.top const originTop = el.top