Interface: GeovisWorkspaceSidebarVariationsFilter
Defined in: context/GeovisWorkspaceContext.ts:444
A variations control: one menu of variations driving selection[menuId],
rendered as the same rows the "Variações" tab uses.
What this adds over GeovisWorkspaceSidebarVariationsBody is how many
menus one tab can hold. A variations body is a single menu filling its tab —
its groups share one menuId and flatten into one list — so two menus mean
two tabs, and crossing between them costs a tab switch. As a filter control
a menu becomes a block instead, and filters bodies stack blocks: several
menus then share one tab, each under its own heading, exactly as
the timeline and chips already do.
Neither replaces the other. A tab given over to one long menu is still better as a body; menus read together — an indicator and the age band it applies to, say — are better as blocks.
Properties
closeOnSelect?
optionalcloseOnSelect?:boolean
Defined in: context/GeovisWorkspaceContext.ts:461
Closes the left sidebar right after a variation is picked. Defaults to
false, and the default earns its keep here more than on a body: blocks
sharing a tab are usually read together, so closing on the first pick would
take the sibling menus away mid-decision.
defaultValue?
optionaldefaultValue?:string
Defined in: context/GeovisWorkspaceContext.ts:454
Variation selected on first render, seeded into the shared selection by
getInitialSelection the same way a variations body's default is.
kind
kind:
"variations"
Defined in: context/GeovisWorkspaceContext.ts:445
menuId
menuId:
string
Defined in: context/GeovisWorkspaceContext.ts:447
Keys the shared selection this control drives (selection[menuId]).
resetViewOnChange?
optionalresetViewOnChange?:boolean
Defined in: context/GeovisWorkspaceContext.ts:470
Flies the map back to the spec's own view (centre, zoom, pitch and
bearing) whenever a different variation is picked, so each variation is
read from the same starting frame rather than wherever the reader had
panned to. Defaults to true; set false for a menu whose picks are meant
to keep the reader's place. A spec without view.center and view.zoom
has no fixed starting frame, and the camera stays put.
variations
variations:
GeovisWorkspaceSidebarVariation[]
Defined in: context/GeovisWorkspaceContext.ts:449
The selectable variations, in the order they are rendered.