Class: GlobalView

GlobalView

View for two matchings and global informations.

Constructor

new GlobalView(leftMatchingView, rightMatchingView, infosHtmlElement, listMatchingsHtmlElement)

Construct a view for draw two matchings and print global informations.
Parameters:
Name Type Description
leftMatchingView Matching
rightMatchingView Matching
infosHtmlElement HTMLElement that wil contains global informations
listMatchingsHtmlElement HTMLElement that wil contains list of matchings
Source:

Methods

resizeListMatchings()

Resize the container of list matchings.
Source:

update(Point, updateMatchings)

Update the two matching views and the global informations. If updateMatchings then update also matchings.
Parameters:
Name Type Description
Point currentPoint
updateMatchings boolean
Source:

updateInfosCurrentPoint(currentPoint)

Update the coordinates of the current point or remove it, and update the number of points.
Parameters:
Name Type Default Description
currentPoint Point null
Source: