Holds the value of the x argument in the last call to
Holds the value of the y argument in the last call to
Specifies the default opacity to be used for the rubberband div. Default is 20.
Holds the DIV element which is currently visible.
Specifies if events are handled. Default is true.
Optional fade out effect. Default is false.
Holds the DIV element which is used to display the rubberband.
Static
pluginReturns true if this handler is active.
Optional
sender: EventSourceOptional
me: InternalMouseEventHandles the event by initiating a rubberband selection. By consuming the event all subsequent events of the gesture are redirected to this handler.
Handles the event by updating therubberband selection.
Handles the event by selecting the region of the rubberband using Graph#selectRegion.
Event handler that selects rectangular regions.
IMPORTANT: This is not built-into
maxGraph
i.e. this plugin is not in themaxGraph
default plugins, see getDefaultPlugins.To enable rubberband selection in a graph, use the following code.
IMPORTANT: the RubberBandHandler requires CSS styles in order to work properly. See the CSS rules in the
css/common.css
file provided within the npm package. They relate to the.mxRubberband
class.