Contents
- Properties
Having trouble getting help?
Contact Support
Contact Support
DiagramGradient
23 Sep 20251 minute to read
Paints the node with linear color transitions
Properties
cx number
Defines the cx value of radial gradient
Defaults to 0
cy number
Defines the cy value of radial gradient
Defaults to cy
fx number
Defines the fx value of radial gradient
Defaults to 0
fy number
Defines the fy value of radial gradient
Defaults to fy
id string
Defines the id of gradient
Defaults to ’’
r number
Defines the r value of radial gradient
Defaults to 50
stops StopModel[]
Defines the stop collection of gradient
Defaults to []
type GradientType
Defines the type of gradient
- Linear - Sets the type of the gradient as Linear
- Radial - Sets the type of the gradient as Radial
Defaults to ‘None’
x1 number
Defines the x1 value of linear gradient
Defaults to 0
x2 number
Defines the x2 value of linear gradient
Defaults to 0
y1 number
Defines the y1 value of linear gradient
Defaults to 0
y2 number
Defines the y2 value of linear gradient
Defaults to 0