Skip to content

cupertino-files / tswpSchema / deprecatedBorders

Function: deprecatedBorders() ​

deprecatedBorders(positions): number | undefined

Defined in: src/tswp/schema.ts:323

The historical value the border inspector keys on: the app writes deprecated_borders beside border_positions on every bordered style (17 of 17 corpus styles with non-zero positions carry both, 6474 more agree on 0·0), and a style with only the bitmask shows its position toggles unselected and draws nothing. The old enum keeps 1 top and 2 bottom, states top-and-bottom as 3 and all four as 4, and moves the sides to 8 leading and 16 trailing with the horizontal bits added on (9..11, 17..19). Measured pairs: 0·0, 1·1, 2·2, 4·8, 8·16. Leading beside trailing short of all four has no value — undefined here, and the field stays unwritten.

Parameters ​

positions ​

number

Returns ​

number | undefined

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