Function clientPos_to_svgPos

  • Convert client position to SVG position

    Parameters

    • clientPos: {
          x: number;
          y: number;
      }

      the client position

      • x: number
      • y: number
    • svgelem: SVGSVGElement

      the svg element

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number