Back to problems

Select Table and Set Color

Object-Oriented Programming · Figma · Medium

Three-Level Override Cascade Storing an explicit color string for every cell would make a full-table or full-row recolor cost proportional to the selection size, which is too expensive when the table can hold up to \(10^6\) cells and the interface can receive \(10^5\) calls. The key is to avoid per-cell storage and instead keep color information at three scopes: one color for the whole table, optional colors for individual rows, and optional colors for individual cells. From…

Checking your access…