```typescript
/** Lay a straight eastward conveyor run across a factory floor plan. */
export function layConveyor(floor: string[], row: number, col: number, length: number): string[] {
  if (row < 0 || row >= floor.length) {
    throw new Error("the run starts off the plan");
  }
  const cells = floor[row].split("");
  if (col + length > cells.length) {
    throw new Error("the run would pass the last column");
  }
  for (let i = col; i < col + length; i++) {
    if (cells[i] !== ".") {
      throw new Error("a cell the run covers is not open");
    }
    cells[i] = "=";
  }
  return floor.map((r, idx) => idx === row ? cells.join("") : r);
}
```