Przeglądaj źródła

Animations documentation

Jason Sturges 4 lat temu
rodzic
commit
75398d1379

+ 3 - 3
src/Animations/animatable.ts

@@ -187,7 +187,7 @@ export class Animatable {
 
     /**
      * Gets the source animation for a specific property
-     * @param property defines the propertyu to look for
+     * @param property defines the property to look for
      * @returns null or the source animation for the given property
      */
     public getAnimationByTargetProperty(property: string): Nullable<Animation> {
@@ -204,7 +204,7 @@ export class Animatable {
 
     /**
      * Gets the runtime animation for a specific property
-     * @param property defines the propertyu to look for
+     * @param property defines the property to look for
      * @returns null or the runtime animation for the given property
      */
     public getRuntimeAnimationByTargetProperty(property: string): Nullable<RuntimeAnimation> {
@@ -357,7 +357,7 @@ export class Animatable {
 
     /**
      * Wait asynchronously for the animation to end
-     * @returns a promise which will be fullfilled when the animation ends
+     * @returns a promise which will be fulfilled when the animation ends
      */
     public waitAsync(): Promise<Animatable> {
         return new Promise((resolve, reject) => {

+ 1 - 1
src/Animations/animation.ts

@@ -713,7 +713,7 @@ export class Animation {
     }
 
     /**
-     * Interpolates a Vector3 linearl
+     * Interpolates a Vector3 linearly
      * @param startValue Start value of the animation curve
      * @param endValue End value of the animation curve
      * @param gradient Scalar amount to interpolate

+ 2 - 2
src/Animations/animationGroup.ts

@@ -566,7 +566,7 @@ export class AnimationGroup implements IDisposable {
      * Clone the current animation group and returns a copy
      * @param newName defines the name of the new group
      * @param targetConverter defines an optional function used to convert current animation targets to new ones
-     * @returns the new aniamtion group
+     * @returns the new animation group
      */
     public clone(newName: string, targetConverter?: (oldTarget: any) => any): AnimationGroup {
         let newGroup = new AnimationGroup(newName || this.name, this._scene);
@@ -667,7 +667,7 @@ export class AnimationGroup implements IDisposable {
     }
 
     /**
-     * Creates a detailled string about the object
+     * Creates a detailed string about the object
      * @param fullDetails defines if the output string will support multiple levels of logging within scene loading
      * @returns a string representing the object
      */

+ 1 - 1
src/Animations/easing.ts

@@ -7,7 +7,7 @@ import { BezierCurve } from "../Maths/math.path";
  */
 export interface IEasingFunction {
     /**
-     * Given an input gradient between 0 and 1, this returns the corrseponding value
+     * Given an input gradient between 0 and 1, this returns the corresponding value
      * of the easing function.
      * The link below provides some of the most common examples of easing functions.
      * @see https://easings.net/