Practic Force Directed - v1.0.0
    Preparing search index...
    • Turn a pointer position on the page into graph coordinates.

      Parameters

      • canvas: HTMLCanvasElement

        The graph's canvas, which may not start at the page origin, so positions are taken from its bounds.

      • camera: Camera

        Camera the graph is seen through.

      • x: number

        Horizontal page position, in pixels.

      • y: number

        Vertical page position, in pixels.

      Returns Vector2