|
@@ -52,7 +52,7 @@ import { MARKER_BODY_WIDTH, markerDevKnobs, markerMetricsFor, resetMarkerDevKnob
|
|
|
import { EMPHASIS_STYLE, shouldEmphasize } from '../domain/mapEmphasis.js'
|
|
import { EMPHASIS_STYLE, shouldEmphasize } from '../domain/mapEmphasis.js'
|
|
|
import { renderMarker } from './markerAssets.js'
|
|
import { renderMarker } from './markerAssets.js'
|
|
|
// 批次 3 第五轮(票 20):DOM overlay 渲染层(billboard 发糊的结构性解决)。
|
|
// 批次 3 第五轮(票 20):DOM overlay 渲染层(billboard 发糊的结构性解决)。
|
|
|
-import { mountMarkerOverlay, attachOverlayRenderer, unmountMarkerOverlay, isMarkerOverlayVisible, isMarkerOverlayMounted, refreshMarkerFx, startMarkerOverlayPerfSample, stopMarkerOverlayPerfSample, getMarkerOverlayPerfStats } from './markerOverlay.js'
|
|
|
|
|
|
|
+import { mountMarkerOverlay, attachOverlayRenderer, unmountMarkerOverlay, isMarkerOverlayVisible, isMarkerOverlayMounted, refreshMarkerFx, replayMarkerEntrance, startMarkerOverlayPerfSample, stopMarkerOverlayPerfSample, getMarkerOverlayPerfStats } from './markerOverlay.js'
|
|
|
import { zoomRangeForBounds } from '../domain/pointAggregation.js'
|
|
import { zoomRangeForBounds } from '../domain/pointAggregation.js'
|
|
|
import { DEVICE_LAYER_KIND } from '../domain/deviceLayer.js'
|
|
import { DEVICE_LAYER_KIND } from '../domain/deviceLayer.js'
|
|
|
import { deviceVisualForStatus } from '../domain/deviceStatus.js'
|
|
import { deviceVisualForStatus } from '../domain/deviceStatus.js'
|
|
@@ -1051,7 +1051,7 @@ async function bootEngine(record) {
|
|
|
const movingNow = record.cameraControl?.getState?.()?.settled === false
|
|
const movingNow = record.cameraControl?.getState?.()?.settled === false
|
|
|
if (record.lastFrameAt) engine.noteFrameInterval(nowMs - record.lastFrameAt, { moving: movingNow, viewer })
|
|
if (record.lastFrameAt) engine.noteFrameInterval(nowMs - record.lastFrameAt, { moving: movingNow, viewer })
|
|
|
record.lastFrameAt = nowMs
|
|
record.lastFrameAt = nowMs
|
|
|
- engine.tickAdaptiveResolution(viewer)
|
|
|
|
|
|
|
+ engine.tickAdaptiveResolution(viewer, { moving: movingNow })
|
|
|
} catch { /* 自适应失败不影响渲染 */ }
|
|
} catch { /* 自适应失败不影响渲染 */ }
|
|
|
// 票 39:瓦片就绪是 getter(读它不便宜),且**只有真的渲染过**才知道队列空没空,
|
|
// 票 39:瓦片就绪是 getter(读它不便宜),且**只有真的渲染过**才知道队列空没空,
|
|
|
// 所以放在 postRender 里刷;交接的推进也借此在"有帧"时才有机会前进。
|
|
// 所以放在 postRender 里刷;交接的推进也借此在"有帧"时才有机会前进。
|
|
@@ -4413,6 +4413,11 @@ function hideMarkerTooltip() {
|
|
|
if (tooltipNode && tooltipNode.style) tooltipNode.style.display = 'none'
|
|
if (tooltipNode && tooltipNode.style) tooltipNode.style.display = 'none'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/** 票 08 复核:每次重新加载点位时重播一次落图;镜头移动/聚合拆组不调用。 */
|
|
|
|
|
+export function replayPointMarkerEntrance() {
|
|
|
|
|
+ replayMarkerEntrance()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 清空地图上的点位标记(离开 /cockpit 用)。
|
|
* 清空地图上的点位标记(离开 /cockpit 用)。
|
|
|
*
|
|
*
|