()
| 237 | } |
| 238 | |
| 239 | private renderPattern(): void { |
| 240 | const container = |
| 241 | document.getElementById('patternContainer') as HTMLElement; |
| 242 | container.innerHTML = ''; |
| 243 | |
| 244 | if (this.pattern === null) return; |
| 245 | this.pattern.forEachRow((rowData: any, index: number) => { |
| 246 | const divNormal = rowData.createDiv(index, this.pattern); |
| 247 | container.appendChild(divNormal); |
| 248 | divNormal.addEventListener('click', () => this.selectRow(index)); |
| 249 | }); |
| 250 | } |
| 251 | |
| 252 | |
| 253 | public addRow(delta: number): void { |
no test coverage detected