RasterMouse.showDropLine( x, y, isVertical, length )

Displays a insertion line at the given x,y coordinates, line length and orientation.

This function can be used from within a user-defined dropHandler() function to highlight the drop target as the mouse cursor hovers over a valid target. The drop line is automatically hidden when after a drop operation is completed, cancelled or the mouse leaves a valid drop area.

Parameters

Name Type   Description
x number X position in pixels. Set this argument to null to hide the dropline. When set to null all other arguments (if any) are ignored.
y number Y position in pixels
isVertical boolean True sets the line orientation to vertical (default), false set the orientation horizontal.
length number the line's length
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López