Lines Matching refs:allKeys
105 var allKeys = row.children;
117 for (var i = 0; i < allKeys.length; i++) {
118 keyWeightSumX += allKeys[i].weight;
121 var interspaceWeightSumX = (allKeys.length -1) * pitchWeightX;
260 function findClosestKey(allKeys, x, pitch, alignLeft) { argument
264 var key = allKeys[i];
271 deltaLeft += 0.5*parseFloat(allKeys[i-1].style.width);
278 var index = exports.binarySearch(allKeys, 0, allKeys.length -1, testFn);
279 return index > 0 ? allKeys[index] : null;
291 function redistribute(allKeys, params, xOffset, width, keyHeight, yOffset) { argument
292 var availableWidth = width - (allKeys.length - 1) * params.pitchX;
295 for (var i = 0; i < allKeys.length; i++) {
296 var key = allKeys[i];
311 for (var i = 0; i < allKeys.length; i++) {
312 var key = allKeys[i];
342 var allKeys = row.children;
349 for (var i=0; i< allKeys.length; i++) {
351 if (allKeys[i].classList.contains('space')) {
355 stretchWeightBeforeSpace += allKeys[i].weight;
359 stretchWeightAfterSpace += allKeys[i].weight;
369 allKeys[spaceIndex].weight;
371 (params.pitchX * (allKeys.length - 1 ))
384 allKeys[spaceIndex].weight * (params.keyWidth/100);
393 var leftKeys = allKeys.array().slice(0, spaceIndex);
404 updateKey(allKeys[spaceIndex],
411 var rightKeys = allKeys.array().slice(spaceIndex + 1);