UNPKG

@cisstech/nge

Version:

NG Essentials is a collection of libraries for Angular developers.

30 lines (29 loc) 1.45 kB
import { ElementRef, OnChanges, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; export declare class NgeMonacoViewerComponent implements OnChanges, OnDestroy { private readonly colorizer; private readonly changeDetectorRef; private editor?; private observer?; private subscriptions; protected loading: boolean; container: ElementRef<HTMLElement>; transclusion: ElementRef<HTMLElement>; /** code to highlight */ code?: string; /** show line numbers? */ lines?: string | number; /** theme to use for the syntax highlighting */ theme?: string; /** target language */ language?: string; /** space separated list of line numbers to highlight */ highlights?: string | number; /** filename to display in the header tab */ filename?: string; ngOnChanges(): void; ngOnDestroy(): void; private colorize; static ɵfac: i0.ɵɵFactoryDeclaration<NgeMonacoViewerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgeMonacoViewerComponent, "nge-monaco-viewer", never, { "code": { "alias": "code"; "required": false; }; "lines": { "alias": "lines"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "language": { "alias": "language"; "required": false; }; "highlights": { "alias": "highlights"; "required": false; }; "filename": { "alias": "filename"; "required": false; }; }, {}, never, ["*"], false, never>; }