Skip to content

Commit a4783a5

Browse files
committed
fixed issues with build
1 parent 4b01cb3 commit a4783a5

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/clips/mask/roundRectangleMask.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {Graphics} from "pixi.js";
21
import { RoundRectangleMaskProps } from "./mask.types";
2+
import { Mask } from "./mask";
33

4-
export class RoundRectangleMask extends Graphics {
4+
export class RoundRectangleMask extends Mask {
55
private _rectangleWidth: number;
66
private _rectangleHeight: number;
77
private _borderRadius: number;

src/clips/mask/starMask.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
import {Graphics} from "pixi.js";
21
import { StarMaskProps } from "./mask.types";
32
import { Mask } from "./mask";
43

5-
6-
7-
84
export class StarMask extends Mask {
95

106
private _numberOfPoints: number;

src/tracks/media/media.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { MediaTrack } from './media';
1313
import { AudioSource } from '../../sources';
1414

1515
class MockMediaClip extends MediaClip {
16-
constructor(duration: number, range: [Timestamp, Timestamp], silences: { start: Timestamp, stop: Timestamp }[], element: HTMLMediaElement) {
16+
constructor(range: [Timestamp, Timestamp], silences: { start: Timestamp, stop: Timestamp }[], element: HTMLMediaElement) {
1717
super();
1818
this.duration.millis = range[1].millis - range[0].millis;
1919
this.range = range;
@@ -37,15 +37,15 @@ describe('The Media Track Object', () => {
3737
});
3838

3939
it('ignores no silences', async () => {
40-
const clip = new MockMediaClip(30000, [new Timestamp(10000), new Timestamp(20000)], [], new Audio());
40+
const clip = new MockMediaClip([new Timestamp(10000), new Timestamp(20000)], [], new Audio());
4141
clip.duration.frames = 30;
4242
await track.add(clip);
4343
await track.removeSilences();
4444
expect(track.clips.length).toBe(1);
4545
});
4646

4747
it('ignores not applicable silences', async () => {
48-
const clip = new MockMediaClip(30000, [new Timestamp(10000), new Timestamp(20000)], [
48+
const clip = new MockMediaClip([new Timestamp(10000), new Timestamp(20000)], [
4949
{
5050
start: new Timestamp(0),
5151
stop: new Timestamp(500),
@@ -63,7 +63,7 @@ describe('The Media Track Object', () => {
6363
});
6464

6565
it('removes silences', async () => {
66-
const clip = new MockMediaClip(30000, [new Timestamp(10000), new Timestamp(20000)], [
66+
const clip = new MockMediaClip([new Timestamp(10000), new Timestamp(20000)], [
6767
{
6868
start: new Timestamp(0),
6969
stop: new Timestamp(10050),

0 commit comments

Comments
 (0)