数字孪生Web 后台dt( digital twin)2.0版本 统一命名格式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
795 B

import { defineStore } from 'pinia';
import { store } from '/@/store';
export const useEarthMapStore = defineStore({
id: 'earth-map',
state: () => ({
token: '',
customPrimitiveList: <any>[],// 视频图元数组
customPrimitive: null,
shapeUsing: <any> false, //判断绘画组件使用状态
shapeList: <any>[], //绘画数组(区域)
shapeShowList: <any>[], //绘画存储(临时)
keyAreaPos: <number[][]>[], //记录创建防区的点位,重点管控区域
}),
getters: {
getCustomPrimitiveList(): any {
return this.customPrimitiveList
},
getCustomPrimitive(): any {
return this.customPrimitive
},
},
})
// 需要在设置之外使用
export function useEarthMapStoreWithOut() {
return useEarthMapStore(store);
}