Interface ElementStyle

Element style

Hierarchy

  • ElementStyle

Properties

fillStyle?: string

CSS color used with context fill command.

Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

See CSS Legal Color Values

lineWidth?: number

Line width, 1.0 by default.

shadowBlur?: number

Level of blur applied to shadows.

Values that are not finite numbers greater than or equal to zero are ignored.

shadowColor?: string

CSS color used for the shadow.

Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

See CSS Legal Color Values

strokeStyle?: string

CSS color used with context stroke command.

Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

See CSS Legal Color Values