修复导览与讲解位置预览逻辑
This commit is contained in:
@@ -18,7 +18,7 @@ interface FloorLike {
|
||||
const indoorFloorCodePattern = /^L-?\d+(?:\.\d+)?$/i
|
||||
const indoorFloorLabelPattern = /^(?:B\d+(?:\.\d+)?|\d+(?:\.\d+)?F)$/i
|
||||
const rawNumericIdPattern = /^\d{6,}$/
|
||||
const nonNavigableFloorPattern = /(EXTERIOR|OUTDOOR|BUILDING|FACADE|EXTERNAL|外立面|建筑外观|建筑外立面|室外模型|室外场景|室外底图|室外建筑|室外外观|室外)$/i
|
||||
const nonNavigableFloorPattern = /(EXTERIOR|OUTDOOR|BUILDING|FACADE|EXTERNAL|外立面|建筑外观|建筑外立面|馆外模型|馆外场景|馆外底图|馆外建筑|馆外外观|馆外)$/i
|
||||
|
||||
const normalizeValue = (value: unknown) => (
|
||||
value === null || typeof value === 'undefined' ? '' : String(value).trim()
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import type {
|
||||
MuseumPoiEntrance,
|
||||
MuseumPoiKind
|
||||
} from '@/domain/museum'
|
||||
|
||||
export interface GuideRenderPoi {
|
||||
id: string
|
||||
name: string
|
||||
@@ -7,6 +12,10 @@ export interface GuideRenderPoi {
|
||||
iconType: string
|
||||
positionGltf?: [number, number, number]
|
||||
sourceObjectName?: string
|
||||
kind?: MuseumPoiKind
|
||||
hallId?: string
|
||||
hallName?: string
|
||||
entrances?: MuseumPoiEntrance[]
|
||||
}
|
||||
|
||||
export interface GuideModelFloorAsset {
|
||||
|
||||
@@ -4,7 +4,7 @@ import type {
|
||||
|
||||
export const NAV_ROUTE_GRAPH_READY = false
|
||||
|
||||
export const NAV_ROUTE_UNAVAILABLE_MESSAGE = '当前暂不支持正式导航,可查看位置预览、路线示意和室外参考'
|
||||
export const NAV_ROUTE_UNAVAILABLE_MESSAGE = '当前可查看位置预览、位置关系和馆外参考,暂不提供正式室内导航'
|
||||
|
||||
export const NAV_ROUTE_READINESS: GuideRouteReadiness = {
|
||||
ready: NAV_ROUTE_GRAPH_READY,
|
||||
|
||||
Reference in New Issue
Block a user