@fiddle-digital/string-tune 1.2.1-alpha.7 → 1.2.1-alpha.9

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/dist/index.d.mts CHANGED
@@ -1838,11 +1838,16 @@ declare class StringMarquee extends StringModule {
1838
1838
  onObjectConnected(object: StringObject): void;
1839
1839
  onObjectDisconnected(object: StringObject): void;
1840
1840
  onResizeWidth(): void;
1841
+ private refreshAll;
1841
1842
  onFrame(data: StringData): void;
1842
1843
  private createState;
1843
1844
  private mountStructure;
1844
1845
  private syncConfig;
1845
1846
  private refresh;
1847
+ private applyStaticLayout;
1848
+ private measure;
1849
+ private applyMeasurement;
1850
+ private scheduleRefresh;
1846
1851
  private syncCopies;
1847
1852
  private syncPartClass;
1848
1853
  private updatePartProgress;
@@ -2576,6 +2581,8 @@ declare class StringScrollContainer extends StringModule {
2576
2581
  * WeakMap storing the state for each managed HTMLElement.
2577
2582
  */
2578
2583
  private states;
2584
+ private wheelHandlers;
2585
+ private scrollHandlers;
2579
2586
  /**
2580
2587
  * Initializes the StringScrollContainer module.
2581
2588
  * Registers the `lerp` attribute configuration.
@@ -2603,12 +2610,14 @@ declare class StringScrollContainer extends StringModule {
2603
2610
  *
2604
2611
  * @param data Global frame data including time deltas.
2605
2612
  */
2613
+ private get effectiveMode();
2606
2614
  onFrame(data: StringData): void;
2607
2615
  /**
2608
2616
  * Called when the window or layout is resized.
2609
2617
  * Recalculates scroll boundaries for all managed containers.
2610
2618
  */
2611
2619
  onResize(): void;
2620
+ onScrollConfigChange(): void;
2612
2621
  /**
2613
2622
  * Recalculates the maximum scrollable distance for a container.
2614
2623
  *
@@ -3856,6 +3865,15 @@ declare class StringTune {
3856
3865
  * Can be 'smooth', 'default', or 'disable'.
3857
3866
  */
3858
3867
  set scrollMobileMode(mode: ScrollMode);
3868
+ /**
3869
+ * Locks page scroll without changing desktop/mobile mode preferences.
3870
+ * Use when opening modals — scroll containers remain functional.
3871
+ */
3872
+ lockPageScroll(): void;
3873
+ /**
3874
+ * Unlocks page scroll, restoring the mode based on current device (desktop/mobile).
3875
+ */
3876
+ unlockPageScroll(): void;
3859
3877
  set FPSTrackerVisible(visible: boolean);
3860
3878
  set PositionTrackerVisible(visible: boolean);
3861
3879
  set domBatcherEnabled(enabled: boolean);
package/dist/index.d.ts CHANGED
@@ -1838,11 +1838,16 @@ declare class StringMarquee extends StringModule {
1838
1838
  onObjectConnected(object: StringObject): void;
1839
1839
  onObjectDisconnected(object: StringObject): void;
1840
1840
  onResizeWidth(): void;
1841
+ private refreshAll;
1841
1842
  onFrame(data: StringData): void;
1842
1843
  private createState;
1843
1844
  private mountStructure;
1844
1845
  private syncConfig;
1845
1846
  private refresh;
1847
+ private applyStaticLayout;
1848
+ private measure;
1849
+ private applyMeasurement;
1850
+ private scheduleRefresh;
1846
1851
  private syncCopies;
1847
1852
  private syncPartClass;
1848
1853
  private updatePartProgress;
@@ -2576,6 +2581,8 @@ declare class StringScrollContainer extends StringModule {
2576
2581
  * WeakMap storing the state for each managed HTMLElement.
2577
2582
  */
2578
2583
  private states;
2584
+ private wheelHandlers;
2585
+ private scrollHandlers;
2579
2586
  /**
2580
2587
  * Initializes the StringScrollContainer module.
2581
2588
  * Registers the `lerp` attribute configuration.
@@ -2603,12 +2610,14 @@ declare class StringScrollContainer extends StringModule {
2603
2610
  *
2604
2611
  * @param data Global frame data including time deltas.
2605
2612
  */
2613
+ private get effectiveMode();
2606
2614
  onFrame(data: StringData): void;
2607
2615
  /**
2608
2616
  * Called when the window or layout is resized.
2609
2617
  * Recalculates scroll boundaries for all managed containers.
2610
2618
  */
2611
2619
  onResize(): void;
2620
+ onScrollConfigChange(): void;
2612
2621
  /**
2613
2622
  * Recalculates the maximum scrollable distance for a container.
2614
2623
  *
@@ -3856,6 +3865,15 @@ declare class StringTune {
3856
3865
  * Can be 'smooth', 'default', or 'disable'.
3857
3866
  */
3858
3867
  set scrollMobileMode(mode: ScrollMode);
3868
+ /**
3869
+ * Locks page scroll without changing desktop/mobile mode preferences.
3870
+ * Use when opening modals — scroll containers remain functional.
3871
+ */
3872
+ lockPageScroll(): void;
3873
+ /**
3874
+ * Unlocks page scroll, restoring the mode based on current device (desktop/mobile).
3875
+ */
3876
+ unlockPageScroll(): void;
3859
3877
  set FPSTrackerVisible(visible: boolean);
3860
3878
  set PositionTrackerVisible(visible: boolean);
3861
3879
  set domBatcherEnabled(enabled: boolean);