textarea-caret-position.d.ts 590 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 declare const properties: string[];
  6. export interface Coordinates {
  7. top: number;
  8. left: number;
  9. height: number;
  10. }
  11. export declare function getCaretCoordinates(element: HTMLInputElement | HTMLTextAreaElement, position: number, options?: {
  12. debug?: boolean;
  13. }): Coordinates;
  14. export declare function createDebugEle(element: HTMLInputElement | HTMLTextAreaElement, coordinates: Coordinates): void;