text-measure.d.ts 559 B

1234567891011121314
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. export interface MeasureResult {
  6. finished: boolean;
  7. node: Node | null;
  8. }
  9. export declare function pxToNumber(value: string | null): number;
  10. export declare function measure(originEle: HTMLElement, rows: number, contentNodes: Node[], fixedContent: HTMLElement[], ellipsisStr: string, suffixStr?: string): {
  11. contentNodes: Node[];
  12. text: string;
  13. ellipsis: boolean;
  14. };