优化目录结构
This commit is contained in:
16
client/test/helpers/domrect.js
Normal file
16
client/test/helpers/domrect.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// mock class
|
||||
|
||||
export class DOMRect {
|
||||
constructor(x, y, width, height) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
get left() {
|
||||
return this.x;
|
||||
}
|
||||
get top() {
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user