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

Function constructKeytip

docs/app/js/sanddance-app.js:34110–34125  ·  view source on GitHub ↗
(configMap, parentSequence, keytip)

Source from the content-addressed store, hash-verified

34108 return configMap;
34109}
34110function constructKeytip(configMap, parentSequence, keytip) {
34111 // Compute full key sequence
34112 var sequence = keytip.sequence ? keytip.sequence : keytip.content.toLocaleLowerCase();
34113 var keytipSequence = parentSequence.concat(sequence);
34114 // Save props in configMap
34115 var keytipProps = (0, _tslib.__assign)((0, _tslib.__assign)({}, keytip.optionalProps), {
34116 keySequences: keytipSequence,
34117 content: keytip.content
34118 });
34119 configMap[keytip.id] = keytipProps;
34120 if (keytip.children) for(var _i = 0, _a = keytip.children; _i < _a.length; _i++){
34121 var child = _a[_i];
34122 // Create keytips for all children
34123 constructKeytip(configMap, keytipSequence, child);
34124 }
34125}
34126
34127},{"tslib":"01Tx1","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"6Zpab":[function(require,module,exports) {
34128var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

buildKeytipConfigMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected