UNPKG

ng-cw-v12

Version:

Angular UI component library

28 lines (27 loc) 1.14 kB
import { ElementRef, Renderer2, OnInit } from '@angular/core'; import * as i0 from "@angular/core"; export declare class RibbonDirective implements OnInit { private el; private renderer; ncContent: string; ncContentColor: string; ncSize: number; ncRibbonColor: string; ncPosition: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; private ribbonContainer; private ribbonSize; private uniqueId; constructor(el: ElementRef, renderer: Renderer2); ngOnInit(): void; private createRibbonContainer; private updateRibbonSize; private updateRibbonStyles; private adjustColor; private getRotationDegree; private getTextRotation; private getRibbonShadow; private getShadowPosition; private observeParentSize; static ɵfac: i0.ɵɵFactoryDeclaration<RibbonDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<RibbonDirective, "[ncRibbon]", never, { "ncContent": "ncContent"; "ncContentColor": "ncContentColor"; "ncSize": "ncSize"; "ncRibbonColor": "ncRibbonColor"; "ncPosition": "ncPosition"; }, {}, never>; }