setData(data) {
		this.data = data;
		this.totalRows = Math.ceil(this.data.length / this.bytesPerRow);
		console.log(`setData: data length=${this.data.length}, totalRows=${this.totalRows}`);
		this.calculateVisibleRows(); // Ensure visibleRows are calculated before rendering
	}
Sets the data to be displayed in the hex editor.

@param {Uint8Array} data - The data to set.