UNPKG

react-infinite-table

Version:
67 lines (58 loc) 2.08 kB
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; // An infinite computer must be able to do the following things: // 1. getTotalScrollableHeight() // 2. getDisplayIndexStart() // 3. getDisplayIndexEnd() var InfiniteComputer = /*#__PURE__*/function () { function InfiniteComputer() { _classCallCheck(this, InfiniteComputer); } _createClass(InfiniteComputer, [{ key: "getTotalScrollableHeight", value: function getTotalScrollableHeight() { if (process.env.NODE_ENV === 'development') { throw new Error('getTotalScrollableHeight not implemented.'); } } /* eslint-disable no-unused-vars */ }, { key: "getDisplayIndexStart", value: function getDisplayIndexStart(windowTop) { /* eslint-enable no-unused-vars */ if (process.env.NODE_ENV === 'development') { throw new Error('getDisplayIndexStart not implemented.'); } } /* eslint-disable no-unused-vars */ }, { key: "getDisplayIndexEnd", value: function getDisplayIndexEnd(windowBottom) { /* eslint-enable no-unused-vars */ if (process.env.NODE_ENV === 'development') { throw new Error('getDisplayIndexEnd not implemented.'); } } // These are helper methods, and can be calculated from // the above details. /* eslint-disable no-unused-vars */ }, { key: "getTopSpacerHeight", value: function getTopSpacerHeight(displayIndexStart) { /* eslint-enable no-unused-vars */ if (process.env.NODE_ENV === 'development') { throw new Error('getTopSpacerHeight not implemented.'); } } /* eslint-disable no-unused-vars */ }, { key: "getBottomSpacerHeight", value: function getBottomSpacerHeight(displayIndexEnd) { /* eslint-enable no-unused-vars */ if (process.env.NODE_ENV === 'development') { throw new Error('getBottomSpacerHeight not implemented.'); } } }]); return InfiniteComputer; }(); export default InfiniteComputer;