🦉
Size: a a a
🦉
A
🦉
🦜
З
A
yv
🦉
VK
SL
🦉
З
DS
AV
🦜
SL
SL
export const currentlySelected = combine({ elemPathPairs, cursorPosition }).map(
({ elemPathPairs, cursorPosition }) => {
let result = null;
result = elemPathPairs.find((item: any) => {
const bounds = item.path.getBounds();
if (
bounds.fLeft < cursorPosition.x &&
bounds.fTop < cursorPosition.y &&
bounds.fRight > cursorPosition.x &&
bounds.fBottom > cursorPosition.y
) {
return item.elem;
}
return null;
});
return result;
},
);
🐱
🦉
export const currentlySelected = combine({ elemPathPairs, cursorPosition }).map(
({ elemPathPairs, cursorPosition }) => {
let result = null;
result = elemPathPairs.find((item: any) => {
const bounds = item.path.getBounds();
if (
bounds.fLeft < cursorPosition.x &&
bounds.fTop < cursorPosition.y &&
bounds.fRight > cursorPosition.x &&
bounds.fBottom > cursorPosition.y
) {
return item.elem;
}
return null;
});
return result;
},
);