Struct plotly::layout::NewShape [−][src]
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
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,