File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ describe('Tests for Transformation Action -- Effect', () => {
24
24
. effect ( Effect . blackwhite ( 10 ) )
25
25
. effect ( Effect . blackwhite ( ) . threshold ( 20 ) )
26
26
. effect ( Effect . fadeIn ( 100 ) )
27
- . effect ( Effect . fadeIn ( ) . length ( 5 ) )
27
+ . effect ( Effect . fadeIn ( ) . duration ( 5 ) )
28
28
. effect ( Effect . fadeOut ( 100 ) )
29
29
. effect ( Effect . fadeOut ( ) . duration ( 5 ) )
30
30
. effect ( Effect . grayscale ( ) )
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {Pixelate} from "./effect/pixelate/pixelate";
21
21
import { ImageSource } from "../values/source/sourceTypes/ImageSource" ;
22
22
import { EffectActionWithStrength } from "./effect/EffectActions/EffectActionWithStrength" ;
23
23
import { BlackwhiteEffectAction } from "./effect/leveled/blackwhite" ;
24
+ import { FadeInEffectAction } from "./effect/leveled/fadeIn" ;
24
25
25
26
26
27
/**
@@ -214,10 +215,10 @@ function accelerate(speedIncreasePercent?: number): AccelerationEffectAction {
214
215
* For details and examples, see 'Fade in and out' in the Video Transformations guide.
215
216
* @memberOf Actions.Effect
216
217
* @param {number } fadeLength The time in ms for the fade to occur. (Server default: 2000)
217
- * @return {EffectActionWithLength }
218
+ * @return {FadeInEffectAction }
218
219
*/
219
- function fadeIn ( fadeLength ?: number ) :EffectActionWithLength {
220
- return new EffectActionWithLength ( 'fade' , fadeLength ) ;
220
+ function fadeIn ( fadeLength ?: number ) :FadeInEffectAction {
221
+ return new FadeInEffectAction ( 'fade' , fadeLength ) ;
221
222
}
222
223
223
224
You can’t perform that action at this time.
0 commit comments