数字孪生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.

45 lines
1.4 KiB

/*
* @Author: Fuyuu 1805498209@qq.com
* @Date: 2023-12-15 16:47:17
* @LastEditors: Fuyuu 1805498209@qq.com
* @LastEditTime: 2024-01-03 10:47:55
* @FilePath: \dt-admin-pc-v2\src\store\modules\earthMap.ts
* @Description: ,`customMade`, koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
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[][]>[], //记录创建防区的点位,重点管控区域
shipDataList: <any>[], //船只数据列表
xbsjEarthUI: <any>null, //XbsjEarthUI
///////////////////////
cameraData: <any>{},//请求的电线杆数据
nodeConfigByRef: new Map(),// 区域节点By Ref划分
areaByNodeId: new Map(),
}),
getters: {
getCustomPrimitiveList(): any {
return this.customPrimitiveList;
},
getCustomPrimitive(): any {
return this.customPrimitive;
},
},
});
// 需要在设置之外使用
export function useEarthMapStoreWithOut() {
return useEarthMapStore(store);
}