Skip to content

stop user from dragging annotation outside the canvas #92

@sbaz44

Description

@sbaz44

Hi. First of all thank you for creating this awesome package.
I just want to know whether I can stop the user from dragging the annotation outside the canvas,partially or fully.
If the user drags the annotation partially outside the canvas the X or Y value is negative(depending the direction).

Example:
{
mark:{
height: 219.27272727272725
type: "RECT"
width: 279.81818181818176
x: -75.09090909090902
y: 268.36363636363643
}
}

Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions