Rename space => view

This commit is contained in:
Max Goodhart
2020-06-18 14:13:13 -07:00
parent 1374b8af99
commit 9c379a912b
3 changed files with 7 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import { interpret } from 'xstate'
import { pollPublicData, pollSpreadsheetData, processData } from './data'
import viewStateMachine from './viewStateMachine'
import { boxesFromSpaceURLMap } from './geometry'
import { boxesFromViewURLMap } from './geometry'
import {
WIDTH,
@@ -124,8 +124,8 @@ async function main() {
views.push(service)
}
ipcMain.on('set-videos', async (ev, spaceURLMap) => {
const boxes = boxesFromSpaceURLMap(GRID_COUNT, GRID_COUNT, spaceURLMap)
ipcMain.on('set-videos', async (ev, viewURLMap) => {
const boxes = boxesFromViewURLMap(GRID_COUNT, GRID_COUNT, viewURLMap)
const unusedViews = new Set(views)
for (const box of boxes) {