@@ -7,7 +7,7 @@ import { baseTransform } from '@/store/stageInterface';
77import { generateTimelineObj } from '@/Core/controller/stage/pixi/animations/timeline' ;
88import { WebGAL } from '@/Core/WebGAL' ;
99import PixiStage , { IAnimationObject } from '@/Core/controller/stage/pixi/PixiController' ;
10- import { DEFALUT_FIG_IN_DURATION , DEFALUT_FIG_OUT_DURATION } from '../constants' ;
10+ import { DEFAULT_FIG_IN_DURATION , DEFAULT_FIG_OUT_DURATION } from '../constants' ;
1111
1212// eslint-disable-next-line max-params
1313export function getAnimationObject ( animationName : string , target : string , duration : number , writeDefault : boolean ) {
@@ -57,7 +57,7 @@ export function getEnterExitAnimation(
5757 animation : IAnimationObject | null ;
5858} {
5959 if ( type === 'enter' ) {
60- let duration = DEFALUT_FIG_IN_DURATION ;
60+ let duration = DEFAULT_FIG_IN_DURATION ;
6161 if ( isBg ) {
6262 duration = 1500 ;
6363 }
@@ -70,18 +70,18 @@ export function getEnterExitAnimation(
7070 const transformState = webgalStore . getState ( ) . stage . effects ;
7171 const targetEffect = transformState . find ( ( effect ) => effect . target === target ) ;
7272
73- const animarionName = webgalStore
73+ const animationName = webgalStore
7474 . getState ( )
7575 . stage . animationSettings . find ( ( setting ) => setting . target === target ) ?. enterAnimationName ;
76- if ( animarionName && ! targetEffect ) {
76+ if ( animationName && ! targetEffect ) {
7777 logger . debug ( '取代默认进入动画' , target ) ;
78- animation = getAnimationObject ( animarionName , realTarget ?? target , getAnimateDuration ( animarionName ) , false ) ;
79- duration = getAnimateDuration ( animarionName ) ;
78+ animation = getAnimationObject ( animationName , realTarget ?? target , getAnimateDuration ( animationName ) , false ) ;
79+ duration = getAnimateDuration ( animationName ) ;
8080 }
8181 return { duration, animation } ;
8282 } else {
8383 // exit
84- let duration = DEFALUT_FIG_OUT_DURATION ;
84+ let duration = DEFAULT_FIG_OUT_DURATION ;
8585 if ( isBg ) {
8686 duration = 1500 ;
8787 }
@@ -90,13 +90,13 @@ export function getEnterExitAnimation(
9090 ?. exitDuration ?? duration ;
9191 // 走默认动画
9292 let animation : IAnimationObject | null = generateUniversalSoftOffAnimationObj ( realTarget ?? target , duration ) ;
93- const animarionName = webgalStore
93+ const animationName = webgalStore
9494 . getState ( )
9595 . stage . animationSettings . find ( ( setting ) => setting . target + '-off' === target ) ?. exitAnimationName ;
96- if ( animarionName ) {
96+ if ( animationName ) {
9797 logger . debug ( '取代默认退出动画' , target ) ;
98- animation = getAnimationObject ( animarionName , realTarget ?? target , getAnimateDuration ( animarionName ) , false ) ;
99- duration = getAnimateDuration ( animarionName ) ;
98+ animation = getAnimationObject ( animationName , realTarget ?? target , getAnimateDuration ( animationName ) , false ) ;
99+ duration = getAnimateDuration ( animationName ) ;
100100 }
101101 return { duration, animation } ;
102102 }
0 commit comments