Add interaction between edit grid and inventory
This commit is contained in:
parent
469121e18a
commit
986c0479f1
9 changed files with 51 additions and 14 deletions
|
@ -39,6 +39,10 @@ export class Rect {
|
|||
return [this.x, this.y, this.w, this.h];
|
||||
}
|
||||
|
||||
get end() {
|
||||
return [this.x + this.w, this.y + this.h];
|
||||
}
|
||||
|
||||
get center() {
|
||||
return [this.x + this.w / 2, this.y + this.h / 2];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue