The snap line tool is a tool which take part of displace action. It shows a line for placing the node according to its neighbors positions. It can be integrated as follows:
var data:DisplaceActionData = new DisplaceActionData(); data.useMonoMode = useMonoMode.selected; data.elementsToDisplace = true; visualizer.activateAction(DisplaceAction.ID,data); visualizer.updateAction(DisplaceAction.ID,data);The following print screen shows how a snap line tool works:
In this case, the tool shows a line between the displaced node and its nearest neighbor.