Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sarcadass/granim.js
/ getCustomCoordinateInPixels
Function
getCustomCoordinateInPixels
lib/setDirection.js:29–33 ·
view source on GitHub ↗
(coordinate, size)
Source
from the content-addressed store, hash-verified
27
};
28
29
function
getCustomCoordinateInPixels(coordinate, size) {
30
return
coordinate.indexOf(
'%'
) > -1
31
? size / 100 * parseInt(coordinate.split(
'%'
)[0], 10)
32
: parseInt(coordinate.split(
'px'
)[0], 10);
33
}
Callers
1
setDirection.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected