solid-panes
Version:
Solid-compatible Panes: applets and views for the mashlib and databrowser
18 lines (16 loc) • 338 B
text/typescript
import { DataBrowserContext, LiveStore, PaneRegistry } from 'pane-registry'
import { getOutliner } from '../index'
export function createContext (
dom: HTMLDocument,
paneRegistry: PaneRegistry,
store: LiveStore
): DataBrowserContext {
return {
dom,
getOutliner,
session: {
paneRegistry,
store
}
}
}