An IInputMode implementation that can handle lasso selections performed by the user with a mouse or via touch.
Remarks
This implementation will request the mutex as soon as it recognizes a mouse or touch drag.
By default the lasso is a single freehand gesture. However, both a polyline path and mixed freehand/polyline paths are possible with different configuration.
Per default the visualization of the lasso selection region uses the secondaryColor of the set theme. This can be customized by setting another stroke or fill or registering a Stroke or Fill using the LASSO_STROKE_KEY or LASSO_FILL_KEY.
This mode is exclusive by default.
Examples
const lassoSelectionInputMode = graphEditorInputMode.lassoSelectionInputMode
lassoSelectionInputMode.dragFreeRecognizer = MouseEventRecognizers.DRAG
lassoSelectionInputMode.startSegmentRecognizer = EventRecognizers.ALWAYS
lassoSelectionInputMode.endSegmentRecognizer =
EventRecognizers.createOrRecognizer(
MouseEventRecognizers.LEFT_IS_DOWN,
MouseEventRecognizers.LEFT_UP
)
lassoSelectionInputMode.dragSegmentRecognizer =
MouseEventRecognizers.MOVE_OR_DRAG
lassoSelectionInputMode.finishRecognizer =
MouseEventRecognizers.LEFT_DOUBLE_CLICK
lassoSelectionInputMode.finishRadius = 10
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.LassoSelectionInputMode
See Also
Constructors
Creates a new instance of the lasso selection mode.
Parameters
A map of options to pass to the method.
- priority - number
- exclusive - boolean
A value indicating whether this mode will be the only one running when it has the mutex. This option sets the exclusive property on the created object.
- enabled - boolean
The enabled state of this input mode. This option sets the enabled property on the created object.
- stroke - Stroke
The stroke that is used for the visualization of the lasso path. This option sets the stroke property on the created object.
- fill - Fill
The fill that is used for the visualization of the lasso path. This option sets the fill property on the created object.
- finishRegionTemplate - IVisualTemplate
The template that is used for the visualization of the region around the startLocation where the lasso may be finished. This option sets the finishRegionTemplate property on the created object.
- finishRegionHighlightTemplate - IVisualTemplate
The template that is used for the visualization of the highlighted region around the startLocation where the lasso may be finished. This option sets the finishRegionHighlightTemplate property on the created object.
- finishRadius - number
The radius in view coordinates around the startLocation where the lasso selection can be finished. This option sets the finishRadius property on the created object.
- validBeginCursor - Cursor
The cursor to use when beginning the dragging of the lasso is valid. This option sets the validBeginCursor property on the created object.
- lassoCursor - Cursor
The cursor to use during the dragging of the lasso. This option sets the lassoCursor property on the created object.
- validEndCursor - Cursor
The cursor to use when hovering over a valid end location. This option sets the validEndCursor property on the created object.
- cancelRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to cancel lasso selection. This option sets the cancelRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- validBeginRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether it is valid to begin drawing the lasso. This option sets the validBeginRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- prepareRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to start drawing the lasso. This option sets the prepareRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- dragFreeRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to drag the lasso free hand. This option sets the dragFreeRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- dragSegmentRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to drag a straight-line segment for the lasso. This option sets the dragSegmentRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- startSegmentRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to switch from freehand to segment mode. This option sets the startSegmentRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- endSegmentRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to end a segment and switch from segment to freehand mode. This option sets the endSegmentRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- finishRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to finish the gesture away from the startLocation. This option sets the finishRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- finishRegionRecognizer - function(Object, EventArgs):boolean
The event recognizer that determines whether to finish the gesture when near the startLocation. This option sets the finishRegionRecognizer property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- prepareRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to start drawing the lasso via touch. This option sets the prepareRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- dragFreeRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to drag the lasso free hand via touch. This option sets the dragFreeRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- dragSegmentRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to drag a straight-line segment for the lasso via touch. This option sets the dragSegmentRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- startSegmentRecognizerTouch - function(Object, EventArgs):boolean
A recognizer determining when to switch from freehand to segment mode for touch input. This option sets the startSegmentRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- endSegmentRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to end a segment and switch from segment to freehand mode via touch. This option sets the endSegmentRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- finishRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to finish the gesture away from the startLocation via touch. This option sets the finishRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
- finishRegionRecognizerTouch - function(Object, EventArgs):boolean
The event recognizer that determines whether to finish the gesture when near the startLocation via touch. This option sets the finishRegionRecognizerTouch property on the created object.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
A callback that recognizes events.Given a sender and an event argument, delegates decide whether the event is treated as a match depending on the context.Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Properties
Gets or sets the event recognizer that determines whether to cancel lasso selection.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Gets the installed controller.
Gets or sets the event recognizer that determines whether to drag the lasso free hand.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to drag the lasso free hand via touch.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Gets or sets the event recognizer that determines whether to drag a straight-line segment for the lasso.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to drag a straight-line segment for the lasso via touch.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Gets or sets the enabled state of this input mode.
Remarks
Gets or sets the event recognizer that determines whether to end a segment and switch from segment to freehand mode.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to end a segment and switch from segment to freehand mode via touch.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Gets or sets a value indicating whether this mode will be the only one running when it has the mutex.
Remarks
The value of this property will be delegated to the exclusive property of the controller.
If this mode is marked as exclusive and has the mutex, all other modes added to the same MultiplexingInputMode will be deactivated. Otherwise it will always run concurrently with all other modes.
Gets or sets the fill that is used for the visualization of the lasso path.
Remarks
yfiles-lasso-template
or yfiles-lasso-path
CSS classes.See Also
Gets or sets the radius in view coordinates around the startLocation where the lasso selection can be finished.
Remarks
A value of 0
(the default) disables ending the gesture near the startLocation and also disable showing the indicator.
Default is 0
.
See Also
Gets or sets the event recognizer that determines whether to finish the gesture away from the startLocation.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to finish the gesture away from the startLocation via touch.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the template that is used for the visualization of the highlighted region around the startLocation where the lasso may be finished.
Remarks
yfiles-lasso-template
or yfiles-lasso-finish-region-highlight
CSS classes.See Also
Gets or sets the event recognizer that determines whether to finish the gesture when near the startLocation.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to finish the gesture when near the startLocation via touch.
Remarks
This recognizer is always combined with a check whether the input coordinates are within finishRadius around startLocation.
The default value is TOUCH_UP_PRIMARY.
Due to the default value for finishRecognizerTouch and finishRadius this is not normally used, except the mentioned properties are changed.
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the template that is used for the visualization of the region around the startLocation where the lasso may be finished.
Remarks
yfiles-lasso-template
or yfiles-lasso-finish-region
CSS classes.See Also
Gets the context instance this mode is currently installed in or null
if this instance is not installed.
Remarks
Implements
Gets or sets the event recognizer that determines whether to start drawing the lasso.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets the event recognizer that determines whether to start drawing the lasso via touch.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets the priority of this input mode.
Remarks
See Also
Implements
Gets the current or last selection path.
Gets the location where the prepareRecognizer was triggered and the lasso selection started.
Gets or sets the event recognizer that determines whether to switch from freehand to segment mode.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
See Also
Gets or sets a recognizer determining when to switch from freehand to segment mode for touch input.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Gets or sets the stroke that is used for the visualization of the lasso path.
Remarks
yfiles-lasso-template
or yfiles-lasso-path
CSS classes.See Also
Gets or sets the event recognizer that determines whether it is valid to begin drawing the lasso.
Remarks
Signature Details
function(eventSource: any, evt: EventArgs) : boolean
Parameters
- eventSource - any
- The source of the event.
- evt - EventArgs
- The arguments of the event to be decided to handle.
Returns
- boolean
true
if theevt
is considered to be handled.
Methods
Cancels any pending lasso selection.
Implements
Helper method that yields a suitably configured InputModeEventArgs for this input mode.
Returns
- ↪LassoSelectionEventArgs
- An input mode event argument that is configured for this instance.
Installs this mode into the given context that is provided by the canvas.
Remarks
In general a mode can only be installed into a single canvas at all times.
This method is called to initialize this instance. Subclasses should override this method to register the corresponding event handler delegates for the various input events they need to register with.
Overriding implementations should call the base implementation, first.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context that this instance shall be installed into. The same instance will be passed to this instance during uninstall. A reference to the context may be kept and queried during the time the mode is installed.
- controller - ConcurrencyController
- The controller for this mode.
See Also
Implements
Used by the finishRecognizer and finishRecognizerTouch to check the current cursor position.
Remarks
location
to the startLocation is less then finishRadius in view coordinates.Parameters
A map of options to pass to the method.
- location - Point
- The location in world coordinates that should be checked.
Called after cancel has been called.
Remarks
Can be overridden in subclasses to perform additional actions after the mode has been canceled.
This implementation does nothing.
Called after the active property of the installed ConcurrencyController has been set to true
.
Remarks
Can be overridden in subclasses to perform additional actions after the mode has been activated.
Overriding implementations should call the base implementation.
Called after the active property of the installed ConcurrencyController has been set to false
.
Remarks
Can be overridden in subclasses to perform additional actions after the mode has been deactivated.
Overriding implementations should call the base implementation.
Triggers the DragCanceled event.
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Triggers the DragCanceling event.
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Called once the drag has been finalized.
Remarks
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Called before the drag will be finalized.
Remarks
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Called at the end of each drag.
Remarks
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Called at the start of each drag.
Remarks
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Triggers the DragStarted event.
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Triggers the DragStarting event.
Parameters
A map of options to pass to the method.
- evt - LassoSelectionEventArgs
- The event argument that contains context information.
Called after tryStop has been called.
Remarks
Can be overridden in subclasses to perform additional actions after the mode has been stopped.
This implementation does nothing.
Called by the client in order to stop a current editing progress.
Remarks
false
Returns
- ↪boolean
true
if and only if the editing has been stopped or there was no edit in progress
See Also
Implements
Uninstalls this mode from the given context.
Remarks
This code should clean up all changes made to the canvas in the install method. After a mode has been uninstalled it can be installed again into the same or another canvas.
Overriding implementations should call the base implementation after their own code.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to deregister from. This is the same instance that had been passed to install during installation.
Implements
Events
Occurs when the drag has been canceled.
See Also
Event Registration
addDragCanceledListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragCanceledListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs before the drag will be canceled.
See Also
Event Registration
addDragCancelingListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragCancelingListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs when the drag has been finished.
See Also
Event Registration
addDragFinishedListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragFinishedListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs before the drag will be finished.
See Also
Event Registration
addDragFinishingListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragFinishingListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs at the end of every drag.
See Also
Event Registration
addDraggedListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDraggedListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs at the start of every drag.
See Also
Event Registration
addDraggingListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDraggingListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs once the drag is initialized and has started.
See Also
Event Registration
addDragStartedListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragStartedListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Occurs once the drag is starting.
See Also
Event Registration
addDragStartingListener(function(this, LassoSelectionEventArgs):void)
Event Deregistration
removeDragStartingListener(function(this, LassoSelectionEventArgs):void)
Signature Details
function(sender: this, evt: LassoSelectionEventArgs)
Parameters
- sender - this
- The source of the event.
- evt - LassoSelectionEventArgs
- An object that contains the event data.
Constants
A string that can be used to store a IVisualTemplate that can be used to create the visual to indicate the highlighted finish region around the startLocation.
Remarks
The highlighted region indicates that the lasso selection can be finished at the current location.
The default template has the yfiles-lasso-template
and yfiles-lasso-finish-region-highlight
CSS classes.
See Also
A string that can be used to store a IVisualTemplate that can be used to create the visual to indicate the finish region around the startLocation.
Remarks
The region indicates where the lasso selection can be finished.
The default template has the yfiles-lasso-template
and yfiles-lasso-finish-region
CSS classes.
See Also
A string that can be used to store a Fill for the visualization of the fill of the lasso path.
Remarks
yfiles-lasso-template
or yfiles-lasso-path
CSS classes.See Also
A string that can be used to store a stroke for the visualization of the lasso path.
Remarks
yfiles-lasso-template
or yfiles-lasso-path
CSS classes.