ppt2json 0.3.2 → 0.3.3
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/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3128,7 +3128,7 @@ function getSpanStyleInfo(node, pNode, textBodyNode, pFontStyle, slideLayoutSpNo
|
|
|
3128
3128
|
|
|
3129
3129
|
// parser/shape.ts
|
|
3130
3130
|
function shapeArc(cX, cY, rX, rY, stAng, endAng, isClose) {
|
|
3131
|
-
let dData;
|
|
3131
|
+
let dData = "";
|
|
3132
3132
|
let angle = stAng;
|
|
3133
3133
|
if (endAng >= stAng) {
|
|
3134
3134
|
while (angle <= endAng) {
|
|
@@ -9262,7 +9262,9 @@ function parseGradientPosition(value) {
|
|
|
9262
9262
|
}
|
|
9263
9263
|
function mapGradient(value) {
|
|
9264
9264
|
if (!value || typeof value !== "object") return void 0;
|
|
9265
|
-
const colors = Array.isArray(value.colors) ? value.colors.filter(
|
|
9265
|
+
const colors = Array.isArray(value.colors) ? value.colors.filter(
|
|
9266
|
+
(stop) => typeof stop === "object" && stop !== null
|
|
9267
|
+
).map((stop) => ({
|
|
9266
9268
|
pos: parseGradientPosition(stop.pos),
|
|
9267
9269
|
color: mapFillColor(stop.color) ?? "#FFFFFF"
|
|
9268
9270
|
})) : [];
|
|
@@ -9535,7 +9537,7 @@ function mapElement(raw) {
|
|
|
9535
9537
|
fill,
|
|
9536
9538
|
...special ? { special: true } : {},
|
|
9537
9539
|
text: hasText ? {
|
|
9538
|
-
content: normalizedShapeText,
|
|
9540
|
+
content: normalizedShapeText ?? "",
|
|
9539
9541
|
align: normalizeVAlign(raw.vAlign) ?? "middle",
|
|
9540
9542
|
defaultColor: normalizeColor(raw.defaultColor) ?? normalizeColor(raw.color) ?? "#333",
|
|
9541
9543
|
defaultFontName: raw.fontName ?? "",
|