Struct vega_lite_4::StickyLinearGradient
source · pub struct StickyLinearGradient {
pub gradient: Option<Gradient>,
pub id: Option<String>,
pub stops: Option<Vec<GradientStop>>,
pub x1: Option<f64>,
pub x2: Option<f64>,
pub y1: Option<f64>,
pub y2: Option<f64>,
pub r1: Option<f64>,
pub r2: Option<f64>,
pub expr: Option<String>,
}
Fields§
§gradient: Option<Gradient>
The type of gradient. Use "linear"
for a linear gradient.
The type of gradient. Use "radial"
for a radial gradient.
id: Option<String>
§stops: Option<Vec<GradientStop>>
An array of gradient stops defining the gradient color sequence.
x1: Option<f64>
The starting x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.
Default value: 0
The x-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.
Default value: 0.5
x2: Option<f64>
The ending x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.
Default value: 1
The x-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.
Default value: 0.5
y1: Option<f64>
The starting y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.
Default value: 0
The y-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.
Default value: 0.5
y2: Option<f64>
The ending y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.
Default value: 0
The y-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.
Default value: 0.5
r1: Option<f64>
The radius length, in normalized [0, 1] coordinates, of the inner circle for the gradient.
Default value: 0
r2: Option<f64>
The radius length, in normalized [0, 1] coordinates, of the outer circle for the gradient.
Default value: 0.5
expr: Option<String>
Vega expression (which can refer to Vega-Lite parameters).
Trait Implementations§
source§impl Clone for StickyLinearGradient
impl Clone for StickyLinearGradient
source§fn clone(&self) -> StickyLinearGradient
fn clone(&self) -> StickyLinearGradient
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more