How to use the ember-animated/-private/transform.cumulativeTransform function in ember-animated

To help you get started, we’ve selected a few ember-animated examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-animation / ember-animated / addon-test-support / index.js View on Github external
export function shape(element) {
  let transform = cumulativeTransform(element);
  return {
    a: transform.a,
    b: transform.b,
    c: transform.c,
    d: transform.d
  };
}
github ember-animation / ember-animated / tests / helpers / assertions.js View on Github external
function constantShape(target, fn, message = 'shape should not change') {
  let before = cumulativeTransform(target);
  fn();
  let after = cumulativeTransform(target);
  equalShape.call(this, after, before, message);
}
github ember-animation / ember-animated / tests / helpers / assertions.js View on Github external
function constantShape(target, fn, message = 'shape should not change') {
  let before = cumulativeTransform(target);
  fn();
  let after = cumulativeTransform(target);
  equalShape.call(this, after, before, message);
}