Methods
-
<private> _emitEvent(element, eventName, data)
-
Emit an event on the given element.
Parameters:
Name Type Argument Default Description elementHTMLElement DOM element to trigger the event on.
eventNameString Name of the triggered event.
dataObject <optional>
{} Custom data to attach to the event.
- Source:
-
<private> _getScale(context) → {Number}
-
Returns the scaling factor of given canvas
context. Handles high-resolution displays.Parameters:
Name Type Description contextObject - Source:
Returns:
- Type
- Number
-
<private> _isHorizontal(graph) → {boolean}
-
Returns
trueifgraphhas an horizontal orientation.Parameters:
Name Type Description graphGitGraph - Source:
Returns:
- Type
- boolean
-
<private> _isVertical(graph) → {boolean}
-
Returns
trueifgraphhas a vertical orientation.Parameters:
Name Type Description graphGitGraph - Source:
Returns:
- Type
- boolean
Type Definitions
-
commitCallback(commit, mouseOver)
-
A callback for each commit
Parameters:
Name Type Description commitCommit A commit
mouseOverboolean True, if the mouse is currently hovering over the commit
- Source: