    activeLabel.appendChild(activeCheckbox);
        activeLabel.appendChild(document.createTextNode(` ${lineType.name}`));
        controlsColumn.appendChild(activeLabel);

        // Pattern text input
        const patternLabel = document.createElement('label');
        patternLabel.textContent = 'Pattern:';
        patternLabel.htmlFor = `${lineType.id}-pattern`;
        controlsColumn.appendChild(patternLabel);
        
        const patternInput = document.createElement('input');
        patternInput.