2017-12-08 06:31:53 +00:00
|
|
|
const autoAdjustOverflow = {
|
|
|
|
adjustX: 1,
|
|
|
|
adjustY: 1,
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2017-12-08 06:31:53 +00:00
|
|
|
|
|
|
|
export const placements = {
|
|
|
|
topLeft: {
|
|
|
|
points: ['bl', 'tl'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, -7],
|
|
|
|
},
|
|
|
|
bottomLeft: {
|
|
|
|
points: ['tl', 'bl'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [0, 7],
|
|
|
|
},
|
|
|
|
leftTop: {
|
|
|
|
points: ['tr', 'tl'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [-4, 0],
|
|
|
|
},
|
|
|
|
rightTop: {
|
|
|
|
points: ['tl', 'tr'],
|
|
|
|
overflow: autoAdjustOverflow,
|
|
|
|
offset: [4, 0],
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2017-12-08 06:31:53 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
export default placements;
|