Cell format Registry
Spreadsheet lets you store and compress duplicate format data using cellxfs registries
Cell format registry lets you store formats in a central place and reference each format on the cell via a short ID (sid) instead of inlining the full format object. This typically gives ~70% compression on cell data.
// Before cellXfs registry
// Cell data A1:
{
uf: {
backgroundColor: "green",
horizontalAlignment: "left"
},
ue: {
sv: "Cell with styleId",
},
fv: "Cell with styleId",
note: "Hello world, this is notes.",
},
// After cellXfs registry — `uf` becomes a StyleReference
{
uf: {
sid: "123",
},
ue: {
sv: "Cell with styleId",
},
fv: "Cell with styleId",
note: "Hello world, this is notes.",
},Usage
Last updated