UNPKG

@lxlib/seed

Version:

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

37 lines (36 loc) 1.04 kB
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; export declare class EllipsisComponent implements AfterViewInit, OnChanges { private el; private ngZone; private dom; private doc; private cdr; private isSupportLineClamp; private orgEl; private shadowOrgEl; private shadowTextEl; private inited; orgHtml: SafeHtml; type: string; cls: {}; text: string; targetCount: number; tooltip: boolean; length: number; lines: number; fullWidthRecognition: boolean; tail: string; get linsWord(): string; constructor(el: ElementRef, ngZone: NgZone, dom: DomSanitizer, doc: Document, cdr: ChangeDetectorRef); private getStrFullLength; private cutStrByFullLength; private bisection; private genType; private gen; private getEl; private executeOnStable; refresh(): void; ngAfterViewInit(): void; ngOnChanges(): void; }