mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
createWindInspectionMarker() moves to src/layers/wind/inspectionMarker.js, so the portable ./tools entry that reads wind/inspection.js stays free of Vue. It keeps the frame listener and projection and presents where the inspected point falls to the gev-wind-inspection store after each rendered frame, publishing nothing for an unchanged frame; the scene chrome teleports the marker into the wind layer's container with the same class, inline style, hidden state and position. The application guide lists everything leaving out the scene chrome now leaves out.
18 lines
839 B
Vue
18 lines
839 B
Vue
<script setup>
|
|
import { storeToRefs } from 'pinia';
|
|
import { useWindInspectionStore } from '../../stores/windInspection.js';
|
|
|
|
// The inspected wind point, inside the container the wind layer renders in,
|
|
// where the marker owner (src/layers/wind/inspectionMarker.js) places it.
|
|
const { marker } = storeToRefs(useWindInspectionStore());
|
|
|
|
const markerStyle =
|
|
'position:absolute;width:18px;height:18px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #153440,0 0 0 5px rgba(102,225,242,.35);transform:translate(-50%,-50%);pointer-events:none;z-index:150;';
|
|
</script>
|
|
|
|
<template>
|
|
<Teleport v-if="marker" :to="marker.container">
|
|
<div class="gev-wind-inspection-marker" aria-hidden="true" :hidden="!marker.visible" :style="[markerStyle, { left: `${marker.left}px`, top: `${marker.top}px` }]"></div>
|
|
</Teleport>
|
|
</template>
|