Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defaultStrategy() {
switch (type) {
case 'auto':
return new AutoSizeVirtualScrollStrategy(100, 200);
case 'fixed':
return new FixedSizeVirtualScrollStrategy(48, 100, 200);
case 'none':
return new NoVirtualScrollStrategy();
}
}
});