Jelajahi Sumber

Merge pull request #9700 from jasonsturges/doc/actions

Actions documentation
sebavan 4 tahun lalu
induk
melakukan
a68dd9a3ce

+ 1 - 1
src/Actions/abstractActionManager.ts

@@ -122,7 +122,7 @@ export abstract class AbstractActionManager implements IDisposable {
     /**
      * Does exist one action manager that handles actions of a given trigger
      * @param trigger defines the trigger to be tested
-     * @return a boolean indicating whether the trigger is handeled by at least one action manager
+     * @return a boolean indicating whether the trigger is handled by at least one action manager
     **/
     public static HasSpecificTrigger(trigger: number): boolean {
         for (var t in AbstractActionManager.Triggers) {

+ 1 - 1
src/Actions/directActions.ts

@@ -154,7 +154,7 @@ export class SetValueAction extends Action {
     }
 
     /**
-     * Execute the action and set the targetted property to the desired value.
+     * Execute the action and set the targeted property to the desired value.
      */
     public execute(): void {
         this._effectiveTarget[this._property] = this.value;

+ 1 - 1
src/Actions/interpolateValueAction.ts

@@ -54,7 +54,7 @@ export class InterpolateValueAction extends Action {
      * @param target defines the object containing the value to interpolate
      * @param propertyPath defines the path to the property in the target object
      * @param value defines the target value at the end of the interpolation
-     * @param duration deines the time it will take for the property to interpolate to the value.
+     * @param duration defines the time it will take for the property to interpolate to the value.
      * @param condition defines the trigger related conditions
      * @param stopOtherAnimations defines if the other scene animations should be stopped when the action has been triggered
      * @param onInterpolationDone defines a callback raised once the interpolation animation has been done