[−][src]Struct vega_lite_3::ViewBackground
An object defining the view background's fill and stroke.
Default value: none (transparent)
Fields
corner_radius: Option<f64>
The radius in pixels of rounded rectangle corners.
Default value: 0
fill: Option<String>
The fill color.
Default value: undefined
fill_opacity: Option<f64>
The fill opacity (value between [0,1]).
Default value: 1
opacity: Option<f64>
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: Option<String>
The stroke color.
Default value: "#ddd"
stroke_cap: Option<StrokeCap>
The stroke cap for line ending style. One of "butt"
, "round"
, or "square"
.
Default value: "square"
stroke_dash: Option<Vec<f64>>
An array of alternating stroke, space lengths for creating dashed or dotted lines.
stroke_dash_offset: Option<f64>
The offset (in pixels) into which to begin drawing with the stroke dash array.
stroke_join: Option<StrokeJoin>
The stroke line join method. One of "miter"
, "round"
or "bevel"
.
Default value: "miter"
stroke_miter_limit: Option<f64>
The miter limit at which to bevel a line join.
stroke_opacity: Option<f64>
The stroke opacity (value between [0,1]).
Default value: 1
stroke_width: Option<f64>
The stroke width, in pixels.
style: Option<Style>
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]
fn clone(&self) -> ViewBackground
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ViewBackground
[src]
impl Default for ViewBackground
[src]
fn default() -> ViewBackground
[src]
impl<'de> Deserialize<'de> for ViewBackground
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ViewBackground
[src]
Auto Trait Implementations
impl RefUnwindSafe for ViewBackground
impl Send for ViewBackground
impl Sync for ViewBackground
impl Unpin for ViewBackground
impl UnwindSafe for ViewBackground
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,