Struct vega_lite_4::ViewBackground
source · pub struct ViewBackground {Show 14 fields
pub corner_radius: Option<CornerRadiusUnion>,
pub cursor: Option<Cursor>,
pub fill: Option<Box<Color>>,
pub fill_opacity: Option<Opacity>,
pub opacity: Option<CornerRadiusUnion>,
pub stroke: RemovableValue<Color>,
pub stroke_cap: Option<Cap>,
pub stroke_dash: Option<StrokeDashUnion>,
pub stroke_dash_offset: Option<CornerRadiusUnion>,
pub stroke_join: Option<StrokeJoinUnion>,
pub stroke_miter_limit: Option<CornerRadiusUnion>,
pub stroke_opacity: Option<Opacity>,
pub stroke_width: Option<FontSize>,
pub style: Option<LegendText>,
}
Expand description
An object defining the view background’s fill and stroke.
Default value: none (transparent)
Deprecated: Please avoid using width in a unit spec that’s a part of a layer spec.
Fields§
§corner_radius: Option<CornerRadiusUnion>
§cursor: Option<Cursor>
The mouse cursor used over the view. Any valid CSS cursor type can be used.
fill: Option<Box<Color>>
The fill color.
Default value: undefined
fill_opacity: Option<Opacity>
§opacity: Option<CornerRadiusUnion>
The overall opacity (value between [0,1]).
Default value: 0.7
for non-aggregate plots with point
, tick
, circle
, or
square
marks or layered bar
charts and 1
otherwise.
stroke: RemovableValue<Color>
The stroke color.
Default value: "#ddd"
stroke_cap: Option<Cap>
§stroke_dash: Option<StrokeDashUnion>
§stroke_dash_offset: Option<CornerRadiusUnion>
§stroke_join: Option<StrokeJoinUnion>
§stroke_miter_limit: Option<CornerRadiusUnion>
§stroke_opacity: Option<Opacity>
§stroke_width: Option<FontSize>
§style: Option<LegendText>
A string or array of strings indicating the name of custom styles to apply to the view background. A style is a named collection of mark property defaults defined within the style configuration. If style is an array, later styles will override earlier styles.
Default value: "cell"
Note: Any specified view background properties will
augment the default style.
Trait Implementations§
source§impl Clone for ViewBackground
impl Clone for ViewBackground
source§fn clone(&self) -> ViewBackground
fn clone(&self) -> ViewBackground
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more