code: function getAlign(d) {
      var align = d.style.font.align;
      if (align == "center") {
        return "middle";
      }
      else if ((align == "left" && !rtl) || (align == "right" && rtl)) {
        return "start";
      }
      else if ((align == "left" && rtl) || (align == "right" && !rtl)) {
        return "end";
      }
      return align;
    }
docs: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Wrap text and calculate positions, then transition style and opacity ----------------------------------------------------------------------------