Skip to content

cupertino-files / writeShadow

Function: writeShadow() ​

writeShadow(shadow): RawMessage

Defined in: src/tsd/style.ts:476

A shadow archive is written whole. Every parameter-carrying shadow in the corpus — all 929, the 687 disabled ones included — states all seven fields, and every current-era shadow colour names its space (822 of 822; the 107 space-less ones live in five 2013-class files). The only other app-written state is the empty archive. Absent fields are completed from DEFAULT_SHADOW, the type as drop, the colour's space as sRGB: a six-field shadow renders, but the app's shadow machinery asserts over the archive when its popup edits one, and the assert aborts the whole app.

Parameters ​

shadow ​

Shadow

Returns ​

RawMessage

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.