in use-cases/order-picking/src/main/resources/META-INF/resources/app.js [478:501]
function printSelectedTrolleys() {
clearWarehouseCanvas();
drawWarehouse();
let it = TROLLEY_PATHS.entries();
let trolleyIndex = 0;
for (const trolleyEntry of it) {
const trolleyCheck = document.getElementById('trolleyPath_' + trolleyEntry[0]);
if (trolleyCheck.checked) {
const color = trolleyColor(trolleyEntry[0]);
drawTrolleyPath(color, trolleyEntry[1], trolleyIndex, TROLLEY_PATHS.size);
}
trolleyIndex++;
}
it = TROLLEY_PATHS.entries();
trolleyIndex = 0;
for (const trolleyEntry of it) {
const trolleyCheck = document.getElementById('trolleyPath_' + trolleyEntry[0]);
if (trolleyCheck.checked) {
const color = trolleyColor(trolleyEntry[0]);
drawTrolleyText(color, trolleyEntry[1], trolleyIndex + TROLLEY_PATHS.size, TROLLEY_PATHS.size);
}
trolleyIndex++;
}
}