@alauda-fe/common
Version:
Alauda frontend team common codes.
27 lines (26 loc) • 1.61 kB
TypeScript
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
import { GraphStoreService } from '../graph-store.service';
import { Points, NodeID } from '../types';
import * as i0 from "@angular/core";
export declare class GraphLinkComponent implements OnDestroy {
private readonly store;
private readonly cdr;
from: NodeID;
to: NodeID;
direction: 'h' | 'v';
radius: number;
arrow: boolean;
color: string;
path: (points: Points) => string;
parallelDirection: (a: number, b: number, al: number, bl: number) => [number, number];
verticalDirection: (a: number, b: number, al: number, bl: number) => [number, number];
private readonly onDestroy$$;
points: Points;
get arrowTransform(): string;
constructor(store: GraphStoreService, cdr: ChangeDetectorRef);
ngOnDestroy(): void;
private findPoints;
unScale(points: Points): Points;
static ɵfac: i0.ɵɵFactoryDeclaration<GraphLinkComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GraphLinkComponent, "g[aclGraphLink]", never, { "from": { "alias": "from"; "required": false; }; "to": { "alias": "to"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "color": { "alias": "color"; "required": false; }; "path": { "alias": "path"; "required": false; }; "parallelDirection": { "alias": "parallelDirection"; "required": false; }; "verticalDirection": { "alias": "verticalDirection"; "required": false; }; }, {}, never, never, false, never>;
}