pptx-angular-viewer 1.1.35 → 1.1.37
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
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
3167
|
-
*
|
|
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
|
-
|
|
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;
|