public static bool StartAnimationInlineRotate(VisualElement element, ref ComputedStyle computedStyle, StyleRotate rotate, int durationMs, int delayMs, Func <float, float> easingCurve) { var to = rotate.keyword == StyleKeyword.Initial ? InitialStyle.rotate : rotate.value; var result = element.styleAnimation.Start(StylePropertyId.Rotate, computedStyle.transformData.Read().rotate, to, durationMs, delayMs, easingCurve); if (result && (element.usageHints & UsageHints.DynamicTransform) == 0) { element.usageHints |= UsageHints.DynamicTransform; } return(result); }
public static bool StartAnimationInlineRotate(VisualElement element, ref ComputedStyle computedStyle, StyleRotate rotate, int durationMs, int delayMs, Func <float, float> easingCurve) { var to = rotate.keyword == StyleKeyword.Initial ? InitialStyle.rotate : rotate.value; return(element.styleAnimation.Start(StylePropertyId.Rotate, computedStyle.transformData.Read().rotate, to, durationMs, delayMs, easingCurve)); }
/// <undoc/> public bool Equals(StyleRotate other) { return(other == this); }