@maxgraph/core

    Function convertPoint

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

      const pt = styleUtils.convertPoint(graph.container, eventUtils.getClientX(evt), eventUtils.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

    MMNEPVFCICPMFPCPTTAAATR