UNPKG

ngx-diagrams

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.

19 lines (18 loc) 877 B
import { AfterViewInit, ChangeDetectorRef, ViewContainerRef } from '@angular/core'; import { DefaultLinkModel } from '../../models/default-link.model'; import { BehaviorSubject, Observable } from 'rxjs'; import { PointModel } from '../../../models/point.model'; import { LabelModel } from '../../../models/label.model'; import { Coords } from '../../../interfaces'; export declare class DefaultLinkComponent extends DefaultLinkModel implements AfterViewInit { private cdRef; labelLayer: ViewContainerRef; _path$: BehaviorSubject<string>; path$: Observable<string>; points$: BehaviorSubject<PointModel[]>; label$: Observable<LabelModel>; constructor(cdRef: ChangeDetectorRef); ngAfterViewInit(): void; calcLabelIncline(firstPoint: Coords, secondPoint: Coords): number; calcCenterOfPath(firstPoint: Coords, secondPoint: Coords): Coords; }