Skip to content

Interface: ShadowProps ​

Properties ​

angle? ​

optional angle?: number

angle (degrees)

  • range: 0-359

Default ​

ts
0

blur? ​

optional blur?: number

blur (points)

  • MS-PPT > Format Shape > Effects > Shadow > Blur
  • PowerPoint's own spinner stops at 100, but a larger blur is unusual rather than invalid: it loads and paints. Only a negative blur is rejected (clamped to 0 with a shadow/blur-out-of-range diagnostic), because the blurRad attribute is unsigned.

Default ​

ts
0

color? ​

optional color?: string

shadow color (hex format)

Example ​

ts
'FF3399'

offset? ​

optional offset?: number

shadow offset (points)

  • MS-PPT > Format Shape > Effects > Shadow > Distance
  • PowerPoint's own spinner stops at 200, but a larger distance is unusual rather than invalid: it loads and paints. Only a negative offset is rejected (clamped to 0 with a shadow/offset-out-of-range diagnostic), because the dist attribute is unsigned.

Default ​

ts
0

rotateWithShape? ​

optional rotateWithShape?: boolean

whether to rotate shadow with shape

Default ​

ts
false

transparency? ​

optional transparency?: number

shadow transparency (percent)

  • MS-PPT > Format Shape > Effects > Shadow > Transparency
  • range: 0-100 (0 = fully opaque, 100 = fully transparent)

Example ​

ts
25 // 25% transparent

type ​

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

shadow type

Default ​

ts
'none'