setDirectionStrategy() {
    const isVertical =
      this.options.hierarchical.direction === "UD" ||
      this.options.hierarchical.direction === "DU";

    if (isVertical) {
      this.direction = new VerticalStrategy(this);
    } else {
      this.direction = new HorizontalStrategy(this);
    }
  }
Set the strategy pattern for handling the coordinates given the current direction.

The individual instances contain all the operations and data specific to a layout direction.
@param {Node} node
@param {{x: number, y: number}} position
@param {number} level
@param {boolean} [doNotUpdate]
@private