Skip to content

cupertino-files / tswpSchema / BorderPosition

Variable: BorderPosition

const BorderPosition: object

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

ParagraphStylePropertiesArchive.border_positions — which edges draw.

A measured bitmask: bit 1 top, bit 2 bottom, and two logical side bits — 4 the leading edge, 8 the trailing edge — that follow the paragraph's writing direction: in an LTR paragraph 4 draws on the page's left and 8 on its right, in an RTL paragraph the two swap sides (the left-edge control on an RTL paragraph stores 8). A union means exactly its bits (3 draws top and bottom, 15 all four), and 0 is none. LEFT/RIGHT name the LTR case and alias LEADING/TRAILING.

Type Declaration

ALL

readonly ALL: 15 = 15

BOTTOM

readonly BOTTOM: 2 = 2

LEADING

readonly LEADING: 4 = 4

LEFT

readonly LEFT: 4 = 4

NONE

readonly NONE: 0 = 0

readonly RIGHT: 8 = 8

TOP

readonly TOP: 1 = 1

TOP_AND_BOTTOM

readonly TOP_AND_BOTTOM: 3 = 3

TRAILING

readonly TRAILING: 8 = 8

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