NewShape Type

Constructors

Constructor Description

NewShape()

Full Usage: NewShape()

Returns: NewShape
Returns: NewShape

Static members

Static member Description

NewShape.init (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)

Full Usage: NewShape.init (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)

Parameters:
    ?DrawDirection : DrawDirection - 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.
    ?FillColor : Color - 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.
    ?FillRule : FillRule - Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule
    ?Layer : Layer - Specifies whether new shapes are drawn below or above traces.
    ?Line : Line - Sets the outline of new shapes.
    ?Opacity : float - Sets the opacity of new shapes.

Returns: NewShape

Returns a new NewShape object with the given styling.

?DrawDirection : DrawDirection

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.

?FillColor : Color

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.

?FillRule : FillRule

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

?Layer : Layer

Specifies whether new shapes are drawn below or above traces.

?Line : Line

Sets the outline of new shapes.

?Opacity : float

Sets the opacity of new shapes.

Returns: NewShape

NewShape.style (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)

Full Usage: NewShape.style (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)

Parameters:
    ?DrawDirection : DrawDirection - 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.
    ?FillColor : Color - 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.
    ?FillRule : FillRule - Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule
    ?Layer : Layer - Specifies whether new shapes are drawn below or above traces.
    ?Line : Line - Sets the outline of new shapes.
    ?Opacity : float - Sets the opacity of new shapes.

Returns: NewShape -> NewShape

Returns a function that applies the given styles to a NewShape object

?DrawDirection : DrawDirection

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.

?FillColor : Color

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.

?FillRule : FillRule

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

?Layer : Layer

Specifies whether new shapes are drawn below or above traces.

?Line : Line

Sets the outline of new shapes.

?Opacity : float

Sets the opacity of new shapes.

Returns: NewShape -> NewShape