mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
remove rounding from getClientRect
This commit is contained in:
@@ -384,3 +384,9 @@ export const assertAlmostEqual = function (val1, val2) {
|
||||
throw new Error('Expected ' + val1 + ' to be almost equal to ' + val2);
|
||||
}
|
||||
};
|
||||
|
||||
export const assertAlmostDeepEqual = function (obj1, obj2) {
|
||||
for (var key1 in obj1) {
|
||||
assertAlmostEqual(obj1[key1], obj2[key1]);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user