Draws borders around a node with a given array of border styles

  • Parameters

    • ctx: CanvasRenderingContext2D

      The canvas context

    • x: number

      The x coordinate of the node

    • y: number

      The y coordinate of the node

    • innerRadius: number

      The inner radius of the node without any border

    • borderStyles: {
          color: string;
          width: number;
      }[]

      An array of border styles

    Returns void