Constructor | Description |
|
|
Static member | Description |
Full Usage:
NewShape.init (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)
Parameters:
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
|
|
Full Usage:
NewShape.style (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?Line, ?Opacity)
Parameters:
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
|
|