[][src]Struct vega_lite_4::ViewBackground

pub struct ViewBackground {
    pub corner_radius: Option<CornerRadiusUnion>,
    pub cursor: Option<Cursor>,
    pub fill: Option<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>,
}

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<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

impl Clone for ViewBackground[src]

impl Debug for ViewBackground[src]

impl Default for ViewBackground[src]

impl<'de> Deserialize<'de> for ViewBackground[src]

impl Serialize for ViewBackground[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.