UNPKG

@tplc/business

Version:

74 lines (69 loc) 1.3 kB
import { LcbBlockProps } from '../lcb-block/types' export interface LcbLightMapProps extends LcbBlockProps { width: number height: number } /** * 位置记录接口 */ export interface LocationRecord { latitude: number longitude: number [key: string]: any } /** * 地图详细配置接口 */ export interface MapDetailConfig { boundaries: { southwest: { latitude: number longitude: number } northeast: { latitude: number longitude: number } } physicalSize: { xSize: number // X轴总距离(米) ySize: number // Y轴总距离(米) } backgroundImages: { default: string p30: string p60: string p80: string p100: string } displaySize?: { normal?: { width: number height: number } index?: { width: number height: number } } dotStyle: { width: number height: number backgroundColor: string } } /** * 地图配置接口 */ export interface LightMapConfig { clockLightConfigId: string subTitle: string title: string mapConfig: MapDetailConfig } export interface MapDetail { clockLightConfigId: string clockLightProductCountRate: number clockLightUserRecordList: LocationRecord[] clockLightConfigList: LightMapConfig[] }