Skip to content

cupertino-files / Gradient

Interface: Gradient ​

Defined in: src/tsd/style.ts:136

Properties ​

advanced? ​

optional advanced?: boolean

Defined in: src/tsd/style.ts:147

The inspector's advanced-gradient mode; fresh gradients state false.


angle? ​

optional angle?: number

Defined in: src/tsd/style.ts:145

Direction in radians, as TSD.AngleGradientArchive stores it. Omitted, a written gradient gets the app's own fresh-gradient direction, 3π/2 — top to bottom.


opacity? ​

optional opacity?: number

Defined in: src/tsd/style.ts:139


stops ​

stops: GradientStop[]

Defined in: src/tsd/style.ts:138


type ​

type: "linear" | "radial"

Defined in: src/tsd/style.ts:137

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