You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
857 B
48 lines
857 B
7 years ago
|
const autoAdjustOverflow = {
|
||
|
adjustX: 1,
|
||
|
adjustY: 1,
|
||
6 years ago
|
};
|
||
7 years ago
|
|
||
6 years ago
|
const targetOffset = [0, 0];
|
||
7 years ago
|
|
||
3 years ago
|
const placements = {
|
||
7 years ago
|
topLeft: {
|
||
|
points: ['bl', 'tl'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset,
|
||
|
},
|
||
|
topCenter: {
|
||
|
points: ['bc', 'tc'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset,
|
||
|
},
|
||
|
topRight: {
|
||
|
points: ['br', 'tr'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset,
|
||
|
},
|
||
|
bottomLeft: {
|
||
|
points: ['tl', 'bl'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset,
|
||
|
},
|
||
|
bottomCenter: {
|
||
|
points: ['tc', 'bc'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset,
|
||
|
},
|
||
|
bottomRight: {
|
||
|
points: ['tr', 'br'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset,
|
||
|
},
|
||
6 years ago
|
};
|
||
7 years ago
|
|
||
6 years ago
|
export default placements;
|