new VertexListeners(vertex)
The constructor.
Parameters:
Name | Type | Description |
---|---|---|
vertex |
Vertex | The vertex to use these listeners on (just a backward reference). |
- Source:
Methods
addDragListener(listener) → {void}
Add a drag listener.
Parameters:
Name | Type | Description |
---|---|---|
listener |
VertexListeners~dragListener | The drag listener to add (a callback). |
- Source:
Returns:
- Type
- void
addDragListener(listener) → {void}
Add a dragStart listener.
Parameters:
Name | Type | Description |
---|---|---|
listener |
VertexListeners~dragStartListener | The drag-start listener to add (a callback). |
- Source:
Returns:
- Type
- void
addDragListener(listener) → {void}
Add a dragEnd listener.
Parameters:
Name | Type | Description |
---|---|---|
listener |
VertexListeners~dragEndListener | The drag-end listener to add (a callback). |
- Source:
Returns:
- Type
- void
fireDragEndEvent(e) → {void}
Fire a dragEnd event with the given event instance to all
installed drag-end listeners.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The drag-end event itself to be fired to all installed dragEnd listeners. |
- Source:
Returns:
- Type
- void
fireDragEvent(e) → {void}
Fire a drag event with the given event instance to all
installed drag listeners.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The drag event itself to be fired to all installed drag listeners. |
- Source:
Returns:
- Type
- void
fireDragStartEvent(e) → {void}
Fire a dragStart event with the given event instance to all
installed drag-start listeners.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The drag-start event itself to be fired to all installed dragStart listeners. |
- Source:
Returns:
- Type
- void
Type Definitions
dragEndListener(e)
The drag-end listener is a function with a single drag event param.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The (extended) drag event. |
- Source:
dragListener(e)
The drag listener is a function with a single drag event param.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The (extended) drag event. |
- Source:
dragStartListener(e)
The drag-start listener is a function with a single drag event param.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The (extended) drag event. |
- Source: