ngx-diagrams
Version:
> Light Weight, Modular, Typed Diagram Engine for Angular
21 lines (20 loc) • 1.02 kB
TypeScript
import { AfterViewInit, ChangeDetectorRef, OnInit, ViewContainerRef } from '@angular/core';
import { Observable } from 'rxjs';
import { Coords } from '../../../interfaces';
import { PointModel } from '../../../models/point.model';
import { PathFinding } from '../../../plugins/smart-routing.plugin';
import { DefaultLinkModel } from '../../models/default-link.model';
export declare class DefaultLinkComponent extends DefaultLinkModel implements AfterViewInit, OnInit {
private cdRef;
labelLayer: ViewContainerRef;
path$: import("../../../state/state").ValueState<string>;
points$: import("../../../state/state").ValueState<PointModel[]>;
pathFinding: PathFinding;
constructor(cdRef: ChangeDetectorRef);
trackByPoints(i: number, point: PointModel): string;
ngOnInit(): void;
ngAfterViewInit(): void;
calcLabelIncline(firstPoint: Coords, secondPoint: Coords): number;
calcCenterOfPath(firstPoint: Coords, secondPoint: Coords): Coords;
selectPath(): Observable<string>;
}