Example #1
0
        public static bool StartAnimationInlineScale(VisualElement element, ref ComputedStyle computedStyle, StyleScale scale, int durationMs, int delayMs, Func <float, float> easingCurve)
        {
            var to     = scale.keyword == StyleKeyword.Initial ? InitialStyle.scale : scale.value;
            var result = element.styleAnimation.Start(StylePropertyId.Scale, computedStyle.transformData.Read().scale, to, durationMs, delayMs, easingCurve);

            if (result && (element.usageHints & UsageHints.DynamicTransform) == 0)
            {
                element.usageHints |= UsageHints.DynamicTransform;
            }

            return(result);
        }
Example #2
0
        public static bool StartAnimationInlineScale(VisualElement element, ref ComputedStyle computedStyle, StyleScale scale, int durationMs, int delayMs, Func <float, float> easingCurve)
        {
            var to = scale.keyword == StyleKeyword.Initial ? InitialStyle.scale : scale.value;

            return(element.styleAnimation.Start(StylePropertyId.Scale, computedStyle.transformData.Read().scale, to, durationMs, delayMs, easingCurve));
        }
Example #3
0
 /// <undoc/>
 public bool Equals(StyleScale other)
 {
     return(other == this);
 }