@aixa-transformation/pptx-viewer 2.0.2 → 2.0.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.
@@ -69163,7 +69163,30 @@ var PptxHandlerRuntime63 = class extends PptxHandlerRuntime62 {
69163
69163
  bulletText = `${paragraphBulletInfo.char} `;
69164
69164
  } else if (paragraphBulletInfo.autoNumType) {
69165
69165
  const startAt = paragraphBulletInfo.autoNumStartAt ?? 1;
69166
- bulletText = this.formatAutoNumber(paragraphBulletInfo.autoNumType, startAt + pIdx);
69166
+ const paragraphs = this.ensureArray(
69167
+ ctx.txBody?.["a:p"]
69168
+ );
69169
+ let sequenceOffset = 0;
69170
+ for (let priorIndex = pIdx - 1; priorIndex >= 0; priorIndex--) {
69171
+ const priorBullet = this.resolveParagraphBulletInfo(
69172
+ paragraphs[priorIndex],
69173
+ priorIndex,
69174
+ ctx.txBody,
69175
+ ctx.inheritedTxBody,
69176
+ isBodyPlaceholder,
69177
+ ctx.slidePath,
69178
+ ctx.effectiveLevelStyles
69179
+ );
69180
+ if (priorBullet?.none || priorBullet?.autoNumType !== paragraphBulletInfo.autoNumType) {
69181
+ break;
69182
+ }
69183
+ sequenceOffset++;
69184
+ }
69185
+ bulletText = this.formatAutoNumber(
69186
+ paragraphBulletInfo.autoNumType,
69187
+ startAt + sequenceOffset
69188
+ );
69189
+ paragraphBulletInfo.paragraphIndex = sequenceOffset;
69167
69190
  } else if (paragraphBulletInfo.imageRelId) {
69168
69191
  bulletText = "\u{1F4CE} ";
69169
69192
  } else {
@@ -74111,6 +74134,11 @@ var PptxHandlerRuntime83 = class extends PptxHandlerRuntime82 {
74111
74134
  };
74112
74135
  function extractDrawingShapeFill(spPr, deps) {
74113
74136
  const result = {};
74137
+ if (Object.keys(spPr).some(
74138
+ (key) => !key.startsWith("@_") && (key.split(":").at(-1) ?? key) === "noFill"
74139
+ )) {
74140
+ result.fillNone = true;
74141
+ }
74114
74142
  const solidFill2 = deps.getChild(spPr, "solidFill");
74115
74143
  if (solidFill2) {
74116
74144
  result.fillColor = deps.parseColor(solidFill2) ?? void 0;