2018-03-07 14:21:55 +00:00
|
|
|
const autoAdjustOverflow = {
|
|
|
|
adjustX: 1,
|
|
|
|
adjustY: 1,
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-03-07 14:21:55 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
const targetOffset = [0, 0];
|
2018-03-07 14:21:55 +00:00
|
|
|
|
|
|
|
const placements = {
|
|
|
|
bottomLeft: {
|
|
|
|
points: ['tl', 'tl'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, -3],
|
|
|
|
targetOffset,
|
|
|
|
},
|
|
|
|
bottomRight: {
|
|
|
|
points: ['tr', 'tr'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, -3],
|
|
|
|
targetOffset,
|
|
|
|
},
|
|
|
|
topRight: {
|
|
|
|
points: ['br', 'br'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, 3],
|
|
|
|
targetOffset,
|
|
|
|
},
|
|
|
|
topLeft: {
|
|
|
|
points: ['bl', 'bl'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, 3],
|
|
|
|
targetOffset,
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-03-07 14:21:55 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
export default placements;
|