mxServerConfig.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "?uploadFileConfig": "上传文件相关配置",
  3. "uploadFileConfig": {
  4. "?baseUrl": "上传服务地址",
  5. "baseUrl": "http://localhost:1337",
  6. "?create": "参考WebUploader.create方法传入的参数配置",
  7. "create": {
  8. "swf": "https://www.mxdraw3d.com/webuploader/Uploader.swf",
  9. "server": "/mxcad/files/uploadFiles",
  10. "accept": {
  11. "extensions": "mxweb,dwg,dxf",
  12. "mimeTypes": ".mxweb,.dwg,.dxf"
  13. },
  14. "dnd": "#app"
  15. },
  16. "?fileisExist": "通过文件的md5参数检查文件是否已经存在",
  17. "fileisExist": "/mxcad/files/fileisExist",
  18. "?chunkisExist": "用于分片检查是否已经存在",
  19. "chunkisExist": "/mxcad/files/chunkisExist",
  20. "?chunked": "是否分片上传",
  21. "chunked": true,
  22. "?mxfilepath": "文件上传后前端访问路径",
  23. "mxfilepath": "/mxcad/file/",
  24. "?saveUrl": "保存文件服务地址",
  25. "saveUrl": "http://localhost:1337/mxcad/savemxweb",
  26. "?saveDwgUrl": "保存DWG文件服务地址",
  27. "saveDwgUrl": "http://182.92.126.35:8092/modelreq/safety/cadFile/transformCadFileType",
  28. "?printPdfUrl": "把指定范围输出到pdf的服务地址",
  29. "printPdfUrl": "http://localhost:1337/mxcad/print_to_pdf",
  30. "?cutDwgUrl": "把指定范围输出到DWG的服务地址",
  31. "cutDwgUrl": "http://localhost:1337/mxcad/cut_dwg"
  32. },
  33. "aiConfig": {
  34. "?aiUrl": "ai服务地址",
  35. "aiUrl": "http://localhost:7900"
  36. },
  37. "?wasmConfig": "在本项目中使用了mxcad库中提供的WebAssembly wasm文件和相关胶水代码的相关配置",
  38. "wasmConfig": {
  39. "?url": ":通过指定网络路径加载mxcad库中提供的wasm相关文件, 例如:https://unpkg.com/mxcad/dist/wasm/2d-st/ 程序会自动加载2d-st目录下与wasm相关的文件",
  40. "url": "",
  41. "?type": "如果没有设置url, 我们可以通过该项目本地存放的assets目录下wasm相关的文件, 目前可选项有: 2d和2d-st 2d是多线程加载,可能需要一些额外的服务器配置, 而2d-st是单线程的,你可以很方便的使用它,也可以通过访问地址参数调置http://xxxx/mxcad/?wasmtype=st",
  42. "type": "2d"
  43. },
  44. "?supportTruetypeFont": "是否启用truetype字体的支持,默认是启用",
  45. "supportTruetypeFont":true,
  46. "?webgl1": "是使用webgl 1.0程序",
  47. "webgl1":false,
  48. "?font": "需要加载的shx字体",
  49. "font":["txt.shx", "simplex.shx","gdt.shx", "aaa.shx", "ltypeshp.shx", "complex.shx"],
  50. "?bigFont": "需要加载的big shx字体",
  51. "bigFont":["hztxt.shx", "gbcbig.shx"],
  52. "?trueTypeFont": "需要加载的TrueType字体 [['simsun', 'syadobe'], ['思原宋体', '思原黑体'], ['stadobe.otf', 'syadobe.otf']]",
  53. "trueTypeFont":[["syadobe"], ["思原黑体"], ["syadobe.otf"]],
  54. "?isAutomaticJumpToMobilePage": "是否自动跳转到移动端页面",
  55. "isAutomaticJumpToMobilePage": true
  56. }