MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setYValue

Function setYValue

packages/react-stately/src/color/useColorAreaState.ts:162–168  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

160 setColor(newColor);
161 };
162 let setYValue = (v: number) => {
163 if (v === yValue) {
164 return;
165 }
166 let newColor = color.withChannelValue(channels.yChannel, v);
167 setColor(newColor);
168 };
169
170 return {
171 channels,

Callers 2

incrementYFunction · 0.85
decrementYFunction · 0.85

Calls 2

withChannelValueMethod · 0.80
setColorFunction · 0.70

Tested by

no test coverage detected