|
@@ -159,13 +159,17 @@ watch(selectTagging, (a, b, onCleanup) => {
|
|
const clickHandler = async (ev: MouseEvent) => {
|
|
const clickHandler = async (ev: MouseEvent) => {
|
|
await nextTick()
|
|
await nextTick()
|
|
await asyncTimeout()
|
|
await asyncTimeout()
|
|
- const positions = models.value.
|
|
|
|
- map(model =>
|
|
|
|
- sdk.getPositionByScreen({
|
|
|
|
|
|
+ const positions = models.value
|
|
|
|
+ .filter(model => {
|
|
|
|
+ return model.loaded && getModelShowVariable(model).value
|
|
|
|
+ })
|
|
|
|
+ .map(model => {
|
|
|
|
+ console.log(model)
|
|
|
|
+ return sdk.getPositionByScreen({
|
|
x: ev.clientX,
|
|
x: ev.clientX,
|
|
y: ev.clientY
|
|
y: ev.clientY
|
|
}, model.id)
|
|
}, model.id)
|
|
- )
|
|
|
|
|
|
+ })
|
|
.filter(pos => pos)
|
|
.filter(pos => pos)
|
|
|
|
|
|
if (!positions.length) {
|
|
if (!positions.length) {
|