NewSelection Type

Constructors

Constructor Description

NewSelection()

Full Usage: NewSelection()

Returns: NewSelection
Returns: NewSelection

Static members

Static member Description

NewSelection.init (?LineColor, ?LineDash, ?LineWidth, ?Mode)

Full Usage: NewSelection.init (?LineColor, ?LineDash, ?LineWidth, ?Mode)

Parameters:
    ?LineColor : Color - Sets the line color. By default uses either dark grey or white to increase contrast with background color.
    ?LineDash : DrawingStyle - Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").
    ?LineWidth : float - Sets the line width (in px).
    ?Mode : NewSelectionMode - Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.

Returns: unit -> NewSelection

Returns a new NewSelection object with the given styles

?LineColor : Color

Sets the line color. By default uses either dark grey or white to increase contrast with background color.

?LineDash : DrawingStyle

Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").

?LineWidth : float

Sets the line width (in px).

?Mode : NewSelectionMode

Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.

Returns: unit -> NewSelection

NewSelection.style (?LineColor, ?LineDash, ?LineWidth, ?Mode)

Full Usage: NewSelection.style (?LineColor, ?LineDash, ?LineWidth, ?Mode)

Parameters:
    ?LineColor : Color - Sets the line color. By default uses either dark grey or white to increase contrast with background color.
    ?LineDash : DrawingStyle - Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").
    ?LineWidth : float - Sets the line width (in px).
    ?Mode : NewSelectionMode - Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.

Returns: NewSelection -> unit -> NewSelection

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

?LineColor : Color

Sets the line color. By default uses either dark grey or white to increase contrast with background color.

?LineDash : DrawingStyle

Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").

?LineWidth : float

Sets the line width (in px).

?Mode : NewSelectionMode

Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.

Returns: NewSelection -> unit -> NewSelection