scene.ts 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { appConstant } from "@/app";
  2. import { ModelSceneStatus, QuoteSceneStatus, SceneType } from "@/store/scene";
  3. export const SceneTypeDesc: { [key in SceneType]: string } = {
  4. [SceneType.SWKK]: "八目",
  5. [SceneType.SWKJ]: "双目转台",
  6. [SceneType.SWSS]: "激光转台点云场景",
  7. [SceneType.SWMX]: "三维模型",
  8. [SceneType.SWSSMX]: "激光转台Mesh场景",
  9. [SceneType.SWYDSS]: "激光移动点云场景",
  10. [SceneType.SWYDMX]: "激光移动Mesh场景",
  11. // [SceneType.QJKK]: '全景看看',
  12. };
  13. export const SceneTypeDomain: { [key in SceneType]: string } = {
  14. [SceneType.SWKK]: window.location.href,
  15. [SceneType.SWKJ]: window.location.href,
  16. [SceneType.SWSS]: window.location.href,
  17. [SceneType.SWMX]: window.location.href,
  18. [SceneType.SWSSMX]: window.location.href,
  19. [SceneType.SWYDSS]: window.location.href,
  20. [SceneType.SWYDMX]: window.location.href,
  21. };
  22. export const SceneTypePaths: { [key in SceneType]: string[] } = {
  23. [SceneType.SWKK]: [
  24. "/swkk/spg.html",
  25. "/swkk/epg.html",
  26. `/swkk/livestream/fd/${appConstant.name}.html`,
  27. ],
  28. [SceneType.SWKJ]: ["/swkk/spg.html", "/swkk/epg.html"],
  29. [SceneType.SWSS]: ["/swss/index.html", "/swss/index.html"],
  30. [SceneType.SWMX]: import.meta.env.DEV
  31. ? ["/dev-code/index.html", "/dev-code/index.html"]
  32. : ["/code/index.html", "/code/index.html"],
  33. [SceneType.SWSSMX]: ["/swkk/spg.html", "/swkk/epg.html"],
  34. [SceneType.SWYDSS]: ["/swss/index.html", "/swss/index.html"],
  35. [SceneType.SWYDMX]: ["/swkk/spg.html", "/swkk/epg.html"],
  36. };
  37. export const QuoteSceneStatusDesc: { [key in QuoteSceneStatus]: string } = {
  38. [QuoteSceneStatus.DEL]: "场景被删",
  39. [QuoteSceneStatus.RUN]: "计算中",
  40. [QuoteSceneStatus.ERR]: "计算失败",
  41. [QuoteSceneStatus.SUCCESS]: "计算成功",
  42. [QuoteSceneStatus.ARCHIVE]: "封存",
  43. [QuoteSceneStatus.RERUN]: "重新计算中",
  44. };
  45. export const ModelSceneStatusDesc: { [key in ModelSceneStatus]: string } = {
  46. [ModelSceneStatus.CANCEL]: "已取消",
  47. [ModelSceneStatus.ERR]: "上传失败",
  48. [ModelSceneStatus.RUN]: "上传中",
  49. [ModelSceneStatus.SUCCESS]: "成功",
  50. };
  51. export const ModelSupportType = ["obj", "ply", "las", "osgb", "b3dm", "laz"];
  52. export const ModelSupportFormats = [".zip"];
  53. export const ModelMaxSize = 1024 * 1024 * 1024;