Skip to content

Type Alias: BackgroundFill ​

BackgroundFill = { colorRef: ColorRef; type: "solid"; } | { gradient: GradientFill; type: "gradient"; } | { partName: string | null; picture: PictureFill; relId: string | null; type: "image"; } | object & PatternFill | { type: "none"; }

An explicit background fill, decoded from a p:bgPr (or from a p:bgRef's resolved fmtScheme entry). The source-less core of SlideBackground: the top-level variants add BackgroundSource, and it is what a themeRef's SlideBackground.resolvedFill carries.

The image variant keeps relId/partName at the top level — the fields callers already read — and adds the full PictureFill (stretch/tile geometry, crop, alpha) under picture.