A linear edge style draws edges between two nodes as a straight line.
display.template('edge').as(thinkmap.display.edgestyle.linear())
display.template('edge').as(
thinkmap.display.edgestyle
.linear()
.anchorFrom(thinkmap.display.anchor.midpoint())
.anchorTo(thinkmap.display.anchor.midpoint())
);
Sets or gets the anchor used on the from node.
If arguments are passed in, they are used to set the anchor and the EdgeStyle is returned. If no arguments are passed in, the anchor function is returned.
the function used to calculate the edges from anchor point
Sets or gets the anchor used on the to node.
If arguments are passed in, they are used to set the anchor and the EdgeStyle is returned. If no arguments are passed in, the anchor function is returned.
the function used to calculate the edges 'from' anchor point
Sets or gets the endpoint used on the from node
If arguments are passed in, they are used to set the endpoint and the EdgeStyle is returned. If no arguments are passed in, the endpoint function is returned.
the function used to calculate the edges from endpoint
Sets or gets the endpoint used on the to node
If arguments are passed in, they are used to set the endpoint and the EdgeStyle is returned. If no arguments are passed in, the endpoint function is returned.
the function used to calculate the edges 'to' endpoint
This method is called by the display to render the edge. This is not meant to be called directly. When creating your own edge styles, you would implement this method yourself so that the display can render it onto an edge.
the display that will render the edge
the edge will be rendered by this edge style