Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function shape(element) {
let transform = cumulativeTransform(element);
return {
a: transform.a,
b: transform.b,
c: transform.c,
d: transform.d
};
}
function constantShape(target, fn, message = 'shape should not change') {
let before = cumulativeTransform(target);
fn();
let after = cumulativeTransform(target);
equalShape.call(this, after, before, message);
}
function constantShape(target, fn, message = 'shape should not change') {
let before = cumulativeTransform(target);
fn();
let after = cumulativeTransform(target);
equalShape.call(this, after, before, message);
}