Преглед на файлове

Fix protected overrides and restore IKeyFrame interface.

Jumar Macato преди 7 години
родител
ревизия
e11f087b0b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/Avalonia.Animation/DoubleKeyFrames.cs
  2. 1 1
      src/Avalonia.Animation/IKeyFrames.cs

+ 1 - 1
src/Avalonia.Animation/DoubleKeyFrames.cs

@@ -16,7 +16,7 @@ namespace Avalonia.Animation
     {
 
         /// <inheritdocs/>
-        public override double DoInterpolation(double t)
+        protected override double DoInterpolation(double t)
         {
             var pair = GetKFPairAndIntraKFTime(t);
             double y0 = pair.KFPair.FirstKeyFrame.Value;

+ 1 - 1
src/Avalonia.Animation/IKeyFrames.cs

@@ -7,7 +7,7 @@ namespace Avalonia.Animation
     /// <summary>
     /// Interface for Keyframe group object
     /// </summary>
-    internal interface IKeyFrames
+    public interface IKeyFrames
     {
         /// <summary>
         /// Applies the current KeyFrame group to the specified control.