Skip to content

cupertino-files / ParagraphFormatting

Interface: ParagraphFormatting

Defined in: src/tss/stylesheet.ts:103

Properties

alignment?

optional alignment?: number

Defined in: src/tss/stylesheet.ts:105

0 left, 1 right, 2 center, 3 justified, 4 natural.


backgroundColor?

optional backgroundColor?: Color

Defined in: src/tss/stylesheet.ts:122

Paragraph background. Apple stores a flat colour here, never a gradient.


border?

optional border?: Stroke

Defined in: src/tss/stylesheet.ts:124

The paragraph rule / border line.


borderPositions?

optional borderPositions?: number

Defined in: src/tss/stylesheet.ts:126

Where border is drawn — see BorderPosition.


decimalTab?

optional decimalTab?: string

Defined in: src/tss/stylesheet.ts:136

Character a decimal tab aligns on (locale-dependent: "." or ",").


defaultTabStops?

optional defaultTabStops?: number

Defined in: src/tss/stylesheet.ts:134

Spacing of the implicit tab grid used beyond the last explicit stop.


firstLineIndent?

optional firstLineIndent?: number

Defined in: src/tss/stylesheet.ts:108


hyphenate?

optional hyphenate?: boolean

Defined in: src/tss/stylesheet.ts:117


keepLinesTogether?

optional keepLinesTogether?: boolean

Defined in: src/tss/stylesheet.ts:113


keepWithNext?

optional keepWithNext?: boolean

Defined in: src/tss/stylesheet.ts:114


leftIndent?

optional leftIndent?: number

Defined in: src/tss/stylesheet.ts:109


lineSpacing?

optional lineSpacing?: number

Defined in: src/tss/stylesheet.ts:112

Relative line spacing multiple (mode 0).


outlineLevel?

optional outlineLevel?: number

Defined in: src/tss/stylesheet.ts:119

Heading outline level (1-based; 0 = body).


pageBreakBefore?

optional pageBreakBefore?: boolean

Defined in: src/tss/stylesheet.ts:115


rightIndent?

optional rightIndent?: number

Defined in: src/tss/stylesheet.ts:110


roundedCorners?

optional roundedCorners?: boolean

Defined in: src/tss/stylesheet.ts:128

Round the corners of a four-sided border.


ruleWidth?

optional ruleWidth?: number

Defined in: src/tss/stylesheet.ts:130

Historical rule width, kept in step with border.width by the apps.


showInToc?

optional showInToc?: boolean

Defined in: src/tss/stylesheet.ts:120


spaceAfter?

optional spaceAfter?: number

Defined in: src/tss/stylesheet.ts:107


spaceBefore?

optional spaceBefore?: number

Defined in: src/tss/stylesheet.ts:106


tabs?

optional tabs?: TabStop[]

Defined in: src/tss/stylesheet.ts:132

Explicit tab stops. An empty array clears them.


widowControl?

optional widowControl?: boolean

Defined in: src/tss/stylesheet.ts:116


writingDirection?

optional writingDirection?: 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.

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