graph-node.component.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { AnimationBuilder } from '@angular/animations';
  6. import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef } from '@angular/core';
  7. import { Observable } from 'rxjs';
  8. import { NzGraph } from './graph';
  9. import { NzGraphGroupNode, NzGraphNode } from './interface';
  10. import * as i0 from "@angular/core";
  11. interface Info {
  12. x: number;
  13. y: number;
  14. width: number;
  15. height: number;
  16. }
  17. export declare class NzGraphNodeComponent implements OnInit, OnDestroy {
  18. private ngZone;
  19. private el;
  20. private builder;
  21. private renderer2;
  22. private graphComponent;
  23. node: NzGraphNode | NzGraphGroupNode;
  24. noAnimation?: boolean;
  25. customTemplate?: TemplateRef<{
  26. $implicit: NzGraphNode | NzGraphGroupNode;
  27. }>;
  28. animationInfo: Info | null;
  29. initialState: boolean;
  30. private destroy$;
  31. private animationPlayer;
  32. constructor(ngZone: NgZone, el: ElementRef<HTMLElement>, builder: AnimationBuilder, renderer2: Renderer2, graphComponent: NzGraph);
  33. ngOnInit(): void;
  34. ngOnDestroy(): void;
  35. makeAnimation(): Observable<void>;
  36. makeNoAnimation(): void;
  37. getAnimationInfo(): Info;
  38. nodeTransform(): {
  39. x: number;
  40. y: number;
  41. };
  42. computeCXPositionOfNodeShape(): number;
  43. static ɵfac: i0.ɵɵFactoryDeclaration<NzGraphNodeComponent, never>;
  44. static ɵcmp: i0.ɵɵComponentDeclaration<NzGraphNodeComponent, "[nz-graph-node]", never, { "node": { "alias": "node"; "required": false; }; "noAnimation": { "alias": "noAnimation"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; }, {}, never, never, true, never>;
  45. static ngAcceptInputType_noAnimation: unknown;
  46. }
  47. export {};