a zip code crypto-currency system good for red ONLY

virtual-util.d.ts 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import { EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
  2. import { Platform } from '../../platform/platform';
  3. /**
  4. * NO DOM
  5. */
  6. export declare function processRecords(stopAtHeight: number, records: any[], cells: VirtualCell[], headerFn: Function, footerFn: Function, data: VirtualData): void;
  7. /**
  8. * NO DOM
  9. */
  10. export declare function populateNodeData(startCellIndex: number, endCellIndex: number, scrollingDown: boolean, cells: VirtualCell[], records: any[], nodes: VirtualNode[], viewContainer: ViewContainerRef, itmTmp: TemplateRef<VirtualContext>, hdrTmp: TemplateRef<VirtualContext>, ftrTmp: TemplateRef<VirtualContext>): boolean;
  11. /**
  12. * DOM READ
  13. */
  14. export declare function initReadNodes(plt: Platform, nodes: VirtualNode[], cells: VirtualCell[], data: VirtualData): void;
  15. /**
  16. * DOM READ
  17. */
  18. export declare function updateDimensions(plt: Platform, nodes: VirtualNode[], cells: VirtualCell[], data: VirtualData, initialUpdate: boolean): void;
  19. export declare function updateNodeContext(nodes: VirtualNode[], cells: VirtualCell[], data: VirtualData): void;
  20. /**
  21. * DOM WRITE
  22. */
  23. export declare function writeToNodes(plt: Platform, nodes: VirtualNode[], cells: VirtualCell[], totalRecords: number): void;
  24. /**
  25. * NO DOM
  26. */
  27. export declare function adjustRendered(cells: VirtualCell[], data: VirtualData): void;
  28. /**
  29. * NO DOM
  30. */
  31. export declare function getVirtualHeight(totalRecords: number, lastCell: VirtualCell): number;
  32. /**
  33. * NO DOM
  34. */
  35. export declare function estimateHeight(totalRecords: number, lastCell: VirtualCell, existingHeight: number, difference: number): number;
  36. /**
  37. * DOM READ
  38. */
  39. export declare function calcDimensions(data: VirtualData, virtualScrollElement: HTMLElement, approxItemWidth: string, approxItemHeight: string, appoxHeaderWidth: string, approxHeaderHeight: string, approxFooterWidth: string, approxFooterHeight: string, bufferRatio: number): void;
  40. export interface VirtualHtmlElement {
  41. clientTop: number;
  42. clientLeft: number;
  43. offsetTop: number;
  44. offsetLeft: number;
  45. offsetWidth: number;
  46. offsetHeight: number;
  47. style: any;
  48. classList: {
  49. add: {
  50. (name: string): void;
  51. };
  52. remove: {
  53. (name: string): void;
  54. };
  55. };
  56. setAttribute: {
  57. (name: string, value: any): void;
  58. };
  59. parentElement: VirtualHtmlElement;
  60. }
  61. export interface VirtualCell {
  62. record?: number;
  63. tmpl?: number;
  64. data?: any;
  65. row?: number;
  66. left?: number;
  67. width?: number;
  68. top?: number;
  69. height?: number;
  70. reads?: number;
  71. isLast?: boolean;
  72. }
  73. export interface VirtualNode {
  74. cell?: number;
  75. tmpl: number;
  76. view: EmbeddedViewRef<VirtualContext>;
  77. hasChanges?: boolean;
  78. lastTransform?: string;
  79. }
  80. export declare class VirtualContext {
  81. $implicit: any;
  82. index: number;
  83. count: number;
  84. bounds: VirtualBounds;
  85. constructor($implicit: any, index: number, count: number);
  86. readonly first: boolean;
  87. readonly last: boolean;
  88. readonly even: boolean;
  89. readonly odd: boolean;
  90. }
  91. export interface VirtualBounds {
  92. top?: number;
  93. bottom?: number;
  94. left?: number;
  95. right?: number;
  96. width?: number;
  97. height?: number;
  98. }
  99. export interface VirtualData {
  100. scrollTop?: number;
  101. scrollDiff?: number;
  102. viewTop?: number;
  103. viewLeft?: number;
  104. viewWidth?: number;
  105. viewHeight?: number;
  106. renderHeight?: number;
  107. topCell?: number;
  108. bottomCell?: number;
  109. topViewCell?: number;
  110. bottomViewCell?: number;
  111. valid?: boolean;
  112. itmWidth?: number;
  113. itmHeight?: number;
  114. hdrWidth?: number;
  115. hdrHeight?: number;
  116. ftrWidth?: number;
  117. ftrHeight?: number;
  118. }