pptx-angular-viewer 1.1.47 → 1.1.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-angular-viewer",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -4527,6 +4527,16 @@ declare class SmartArtRendererComponent {
4527
4527
  asPolygon(node: RenderedNode): RenderedPolygonNode | undefined;
4528
4528
  /** Narrow a `RenderedNode` to a rect, or `undefined`. */
4529
4529
  asRect(node: RenderedNode): RenderedRectNode | undefined;
4530
+ /**
4531
+ * Split node text on `\n` and compute per-line y offsets (in SVG px) that
4532
+ * centre the block around the node centre y (offset 0). Single-line text
4533
+ * produces one entry with offsetY=0, preserving the existing
4534
+ * `dominant-baseline="central"` behaviour exactly.
4535
+ */
4536
+ protected textLines(text: string, fontSize: number): Array<{
4537
+ text: string;
4538
+ offsetY: number;
4539
+ }>;
4530
4540
  /** Double-click a node enters inline edit mode (when editable). */
4531
4541
  onNodeDblClick(event: Event, node: RenderedNode): void;
4532
4542
  /** Enter / F2 on a focused node enters inline edit mode (when editable). */