pptx-angular-viewer 1.1.64 → 1.1.65

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.64",
3
+ "version": "1.1.65",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -5387,6 +5387,14 @@ declare class SmartArtRendererComponent {
5387
5387
  private readonly nodeEditor;
5388
5388
  /** Container div ref used to project hover rects into local coordinates. */
5389
5389
  private readonly smartartContainer;
5390
+ /**
5391
+ * The mounted style-bar popover, if any. Mousemove events landing inside it
5392
+ * must not clear hover state, or the popover would unmount as soon as the
5393
+ * pointer reaches the swatches it needs to be clicked.
5394
+ */
5395
+ private readonly styleBar;
5396
+ /** Pending "leave" timeout: grace period for the pointer to reach the style bar. */
5397
+ private hideTimeout;
5390
5398
  /**
5391
5399
  * Guards against a cancel-triggered DOM-removal blur committing the edit.
5392
5400
  * Set to true before programmatic cancellation; reset to false on each new edit.
@@ -5458,11 +5466,24 @@ declare class SmartArtRendererComponent {
5458
5466
  private rawNodeText;
5459
5467
  /** Commit edited text through the shared editor state (one history entry). */
5460
5468
  private applyCommit;
5469
+ /** Approximate rendered size of the style bar (6 swatches + padding/border). */
5470
+ private static readonly STYLE_BAR_WIDTH;
5471
+ private static readonly STYLE_BAR_HEIGHT;
5472
+ /** Grace period (ms) before clearing hover state once the pointer leaves the
5473
+ * node, so it can cross the small visual gap to the style bar. */
5474
+ private static readonly HIDE_GRACE_MS;
5461
5475
  protected readonly styleBarStyle: _angular_core.Signal<Record<string, string> | null>;
5462
5476
  protected onMouseMove(event: MouseEvent): void;
5463
5477
  protected onMouseLeave(): void;
5478
+ private cancelPendingHide;
5464
5479
  private findNodeEl;
5465
5480
  protected handleChangeNodeStyle(nodeId: string, fill: string): void;
5481
+ /**
5482
+ * Reflow `drawingShapes` back from the shared layout engine when an edit op
5483
+ * cleared them (every text/style edit does) -- otherwise the renderer falls
5484
+ * back to the generic SVG layout for every node, not just the edited one.
5485
+ */
5486
+ private reflow;
5466
5487
  readonly isEmpty: _angular_core.Signal<boolean>;
5467
5488
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmartArtRendererComponent, never>;
5468
5489
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmartArtRendererComponent, "pptx-smart-art-renderer", never, { "element": { "alias": "element"; "required": true; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;