MCPcopy Create free account
hub / github.com/react-toolbox/react-toolbox / trimAngleToValue

Method trimAngleToValue

components/time_picker/ClockHand.js:90–92  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

88 }
89
90 trimAngleToValue (angle) {
91 return this.props.step * Math.round(angle / this.props.step);
92 }
93
94 positionToAngle (position) {
95 return utils.angle360FromPositions(this.props.origin.x, this.props.origin.y, position.x, position.y);

Callers 1

moveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected