Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ka-table

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ka-table - npm Package Compare versions

Comparing version 8.2.3 to 8.3.0

4

Components/VirtualizedRows/VirtualizedRows.js

@@ -18,7 +18,7 @@ "use strict";

var react_1 = __importDefault(require("react"));
var enums_1 = require("../../enums");
var Rows_1 = __importDefault(require("../Rows/Rows"));
var defaultOptions_1 = __importDefault(require("../../defaultOptions"));
var enums_1 = require("../../enums");
var CellUtils_1 = require("../../Utils/CellUtils");
var Virtualize_1 = require("../../Utils/Virtualize");
var Rows_1 = __importDefault(require("../Rows/Rows"));
var VirtualizedRows = function (props) {

@@ -25,0 +25,0 @@ var _a;

@@ -6,2 +6,4 @@ export declare class VirtualScrolling {

tbodyHeight?: number;
bottomInvisibleCount?: number;
topInvisibleCount?: number;
}
{
"name": "ka-table",
"version": "8.2.3",
"version": "8.3.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table",

@@ -10,4 +10,4 @@ "use strict";

var virtualizedData = [];
var _a = virtualScrolling.scrollTop, scrollTop = _a === void 0 ? 0 : _a;
var _b = virtualScrolling.tbodyHeight, tbodyHeight = _b === void 0 ? 600 : _b;
var _a = virtualScrolling.scrollTop, scrollTop = _a === void 0 ? 0 : _a, _b = virtualScrolling.bottomInvisibleCount, bottomInvisibleCount = _b === void 0 ? 5 : _b, _c = virtualScrolling.topInvisibleCount, topInvisibleCount = _c === void 0 ? 0 : _c;
var _d = virtualScrolling.tbodyHeight, tbodyHeight = _d === void 0 ? 600 : _d;
var beginHeight = 0;

@@ -21,4 +21,5 @@ var endHeight = 0;

: 40;
if (acc >= scrollTop - itemHeight) {
if (tbodyHeight >= -(itemHeight * 5)) {
var topInvisibleHeight = (itemHeight * topInvisibleCount);
if (acc >= scrollTop - itemHeight - topInvisibleHeight) {
if (tbodyHeight + topInvisibleHeight >= -(itemHeight * bottomInvisibleCount)) {
tbodyHeight = tbodyHeight - itemHeight;

@@ -25,0 +26,0 @@ virtualizedData.push(value);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc