class_docstr: Render dependency parses as SVGs.
class_docstr_tok: ["Render","dependency","parses","as","SVGs","."]
docstr: Render individual arrow head.
  
  direction (str): Arrow direction, 'left' or 'right'.
  x (int): X-coordinate of arrow start point.
  y (int): Y-coordinate of arrow start and end point.
  end (int): X-coordinate of arrow end point.
  RETURNS (str): Definition of the arrow head path ('d' attribute).
docstr_tok: ["Render","individual","arrow","head",".","direction","(","str",")",":","Arrow","direction",",","'left","'","or","'right","'",".","x","(","int",")",":","X-coordinate","of","arrow","start","point",".","y","(","int",")",":","Y-coordinate","of","arrow","start","and","end","point",".","end","(","int",")",":","X-coordinate","of","arrow","end","point",".","RETURNS","(","str",")",":","Definition","of","the","arrow","head","path","(","'d","'","attribute",")","."]
code: def get_arrowhead(
      self, direction: str, x: int, y: int, end: int
  ) -> str:
      """Render individual arrow head.
  
      direction (str): Arrow direction, 'left' or 'right'.
      x (int): X-coordinate of arrow start point.
      y (int): Y-coordinate of arrow start and end point.
      end (int): X-coordinate of arrow end point.
      RETURNS (str): Definition of the arrow head path ('d' attribute).
      """
      if direction == "left":
          p1, p2, p3 = (
              x,
              x - self.arrow_width + 2,
              x + self.arrow_width - 2,
          )
      else:
          p1, p2, p3 = (
              end,
              end + self.arrow_width - 2,
              end - self.arrow_width + 2,
          )
      return f"M{p1},{y + 2} L{p2},{y - self.arrow_width} {p3},{y - self.arrow_width}"
  
imports: import uuid
  from typing import Any, Dict, List, Optional, Tuple, Union
  from ..errors import Errors
  from ..util import escape_html, minify_html, registry
  from .templates import TPL_DEP_ARCS, TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA, TPL_ENT, TPL_ENT_RTL, TPL_ENTS, TPL_FIGURE, TPL_KB_LINK, TPL_PAGE, TPL_SPAN, TPL_SPAN_RTL, TPL_SPAN_SLICE, TPL_SPAN_SLICE_RTL, TPL_SPAN_START, TPL_SPAN_START_RTL, TPL_SPANS, TPL_TITLE
label_desc: Use image node_id 7 for calling the DependencyRenderer obj's underlying member method code with example usage: obj.get_arrowhead(direction, x, y, end) and returns: str, p1, str, unknown, str, p2, str, unknown, str, p3, str, unknown