@samatawy/diagrams
    Preparing search index...

    Interface DiagramBackgroundClick

    Defines the structure of a diagram background click event, which includes the coordinates of the click in both canvas and world space. This interface can be used to provide detailed information about background click interactions in the diagram, allowing for more specific handling of such events, such as deselecting nodes or opening context menus.

    interface DiagramBackgroundClick {
        canvas: IPoint;
        world: IPoint;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    canvas: IPoint

    The coordinates of the click in canvas space, which represents the position of the click relative to the diagram's viewport.

    world: IPoint

    The coordinates of the click in world space, which represents the position of the click in the diagram's coordinate system, taking into account any transformations such as panning and zooming.