Releases: pmndrs/leva
@leva-ui/[email protected]
Patch Changes
-
edc8847: Breaking: change how
leva/plugin
exports components.// before import { Row, Label, String } from 'leva/plugin' // after import { Components } from 'leva/plugin' const { Row, Label, String } = Components
Feat: add
useValue
/useValues
hooks that let an input query other inputs values.Feat:
normalize
has additional arguments to its signature:/** * @path the path of the input * @data the data available in the store */ const normalize = (input: Input, path: string, data: Data)
Feat:
sanitize
has additional arguments to its signature:/** * @path the path of the input * @store the store */ const sanitize = ( value: any, settings: Settings, prevValue: any, path: string, store: StoreType )
Styles: better feedback when dragging number from inner label.
Plugin: add the Plot plugin 📈
import { plot } from '@leva-ui/plugin-plot' useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10, 10], boundsY: [0, 100] }) })
-
Updated dependencies [edc8847]
@leva-ui/[email protected]
Patch Changes
-
edc8847: Breaking: change how
leva/plugin
exports components.// before import { Row, Label, String } from 'leva/plugin' // after import { Components } from 'leva/plugin' const { Row, Label, String } = Components
Feat: add
useValue
/useValues
hooks that let an input query other inputs values.Feat:
normalize
has additional arguments to its signature:/** * @path the path of the input * @data the data available in the store */ const normalize = (input: Input, path: string, data: Data)
Feat:
sanitize
has additional arguments to its signature:/** * @path the path of the input * @store the store */ const sanitize = ( value: any, settings: Settings, prevValue: any, path: string, store: StoreType )
Styles: better feedback when dragging number from inner label.
Plugin: add the Plot plugin 📈
import { plot } from '@leva-ui/plugin-plot' useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10,10], boundsY: [0, 100] }) })
-
Updated dependencies [edc8847]
[email protected]
[email protected]
Patch Changes
- d2eaf58: fix: properly resolves value-keyed objects for the
Select
input.
[email protected]
Patch Changes
- 98984e1: types: fix `set types in transient mode
[email protected]
Minor Changes
-
0b7e968: Add the
invertY
setting for the Vector2D joystick for inverting the y coordinate.BREAKING: The default behavior has been changed. If you want the same behavior as in previous versions you will have to set the
joystick
option to'invertY'
.const values = useControl({ vector2d: { value: [0, 0], joystick: 'invertY', }, })
Patch Changes
-
f323cfc: Feat:
onChange
callback for transient updatesuseControls({ color: { value: 'red', onChange: v => console.log(v) } })
@leva-ui/[email protected]
[email protected]
[email protected]
Patch Changes
- 72bcebe: Reject null Vectors
[email protected]
Patch Changes
- 66dcb79: Add id to root div so that we're sure to always use the same root
div
. This should fix #106. - c6a69e3: Fix scrollbars flashing when collapsing a folder. Fixes #139.
- 9e32b2c: Prevent errors in node environments by aliasing stitches global identifier to _global as global indentifier is reserved