Skip to content

@sqlrooms/mosaic / MosaicSliceState

Type Alias: MosaicSliceState

MosaicSliceState = object

Properties

mosaic

mosaic: SliceFunctions & object

Type Declaration

NameTypeDescription
connectionMosaicConnection-
configMosaicSliceConfig-
clientsRecord<string, TrackedClient>Record of registered clients by id
selectionsRecord<string, Selection>Named selections for cross-filtering (e.g., 'brush', 'hover')
initialize()() => Promise<void>-
getSelection()(name, type?) => SelectionGet or create a named selection for cross-filtering
createClient()(options) => stringCreate a mosaic client and register it
ensureClient()(options) => voidEnsure a client exists with given options (idempotent - creates or updates as needed)
destroyClient()(id) => voidDisconnect and remove a client by id
destroyAllClients()() => voidDisconnect all clients (useful for cleanup)