EndPoint

An endpoint is function representing an element that is appended to the from and to nodes of an edgestyle.

This function serves two purposes. First, it ensures that the element is registered on a displays defs element. Second, it returns a function which appends a use element that references its arrow head definition. This function, when called with no arguments returns its length.

DEFINITION

function ( this:thinkmap.display.Display , thinkmap.graph.Edge , thinkmap.graph.Node ) ⇒ function ( this:thinkmap.display.Display , thinkmap.geom.Point , thinkmap.geom.Point ) ⇒ number