File tree Expand file tree Collapse file tree 6 files changed +3
-17
lines changed Expand file tree Collapse file tree 6 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ export class AudioClip extends MediaClip<AudioClipProps> {
63
63
reject ( this . element . error ?? error ) ;
64
64
}
65
65
} ) ;
66
- console . log ( this . constructor . name , 'init' )
67
66
}
68
67
69
68
public update ( ) : void | Promise < void > {
@@ -77,7 +76,6 @@ export class AudioClip extends MediaClip<AudioClipProps> {
77
76
}
78
77
79
78
public exit ( ) : void {
80
- console . log ( this . constructor . name , 'exit' )
81
79
if ( this . playing ) {
82
80
this . element . pause ( ) ;
83
81
} ;
Original file line number Diff line number Diff line change @@ -166,16 +166,12 @@ export class Clip<Props extends ClipProps = ClipProps> extends EventEmitterMixin
166
166
* Triggered when the clip is
167
167
* added to the composition
168
168
*/
169
- public async init ( ) : Promise < void > {
170
- console . log ( this . constructor . name , 'init' )
171
- }
169
+ public async init ( ) : Promise < void > { }
172
170
173
171
/**
174
172
* Triggered when the clip enters the scene
175
173
*/
176
- public enter ( ) : void {
177
- console . log ( this . constructor . name , 'enter' )
178
- }
174
+ public enter ( ) : void { }
179
175
180
176
/**
181
177
* Triggered for each redraw of the scene.
@@ -188,9 +184,7 @@ export class Clip<Props extends ClipProps = ClipProps> extends EventEmitterMixin
188
184
/**
189
185
* Triggered when the clip exits the scene
190
186
*/
191
- public exit ( ) : void {
192
- console . log ( this . constructor . name , 'exit' )
193
- }
187
+ public exit ( ) : void { }
194
188
195
189
/**
196
190
* Remove the clip from the track
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ export class HtmlClip extends VisualMixin(Clip<HtmlClipProps>) {
77
77
}
78
78
79
79
public async init ( ) : Promise < void > {
80
- console . log ( this . constructor . name , 'init' )
81
80
this . element . setAttribute ( 'src' , await this . source . createObjectURL ( ) ) ;
82
81
83
82
await new Promise < void > ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ export class ImageClip extends VisualMixin(Clip<ImageClipProps>) {
42
42
}
43
43
44
44
public async init ( ) : Promise < void > {
45
- console . log ( this . constructor . name , 'init' )
46
45
this . element . setAttribute ( 'src' , await this . source . createObjectURL ( ) ) ;
47
46
48
47
await new Promise < void > ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change @@ -174,14 +174,12 @@ export function VisualMixin<T extends Constructor<BaseClass>>(Base: T) {
174
174
}
175
175
176
176
public enter ( ) : void {
177
- console . log ( this . constructor . name , 'enter' )
178
177
if ( this . filters && ! this . view . filters ) {
179
178
this . view . filters = this . filters ;
180
179
}
181
180
}
182
181
183
182
public exit ( ) : void {
184
- console . log ( this . constructor . name , 'exit' )
185
183
if ( this . filters && this . view . filters ) {
186
184
this . view . filters = null as any ;
187
185
}
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
73
73
}
74
74
75
75
public async init ( ) : Promise < void > {
76
- console . log ( this . constructor . name , 'init' )
77
76
const objectURL = await this . source . createObjectURL ( ) ;
78
77
this . element . setAttribute ( 'src' , objectURL ) ;
79
78
@@ -117,7 +116,6 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
117
116
}
118
117
119
118
public exit ( ) : void {
120
- console . log ( this . constructor . name , 'exit' )
121
119
if ( this . playing ) {
122
120
this . element . pause ( ) ;
123
121
} ;
You can’t perform that action at this time.
0 commit comments