Holds the value of the x argument in the last call to update.
Holds the value of the y argument in the last call to update.
Specifies the default opacity to be used for the rubberband div.
Valid values are between 0
and 100
.
Holds the DIV element which is currently visible.
Specifies if events are handled.
Optional fade out effect.
Holds the DIV element which is used to display the rubberband.
Static
pluginCreates the rubberband selection shape.
Resets the state of this handler and selects the current region for the given event.
Returns true if this handler is active.
Optional
sender: EventSourceOptional
me: InternalMouseEventCreates the rubberband selection shape.
Returns true if the given MouseEvent should start rubberband selection. This implementation returns true if the alt key is pressed.
Handles 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 the rubberband selection.
Handles the event by selecting the region of the rubberband using Graph#selectRegion.
Destroys the handler and all its resources and DOM nodes. This does normally not need to be called, it is called automatically when the window unloads.
Computes the bounding box and updates the style of the div
.
Resets the state of the rubberband selection.
Enables or disables event handling. This implementation updatesenabled.
Creates the rubberband selection shape.
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.