Initial viewport conversion
This commit is contained in:
parent
d728b9f25a
commit
0b2b9ae1ac
|
@ -1,7 +1,15 @@
|
||||||
import { derived } from "svelte/store"
|
import { derived, Readable } from "svelte/store"
|
||||||
import { MinColumnWidth } from "../lib/constants"
|
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 {
|
const {
|
||||||
rowHeight,
|
rowHeight,
|
||||||
scrollableColumns,
|
scrollableColumns,
|
Loading…
Reference in New Issue