[Update] Poc symbol Y working

This commit is contained in:
Carl Fuchs 2023-02-10 17:08:18 +01:00
parent b09718d72d
commit 8b33acb139
4 changed files with 109 additions and 34 deletions

View file

@ -23,7 +23,15 @@ export function SelectorSymbol(props: ISelectorSymbolProps): JSX.Element {
props.selected.height / scale
];
const [x, y] = [props.selected.offset, -SYMBOL_MARGIN - height];
let x, y: number;
if (props.selected.isVertical) {
x = -SYMBOL_MARGIN;
y = props.selected.offset;
} else {
x = props.selected.offset;
y = -SYMBOL_MARGIN - height;
}
const xText = x + width / 2;
const yText = y + height / 2;