mxdraw 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.js +117 -0
- package/dist/lib/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.js.map +1 -0
- package/dist/lib/MxModule/{McEdGetPointWorldDrawObjectClass → McEdGetPointWorldDrawObject}/index.js +1 -1
- package/dist/lib/MxModule/McEdGetPointWorldDrawObject/index.js.map +1 -0
- package/dist/lib/MxModule/MrxDbgUiPrBaseReturn/MrxDbgUiPrBaseReturn.js +2 -2
- package/dist/lib/MxModule/{MrxDbgUiPrPointClass → MrxDbgUiPrPoint}/MrxDbgUiPrPointClass.js +21 -21
- package/dist/lib/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.js.map +1 -0
- package/dist/lib/MxModule/{MrxDbgUiPrPointClass → MrxDbgUiPrPoint}/index.js +0 -0
- package/dist/lib/MxModule/MrxDbgUiPrPoint/index.js.map +1 -0
- package/dist/lib/MxModule/useCoreCode/mxfun.es5.js +31 -17
- package/dist/lib/MxModule/useCoreCode/mxfun.es5.js.map +1 -1
- package/dist/lib/doc.js +5 -5
- package/dist/lib/doc.js.map +1 -1
- package/dist/lib/mxdraw.js +7 -7
- package/dist/lib/mxdraw.js.map +1 -1
- package/dist/mxdraw.es5.js +2 -2
- package/dist/mxdraw.es5.js.map +1 -1
- package/dist/mxdraw.umd.js +2 -2
- package/dist/mxdraw.umd.js.map +1 -1
- package/dist/types/MxModule/{McEdGetPointWorldDrawObjectClass → McEdGetPointWorldDrawObject}/McEdGetPointWorldDrawObjectClass.d.ts +29 -10
- package/dist/types/MxModule/McEdGetPointWorldDrawObject/index.d.ts +3 -0
- package/dist/types/MxModule/MrxDbgUiPrBaseReturn/MrxDbgUiPrBaseReturn.d.ts +2 -2
- package/dist/types/MxModule/{MrxDbgUiPrPointClass → MrxDbgUiPrPoint}/MrxDbgUiPrPointClass.d.ts +4 -5
- package/dist/types/MxModule/MrxDbgUiPrPoint/index.d.ts +3 -0
- package/dist/types/doc.d.ts +3 -3
- package/dist/types/mxdraw.d.ts +5 -5
- package/package.json +1 -1
- package/dist/lib/MxModule/McEdGetPointWorldDrawObjectClass/McEdGetPointWorldDrawObjectClass.js +0 -94
- package/dist/lib/MxModule/McEdGetPointWorldDrawObjectClass/McEdGetPointWorldDrawObjectClass.js.map +0 -1
- package/dist/lib/MxModule/McEdGetPointWorldDrawObjectClass/index.js.map +0 -1
- package/dist/lib/MxModule/MrxDbgUiPrPointClass/MrxDbgUiPrPointClass.js.map +0 -1
- package/dist/lib/MxModule/MrxDbgUiPrPointClass/index.js.map +0 -1
- package/dist/types/MxModule/McEdGetPointWorldDrawObjectClass/index.d.ts +0 -3
- package/dist/types/MxModule/MrxDbgUiPrPointClass/index.d.ts +0 -3
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** @module McEdGetPointWorldDrawObject*/
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var store_1 = require("../store/store");
|
|
5
|
+
var _McEdGetPointWorldDraw;
|
|
6
|
+
/**
|
|
7
|
+
* McEdGetPointWorldDrawObject 用于构建一个动态绘制回调对象
|
|
8
|
+
* ```typescript
|
|
9
|
+
* Mx.McEdGetPointWorldDrawObject()
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
var McEdGetPointWorldDrawObject = /** @class */ (function () {
|
|
13
|
+
function McEdGetPointWorldDrawObject() {
|
|
14
|
+
_McEdGetPointWorldDraw = new (store_1.default.state.MxFun.getMxJigCmdManager().McEdGetPointWorldDrawObjectClass())();
|
|
15
|
+
/** @internal */
|
|
16
|
+
this._get = function () {
|
|
17
|
+
return _McEdGetPointWorldDraw;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 绘制圆
|
|
22
|
+
* @param cen 圆心位置
|
|
23
|
+
* @param dRadius 圆半径
|
|
24
|
+
* @returns void
|
|
25
|
+
* @example
|
|
26
|
+
* ``` typescript
|
|
27
|
+
* pWorldDraw.drawCircle(new HTREE.Vector3(0,100,5), 6)
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
McEdGetPointWorldDrawObject.prototype.drawCircle = function (cen, dRadius) {
|
|
32
|
+
return _McEdGetPointWorldDraw.drawCircle(cen, dRadius);
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 绘制直线
|
|
36
|
+
* @param pt1 开始点
|
|
37
|
+
* @param pt2 结束点
|
|
38
|
+
* @returns void
|
|
39
|
+
* @example
|
|
40
|
+
* ``` typescript
|
|
41
|
+
* pWorldDraw.drawLine(new HTREE.Vector3(0,100,5), new HTREE.Vector3(0,600,5))
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
McEdGetPointWorldDrawObject.prototype.drawLine = function (pt1, pt2) {
|
|
46
|
+
return _McEdGetPointWorldDraw.drawLine(pt1, pt2);
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 绘制一个Three.js对象.
|
|
50
|
+
* @param ent THREE.Object3D对象
|
|
51
|
+
* @returns void
|
|
52
|
+
* @example
|
|
53
|
+
* ``` typescript
|
|
54
|
+
* pWorldDraw.drawEntity(new THREE.Object3D()))
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
McEdGetPointWorldDrawObject.prototype.drawEntity = function (ent) {
|
|
59
|
+
return _McEdGetPointWorldDraw.drawEntity(ent);
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 绘制一个文档对象
|
|
63
|
+
* @param sText 文本
|
|
64
|
+
* @param iSize 大小
|
|
65
|
+
* @param dAngle 角度
|
|
66
|
+
* @param pt 位置
|
|
67
|
+
* @returns void
|
|
68
|
+
* @example
|
|
69
|
+
* ``` typescript
|
|
70
|
+
* pWorldDraw.drawText("字符串" ,36 ,90 ,new HTREE.Vector3(0,100,5))
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
McEdGetPointWorldDrawObject.prototype.drawText = function (sText, iSize, dAngle, pt) {
|
|
75
|
+
return _McEdGetPointWorldDraw.drawText(sText, iSize, dAngle, pt);
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 设置动态绘制回调函数。
|
|
79
|
+
* @param call 回调函数 currentPoint 回调参数 当前位置 pWorldDraw 回调参数文档绘制对象
|
|
80
|
+
* @returns void
|
|
81
|
+
* @example
|
|
82
|
+
* ``` typescript
|
|
83
|
+
* pWorldDraw.setDraw((currentPoint, pWorldDraw)=> {
|
|
84
|
+
*
|
|
85
|
+
* })
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
McEdGetPointWorldDrawObject.prototype.setDraw = function (call) {
|
|
89
|
+
return _McEdGetPointWorldDraw.setDraw(call);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 设置绘制对象颜色.
|
|
93
|
+
* @param iColor 颜色
|
|
94
|
+
* @returns void
|
|
95
|
+
* @example
|
|
96
|
+
* ``` typescript
|
|
97
|
+
* pWorldDraw.setColor(0xFFFFFF)
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
McEdGetPointWorldDrawObject.prototype.setColor = function (iColor) {
|
|
101
|
+
return _McEdGetPointWorldDraw.setColor(iColor);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* 得到绘制对象颜色.
|
|
105
|
+
* @returns 颜色
|
|
106
|
+
* @example
|
|
107
|
+
* ``` typescript
|
|
108
|
+
* pWorldDraw.getColor()
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
McEdGetPointWorldDrawObject.prototype.getColor = function () {
|
|
112
|
+
return _McEdGetPointWorldDraw.getColor();
|
|
113
|
+
};
|
|
114
|
+
return McEdGetPointWorldDrawObject;
|
|
115
|
+
}());
|
|
116
|
+
exports.default = McEdGetPointWorldDrawObject;
|
|
117
|
+
//# sourceMappingURL=McEdGetPointWorldDrawObjectClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"McEdGetPointWorldDrawObjectClass.js","sourceRoot":"","sources":["../../../../src/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.ts"],"names":[],"mappings":";AAAA,yCAAyC;;AAGzC,wCAAkC;AAElC,IAAI,sBAAwD,CAAA;AAE5D;;;;;GAKG;AACH;IAEE;QACE,sBAAsB,GAAG,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,gCAAgC,EAAE,CAAC,EAAE,CAAA;QAE1G,gBAAgB;QAChB,IAAI,CAAC,IAAI,GAAG;YACV,OAAO,sBAAsB,CAAA;QAC/B,CAAC,CAAA;IACH,CAAC;IAED;;;;;;;;;;OAUG;IACH,gDAAU,GAAV,UAAW,GAAkB,EAAE,OAAe;QAC5C,OAAO,sBAAsB,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IACxD,CAAC;IACD;;;;;;;;;;OAUG;IACH,8CAAQ,GAAR,UAAS,GAAkB,EAAE,GAAkB;QAC7C,OAAO,sBAAsB,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;OASG;IACH,gDAAU,GAAV,UAAW,GAA0B;QACnC,OAAO,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,8CAAQ,GAAR,UAAS,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,EAAiB;QACtE,OAAO,sBAAsB,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,6CAAO,GAAP,UAAQ,IAA4D;QAClE,OAAO,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,CAAC;IAED;;;;;;;;OAQG;IACH,8CAAQ,GAAR,UAAS,MAAc;QACrB,OAAO,sBAAsB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC;IAED;;;;;;;OAOG;IACH,8CAAQ,GAAR;QACE,OAAO,sBAAsB,CAAC,QAAQ,EAAE,CAAA;IAC1C,CAAC;IACH,kCAAC;AAAD,CAAC,AA9GD,IA8GC"}
|
package/dist/lib/MxModule/{McEdGetPointWorldDrawObjectClass → McEdGetPointWorldDrawObject}/index.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/** @module
|
|
2
|
+
/** @module McEdGetPointWorldDrawObject*/
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
var McEdGetPointWorldDrawObjectClass_1 = require("./McEdGetPointWorldDrawObjectClass");
|
|
5
5
|
exports.default = McEdGetPointWorldDrawObjectClass_1.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/MxModule/McEdGetPointWorldDrawObject/index.ts"],"names":[],"mappings":";AAAA,yCAAyC;;AAEzC,uFAA4E;AAC5E,kBAAe,0CAA2B,CAAA"}
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
/**
|
|
5
5
|
* MrxDbgUiPrBaseReturn枚举
|
|
6
6
|
* @description
|
|
7
|
-
* 用于适配{@link
|
|
7
|
+
* 用于适配{@link MrxDbgUiPrPoint.go} 和 {@link MrxDbgUiPrPoint.goWhile} 方法中的回调参数`status`
|
|
8
8
|
* @example
|
|
9
9
|
* ```
|
|
10
|
-
* const Point = new Mx.
|
|
10
|
+
* const Point = new Mx.MrxDbgUiPrPoint()
|
|
11
11
|
* Point.go((status)=> {
|
|
12
12
|
* if(Mx.MrxDbgUiPrBaseReturn.kCancel === status) {
|
|
13
13
|
* // 取消
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
var store_1 = require("../store/store");
|
|
5
5
|
var _MrxDbgUiPrPoint;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* MrxDbgUiPrPoint 用于构建一个取点对象
|
|
8
8
|
* ```typescript
|
|
9
|
-
* new Mx.
|
|
9
|
+
* new Mx.MrxDbgUiPrPoint()
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
12
|
+
var MrxDbgUiPrPoint = /** @class */ (function () {
|
|
13
|
+
function MrxDbgUiPrPoint() {
|
|
14
14
|
_MrxDbgUiPrPoint = new (store_1.default.state.MxFun.getMxJigCmdManager().getMrxDbgUiPrPointClass())();
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* 返回关键字列表
|
|
18
18
|
* @returns 关键词列表
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
MrxDbgUiPrPoint.prototype.keyWords = function () {
|
|
21
21
|
return _MrxDbgUiPrPoint.keyWords();
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -25,14 +25,14 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
25
25
|
* @param keyWordList 关键词列表
|
|
26
26
|
* @returns void
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
MrxDbgUiPrPoint.prototype.setKeyWords = function (keyWordList) {
|
|
29
29
|
return _MrxDbgUiPrPoint.setKeyWords(keyWordList);
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* 提示字符串
|
|
33
33
|
* @returns 提示消息
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
MrxDbgUiPrPoint.prototype.message = function () {
|
|
36
36
|
return _MrxDbgUiPrPoint.message();
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -40,14 +40,14 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
40
40
|
* @param message 提示消息
|
|
41
41
|
* @returns 提示消息
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
MrxDbgUiPrPoint.prototype.setMessage = function (message) {
|
|
44
44
|
return _MrxDbgUiPrPoint.setMessage(message);
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* 返回用户选择的关键字
|
|
48
48
|
* @returns 选择的关键字
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
MrxDbgUiPrPoint.prototype.keyWordPicked = function () {
|
|
51
51
|
return _MrxDbgUiPrPoint.keyWordPicked();
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
@@ -55,7 +55,7 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
55
55
|
* @param matchKeyWord 要检测的关键字
|
|
56
56
|
* @returns true为真
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
MrxDbgUiPrPoint.prototype.isKeyWordPicked = function (matchKeyWord) {
|
|
59
59
|
return _MrxDbgUiPrPoint.isKeyWordPicked(matchKeyWord);
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
@@ -63,28 +63,28 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
63
63
|
* @param pDraw {@link McEdGetPointWorldDrawObject | 动态绘制调用对象}
|
|
64
64
|
* @returns void
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
MrxDbgUiPrPoint.prototype.setUserDraw = function (pDraw) {
|
|
67
67
|
return _MrxDbgUiPrPoint.setUserDraw(pDraw._get ? pDraw._get() : pDraw);
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* 得以获取的点对象,Three.js坐标
|
|
71
71
|
* @returns 点对象 THREE.THREE.Vector3
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
MrxDbgUiPrPoint.prototype.value = function () {
|
|
74
74
|
return _MrxDbgUiPrPoint.value();
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* 得以获取的点对象,DWG图纸坐标.
|
|
78
78
|
* @returns 点对象 DWG图纸坐标
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
MrxDbgUiPrPoint.prototype.valueDocCoord = function () {
|
|
81
81
|
return _MrxDbgUiPrPoint.valueDocCoord();
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* 得到动态拖动的基点
|
|
85
85
|
* @returns 基点 THREE.THREE.Vector3
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
MrxDbgUiPrPoint.prototype.basePt = function () {
|
|
88
88
|
return _MrxDbgUiPrPoint.basePt();
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
@@ -92,7 +92,7 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
92
92
|
* @param basePt 基点 THREE.THREE.Vector3
|
|
93
93
|
* @returns 点对象 DWG图纸坐标
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
MrxDbgUiPrPoint.prototype.setBasePt = function (basePt) {
|
|
96
96
|
return _MrxDbgUiPrPoint.setBasePt(basePt);
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
@@ -100,7 +100,7 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
100
100
|
* @param useIt 是否设置 默认为false
|
|
101
101
|
* @returns void
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
MrxDbgUiPrPoint.prototype.setUseBasePt = function (useIt) {
|
|
104
104
|
return _MrxDbgUiPrPoint.setUseBasePt(useIt);
|
|
105
105
|
};
|
|
106
106
|
/**
|
|
@@ -108,7 +108,7 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
108
108
|
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
109
109
|
* @returns void
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
MrxDbgUiPrPoint.prototype.go = function (retcall) {
|
|
112
112
|
return _MrxDbgUiPrPoint.go(retcall);
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
@@ -117,7 +117,7 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
117
117
|
* @param exitcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
118
118
|
* @returns void
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
MrxDbgUiPrPoint.prototype.goWhile = function (retcall, exitcall) {
|
|
121
121
|
return _MrxDbgUiPrPoint.goWhile(retcall, exitcall);
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
@@ -125,10 +125,10 @@ var MrxDbgUiPrPointClass = /** @class */ (function () {
|
|
|
125
125
|
* @param callAddEntity 回调参数ent 类型:THREE.THREE.Object3D
|
|
126
126
|
* @returns 点对象 DWG图纸坐标
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
MrxDbgUiPrPoint.prototype.drawReserve = function (callAddEntity) {
|
|
129
129
|
return _MrxDbgUiPrPoint.drawReserve(callAddEntity);
|
|
130
130
|
};
|
|
131
|
-
return
|
|
131
|
+
return MrxDbgUiPrPoint;
|
|
132
132
|
}());
|
|
133
|
-
exports.default =
|
|
133
|
+
exports.default = MrxDbgUiPrPoint;
|
|
134
134
|
//# sourceMappingURL=MrxDbgUiPrPointClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MrxDbgUiPrPointClass.js","sourceRoot":"","sources":["../../../../src/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.ts"],"names":[],"mappings":";AAAA,mCAAmC;;AAGnC,wCAAkC;AAClC,IAAI,gBAAsC,CAAA;AAE1C;;;;;GAKG;AACH;IACE;QACE,gBAAgB,GAAG,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,CAAC,EAAE,CAAA;IAC7F,CAAC;IACD;;;OAGG;IACH,kCAAQ,GAAR;QACE,OAAO,gBAAgB,CAAC,QAAQ,EAAE,CAAA;IACpC,CAAC;IAED;;;;OAIG;IACH,qCAAW,GAAX,UAAY,WAAmB;QAC7B,OAAO,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAClD,CAAC;IAED;;;OAGG;IACH,iCAAO,GAAP;QACE,OAAO,gBAAgB,CAAC,OAAO,EAAE,CAAA;IACnC,CAAC;IAED;;;;OAIG;IACH,oCAAU,GAAV,UAAW,OAAe;QACxB,OAAO,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAC7C,CAAC;IAED;;;OAGG;IACH,uCAAa,GAAb;QACE,OAAO,gBAAgB,CAAC,aAAa,EAAE,CAAA;IACzC,CAAC;IAED;;;;OAIG;IACH,yCAAe,GAAf,UAAgB,YAAoB;QAClC,OAAO,gBAAgB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;IACvD,CAAC;IAED;;;;OAIG;IACH,qCAAW,GAAX,UAAY,KAAU;QACpB,OAAO,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IACxE,CAAC;IAED;;;OAGG;IACH,+BAAK,GAAL;QACE,OAAO,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACjC,CAAC;IAED;;;OAGG;IACH,uCAAa,GAAb;QACE,OAAO,gBAAgB,CAAC,aAAa,EAAE,CAAA;IACzC,CAAC;IAED;;;OAGG;IACH,gCAAM,GAAN;QACE,OAAO,gBAAgB,CAAC,MAAM,EAAE,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,mCAAS,GAAT,UAAU,MAAqB;QAC7B,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED;;;;OAIG;IACH,sCAAY,GAAZ,UAAa,KAAc;QACzB,OAAO,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IAC7C,CAAC;IAED;;;;OAIG;IACH,4BAAE,GAAF,UAAG,OAA+C;QAChD,OAAO,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;IACrC,CAAC;IAED;;;;;OAKG;IACH,iCAAO,GAAP,UACE,OAA8C,EAC9C,QAAgD;QAEhD,OAAO,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IACpD,CAAC;IAED;;;;OAIG;IACH,qCAAW,GAAX,UAAY,aAA6C;QACvD,OAAO,gBAAgB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA;IACpD,CAAC;IACH,sBAAC;AAAD,CAAC,AAxID,IAwIC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/MxModule/MrxDbgUiPrPoint/index.ts"],"names":[],"mappings":";AAAA,mCAAmC;;AAEnC,+DAAoD;AACpD,kBAAe,8BAAe,CAAA"}
|
|
@@ -6315,38 +6315,38 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
|
|
|
6315
6315
|
}, { "./MxDrawData": 34, "./MxJigCmdManager": 42, "./MxThreeJS": 52, three: 19 }], 39: [function (t, e, n) {
|
|
6316
6316
|
"use strict";
|
|
6317
6317
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxFun = void 0;
|
|
6318
|
-
var l, i, r, a, o, s, c, u, h, d, p, f, m, g, v = t("three"), y = t("./MxManager"), x = t("./MxDrawObject2d"), _ = t("./MxDrawObject3d"), w = t("./MxUiObjectMobile"), b = t("./MxUiObjectPC"), M = t("./MxJigCmdManager"), S = t("./MxJigGetLine"), C = t("./MxCmdRunManager"), T = t("./MxUiVue"), E = t("./MxThreeJS"), A = t("./MxWindowsEvent"), D = t("./MxTools"), L = t("./MxDrawCommands"), O = t("./MxDrawData"), I = t("./MxCADEditDisplay"), P = t("./MxLocalFileLoad");
|
|
6319
|
-
function
|
|
6320
|
-
function
|
|
6321
|
-
function N() { return y.MxManager.currentMx(); }
|
|
6318
|
+
var l, i, r, a, o, s, c, u, h, d, p, f, m, g, v = t("three"), y = t("./MxManager"), x = t("./MxDrawObject2d"), _ = t("./MxDrawObject3d"), w = t("./MxUiObjectMobile"), b = t("./MxUiObjectPC"), M = t("./MxJigCmdManager"), S = t("./MxJigGetLine"), C = t("./MxCmdRunManager"), T = t("./MxUiVue"), E = t("./MxThreeJS"), A = t("./MxWindowsEvent"), D = t("./MxTools"), L = t("./MxDrawCommands"), O = t("./MxDrawData"), I = t("./MxCADEditDisplay"), P = t("./MxLocalFileLoad"), R = t("./TempTest/MxTestJig");
|
|
6319
|
+
function k(t) { t.cmd && z(t.cmd); }
|
|
6320
|
+
function N(t) { var e = new RegExp("(^|&)" + t + "=([^&]*)(&|$)"), n = window.location.search.substr(1).match(e); return null != n ? decodeURIComponent(n[2]) : ""; }
|
|
6322
6321
|
function B() { return y.MxManager.currentMx(); }
|
|
6323
|
-
function F(
|
|
6322
|
+
function F() { return y.MxManager.currentMx(); }
|
|
6323
|
+
function z(t, e) { var n = F(); if (n)
|
|
6324
6324
|
return C.MxCmdRunManager.runCmd(n, t, e); }
|
|
6325
|
-
function
|
|
6326
|
-
l = n.MxFun || (n.MxFun = {}), i = ".", c = o = a = -1, d = null, p = !(h = "ws://localhost:5090"), m = {}, g = f = u = s = r = void 0, l.getUiObj = function () { return d; }, l.getNodeJs = function () { return g; }, l.setMxServer = function (t) { h = t; }, l.getMxServer = function () { return h; }, l.isPC = function () { return !/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent); }, l.getClientPlatform = function () { return navigator.platform; }, l.getClientInfo = function () { return { width: document.body.clientWidth, height: document.body.clientHeight }; }, l.curPath = function () { return i; }, l.setCurPath = function (t) { i = t; }, l.getQueryString =
|
|
6325
|
+
function V(t) { null != t && (t.init(), T.MxUiVue.init(t)), p || (p = !0, g = new P.MxLocalNodeJs, M.MxJigCmdManager.init(), A.MxWindowsEvent.registEvent(), y.MxManager.init(), L.MxDrawCommands.registerCommand(), window.mxConfig_isLoadTest && R.MxTest.registerCommand(), m.sendStringToExecute = k); }
|
|
6326
|
+
l = n.MxFun || (n.MxFun = {}), i = ".", c = o = a = -1, d = null, p = !(h = "ws://localhost:5090"), m = {}, g = f = u = s = r = void 0, l.getUiObj = function () { return d; }, l.getNodeJs = function () { return g; }, l.setMxServer = function (t) { h = t; }, l.getMxServer = function () { return h; }, l.isPC = function () { return !/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent); }, l.getClientPlatform = function () { return navigator.platform; }, l.getClientInfo = function () { return { width: document.body.clientWidth, height: document.body.clientHeight }; }, l.curPath = function () { return i; }, l.setCurPath = function (t) { i = t; }, l.getQueryString = N, l.getLocationPageUrl = function () { var t = window.location.href, e = t.lastIndexOf("?"); return -1 == e ? t : t.substring(0, e); }, l.getUrlParams = function () { var t = window.location.search, e = t.substr(1, t.length).split("&"), n = new Array; if (null != e)
|
|
6327
6327
|
for (var i = 0; i < e.length; i++) {
|
|
6328
6328
|
var r = e[i].replace(/[=|^==]/, "&").split("&");
|
|
6329
6329
|
if (1 < r.length) {
|
|
6330
6330
|
var a = new Array;
|
|
6331
6331
|
a.push(decodeURIComponent(r[0])), a.push(decodeURIComponent(r[1])), n.push(a);
|
|
6332
6332
|
}
|
|
6333
|
-
} return n; }, l.call = function (t, e, n) { null == e ? e = "{}" : "string" == typeof e ? 0 == e.length ? e = "{}" : "[" == e[0] && "]" == e[e.length - 1] || "{" == e[0] && "}" == e[e.length - 1] || (e = '"' + (e = e.replace(/"/g, "'")) + '"') : e = "object" == typeof e ? JSON.stringify(e) : "{}", y.MxManager.currentMx().call(t, e, n); }, l.loadCodeToServer = function (t, e) { y.MxManager.currentMx().loadCodeToServer(t, e); }, l.getCurrentMx =
|
|
6334
|
-
return 1 == a; var t =
|
|
6335
|
-
return 1 == c; var t =
|
|
6336
|
-
return 1 == o; var t =
|
|
6337
|
-
return r; var t =
|
|
6333
|
+
} return n; }, l.call = function (t, e, n) { null == e ? e = "{}" : "string" == typeof e ? 0 == e.length ? e = "{}" : "[" == e[0] && "]" == e[e.length - 1] || "{" == e[0] && "}" == e[e.length - 1] || (e = '"' + (e = e.replace(/"/g, "'")) + '"') : e = "object" == typeof e ? JSON.stringify(e) : "{}", y.MxManager.currentMx().call(t, e, n); }, l.loadCodeToServer = function (t, e) { y.MxManager.currentMx().loadCodeToServer(t, e); }, l.getCurrentMx = B, l.getCurrentMxCAD = function () { var t = B(); return t ? t.getMxCAD() : null; }, l.openFile = function (t) { y.MxManager.currentMx().openFile(t); }, l.loadCodeFileToServer = function (t, e, n) { y.MxManager.currentMx().loadCodeFileToServer(t, e, n); }, l.isEnableSelect = function () { if (-1 != a)
|
|
6334
|
+
return 1 == a; var t = N("select"); return a = 0, null != t && "y" == t.toLowerCase() && (a = 1), 1 == a; }, l.is3DDwg = function () { if (-1 != c)
|
|
6335
|
+
return 1 == c; var t = N("3ddwg"); return c = 0, null != t && "y" == t.toLowerCase() && (c = 1), 1 == c; }, l.isStaticLoad = function () { if (-1 != o)
|
|
6336
|
+
return 1 == o; var t = N("static"); return o = 0, null != t && "y" == t.toLowerCase() && (o = 1), 1 == o; }, l.enableSelect = function (t) { a = t ? 1 : 0; }, l.enablStaticLoad = function (t) { o = null == t || t ? 1 : 0; }, l.dwgDir = function () { return null != s || null == (s = N("dwgdir")) && (s = ""), s; }, l.setDwgDir = function (t) { s = t; }, l.getStaticServer = function () { return null != u || null == (u = N("staticServer")) && (u = ""), u; }, l.setStaticServer = function (t) { u = t; }, l.is2dParam = function () { if (null != r)
|
|
6337
|
+
return r; var t = N("file"); if (r = !1, null != t) {
|
|
6338
6338
|
var e = t.substring(t.lastIndexOf(".") + 1);
|
|
6339
6339
|
"dwg" != e.toLowerCase() && "dxf" != e.toLowerCase() && "dwf" != e.toLowerCase() && "mwg" != e.toLowerCase() || (r = !0);
|
|
6340
6340
|
} return r; }, l.set2dParam = function (t) { r = t; }, l.showLayer = function (t, e, n) { var i = y.MxManager.currentMx().getMxCAD(); if (!i)
|
|
6341
|
-
return y.MxManager.currentMx().showLayer(t, e, n); "number" == typeof t && I.MxCADDisplayFun.showLayer(i.getDatabase(), t, e); }, l.upDisplayForLayerData = function (t) { var e = y.MxManager.currentMx().getMxCAD(); return !!e && e.getDatabase().getLayerTable().upDisplayForLayerData(e.getDatabase(), t); }, l.screenCoord2World = function (t, e, n) { return y.MxManager.currentMx().screenCoord2World(t, e, n); }, l.worldCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Screen(t, e, n); }, l.docCoord2World = function (t, e, n) { return y.MxManager.currentMx().docCoord2World(t, e, n); }, l.worldCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Doc(t, e, n); }, l.screenCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().screenCoord2Doc(t, e, n); }, l.docCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().docCoord2Screen(t, e, n); }, l.zoomCenter = function (t, e) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomCenter(t, e), y.MxManager.currentMx().updateDisplay()); }, l.zoomW = function (t, e, n, i, r) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomW(new v.Vector3(t, e, 0), new v.Vector3(n, i, 0), r), y.MxManager.currentMx().updateDisplay()); }, l.zoomScale = function (t) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomScale(t), y.MxManager.currentMx().updateDisplay()); }, l.zoomAll = function () { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomAll(), y.MxManager.currentMx().updateDisplay()); }, l.deleteAll = function () { return y.MxManager.currentMx().deleteAll(); }, l.callCommand = function (t, e, n) { y.MxManager.currentMx().callCommand(t, e, n); }, l.getCurrentColor = function () { return y.MxManager.currentMx().getCurrentColor(); }, l.setCurrentColor = function (t) { y.MxManager.currentMx().setCurrentColor(t); }, l.undo = function () { y.MxManager.currentMx().undo(); }, l.save = function () { y.MxManager.currentMx().save(); }, l.showLoading = function () { null != d && d.ShowLoading(); }, l.hideLoading = function () { null != d && d.HideLoading(); }, l.showProp = function (t) { null != d && d.ShowObjectProperty(t); }, l.hideProp = function () { null != d && d.HideObjectProp(); }, l.getUiObject = function () { return d; }, l.getViewCenterDocCoord = function () { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().getViewCenterDocCoord() : new v.Vector3(0, 0, 0); }, l.screenCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2Doc(t) : t; }, l.docCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2Screen(t) : t; }, l.worldCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Doc(t) : t; }, l.docCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2World(t) : t; }, l.screenCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2World(t) : t; }, l.worldCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Screen(t) : t; }, l.addSelectEvent = function (t) { y.MxManager.addSelectEvent(t); }, l.clearSelectEvent = function () { y.MxManager.clearSelectEvent(); }, l.removeThreejsObject = function (t, e) { t && (t.traverse(function (t) { (t instanceof v.Mesh || t instanceof v.Line || t instanceof v.LineLoop) && t.geometry.dispose(); }), e.remove(t)); }, l.setOutServerDebugCall = function (t) { y.MxManager.setOutDebugCall(t); }, l.updateDisplay = function () { y.MxManager.updateDisplay(); }, l.getCurrentDraw =
|
|
6341
|
+
return y.MxManager.currentMx().showLayer(t, e, n); "number" == typeof t && I.MxCADDisplayFun.showLayer(i.getDatabase(), t, e); }, l.upDisplayForLayerData = function (t) { var e = y.MxManager.currentMx().getMxCAD(); return !!e && e.getDatabase().getLayerTable().upDisplayForLayerData(e.getDatabase(), t); }, l.screenCoord2World = function (t, e, n) { return y.MxManager.currentMx().screenCoord2World(t, e, n); }, l.worldCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Screen(t, e, n); }, l.docCoord2World = function (t, e, n) { return y.MxManager.currentMx().docCoord2World(t, e, n); }, l.worldCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Doc(t, e, n); }, l.screenCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().screenCoord2Doc(t, e, n); }, l.docCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().docCoord2Screen(t, e, n); }, l.zoomCenter = function (t, e) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomCenter(t, e), y.MxManager.currentMx().updateDisplay()); }, l.zoomW = function (t, e, n, i, r) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomW(new v.Vector3(t, e, 0), new v.Vector3(n, i, 0), r), y.MxManager.currentMx().updateDisplay()); }, l.zoomScale = function (t) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomScale(t), y.MxManager.currentMx().updateDisplay()); }, l.zoomAll = function () { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomAll(), y.MxManager.currentMx().updateDisplay()); }, l.deleteAll = function () { return y.MxManager.currentMx().deleteAll(); }, l.callCommand = function (t, e, n) { y.MxManager.currentMx().callCommand(t, e, n); }, l.getCurrentColor = function () { return y.MxManager.currentMx().getCurrentColor(); }, l.setCurrentColor = function (t) { y.MxManager.currentMx().setCurrentColor(t); }, l.undo = function () { y.MxManager.currentMx().undo(); }, l.save = function () { y.MxManager.currentMx().save(); }, l.showLoading = function () { null != d && d.ShowLoading(); }, l.hideLoading = function () { null != d && d.HideLoading(); }, l.showProp = function (t) { null != d && d.ShowObjectProperty(t); }, l.hideProp = function () { null != d && d.HideObjectProp(); }, l.getUiObject = function () { return d; }, l.getViewCenterDocCoord = function () { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().getViewCenterDocCoord() : new v.Vector3(0, 0, 0); }, l.screenCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2Doc(t) : t; }, l.docCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2Screen(t) : t; }, l.worldCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Doc(t) : t; }, l.docCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2World(t) : t; }, l.screenCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2World(t) : t; }, l.worldCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Screen(t) : t; }, l.addSelectEvent = function (t) { y.MxManager.addSelectEvent(t); }, l.clearSelectEvent = function () { y.MxManager.clearSelectEvent(); }, l.removeThreejsObject = function (t, e) { t && (t.traverse(function (t) { (t instanceof v.Mesh || t instanceof v.Line || t instanceof v.LineLoop) && t.geometry.dispose(); }), e.remove(t)); }, l.setOutServerDebugCall = function (t) { y.MxManager.setOutDebugCall(t); }, l.updateDisplay = function () { y.MxManager.updateDisplay(); }, l.getCurrentDraw = F, l.formatString = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
|
|
6342
6342
|
e[n - 1] = arguments[n]; for (var i = 0; i < e.length; i++)
|
|
6343
|
-
t = t.replace("{".concat(i, "}"), e[i]); return t; }, l.createMxUiObject = function (t) { var e; return e = this.isPC() ? new b.MxUiObjectPC : new w.MxUiObjectMobile, t(d = e), e.create(), e; }, l.createMxObject = function (t, e, n, i, r) { p ||
|
|
6343
|
+
t = t.replace("{".concat(i, "}"), e[i]); return t; }, l.createMxUiObject = function (t) { var e; return e = this.isPC() ? new b.MxUiObjectPC : new w.MxUiObjectMobile, t(d = e), e.create(), e; }, l.createMxObject = function (t, e, n, i, r) { p || V(), "string" == typeof t && (t = 0 == t.length ? void 0 : document.getElementById(t)), null == e && (e = l.getQueryString("file")); var a = null != i && i; if (null != e) {
|
|
6344
6344
|
0 == e.length && (e = "empty");
|
|
6345
6345
|
var o = e.substring(e.lastIndexOf(".") + 1);
|
|
6346
6346
|
"dwg" != o.toLowerCase() && "dxf" != o.toLowerCase() && "dwf" != o.toLowerCase() && "mwg" != o.toLowerCase() || (a = !0);
|
|
6347
6347
|
}
|
|
6348
6348
|
else
|
|
6349
|
-
e = "empty"; 1 == r && (e = ""); var s = null; return a ? (s = new x.MxDrawObject2d).setViewColor(0) : (s = new _.MxDrawObject3d).setViewColor(15790320), null != n && n(s), s.create(t, e), s; }, l.getMxObjectFormElement = function (t) { return y.MxManager.getMxObject(t); }, l.isRunningCommand = function () { return M.MxJigCmdManager.isRunning(); }, l.stopRunCommand = function () { return M.MxJigCmdManager.stopCmd(); }, l.runCommand = function (t) { return M.MxJigCmdManager.runCmd(t); }, l.getTHREE = function () { return v; }, l.getLine = function (t) { var e = new S.MxJigGetLine; e.setRetCall(t), M.MxJigCmdManager.runCmd(e); }, l.addCommand = function (t, e, n) { C.MxCmdRunManager.addCommand(t, e, n); }, l.sendStringToExecute =
|
|
6349
|
+
e = "empty"; 1 == r && (e = ""); var s = null; return a ? (s = new x.MxDrawObject2d).setViewColor(0) : (s = new _.MxDrawObject3d).setViewColor(15790320), null != n && n(s), s.create(t, e), s; }, l.getMxObjectFormElement = function (t) { return y.MxManager.getMxObject(t); }, l.isRunningCommand = function () { return M.MxJigCmdManager.isRunning(); }, l.stopRunCommand = function () { return M.MxJigCmdManager.stopCmd(); }, l.runCommand = function (t) { return M.MxJigCmdManager.runCmd(t); }, l.getTHREE = function () { return v; }, l.getLine = function (t) { var e = new S.MxJigGetLine; e.setRetCall(t), M.MxJigCmdManager.runCmd(e); }, l.addCommand = function (t, e, n) { C.MxCmdRunManager.addCommand(t, e, n); }, l.sendStringToExecute = z, l.init = V, l.addWindowsEvent = function (t) { A.MxWindowsEvent.addEvent(t); }, l.getCurrentMousePostion = function () { return A.MxWindowsEvent.getCurrentMousePostion(); }, l.getMxThreeJS = function () { return E.MxThreeJS; }, l.getMxTools = function () { return D.MxTools; }, l.getMxCmdRunManager = function () { return C.MxCmdRunManager; }, l.getMxJigCmdManager = function () { return M.MxJigCmdManager; }, l.initQuickCommand = function (t) { C.MxCmdRunManager.InitQuickCommand(t); }, l.Assert = function (t) { t || console.log("MxAssert error"); }, l.setIniset = function (t) { O.MxDrawData.setIniset(t); }, l.setPostMessageToParentFrameFunction = function (t) { f = t; }, l.postMessageToParentFrame = function (t) { return null != f && (f(t), !0); }, l.onParentFrameMessage = function (t) { null != t && null != t.type && m[t.type] && m[t.type](t); }, l.acutPrintf = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
|
|
6350
6350
|
e[n - 1] = arguments[n]; if (!T.MxUiVue.isNull()) {
|
|
6351
6351
|
for (var i = arguments, r = i[0], a = 0; a < i.length - 1; a++) {
|
|
6352
6352
|
var o = new RegExp("\\{" + a + "\\}", "gm");
|
|
@@ -6354,7 +6354,7 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
T.MxUiVue.AcutPrintfNoFormat(r, !0);
|
|
6356
6356
|
} };
|
|
6357
|
-
}, { "./MxCADEditDisplay": 25, "./MxCmdRunManager": 32, "./MxDrawCommands": 33, "./MxDrawData": 34, "./MxDrawObject2d": 36, "./MxDrawObject3d": 37, "./MxJigCmdManager": 42, "./MxJigGetLine": 43, "./MxLocalFileLoad": 44, "./MxManager": 45, "./MxThreeJS": 52, "./MxTools": 53, "./MxUiObjectMobile": 56, "./MxUiObjectPC": 57, "./MxUiVue": 58, "./MxWindowsEvent": 59, three: 19 }], 40: [function (t, e, n) {
|
|
6357
|
+
}, { "./MxCADEditDisplay": 25, "./MxCmdRunManager": 32, "./MxDrawCommands": 33, "./MxDrawData": 34, "./MxDrawObject2d": 36, "./MxDrawObject3d": 37, "./MxJigCmdManager": 42, "./MxJigGetLine": 43, "./MxLocalFileLoad": 44, "./MxManager": 45, "./MxThreeJS": 52, "./MxTools": 53, "./MxUiObjectMobile": 56, "./MxUiObjectPC": 57, "./MxUiVue": 58, "./MxWindowsEvent": 59, "./TempTest/MxTestJig": 61, three: 19 }], 40: [function (t, e, n) {
|
|
6358
6358
|
"use strict";
|
|
6359
6359
|
var i, r = this && this.__extends || (i = function (t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e)
|
|
6360
6360
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); })(t, e); }, function (t, e) { if ("function" != typeof e && null !== e)
|
|
@@ -6982,6 +6982,20 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
|
|
|
6982
6982
|
var t = i.MxFun.getUiObject();
|
|
6983
6983
|
null != t && t.writeUICSS();
|
|
6984
6984
|
} "undefined" == typeof MxDocumentReady ? $(document).ready(function () { r.CreateMx(); }) : MxDocumentReady(e, r.CreateMx); }, r).Main();
|
|
6985
|
-
}, { "./MxFun": 39 }]
|
|
6985
|
+
}, { "./MxFun": 39 }], 61: [function (t, e, n) {
|
|
6986
|
+
"use strict";
|
|
6987
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxTest = void 0;
|
|
6988
|
+
var i = t("../MrxDbgUiPrBase"), r = t("../MrxDbgUiPrPoint"), o = t("../MxThreeJS"), s = t("three"), l = t("../MxFun");
|
|
6989
|
+
function a(t) { var a = new r.MrxDbgUiPrPoint; a.setMessage("\n指定第一点:"), a.go(function (t) { if (0 == t) {
|
|
6990
|
+
var r = a.value(), n = new s.Vector3;
|
|
6991
|
+
n.x = r.x, n.y = r.y;
|
|
6992
|
+
var e = new i.McEdGetPointWorldDrawObject;
|
|
6993
|
+
e.setDraw(function (t, e) { e.setColor(255), e.drawLine(t, n); }), a.setUserDraw(e), a.setMessage("\n指定下一点:"), a.go(function (t) { if (0 == t) {
|
|
6994
|
+
var e = a.value(), n = l.MxFun.getCurrentDraw(), i = o.MxThreeJS.createLine(r, e, 16777215);
|
|
6995
|
+
n.addObject(i);
|
|
6996
|
+
} });
|
|
6997
|
+
} }); }
|
|
6998
|
+
(n.MxTest || (n.MxTest = {})).registerCommand = function () { l.MxFun.addCommand("MxTest_GetPoint", a); };
|
|
6999
|
+
}, { "../MrxDbgUiPrBase": 21, "../MrxDbgUiPrPoint": 22, "../MxFun": 39, "../MxThreeJS": 52, three: 19 }] }, {}, [60]); }
|
|
6986
7000
|
exports.default = mxfun;
|
|
6987
7001
|
//# sourceMappingURL=mxfun.es5.js.map
|