NewShape Type
Constructors
Constructor | Description |
|
|
Static members
Static member | Description |
|
|
Full Usage:
NewShape.init (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?ShowLegend, ?Legend, ?LegendRank, ?LegendGroup, ?LegendGroupTitle, ?LegendWidth, ?Line, ?Name, ?Opacity, ?Visible)
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.
?ShowLegend : bool
-
Determines whether or not an item corresponding to this shape is shown in the legend.
?Legend : SubPlotId
-
Sets the reference to a legend to show this shape in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc.
?LegendRank : int
-
Sets the legend rank for this shape. Items and groups with smaller ranks are presented on top/left side while with "reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.
?LegendGroup : string
-
Sets the legend group for this shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
?LegendGroupTitle : Title
-
Sets the legend group title for this shape.
?LegendWidth : float
-
Sets the width (in px or fraction) of the legend for this shape.
?Line : Line
-
Sets the outline of new shapes.
?Name : string
-
Sets new shape name. The name appears as the legend item.
?Opacity : float
-
Sets the opacity of new shapes.
?Visible : Visible
-
Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).
Returns: NewShape
|
|
|
|
Full Usage:
NewShape.style (?DrawDirection, ?FillColor, ?FillRule, ?Layer, ?ShowLegend, ?Legend, ?LegendRank, ?LegendGroup, ?LegendGroupTitle, ?LegendWidth, ?Line, ?Name, ?Opacity, ?Visible)
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.
?ShowLegend : bool
-
Determines whether or not an item corresponding to this shape is shown in the legend.
?Legend : SubPlotId
-
Sets the reference to a legend to show this shape in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc.
?LegendRank : int
-
Sets the legend rank for this shape. Items and groups with smaller ranks are presented on top/left side while with "reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.
?LegendGroup : string
-
Sets the legend group for this shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
?LegendGroupTitle : Title
-
Sets the legend group title for this shape.
?LegendWidth : float
-
Sets the width (in px or fraction) of the legend for this shape.
?Line : Line
-
Sets the outline of new shapes.
?Name : string
-
Sets new shape name. The name appears as the legend item.
?Opacity : float
-
Sets the opacity of new shapes.
?Visible : Visible
-
Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).
Returns: NewShape -> NewShape
|
|
Full Usage:
NewShape.tryGetTypedMember propName newShape
Parameters:
string
-
The name of the dynamic member to get the value of
newShape : NewShape
-
The NewShape to get the dynamic member value from
Returns: 'T option
|
|