Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Helpers

a class with various function to help.

Hierarchy

  • Helpers

Index

Methods

Static pageToSVG

  • pageToSVG(p: Point, svgSelection: Selection<SVGSVGElement, any, any, any>): Point
  • Return the coordinate of a point on screen in a svg

    Parameters

    • p: Point

      The point on screen.

    • svgSelection: Selection<SVGSVGElement, any, any, any>

    Returns Point

Static pointsToDAttr

  • pointsToDAttr(pts: Point[]): string
  • Convert a list of points to the d attribute of an svg path.

    Parameters

    • pts: Point[]

      List of points to convert.

    Returns string

    d attribute.

Generated using TypeDoc