All files / common/models positions.model.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115            1x             1x             1x             1x             1x             1x             1x             1x             1x                                                                                                        
/**
 * Copyright (c) Siemens 2016 - 2025
 * SPDX-License-Identifier: MIT
 */
import { ConnectionPositionPair } from '@angular/cdk/overlay';
 
const positionStart: ConnectionPositionPair = {
  overlayX: 'end',
  overlayY: 'center',
  originX: 'start',
  originY: 'center'
};
 
const positionEnd: ConnectionPositionPair = {
  overlayX: 'start',
  overlayY: 'center',
  originX: 'end',
  originY: 'center'
};
 
export const positionTopCenter: ConnectionPositionPair = {
  overlayX: 'center',
  overlayY: 'bottom',
  originX: 'center',
  originY: 'top'
};
 
export const positionTopStart: ConnectionPositionPair = {
  overlayX: 'start',
  overlayY: 'bottom',
  originX: 'center',
  originY: 'top'
};
 
export const positionTopEnd: ConnectionPositionPair = {
  overlayX: 'end',
  overlayY: 'bottom',
  originX: 'center',
  originY: 'top'
};
 
export const positionBottomCenter: ConnectionPositionPair = {
  overlayX: 'center',
  overlayY: 'top',
  originX: 'center',
  originY: 'bottom'
};
 
export const positionBottomStart: ConnectionPositionPair = {
  overlayX: 'start',
  overlayY: 'top',
  originX: 'center',
  originY: 'bottom'
};
 
export const positionBottomEnd: ConnectionPositionPair = {
  overlayX: 'end',
  overlayY: 'top',
  originX: 'center',
  originY: 'bottom'
};
 
export const positions = {
  top: [
    positionTopCenter,
    positionTopStart,
    positionTopEnd,
    positionBottomCenter,
    positionBottomStart,
    positionBottomEnd,
    positionStart,
    positionEnd
  ],
  end: [
    positionEnd,
    positionTopCenter,
    positionTopStart,
    positionTopEnd,
    positionBottomCenter,
    positionBottomStart,
    positionBottomEnd,
    positionStart
  ],
  bottom: [
    positionBottomCenter,
    positionBottomStart,
    positionBottomEnd,
    positionTopCenter,
    positionTopStart,
    positionTopEnd,
    positionStart,
    positionEnd
  ],
  start: [
    positionStart,
    positionTopCenter,
    positionTopStart,
    positionTopEnd,
    positionBottomCenter,
    positionBottomStart,
    positionBottomEnd,
    positionEnd
  ],
  auto: [
    positionTopCenter,
    positionTopStart,
    positionTopEnd,
    positionBottomCenter,
    positionBottomStart,
    positionBottomEnd,
    positionStart,
    positionEnd
  ]
};