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

Function getKey

packages/joint-core/src/routers/manhattan.mjs:420–423  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

418// return a string representing the point
419// string is rounded in both dimensions
420function getKey(point) {
421
422 return point.clone().toString();
423}
424
425// return a normalized vector from given point
426// used to determine the direction of a difference of two points

Callers 2

reconstructRouteFunction · 0.85
findRouteFunction · 0.85

Calls 2

toStringMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected