@leanix/components 0.2.241 → 0.2.244
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/esm2020/lib/core-ui/services/resize-observer.service.mjs +51 -2
- package/fesm2015/leanix-components.mjs +47 -2
- package/fesm2015/leanix-components.mjs.map +1 -1
- package/fesm2020/leanix-components.mjs +50 -2
- package/fesm2020/leanix-components.mjs.map +1 -1
- package/lib/core-ui/services/resize-observer.service.d.ts +8 -0
- package/package.json +1 -1
@@ -21,6 +21,14 @@ export declare class ResizeObserverService {
|
|
21
21
|
observe(element: ResizeableElement, callback: LxResizeObserverCallback, options?: ResizeObserverOptions): void;
|
22
22
|
unobserve(element: HTMLElement): void;
|
23
23
|
private resizeObserverCallback;
|
24
|
+
/**
|
25
|
+
* All browsers we officially support implement the ResizeObserver API.
|
26
|
+
* Still as a curtesy do customers who for some reason have older browsers
|
27
|
+
* we call the callback once with the initial dimensions of the element
|
28
|
+
* and then do not react on resize events afterwards.
|
29
|
+
* This should still make them happier than a "browser not supported" warning.
|
30
|
+
*/
|
31
|
+
private getMockOneTimeResizeEventForUnsupportedBrowsers;
|
24
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
|
25
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
|
26
34
|
}
|