[Update] Poc symbol Y working
This commit is contained in:
parent
b09718d72d
commit
8b33acb139
4 changed files with 109 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue