@fiddle-digital/string-tune 1.1.42 → 1.1.43
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +36 -32
- package/dist/index.d.ts +36 -32
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1933,6 +1933,10 @@ declare class StringPositionTracker extends StringModule {
|
|
|
1933
1933
|
private lastVal;
|
|
1934
1934
|
private lastValPct;
|
|
1935
1935
|
private lastDir;
|
|
1936
|
+
/** Previous scroll position for direction detection */
|
|
1937
|
+
private previousCurrent;
|
|
1938
|
+
/** Timeout for resetting direction to idle state */
|
|
1939
|
+
private idleTimeout;
|
|
1936
1940
|
constructor(context: StringContext);
|
|
1937
1941
|
/**
|
|
1938
1942
|
* Called on start — creates debug element and scans for tracked elements.
|
|
@@ -1942,6 +1946,10 @@ declare class StringPositionTracker extends StringModule {
|
|
|
1942
1946
|
* Called on scroll — updates all tracked elements with position data.
|
|
1943
1947
|
*/
|
|
1944
1948
|
onScroll(data: StringData): void;
|
|
1949
|
+
/**
|
|
1950
|
+
* Updates direction on all tracked elements.
|
|
1951
|
+
*/
|
|
1952
|
+
private setDirection;
|
|
1945
1953
|
/**
|
|
1946
1954
|
* Cleans up DOM observer and display element.
|
|
1947
1955
|
*/
|
|
@@ -2022,42 +2030,38 @@ interface ScrollMarkRule {
|
|
|
2022
2030
|
};
|
|
2023
2031
|
}
|
|
2024
2032
|
|
|
2025
|
-
/**
|
|
2026
|
-
* Module that manages sequence states for elements based on slider step events.
|
|
2027
|
-
* Updates element classes (ACTIVE, HIDE, DISABLE) according to the current sequence position.
|
|
2028
|
-
*/
|
|
2029
2033
|
declare class StringSequence extends StringModule {
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
private
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
private
|
|
2038
|
-
|
|
2039
|
-
* @param context StringContext instance for dependency injection.
|
|
2040
|
-
*/
|
|
2034
|
+
private activeStep;
|
|
2035
|
+
private leavingStep;
|
|
2036
|
+
private transitions;
|
|
2037
|
+
private elementIndex;
|
|
2038
|
+
private triggerElements;
|
|
2039
|
+
private globalSettings;
|
|
2040
|
+
private defaultDuration;
|
|
2041
|
+
private initialized;
|
|
2042
|
+
private static readonly ALL_STATES;
|
|
2041
2043
|
constructor(context: StringContext);
|
|
2042
|
-
/**
|
|
2043
|
-
* Subscribes to slider step events and updates element states:
|
|
2044
|
-
* - Sets ACTIVE for the current element.
|
|
2045
|
-
* - Sets HIDE for the previously active element.
|
|
2046
|
-
* - Sets DISABLE for all others.
|
|
2047
|
-
*/
|
|
2048
2044
|
onInit(): void;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2045
|
+
private scanStandaloneTriggers;
|
|
2046
|
+
private scanGlobalSettings;
|
|
2047
|
+
private parseGlobalSetting;
|
|
2048
|
+
private initializeSliders;
|
|
2049
|
+
canConnect(object: StringObject): boolean;
|
|
2053
2050
|
onObjectConnected(object: StringObject): void;
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
private
|
|
2051
|
+
private parseTriggerKey;
|
|
2052
|
+
private resolveDuration;
|
|
2053
|
+
private resolveEasings;
|
|
2054
|
+
onObjectDisconnected(object: StringObject): void;
|
|
2055
|
+
private parseSequenceKey;
|
|
2056
|
+
private onTriggerClick;
|
|
2057
|
+
private onSequenceEvent;
|
|
2058
|
+
private startTransition;
|
|
2059
|
+
private handleScrub;
|
|
2060
|
+
private switchInstant;
|
|
2061
|
+
private applyProgress;
|
|
2062
|
+
private setStepState;
|
|
2063
|
+
private setState;
|
|
2064
|
+
onFrame(data: StringData): void;
|
|
2061
2065
|
}
|
|
2062
2066
|
|
|
2063
2067
|
type FormField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -1933,6 +1933,10 @@ declare class StringPositionTracker extends StringModule {
|
|
|
1933
1933
|
private lastVal;
|
|
1934
1934
|
private lastValPct;
|
|
1935
1935
|
private lastDir;
|
|
1936
|
+
/** Previous scroll position for direction detection */
|
|
1937
|
+
private previousCurrent;
|
|
1938
|
+
/** Timeout for resetting direction to idle state */
|
|
1939
|
+
private idleTimeout;
|
|
1936
1940
|
constructor(context: StringContext);
|
|
1937
1941
|
/**
|
|
1938
1942
|
* Called on start — creates debug element and scans for tracked elements.
|
|
@@ -1942,6 +1946,10 @@ declare class StringPositionTracker extends StringModule {
|
|
|
1942
1946
|
* Called on scroll — updates all tracked elements with position data.
|
|
1943
1947
|
*/
|
|
1944
1948
|
onScroll(data: StringData): void;
|
|
1949
|
+
/**
|
|
1950
|
+
* Updates direction on all tracked elements.
|
|
1951
|
+
*/
|
|
1952
|
+
private setDirection;
|
|
1945
1953
|
/**
|
|
1946
1954
|
* Cleans up DOM observer and display element.
|
|
1947
1955
|
*/
|
|
@@ -2022,42 +2030,38 @@ interface ScrollMarkRule {
|
|
|
2022
2030
|
};
|
|
2023
2031
|
}
|
|
2024
2032
|
|
|
2025
|
-
/**
|
|
2026
|
-
* Module that manages sequence states for elements based on slider step events.
|
|
2027
|
-
* Updates element classes (ACTIVE, HIDE, DISABLE) according to the current sequence position.
|
|
2028
|
-
*/
|
|
2029
2033
|
declare class StringSequence extends StringModule {
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
private
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
private
|
|
2038
|
-
|
|
2039
|
-
* @param context StringContext instance for dependency injection.
|
|
2040
|
-
*/
|
|
2034
|
+
private activeStep;
|
|
2035
|
+
private leavingStep;
|
|
2036
|
+
private transitions;
|
|
2037
|
+
private elementIndex;
|
|
2038
|
+
private triggerElements;
|
|
2039
|
+
private globalSettings;
|
|
2040
|
+
private defaultDuration;
|
|
2041
|
+
private initialized;
|
|
2042
|
+
private static readonly ALL_STATES;
|
|
2041
2043
|
constructor(context: StringContext);
|
|
2042
|
-
/**
|
|
2043
|
-
* Subscribes to slider step events and updates element states:
|
|
2044
|
-
* - Sets ACTIVE for the current element.
|
|
2045
|
-
* - Sets HIDE for the previously active element.
|
|
2046
|
-
* - Sets DISABLE for all others.
|
|
2047
|
-
*/
|
|
2048
2044
|
onInit(): void;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2045
|
+
private scanStandaloneTriggers;
|
|
2046
|
+
private scanGlobalSettings;
|
|
2047
|
+
private parseGlobalSetting;
|
|
2048
|
+
private initializeSliders;
|
|
2049
|
+
canConnect(object: StringObject): boolean;
|
|
2053
2050
|
onObjectConnected(object: StringObject): void;
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
private
|
|
2051
|
+
private parseTriggerKey;
|
|
2052
|
+
private resolveDuration;
|
|
2053
|
+
private resolveEasings;
|
|
2054
|
+
onObjectDisconnected(object: StringObject): void;
|
|
2055
|
+
private parseSequenceKey;
|
|
2056
|
+
private onTriggerClick;
|
|
2057
|
+
private onSequenceEvent;
|
|
2058
|
+
private startTransition;
|
|
2059
|
+
private handleScrub;
|
|
2060
|
+
private switchInstant;
|
|
2061
|
+
private applyProgress;
|
|
2062
|
+
private setStepState;
|
|
2063
|
+
private setState;
|
|
2064
|
+
onFrame(data: StringData): void;
|
|
2061
2065
|
}
|
|
2062
2066
|
|
|
2063
2067
|
type FormField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|