Initial viewport conversion

This commit is contained in:
Adria Navarro 2024-12-30 11:36:37 +01:00
parent d728b9f25a
commit 0b2b9ae1ac
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,15 @@
import { derived } from "svelte/store"
import { derived, Readable } from "svelte/store"
import { MinColumnWidth } from "../lib/constants"
import { Store as StoreContext } from "."
export const deriveStores = context => {
interface ViewportDerivedStore {
scrolledRowCount: Readable<any>
visualRowCapacity: Readable<any>
renderedRows: Readable<any>
columnRenderMap: Readable<any>
}
export const deriveStores = (context: StoreContext): ViewportDerivedStore => {
const {
rowHeight,
scrollableColumns,