@sqlrooms/mosaic / MosaicSliceState
Type Alias: MosaicSliceState
MosaicSliceState =
object
Properties
mosaic
mosaic:
SliceFunctions&object
Type Declaration
| Name | Type | Description |
|---|---|---|
connection | { status: "idle" | "loading"; } | { status: "ready"; connector?: Connector; coordinator: Coordinator; } | { status: "error"; error: unknown; } | - |
config | MosaicSliceConfig | - |
clients | Record<string, TrackedClient<unknown>> | Record of registered clients by id |
selections | Record<string, Selection> | Named selections for cross-filtering (e.g., 'brush', 'hover') |
initialize() | () => Promise<void> | - |
getSelection() | (name, type?) => Selection | Get or create a named selection for cross-filtering |
createClient() | <T>(options) => string | Create a mosaic client and register it |
ensureClient() | <T>(options) => void | Ensure a client exists with given options (idempotent - creates or updates as needed) |
destroyClient() | (id) => void | Disconnect and remove a client by id |
destroyAllClients() | () => void | Disconnect all clients (useful for cleanup) |
