Skip to content

Commit

Permalink
Merge pull request #323 from plamoni/patch-1
Browse files Browse the repository at this point in the history
Update ngu-carousel.ts
  • Loading branch information
santoshyadavdev authored Jan 26, 2021
2 parents cbdb3e9 + 78ae76c commit d77197d
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions projects/ngu-carousel/src/lib/ngu-carousel/ngu-carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,30 @@ export class Touch {
velocity: number;
}

export class Transfrom {
// Interface is declared to prevent property-minification
// See: https://github.com/uiuniversal/ngu-carousel/issues/322
declare interface TransformInterface {
xs: number;
sm: number;
md: number;
lg: number;
xl?: number;
all: number;
}

export class Transfrom implements TransformInterface {
public xl? = 0;
constructor(public xs = 0, public sm = 0, public md = 0, public lg = 0, public all = 0) {}
}

// Interface is declared to prevent property-minification
// See: https://github.com/uiuniversal/ngu-carousel/issues/322
declare interface BreakpointsInterface {
sm: number;
md: number;
lg: number;
xl: number;
}

/**
* Default values
Expand All @@ -70,7 +89,7 @@ export class Transfrom {
* Bootstrap values:
* {sm: 576, md: 768, lg: 992, xl: 1200}
*/
export class Breakpoints {
export class Breakpoints implements BreakpointsInterface {
constructor(public sm = 768, public md = 992, public lg = 1200, public xl = 1200) {}
}

Expand Down

0 comments on commit d77197d

Please sign in to comment.