UNPKG

@obliczeniowo/elementary

Version:
49 lines (45 loc) 2.15 kB
import * as i0 from '@angular/core'; import { ElementRef, Renderer2, EventEmitter } from '@angular/core'; import { PageItem, PageCategory } from '@obliczeniowo/elementary/pages-circle-tree'; import { Point2D } from '@obliczeniowo/elementary/classes'; import { DrawingSvgInterface } from '@obliczeniowo/elementary/drawing'; import * as i2 from '@angular/common'; declare class PagesLinearTreeComponent { protected elementRef: ElementRef<HTMLElement>; protected renderer: Renderer2; /** items to draw */ items: i0.InputSignalWithTransform<PageItem[], PageItem[]>; onClicked: EventEmitter<PageItem>; /** drawing interface */ protected drawing: DrawingSvgInterface; /** found under mouse item */ protected item: PageItem | undefined; /** prepared points to redraw diagram */ protected points: Point2D[]; /** width */ protected graphSize: number; /** its width of diagram */ protected dGraphSize: number; /** size of svg view box */ protected size: number; /** categories */ protected categories: PageCategory[]; protected k: number; get height(): number; constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2); ngAfterViewInit(): void; move(event: any): void; clicked(): void; protected calcPoints(): void; protected calcCategories(): void; protected draw(): void; protected getMax(): number; static ɵfac: i0.ɵɵFactoryDeclaration<PagesLinearTreeComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PagesLinearTreeComponent, "obl-pages-linear-tree", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "onClicked": "onClicked"; }, never, never, false, never>; } declare class PagesLinearTreeModule { static ɵfac: i0.ɵɵFactoryDeclaration<PagesLinearTreeModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<PagesLinearTreeModule, [typeof PagesLinearTreeComponent], [typeof i2.CommonModule], [typeof PagesLinearTreeComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<PagesLinearTreeModule>; } export { PagesLinearTreeComponent, PagesLinearTreeModule };