ListScrollViewAdapter.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. class ListScrollViewAdapter {
  2. // private scrollview:cc.ScrollView;
  3. // private mask:cc.Node;
  4. // private content:cc.Node;
  5. // private item_templates:Map<string, cc.Node>;
  6. // private node_pools:Map<string, cc.Node[]>;
  7. //
  8. // private dir:number;
  9. // private width:number;
  10. // private height:number;
  11. // private gap_x:number;
  12. // private gap_y:number;
  13. // private cb_host:any;
  14. // private item_setter:(item:cc.Node, key:string, data:any, index:number)=>[number, number];
  15. // private recycle_cb:(item:cc.Node, key:string)=>void;
  16. // private scroll_to_end_cb:()=>void;
  17. // private auto_scrolling:boolean;
  18. // private items:ScrollItem[];
  19. // private start_index:number;
  20. // private stop_index:number;
  21. scrollview = cc.ScrollView;
  22. mask = cc.Node;
  23. content = cc.Node;
  24. item_templates = {};
  25. node_pools = {};
  26. dir = 0;
  27. width = 0;
  28. height = 0;
  29. gap_x = 0;
  30. gap_y = 0;
  31. cb_host = 0;
  32. item_setter = function(item, key, data, index) {};
  33. recycle_cb = function (item, key) {};
  34. scroll_to_end_cb = function() {};
  35. auto_scrolling = false;
  36. items = [];
  37. start_index = 0;
  38. stop_index = 0;
  39. constructor(params) {
  40. }
  41. }
  42. module.exports = ListScrollViewAdapter;