MCPcopy
hub / github.com/clientIO/joint / normalizeAngle

Function normalizeAngle

packages/joint-core/src/g/geometry.helpers.mjs:19–22  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

17};
18
19export const normalizeAngle = function(angle) {
20
21 return (angle % 360) + (angle < 0 ? 360 : 0);
22};
23
24export const snapToGrid = function(value, gridSize) {
25

Callers 4

point.mjsFile · 0.90
LinkView.mjsFile · 0.90
Element.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected