Components Interactions Examples Tutorials API FAQ
Options
Menu

Class ClientToSVGTranslator

Hierarchy

  • ClientToSVGTranslator

Index

Constructors

constructor

Properties

Private _measureRect

_measureRect: any

Private _svg

_svg: any

Static Private _TRANSLATOR_KEY

_TRANSLATOR_KEY: any

Methods

computePosition

  • computePosition(clientX: number, clientY: number): Point
  • Computes the position relative to the in svg-coordinate-space.

    Parameters

    • clientX: number
    • clientY: number

    Returns Point

insideSVG

  • insideSVG(e: Event): boolean
  • Checks whether event happened inside element.

    Parameters

    • e: Event

    Returns boolean

Static getTranslator

  • Returns the ClientToSVGTranslator for the containing elem. If one already exists on that , it will be returned; otherwise, a new one will be created.

    Parameters

    • elem: SVGElement

    Returns ClientToSVGTranslator

Generated using TypeDoc