pptx-angular-viewer 1.1.46 → 1.1.48

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.46",
3
+ "version": "1.1.48",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -4483,6 +4483,11 @@ declare class SmartArtRendererComponent {
4483
4483
  protected readonly editState: _angular_core.WritableSignal<InlineEditState | null>;
4484
4484
  /** The mounted `<textarea>` for the active node edit, if any. */
4485
4485
  private readonly nodeEditor;
4486
+ /**
4487
+ * Guards against a cancel-triggered DOM-removal blur committing the edit.
4488
+ * Set to true before programmatic cancellation; reset to false on each new edit.
4489
+ */
4490
+ private editSettled;
4486
4491
  /** Whether node double-click / Enter enters inline edit (editable + has editor). */
4487
4492
  readonly canEditNodes: _angular_core.Signal<boolean>;
4488
4493
  constructor();
@@ -4522,6 +4527,16 @@ declare class SmartArtRendererComponent {
4522
4527
  asPolygon(node: RenderedNode): RenderedPolygonNode | undefined;
4523
4528
  /** Narrow a `RenderedNode` to a rect, or `undefined`. */
4524
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
+ }>;
4525
4540
  /** Double-click a node enters inline edit mode (when editable). */
4526
4541
  onNodeDblClick(event: Event, node: RenderedNode): void;
4527
4542
  /** Enter / F2 on a focused node enters inline edit mode (when editable). */