Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / ShadowProps

Interface: ShadowProps

Defined in: core-interfaces.ts:317

Properties

angle?

optional angle?: number

Defined in: core-interfaces.ts:349

angle (degrees)

  • range: 0-359

Default

ts
0

blur?

optional blur?: number

Defined in: core-interfaces.ts:343

blur (points)

  • range: 0-100

Default

ts
0

color?

optional color?: string

Defined in: core-interfaces.ts:360

shadow color (hex format)

Example

ts
'FF3399'

offset?

optional offset?: number

Defined in: core-interfaces.ts:355

shadow offset (points)

  • range: 0-200

Default

ts
0

opacity?

optional opacity?: number

Defined in: core-interfaces.ts:337

opacity (percent)

  • range: 0.0-1.0

Example

ts
0.5 // 50% opaque

Deprecated

v4.0.0 - use transparency (0-100, matches the PowerPoint UI which shows "Transparency")


rotateWithShape?

optional rotateWithShape?: boolean

Defined in: core-interfaces.ts:365

whether to rotate shadow with shape

Default

ts
false

transparency?

optional transparency?: number

Defined in: core-interfaces.ts:330

shadow transparency (percent)

  • MS-PPT > Format Shape > Effects > Shadow > Transparency
  • range: 0-100 (0 = fully opaque, 100 = fully transparent)
  • PowerPoint-aligned name; preferred over the legacy opacity

Example

ts
25 // 25% transparent

type

type: "none" | "outer" | "inner"

Defined in: core-interfaces.ts:322

shadow type

Default

ts
'none'