resizable.service.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829
  1. import { NgZone, OnDestroy } from '@angular/core';
  2. import { Subject } from 'rxjs';
  3. import { NzResizeHandleMouseDownEvent } from './resize-handle.component';
  4. import * as i0 from "@angular/core";
  5. export declare class NzResizableService implements OnDestroy {
  6. private ngZone;
  7. private document;
  8. private listeners;
  9. /**
  10. * The `OutsideAngular` prefix means that the subject will emit events outside of the Angular zone,
  11. * so that becomes a bit more descriptive for those who'll maintain the code in the future:
  12. * ```ts
  13. * nzResizableService.handleMouseDownOutsideAngular$.subscribe(event => {
  14. * console.log(Zone.current); // <root>
  15. * console.log(NgZone.isInAngularZone()); // false
  16. * });
  17. * ```
  18. */
  19. handleMouseDownOutsideAngular$: Subject<NzResizeHandleMouseDownEvent>;
  20. documentMouseUpOutsideAngular$: Subject<MouseEvent | TouchEvent | null>;
  21. documentMouseMoveOutsideAngular$: Subject<MouseEvent | TouchEvent>;
  22. mouseEnteredOutsideAngular$: Subject<boolean>;
  23. constructor(ngZone: NgZone);
  24. startResizing(event: MouseEvent | TouchEvent): void;
  25. private clearListeners;
  26. ngOnDestroy(): void;
  27. static ɵfac: i0.ɵɵFactoryDeclaration<NzResizableService, never>;
  28. static ɵprov: i0.ɵɵInjectableDeclaration<NzResizableService>;
  29. }