chore: 升级 pptxtojson v1.2.1

This commit is contained in:
zxc 2025-03-20 21:20:49 +08:00
parent eeccb682e4
commit ad2a7cb32d
3 changed files with 11 additions and 11 deletions

14
package-lock.json generated
View File

@ -24,7 +24,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": "^1.2.0", "pptxtojson": "^1.2.1",
"prosemirror-commands": "^1.6.0", "prosemirror-commands": "^1.6.0",
"prosemirror-dropcursor": "^1.8.1", "prosemirror-dropcursor": "^1.8.1",
"prosemirror-gapcursor": "^1.3.2", "prosemirror-gapcursor": "^1.3.2",
@ -4177,9 +4177,9 @@
} }
}, },
"node_modules/pptxtojson": { "node_modules/pptxtojson": {
"version": "1.2.0", "version": "1.2.1",
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.2.0.tgz", "resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.2.1.tgz",
"integrity": "sha512-mDroIVEt6nbsUPI9mrxWzJhU0hNHS614ra/MktMZOMYF5Nh/LwksXRC5J/kr0hZObxa98TqmhUJCktTwcQ2cSg==", "integrity": "sha512-ECYH2jc8hh2kzmrpQLHDEKrnCMlDdqu/diOqeSQ6luwTZVOGtdjk20ooUa1GWgrzXGBlNf2b6SCjnWqyAwVyjw==",
"dependencies": { "dependencies": {
"jszip": "^3.10.1", "jszip": "^3.10.1",
"tinycolor2": "1.6.0", "tinycolor2": "1.6.0",
@ -8393,9 +8393,9 @@
} }
}, },
"pptxtojson": { "pptxtojson": {
"version": "1.2.0", "version": "1.2.1",
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.2.0.tgz", "resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.2.1.tgz",
"integrity": "sha512-mDroIVEt6nbsUPI9mrxWzJhU0hNHS614ra/MktMZOMYF5Nh/LwksXRC5J/kr0hZObxa98TqmhUJCktTwcQ2cSg==", "integrity": "sha512-ECYH2jc8hh2kzmrpQLHDEKrnCMlDdqu/diOqeSQ6luwTZVOGtdjk20ooUa1GWgrzXGBlNf2b6SCjnWqyAwVyjw==",
"requires": { "requires": {
"jszip": "^3.10.1", "jszip": "^3.10.1",
"tinycolor2": "1.6.0", "tinycolor2": "1.6.0",

View File

@ -29,7 +29,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": "^1.2.0", "pptxtojson": "^1.2.1",
"prosemirror-commands": "^1.6.0", "prosemirror-commands": "^1.6.0",
"prosemirror-dropcursor": "^1.8.1", "prosemirror-dropcursor": "^1.8.1",
"prosemirror-gapcursor": "^1.3.2", "prosemirror-gapcursor": "^1.3.2",

View File

@ -182,12 +182,12 @@ export default () => {
background = { background = {
type: 'gradient', type: 'gradient',
gradient: { gradient: {
type: 'linear', type: value.path === 'line' ? 'linear' : 'radial',
colors: value.colors.map(item => ({ colors: value.colors.map(item => ({
...item, ...item,
pos: parseInt(item.pos), pos: parseInt(item.pos),
})), })),
rotate: value.rot, rotate: value.rot + 90,
}, },
} }
} }
@ -309,7 +309,7 @@ export default () => {
} }
const gradient: Gradient | undefined = el.fill?.type === 'gradient' ? { const gradient: Gradient | undefined = el.fill?.type === 'gradient' ? {
type: 'linear', type: el.fill.value.path === 'line' ? 'linear' : 'radial',
colors: el.fill.value.colors.map(item => ({ colors: el.fill.value.colors.map(item => ({
...item, ...item,
pos: parseInt(item.pos), pos: parseInt(item.pos),