|
|
|
|
|
by ramoneguru
836 days ago
|
|
Nice work, did you start off by looking at any previously built canvas-like spreadsheets or was it straight to "virtualized custom canvas magic"? I interviewed at a spreadsheet company (for a frontend role) and they asked, "how would you go about determining what cells need a border when a user clicks an individual cell, clicks a cell and selects multiple cells, clicks a cell next to an already selected cell." Fascinating problem and we talked about solutions for a little bit. Noticed that you can't unselect a cell once it's selected? I'm on a Mac with Chrome (latest, no updates available). Repo steps:
1. Select a few cells (⌘ + click) or an individual cell
2. Try unselecting (⌘ + click) those same cells clicked in #1
3. Cell is not unselected |
|
Great interview question. Tons of nuance to drawing borders on adjacent cells, how to handle varying thickness, etc. Once you start looking closely, you notice the pixel differences between how this gets handled by various spreadsheeting tools.
Thanks for the report! This one's already on my list actually (selection negation & unique selection deduping) -- look for a fix soon.