cupertino-files / ParagraphFormatting
Interface: ParagraphFormatting
Defined in: src/tss/stylesheet.ts:103
Properties
alignment?
optionalalignment?:number
Defined in: src/tss/stylesheet.ts:105
0 left, 1 right, 2 center, 3 justified, 4 natural.
backgroundColor?
optionalbackgroundColor?:Color
Defined in: src/tss/stylesheet.ts:122
Paragraph background. Apple stores a flat colour here, never a gradient.
border?
optionalborder?:Stroke
Defined in: src/tss/stylesheet.ts:124
The paragraph rule / border line.
borderPositions?
optionalborderPositions?:number
Defined in: src/tss/stylesheet.ts:126
Where border is drawn — see BorderPosition.
decimalTab?
optionaldecimalTab?:string
Defined in: src/tss/stylesheet.ts:136
Character a decimal tab aligns on (locale-dependent: "." or ",").
defaultTabStops?
optionaldefaultTabStops?:number
Defined in: src/tss/stylesheet.ts:134
Spacing of the implicit tab grid used beyond the last explicit stop.
firstLineIndent?
optionalfirstLineIndent?:number
Defined in: src/tss/stylesheet.ts:108
hyphenate?
optionalhyphenate?:boolean
Defined in: src/tss/stylesheet.ts:117
keepLinesTogether?
optionalkeepLinesTogether?:boolean
Defined in: src/tss/stylesheet.ts:113
keepWithNext?
optionalkeepWithNext?:boolean
Defined in: src/tss/stylesheet.ts:114
leftIndent?
optionalleftIndent?:number
Defined in: src/tss/stylesheet.ts:109
lineSpacing?
optionallineSpacing?:number
Defined in: src/tss/stylesheet.ts:112
Relative line spacing multiple (mode 0).
outlineLevel?
optionaloutlineLevel?:number
Defined in: src/tss/stylesheet.ts:119
Heading outline level (1-based; 0 = body).
pageBreakBefore?
optionalpageBreakBefore?:boolean
Defined in: src/tss/stylesheet.ts:115
rightIndent?
optionalrightIndent?:number
Defined in: src/tss/stylesheet.ts:110
roundedCorners?
optionalroundedCorners?:boolean
Defined in: src/tss/stylesheet.ts:128
Round the corners of a four-sided border.
ruleWidth?
optionalruleWidth?:number
Defined in: src/tss/stylesheet.ts:130
Historical rule width, kept in step with border.width by the apps.
showInToc?
optionalshowInToc?:boolean
Defined in: src/tss/stylesheet.ts:120
spaceAfter?
optionalspaceAfter?:number
Defined in: src/tss/stylesheet.ts:107
spaceBefore?
optionalspaceBefore?:number
Defined in: src/tss/stylesheet.ts:106
tabs?
optionaltabs?:TabStop[]
Defined in: src/tss/stylesheet.ts:132
Explicit tab stops. An empty array clears them.
widowControl?
optionalwidowControl?:boolean
Defined in: src/tss/stylesheet.ts:116
writingDirection?
optionalwritingDirection?:number
Defined in: src/tss/stylesheet.ts:144
Stored raw, and vestigial: no corpus style carries the field, styled values 0/1/2 all render left-to-right, and the app leaves it untouched when flipping a paragraph. The working mechanism is the storage's bidi table — use setParagraphDirection / ParagraphHandle.setDirection instead.