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

Function decrementX

packages/react-stately/src/color/useColorAreaState.ts:222–224  ·  view source on GitHub ↗
(stepSize = 1)

Source from the content-addressed store, hash-verified

220 );
221 },
222 decrementX(stepSize = 1) {
223 setXValue(snapValueToStep(xValue - stepSize, minValueX, maxValueX, stepX));
224 },
225 decrementY(stepSize = 1) {
226 setYValue(snapValueToStep(yValue - stepSize, minValueY, maxValueY, stepY));
227 },

Callers 1

onMoveFunction · 0.85

Calls 2

snapValueToStepFunction · 0.90
setXValueFunction · 0.85

Tested by

no test coverage detected