Skip to content

Commit

Permalink
fix(ngx-overlay): ngx prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vapkse committed Jul 23, 2024
1 parent 5043716 commit 07a2950
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/overlay/src/connection-position-pair.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectionPositionPair, OriginConnectionPosition, OverlayConnectionPosition } from '@angular/cdk/overlay';

export class OverlayConnectionPositionPair extends ConnectionPositionPair {
export class NgxOverlayConnectionPositionPair extends ConnectionPositionPair {
public static parse(value: string): ConnectionPositionPair[] {
const values = value.trim().split(',');
const positions = new Array<ConnectionPositionPair>();
Expand All @@ -20,11 +20,11 @@ export class OverlayConnectionPositionPair extends ConnectionPositionPair {
overlayY: poss[3]
} as OverlayConnectionPosition;

positions.push(new OverlayConnectionPositionPair(originPosition, overlayPosition));
positions.push(new NgxOverlayConnectionPositionPair(originPosition, overlayPosition));
});

return positions;
}
}

export const defaultConnectionPositionPair: ConnectionPositionPair[] = OverlayConnectionPositionPair.parse('start bottom start top,start top start bottom,end bottom end top,end top end bottom');
export const defaultConnectionPositionPair: ConnectionPositionPair[] = NgxOverlayConnectionPositionPair.parse('start bottom start top,start top start bottom,end bottom end top,end top end bottom');

0 comments on commit 07a2950

Please sign in to comment.