mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
The ALPR layer's private per-entity fields (record, clamp, canvas and display anchors, wedge, native appearance, pick position, shown, surface check) move from gevAlpr* expandos into alprMarkers, a store made by the new createEntityStore(). The shared entity records are built on the same factory.
15 lines
724 B
JavaScript
15 lines
724 B
JavaScript
/**
|
|
* @module alpr/markerState
|
|
* @description The ALPR layer's own per-marker state, held in the app rather than on the
|
|
* Cesium entities it draws:
|
|
* - `record`: the camera record the marker shows.
|
|
* - `clamped`: whether the marker sits on the surface rather than at its height.
|
|
* - `canvasPosition`, `displayPosition`: the canvas anchor and the position the card reads.
|
|
* - `wedge`: the direction wedge's positions.
|
|
* - `nativeAppearance`, `pickPosition`: the native look saved while the canvas draws it.
|
|
* - `shown`, `surfaceCheckedFor`: the last visibility applied and the anchor last checked.
|
|
*/
|
|
import { createEntityStore } from '../../data/entityRecords.js';
|
|
|
|
export const alprMarkers = createEntityStore();
|