@ng-web-apis/intersection-observer
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -6,8 +6,10 @@ import type { OnDestroy } from '@angular/core'; | ||
private readonly callbacks; | ||
constructor(rootMargin: string | null, threshold: string | null); | ||
margin: string; | ||
threshold: string; | ||
constructor(); | ||
observe(target: Element, callback?: IntersectionObserverCallback): void; | ||
unobserve(target: Element): void; | ||
ngOnDestroy(): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<WaIntersectionObserverDirective, [{ attribute: "waIntersectionRootMargin"; }, { attribute: "waIntersectionThreshold"; }]>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<WaIntersectionObserverDirective, "[waIntersectionObserver]", ["IntersectionObserver"], {}, {}, never, never, true, never>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<WaIntersectionObserverDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<WaIntersectionObserverDirective, "[waIntersectionObserver]", ["IntersectionObserver"], { "waIntersectionRootMargin": { "alias": "margin"; "required": false; }; "waIntersectionThreshold": { "alias": "threshold"; "required": false; }; }, {}, never, never, true, never>; | ||
} | ||
@@ -14,0 +16,0 @@ /** |
@@ -0,1 +1,2 @@ | ||
import { WaIntersectionObservee } from './directives/intersection-observee.directive'; | ||
import { WaIntersectionObserverDirective } from './directives/intersection-observer.directive'; | ||
@@ -7,3 +8,3 @@ import { WaIntersectionRoot } from './directives/intersection-root.directive'; | ||
import * as i3 from "./directives/intersection-root.directive"; | ||
export declare const WaIntersectionObserver: (typeof WaIntersectionObserverDirective | typeof WaIntersectionRoot)[]; | ||
export declare const WaIntersectionObserver: readonly [typeof WaIntersectionObserverDirective, typeof WaIntersectionObservee, typeof WaIntersectionRoot]; | ||
/** | ||
@@ -10,0 +11,0 @@ * @deprecated: use {@link WaIntersectionObserver} |
{ | ||
"name": "@ng-web-apis/intersection-observer", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "A library for declarative use of Intersection Observer API with Angular", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"@angular/core": ">=16.0.0", | ||
"@ng-web-apis/common": ">=4.0.0" | ||
"@ng-web-apis/common": ">=4.1.2" | ||
}, | ||
@@ -27,0 +27,0 @@ "module": "fesm2022/ng-web-apis-intersection-observer.mjs", |
@@ -99,3 +99,3 @@ # ![ng-web-apis logo](https://raw.githubusercontent.com/taiga-family/ng-web-apis/main/libs/intersection-observer/logo.svg) Intersection Observer API for Angular | ||
constructor(@Inject(IntersectionObserverService) entries$: IntersectionObserverService) { | ||
entries$.subscribe(entries => { | ||
entries$.subscribe((entries) => { | ||
// Don't forget to unsubscribe | ||
@@ -102,0 +102,0 @@ console.log(entries); |
@@ -1,1 +0,1 @@ | ||
export declare function rootMarginFactory(rootMargin: string | null): string; | ||
export declare function rootMarginFactory(): string; |
@@ -1,1 +0,1 @@ | ||
export declare function thresholdFactory(threshold: string | null): number[] | number; | ||
export declare function thresholdFactory(): number[] | number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95666
604