@myrmidon/gve-snapshot-rendition 2.0.9 → 2.0.11

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.
@@ -48,6 +48,7 @@ export declare class GveSnapshotRendition extends HTMLElement {
48
48
  private _currentVersionIndex;
49
49
  private _autoForwardEnabled;
50
50
  private _autoForwardTimerId;
51
+ private _compressedTimeMode;
51
52
  private _renderScheduled;
52
53
  private _isNavigating;
53
54
  constructor();
@@ -316,6 +317,18 @@ export declare class GveSnapshotRendition extends HTMLElement {
316
317
  * Get current auto-forward enabled state.
317
318
  */
318
319
  getAutoForwardEnabled(): boolean;
320
+ /**
321
+ * Toggle compressed time mode. When enabled, navigating to any version
322
+ * skips hint/text entrance animations, prolog panning animation, and the
323
+ * backward fade-out, so the target version's final state is shown right
324
+ * away instead of playing every intervening operation's animations.
325
+ * @param enabled - Whether to enable compressed time mode
326
+ */
327
+ setCompressedTimeModeEnabled(enabled: boolean): void;
328
+ /**
329
+ * Get current compressed time mode state.
330
+ */
331
+ getCompressedTimeModeEnabled(): boolean;
319
332
  /**
320
333
  * Setup keyboard shortcuts for navigation and zoom.
321
334
  * Shortcuts:
@@ -45,7 +45,15 @@ export declare class GveHintDesigner extends HTMLElement {
45
45
  private _currentTimeline?;
46
46
  private _isPlaying;
47
47
  private _progressUpdateInterval?;
48
+ private _panMoveHandler?;
49
+ private _panUpHandler?;
48
50
  constructor();
51
+ /**
52
+ * Register GSAP plugins when GSAP is available. Retried in
53
+ * connectedCallback because GSAP may be loaded after the component
54
+ * class is constructed.
55
+ */
56
+ private registerGsapPlugins;
49
57
  /**
50
58
  * Called when component is added to the DOM.
51
59
  */
@@ -137,6 +145,10 @@ export declare class GveHintDesigner extends HTMLElement {
137
145
  * Initialize panning with mouse drag.
138
146
  */
139
147
  private initializePanning;
148
+ /**
149
+ * Remove the document-level pan listeners, if any.
150
+ */
151
+ private removeDocumentPanListeners;
140
152
  /**
141
153
  * Initialize zooming with mouse wheel.
142
154
  */
@@ -196,10 +208,15 @@ export declare class GveHintDesigner extends HTMLElement {
196
208
  private refreshSvgDisplay;
197
209
  /**
198
210
  * Resolve variables in SVG code.
211
+ * Delegates to the same resolver used by the renderer (shared semantics:
212
+ * literal names — no regex injection — and "??" fallback chains like
213
+ * {{r_fore-color ?? r_color}}).
199
214
  */
200
215
  private resolveVariables;
201
216
  /**
202
217
  * Extract variable names from SVG code (variables in {{...}} placeholders).
218
+ * Placeholders may contain "??" fallback chains: each name in a chain is
219
+ * reported as a separate variable.
203
220
  */
204
221
  private extractVariablesFromSvg;
205
222
  /**