MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _canBeMerged

Method _canBeMerged

packages/core/ui/animation/index.ios.ts:691–695  ·  view source on GitHub ↗
(animation1: PropertyAnimation, animation2: PropertyAnimation)

Source from the content-addressed store, hash-verified

689 }
690
691 private static _canBeMerged(animation1: PropertyAnimation, animation2: PropertyAnimation) {
692 const result = Animation._isAffineTransform(animation1.property) && Animation._isAffineTransform(animation2.property) && animation1.target === animation2.target && animation1.duration === animation2.duration && animation1.delay === animation2.delay && animation1.iterations === animation2.iterations && animation1.curve === animation2.curve;
693
694 return result;
695 }
696
697 private static _mergeAffineTransformAnimations(propertyAnimations: Array<PropertyAnimation>): Array<PropertyAnimation> {
698 const result = new Array<PropertyAnimation>();

Callers 1

Calls 1

_isAffineTransformMethod · 0.80

Tested by

no test coverage detected