Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
19
export
const
normalizeAngle =
function
(angle) {
20
21
return
(angle % 360) + (angle < 0 ? 360 : 0);
22
};
23
24
export
const
snapToGrid =
function
(value, gridSize) {
25
Callers
4
point.mjs
File · 0.90
LinkView.mjs
File · 0.90
Element.mjs
File · 0.90
joint.dia.LegacyLinkView.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected