general.d.ts 1.4 KB

1234567891011121314151617181920212223242526
  1. import { ICellRendererComp } from '../rendering/cellRenderers/iCellRenderer';
  2. import { Promise } from './promise';
  3. /** @deprecated */
  4. export declare function getNameOfClass(theClass: any): string;
  5. export declare function findLineByLeastSquares(values: number[]): any[];
  6. /**
  7. * Converts a CSS object into string
  8. * @param {Object} stylesToUse an object eg: {color: 'black', top: '25px'}
  9. * @return {string} A string like "color: black; top: 25px;" for html
  10. */
  11. export declare function cssStyleObjectToMarkup(stylesToUse: any): string;
  12. /**
  13. * Displays a message to the browser. this is useful in iPad, where you can't easily see the console.
  14. * so the javascript code can use this to give feedback. this is NOT intended to be called in production.
  15. * it is intended the ag-Grid developer calls this to troubleshoot, but then takes out the calls before
  16. * checking in.
  17. * @param {string} msg
  18. */
  19. export declare function message(msg: string): void;
  20. /**
  21. * cell renderers are used in a few places. they bind to dom slightly differently to other cell renderes as they
  22. * can return back strings (instead of html elemnt) in the getGui() method. common code placed here to handle that.
  23. * @param {Promise<ICellRendererComp>} cellRendererPromise
  24. * @param {HTMLElement} eTarget
  25. */
  26. export declare function bindCellRendererToHtmlElement(cellRendererPromise: Promise<ICellRendererComp>, eTarget: HTMLElement): void;