MCPcopy
hub / github.com/tomkp/react-split-pane / applyStep

Function applyStep

src/utils/calculations.ts:119–124  ·  view source on GitHub ↗
(delta: number, step: number)

Source from the content-addressed store, hash-verified

117 * Apply step-based resizing
118 */
119export function applyStep(delta: number, step: number): number {
120 if (step <= 0) return delta;
121
122 const steps = Math.round(delta / step);
123 return steps * step;
124}

Callers 2

useResizerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…