MCPcopy Create free account
hub / github.com/alephdata/aleph / normalizeDegreeValue

Function normalizeDegreeValue

ui/src/util/normalizeDegreeValue.js:1–3  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1export default function normalizeDegreeValue(value) {
2 return value < 0 ? (360 + value) % 360 : value % 360;
3}

Callers 2

getRotateLinkMethod · 0.85
setRotationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected