@ethlete/core 4.14.0 → 4.15.0
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/CHANGELOG.md +10 -0
- package/esm2022/lib/utils/scrollable.utils.mjs +17 -6
- package/esm2022/lib/utils/signal.utils.mjs +19 -14
- package/fesm2022/ethlete-core.mjs +35 -19
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/lib/utils/scrollable.utils.d.ts +1 -0
- package/lib/utils/signal.utils.d.ts +1 -4
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ export interface CurrentElementVisibility {
|
|
|
38
38
|
element: HTMLElement;
|
|
39
39
|
}
|
|
40
40
|
export declare const isElementVisible: (options: IsElementVisibleOptions) => CurrentElementVisibility | null;
|
|
41
|
+
export declare const getElementScrollCoordinates: (options: ScrollToElementOptions) => ScrollToOptions;
|
|
41
42
|
export interface ScrollToElementOptions {
|
|
42
43
|
/**
|
|
43
44
|
* The element to scroll to.
|
|
@@ -85,10 +85,7 @@ export declare const signalElementMutations: (el: SignalElementBindingType, opti
|
|
|
85
85
|
export declare const signalHostElementMutations: (options?: MutationObserverInit) => Signal<MutationRecord | null>;
|
|
86
86
|
export type SignalElementScrollStateOptions = {
|
|
87
87
|
/** The initial scroll position to scroll to. Once a truthy value get's emitted, all further values will be ignored. */
|
|
88
|
-
initialScrollPosition?: Signal<
|
|
89
|
-
x: number;
|
|
90
|
-
y: number;
|
|
91
|
-
} | null>;
|
|
88
|
+
initialScrollPosition?: Signal<ScrollToOptions | null>;
|
|
92
89
|
};
|
|
93
90
|
export declare const signalElementScrollState: (el: SignalElementBindingType, options?: SignalElementScrollStateOptions) => Signal<{
|
|
94
91
|
canScroll: boolean;
|