@visactor/vtable
Version:
canvas table width high performance
28 lines (22 loc) • 935 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.RenderServiceForVTable = void 0;
const vrender_1 = require("./../../vrender");
exports.default = new vrender_1.ContainerModule(((bind, unbind, isBound, rebind) => {
bind(RenderServiceForVTable).toSelf(), rebind(vrender_1.RenderService).toService(RenderServiceForVTable);
}));
class RenderServiceForVTable extends vrender_1.DefaultRenderService {
constructor() {
super(...arguments), this.lastPrepareTime = 0;
}
prepare(updateBounds) {
this.renderTreeRoots.forEach((g => {
var _a;
const table = g.stage.table;
table && table.stateManager.fastScrolling ? null === (_a = g.stage.dirtyBounds) || void 0 === _a || _a.empty() : this._prepare(g, updateBounds);
}));
}
}
exports.RenderServiceForVTable = RenderServiceForVTable;
//# sourceMappingURL=render-service.js.map