Struct plotly::layout::NewShape[][src]

pub struct NewShape { /* fields omitted */ }

Implementations

impl NewShape[src]

pub fn new() -> NewShape[src]

pub fn line(self, line: ShapeLine) -> NewShape[src]

Sets the shape line properties (color, width, dash).

pub fn fill_color<C: Color>(self, fill_color: C) -> NewShape[src]

Sets the color filling new shapes' interior. Please note that if using a fillcolor with alpha greater than half, drag inside the active shape starts moving the shape underneath, otherwise a new shape could be started over.

pub fn fill_rule(self, fill_rule: FillRule) -> NewShape[src]

Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule

pub fn opacity(self, opacity: f64) -> NewShape[src]

Sets the opacity of new shapes. Number between or equal to 0 and 1.

pub fn layer(self, layer: ShapeLayer) -> NewShape[src]

Specifies whether new shapes are drawn below or above traces.

pub fn draw_direction(self, draw_direction: DrawDirection) -> NewShape[src]

When dragmode is set to "drawrect", "drawline" or "drawcircle" this limits the drag to be horizontal, vertical or diagonal. Using "diagonal" there is no limit e.g. in drawing lines in any direction. "ortho" limits the draw to be either horizontal or vertical. "horizontal" allows horizontal extend. "vertical" allows vertical extend.

Trait Implementations

impl Debug for NewShape[src]

impl Default for NewShape[src]

impl Serialize for NewShape[src]

Auto Trait Implementations

impl RefUnwindSafe for NewShape[src]

impl Send for NewShape[src]

impl Sync for NewShape[src]

impl Unpin for NewShape[src]

impl UnwindSafe for NewShape[src]

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> From<T> for T[src]

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]