feat:集成cad
Showing
24 changed files
with
4 additions
and
3 deletions
File moved
File moved
File moved
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File moved
File moved
File moved
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 | <!-- | 1 | <!-- |
2 | 功能:初始化功能描述 | 2 | * @Description: |
3 | 作者:calliope | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-06-01 09:58:47 | ||
4 | --> | 5 | --> |
5 | <template> | 6 | <template> |
6 | <canvas id="mxcad"> | 7 | <canvas id="mxcad"> |
... | @@ -16,7 +17,7 @@ | ... | @@ -16,7 +17,7 @@ |
16 | // 创建控件对象 | 17 | // 创建控件对象 |
17 | Mx.MxFun.createMxObject({ | 18 | Mx.MxFun.createMxObject({ |
18 | canvasId: "mxcad", // canvas元素的id | 19 | canvasId: "mxcad", // canvas元素的id |
19 | cadFile: "./cad.dwg", // http方式(预览): 加载public/demo文件夹下转换后的图纸 | 20 | cadFile: "/buf/hhhh.dwg", // http方式(预览): 加载public/demo文件夹下转换后的图纸 |
20 | // cadFile: "test2.dwg", // socket通信方式请直接提供图纸名称 如:text.dwg | 21 | // cadFile: "test2.dwg", // socket通信方式请直接提供图纸名称 如:text.dwg |
21 | callback: (mxDraw, { | 22 | callback: (mxDraw, { |
22 | canvas, | 23 | canvas, | ... | ... |
-
Please register or sign in to post a comment