pptx-angular-viewer 1.1.34 → 1.1.36

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.34",
3
+ "version": "1.1.36",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -44,7 +44,7 @@
44
44
  "html2canvas-pro": "^2.0.4",
45
45
  "jspdf": "^4.2.1",
46
46
  "jszip": "^3.10.1",
47
- "pptx-viewer-core": "^1.1.30",
47
+ "pptx-viewer-core": "^1.1.31",
48
48
  "tslib": "^2.8.1"
49
49
  },
50
50
  "peerDependencies": {
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal, OnInit, OnDestroy, OnChanges, SimpleChanges, InjectionToken, Provider } from '@angular/core';
3
3
  import * as pptx_viewer_core from 'pptx-viewer-core';
4
- import { ShapeStyle, PptxTextWarpPreset, XmlObject, PptxElementAnimation, PptxSlide, PptxElement, TextStyle, PptxTransitionType, PptxEmbeddedFont, AccessibilityIssueSeverity, AccessibilityIssue, AccessibilityIssueType, AccessibilityCheckOptions, PptxComment, PptxTheme, PptxSlideMaster, PptxCoreProperties, ParsedSignature, PptxTableCell, PptxThemePreset, InkPptxElement, TextSegment, Model3DPptxElement, ZoomPptxElement, PptxSlideTransition, TablePptxElement, ChartPptxElement, PptxAnimationPreset, PptxAnimationTrigger, PptxAnimationTimingCurve, PptxAnimationRepeatMode, PptxAnimationDirection, PptxAnimationSequence, SignatureStatus } from 'pptx-viewer-core';
4
+ import { ShapeStyle, PptxTextWarpPreset, XmlObject, PptxElementAnimation, PptxSlide, PptxElement, TextStyle, PptxTransitionType, PptxEmbeddedFont, AccessibilityIssueSeverity, AccessibilityIssue, AccessibilityIssueType, AccessibilityCheckOptions, PptxComment, PptxTheme, PptxSlideMaster, PptxCoreProperties, ParsedSignature, PptxTableCell, PptxThemePreset, InkPptxElement, TextSegment, Model3DPptxElement, ZoomPptxElement, PptxSlideTransition, TablePptxElement, ChartPptxElement, SmartArtPptxElement, PptxSmartArtData, PptxAnimationPreset, PptxAnimationTrigger, PptxAnimationTimingCurve, PptxAnimationRepeatMode, PptxAnimationDirection, PptxAnimationSequence, SignatureStatus } from 'pptx-viewer-core';
5
5
  import * as pptx_angular_viewer from 'pptx-angular-viewer';
6
6
  import { Options } from 'html2canvas-pro';
7
7
  import { SafeHtml } from '@angular/platform-browser';
@@ -3157,24 +3157,23 @@ declare class PowerPointViewerComponent {
3157
3157
  /** Start broadcasting (presenter as session owner) from the broadcast config. */
3158
3158
  protected onBroadcastStart(config: BroadcastConfig): void;
3159
3159
  protected onBroadcastStop(): void;
3160
- /** Horizontal-swipe tracking start coordinates (touch begins on the canvas). */
3161
- private swipeStartX;
3162
- private swipeStartY;
3163
3160
  /**
3164
- * Begin tracking a horizontal swipe for slide navigation.
3161
+ * Wire the framework-agnostic touch-gesture recogniser to the `<main>` canvas
3162
+ * host once it is in the DOM. Mirrors React's `useTouchGestures` wiring:
3163
+ * - pinch-to-zoom always updates the zoom signal (clamped to the viewer
3164
+ * range), with `preventDefault()` on the pinch path to suppress the
3165
+ * browser's native pinch-zoom;
3166
+ * - horizontal swipe navigates slides, but only when editing is off
3167
+ * (`!canEdit()`): in edit mode single-finger gestures belong to element
3168
+ * manipulation (move/resize/rotate), so we never hijack them. The large
3169
+ * ‹ › buttons remain available for explicit navigation in all modes;
3170
+ * - long-press in edit mode opens the editor context menu at the press
3171
+ * point for the current selection (mirrors React's onLongPress path).
3165
3172
  *
3166
- * To disambiguate a navigation swipe from an element drag, swipe-nav is only
3167
- * armed when editing is off (`!canEdit()`). When `canEdit()` is true,
3168
- * pointer/touch gestures belong to element manipulation (move/resize/rotate),
3169
- * so we never hijack them. The large ‹ › buttons remain available in all
3170
- * modes for explicit navigation.
3173
+ * The recogniser's swipe/long-press callbacks check the live `canEdit()` /
3174
+ * selection state, so a single attach handles every mode without re-binding.
3171
3175
  */
3172
- onMainTouchStart(event: TouchEvent): void;
3173
- /**
3174
- * Complete a swipe: a predominantly horizontal drag of at least the threshold
3175
- * navigates to the previous (swipe right) or next (swipe left) slide.
3176
- */
3177
- onMainTouchEnd(event: TouchEvent): void;
3176
+ private setupTouchGestures;
3178
3177
  zoomIn(): void;
3179
3178
  zoomOut(): void;
3180
3179
  zoomReset(): void;
@@ -4750,6 +4749,17 @@ declare class InspectorPanelComponent {
4750
4749
  protected readonly tableEl: _angular_core.Signal<TablePptxElement | undefined>;
4751
4750
  /** The selected element narrowed to a chart, or undefined. */
4752
4751
  protected readonly chartEl: _angular_core.Signal<ChartPptxElement | undefined>;
4752
+ /** The selected element narrowed to SmartArt, or undefined. */
4753
+ protected readonly smartArtEl: _angular_core.Signal<SmartArtPptxElement | undefined>;
4754
+ /** The selected SmartArt element's data model, or undefined. */
4755
+ protected readonly smartArtData: _angular_core.Signal<PptxSmartArtData | undefined>;
4756
+ /**
4757
+ * Commit an updated SmartArt data model as one history entry. Patching only
4758
+ * `smartArtData` routes through the same `EditorStateService.updateElement`
4759
+ * path as every other inspector section, so undo/redo and persistence work
4760
+ * identically.
4761
+ */
4762
+ protected onSmartArtDataChange(smartArtData: PptxSmartArtData): void;
4753
4763
  /** Commit a partial-element patch from an advanced sub-panel as one history entry. */
4754
4764
  protected onPatch(patch: Partial<PptxElement>): void;
4755
4765
  /** Commit a fully-replaced element (table/chart data editors) as one history entry. */