define(["require", "exports", "@syncfusion/ej2-treegrid"], function (require, exports, ej2_treegrid_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var VirtualScroll = (function () {
function VirtualScroll(parent) {
this.parent = parent;
this.bindTreeGridProperties();
}
VirtualScroll.prototype.getModuleName = function () {
return 'virtualScroll';
};
VirtualScroll.prototype.bindTreeGridProperties = function () {
this.parent.treeGrid.enableVirtualization = this.parent.enableVirtualization;
ej2_treegrid_1.TreeGrid.Inject(ej2_treegrid_1.VirtualScroll);
};
VirtualScroll.prototype.getTopPosition = function () {
var virtualTable = this.parent.ganttChartModule.scrollElement.querySelector('.e-virtualtable');
var translates = virtualTable.style.transform.split(',');
var top;
if (translates.length > 1) {
top = translates[1].trim().split(')')[0];
}
else {
var transformString = virtualTable.style.transform;
top = transformString.substring(transformString.lastIndexOf('(') + 1, transformString.lastIndexOf(')'));
}
return parseFloat(top);
};
VirtualScroll.prototype.destroy = function () {
};
return VirtualScroll;
}());
exports.VirtualScroll = VirtualScroll;
});
|