drawArrows method

dynamic drawArrows(
  1. Node<E> node,
  2. Canvas canvas
)

This function is called recursively to draw the arrows for each node and the nodes below it. i want to add a border radius to the arrows later on, the commented code is a wrong implementation of that. There is a lot of things i want to change here, the way the arrows are drawn, style, and animations.

Implementation

drawArrows(Node<E> node, Canvas canvas) {
  switch (controller.orientation) {
    case OrgChartOrientation.topToBottom:
      drawArrowsTopToBottom(node, canvas);
      break;
    case OrgChartOrientation.leftToRight:
      drawArrowsLeftToRight(node, canvas);
      break;
    default:
  }
}