Provider
Generated by
website/scripts/generate-api.tsfrompackages/gridla/src. Do not edit by hand; runbun run generateinwebsite/.
GridProvider owns layout and gesture state for one canvas. It accepts every SolveOptions field as a prop, works controlled or uncontrolled, and exposes actions through context.
Functions
applyMeasuredSize
Update the measured size. Used by GridCanvas; exposed for custom canvases.
createStore
Create a Store holding initial. Listeners fire only when set changes the
state reference (compared with Object.is).
Components
GridProvider
Owns layout state and gesture state for one canvas. Place a GridCanvas
(or your own element wired with useGridInteraction) inside it. A binding
over createGridController from gridla/interaction.
Types
GridProviderProps
Props for GridProvider: every SolveOptions field, a controlled or
uncontrolled layout, change and transfer callbacks, and GridProviderConfig
overrides.
Store
Minimal external store: a snapshot getter, a subscribe function, and a setter.
Shaped for useSyncExternalStore. Same shape as GridStore from
gridla/interaction.