Function get_SVGPos_from_event

  • Get the SVG coordinate from the event (MouseEvent or TouchEvent)

    Parameters

    • evt: LocatorEvent

      the event

    • svgelem: SVGSVGElement

      the svg element

    Returns {
        x: number;
        y: number;
    }

    the SVG coordinate

    • x: number
    • y: number