change(ui): change selection display

This commit is contained in:
nick-delirium 2023-03-15 11:29:17 +01:00
parent 907ae9a131
commit cd2378f7bc

View file

@ -48,19 +48,21 @@ export default class SelectionManager extends ListWalker<SelectionChange> {
Object.assign(endPointer.style, {
top: endCoords.top + 'px',
left: (endCoords.left + endCoords.width + 3) + 'px',
width: '3px',
left: (endCoords.left + (endCoords.width / 2) + 3) + 'px',
width: (endCoords.width / 2) + 'px',
height: endCoords.height + 'px',
border: '3px solid red',
borderRight: '2px solid blue',
position: 'absolute',
boxShadow: '1px 4px 1px -2px blue',
});
Object.assign(startPointer.style, {
top: startCoords.top + 'px',
left: (startCoords.left - 3) + 'px',
width: '3px',
width: (startCoords.width / 2 ) + 'px',
height: startCoords.height + 'px',
border: '3px solid red',
borderLeft: '2px solid blue',
position: 'absolute',
boxShadow: '1px 4px 1px -2px blue',
});
this.markers.push(startPointer, endPointer);