MCPcopy Create free account
hub / github.com/microsoft/SandDance / directionStr

Function directionStr

docs/app/js/sanddance-app.js:93695–93701  ·  view source on GitHub ↗

* direction cons to string * @param {Const} direction * @returns {String}

(direction)

Source from the content-addressed store, hash-verified

93693 * @param {Const} direction
93694 * @returns {String}
93695 */ function directionStr(direction) {
93696 if (direction == DIRECTION_DOWN) return "down";
93697 else if (direction == DIRECTION_UP) return "up";
93698 else if (direction == DIRECTION_LEFT) return "left";
93699 else if (direction == DIRECTION_RIGHT) return "right";
93700 return "";
93701 }
93702 /**
93703 * get a recognizer by name if it is bound to a manager
93704 * @param {Recognizer|String} otherRecognizer

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected