MCPcopy Create free account
hub / github.com/cryptii/cryptii / getModel

Method getModel

src/Encoder/Enigma.js:927–936  ·  view source on GitHub ↗

* Returns a model entry by given name. * @protected * @param {string} name Model name * @return {?object} Returns model entry or null if not found.

(name)

Source from the content-addressed store, hash-verified

925 * @return {?object} Returns model entry or null if not found.
926 */
927 static getModel (name) {
928 if (modelMap === null) {
929 // Build model map lazily
930 modelMap = {}
931 models.forEach(model => {
932 modelMap[model.name] = model
933 })
934 }
935 return modelMap[name] || null
936 }
937
938 /**
939 * Returns the max slot count for all available models.

Callers 15

updateMethod · 0.45
_createPipePartMethod · 0.45
_createBrickPartMethod · 0.45
_createCollapsedPartMethod · 0.45
brickDragWillStartMethod · 0.45
brickDragDidStartMethod · 0.45
dragDidDropMethod · 0.45
renderMethod · 0.45
renderHeaderMethod · 0.45
renderMenuMethod · 0.45
actionDidClickMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected