Skip to content

Commit 51cabb6

Browse files
committed
removed temporary console logs
1 parent a5cf82b commit 51cabb6

File tree

6 files changed

+3
-17
lines changed

6 files changed

+3
-17
lines changed

src/clips/audio/audio.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export class AudioClip extends MediaClip<AudioClipProps> {
6363
reject(this.element.error ?? error);
6464
}
6565
});
66-
console.log(this.constructor.name, 'init')
6766
}
6867

6968
public update(): void | Promise<void> {
@@ -77,7 +76,6 @@ export class AudioClip extends MediaClip<AudioClipProps> {
7776
}
7877

7978
public exit(): void {
80-
console.log(this.constructor.name, 'exit')
8179
if (this.playing) {
8280
this.element.pause();
8381
};

src/clips/clip/clip.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,12 @@ export class Clip<Props extends ClipProps = ClipProps> extends EventEmitterMixin
166166
* Triggered when the clip is
167167
* added to the composition
168168
*/
169-
public async init(): Promise<void> {
170-
console.log(this.constructor.name, 'init')
171-
}
169+
public async init(): Promise<void> { }
172170

173171
/**
174172
* Triggered when the clip enters the scene
175173
*/
176-
public enter(): void {
177-
console.log(this.constructor.name, 'enter')
178-
}
174+
public enter(): void { }
179175

180176
/**
181177
* Triggered for each redraw of the scene.
@@ -188,9 +184,7 @@ export class Clip<Props extends ClipProps = ClipProps> extends EventEmitterMixin
188184
/**
189185
* Triggered when the clip exits the scene
190186
*/
191-
public exit(): void {
192-
console.log(this.constructor.name, 'exit')
193-
}
187+
public exit(): void { }
194188

195189
/**
196190
* Remove the clip from the track

src/clips/html/html.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class HtmlClip extends VisualMixin(Clip<HtmlClipProps>) {
7777
}
7878

7979
public async init(): Promise<void> {
80-
console.log(this.constructor.name, 'init')
8180
this.element.setAttribute('src', await this.source.createObjectURL());
8281

8382
await new Promise<void>((resolve, reject) => {

src/clips/image/image.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class ImageClip extends VisualMixin(Clip<ImageClipProps>) {
4242
}
4343

4444
public async init(): Promise<void> {
45-
console.log(this.constructor.name, 'init')
4645
this.element.setAttribute('src', await this.source.createObjectURL());
4746

4847
await new Promise<void>((resolve, reject) => {

src/clips/mixins/visual.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,12 @@ export function VisualMixin<T extends Constructor<BaseClass>>(Base: T) {
174174
}
175175

176176
public enter(): void {
177-
console.log(this.constructor.name, 'enter')
178177
if (this.filters && !this.view.filters) {
179178
this.view.filters = this.filters;
180179
}
181180
}
182181

183182
public exit(): void {
184-
console.log(this.constructor.name, 'exit')
185183
if (this.filters && this.view.filters) {
186184
this.view.filters = null as any;
187185
}

src/clips/video/video.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
7373
}
7474

7575
public async init(): Promise<void> {
76-
console.log(this.constructor.name, 'init')
7776
const objectURL = await this.source.createObjectURL();
7877
this.element.setAttribute('src', objectURL);
7978

@@ -117,7 +116,6 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
117116
}
118117

119118
public exit(): void {
120-
console.log(this.constructor.name, 'exit')
121119
if (this.playing) {
122120
this.element.pause();
123121
};

0 commit comments

Comments
 (0)