Members
CURRENT_URL
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
Methods
clickHandler(e, sigmaInstance)
The handler listening to the 'click' mouse event. It will redispatch the
click event, but with normalized X and Y coordinates.
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A mouse event. |
sigmaInstance |
- Source:
downHandler(e, sigmaInstance)
The handler listening to the 'down' mouse event. It will start observing
the mouse position for dragging the graph.
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A mouse event. |
sigmaInstance |
- Source:
moveHandler(e, sigmaInstance)
The handler listening to the 'move' mouse event. It will effectively
drag the graph.
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A mouse event. |
sigmaInstance |
- Source:
translateZoom(ratio, sigmaInstance) → {number}
converts sigma-zoom ratio to fabric-zoom ratio
Parameters:
Name | Type | Description |
---|---|---|
ratio |
||
sigmaInstance |
- Source:
Returns:
- Type
- number
upHandler(e, sigmaInstance)
The handler listening to the 'up' mouse event. It will stop dragging the
graph.
Parameters:
Name | Type | Description |
---|---|---|
e |
event | A mouse event. |
sigmaInstance |
- Source:
wheelHandler(ev, sigmaInstance, canvas) → {boolean}
The handler listening to the 'wheel' mouse event. It will basically zoom
in or not into the graph.
Parameters:
Name | Type | Description |
---|---|---|
ev |
event | A propagated event. |
sigmaInstance |
||
canvas |
- Source:
Returns:
- Type
- boolean