cupertino-files / tswpSchema / BorderPosition
Variable: BorderPosition
constBorderPosition: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
readonlyALL:15=15
BOTTOM
readonlyBOTTOM:2=2
LEADING
readonlyLEADING:4=4
LEFT
readonlyLEFT:4=4
NONE
readonlyNONE:0=0
RIGHT
readonlyRIGHT:8=8
TOP
readonlyTOP:1=1
TOP_AND_BOTTOM
readonlyTOP_AND_BOTTOM:3=3
TRAILING
readonlyTRAILING:8=8