Added multi select using ctrl

This commit is contained in:
Unick Soft
2020-05-05 20:23:55 +02:00
parent 42c592fe2f
commit 6e17b9719c
12 changed files with 254 additions and 21 deletions

View File

@@ -140,3 +140,9 @@ Rect.prototype.top = function()
{
return this.minPoint.y;
};
Rect.prototype.isIn = function(v)
{
return this.minPoint.x <= v.x && this.minPoint.y <= v.y &&
this.maxPoint.x > v.x && this.maxPoint.y > v.y;
};