Options
All
  • Public
  • Public/Protected
  • All
Menu

Module path-shapes

Index

Variables

default: { [ key in PathShape]: PathFunction } = ...

Functions

  • bezier(x1: number, y1: number, x2: number, y2: number): string
  • calculates d attribute for path tag from two nodes coordinates.

    Parameters

    • x1: number

      starp point x

    • y1: number

      starp point x

    • x2: number

      end point x

    • y2: number

      end point x

    Returns string

    • d attribute for
  • roundedAngles(x1: number, y1: number, x8: number, y8: number): string
  • calculates radius for angles arcs

    Parameters

    • x1: number

      start point x

    • y1: number

      start point y

    • x8: number

      end point x

    • y8: number

      end point y

    Returns string

    • function staticRadiusRoundedAngles
  • staticRadiusRoundedAngles(x1: number, y1: number, x8: number, y8: number, radius: number): string
  • calculates d attribute for path tag from two nodes coordinates.

    Parameters

    • x1: number

      start point x

    • y1: number

      start point y

    • x8: number

      end point x

    • y8: number

      end point y

    • radius: number

      angles arcs radius

    Returns string

    • d attribute for
  • straight(x1: number, y1: number, x2: number, y2: number): string
  • calculates d attribute for path tag from two nodes coordinates.

    Parameters

    • x1: number

      starp point x

    • y1: number

      starp point x

    • x2: number

      end point x

    • y2: number

      end point x

    Returns string

    • d attribute for

Generated using TypeDoc