You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
@ebrahimsakirmi I converted his package from typescript to normal react( because I dont know typescript). Then I changed the code in SHAPE.js(for typescript SHAPE.ts) to the following.
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.
The text was updated successfully, but these errors were encountered: