Converts the specified point (x, y) using the offset of the specified container and returns a new Point with the result.

let pt = mxUtils.convertPoint(graph.container,
mxEvent.getClientX(evt), mxEvent.getClientY(evt));
  • Parameters

    • container: HTMLElement

      DOM node to use for the offset.

    • x: number

      X-coordinate of the point to be converted.

    • y: number

      Y-coordinate of the point to be converted.

    Returns Point