mxdraw 0.0.16 → 0.0.17

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.
Files changed (43) hide show
  1. package/README.md +19 -19
  2. package/dist/lib/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.js +1 -1
  3. package/dist/lib/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.js +1 -1
  4. package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +13 -0
  5. package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js.map +1 -1
  6. package/dist/lib/MxModule/MxFun/MxFun.js +11 -0
  7. package/dist/lib/MxModule/MxFun/MxFun.js.map +1 -1
  8. package/dist/lib/MxModule/MxFun/index.js +2 -2
  9. package/dist/lib/MxModule/MxFun/index.js.map +1 -1
  10. package/dist/lib/MxModule/MxThreeJS/MxThreeJS.js +1 -1
  11. package/dist/lib/MxModule/loadCoreCode/index.js +6 -0
  12. package/dist/lib/MxModule/loadCoreCode/index.js.map +1 -0
  13. package/dist/lib/MxModule/{useCoreCode/useCoreCode.js → loadCoreCode/loadCoreCode.js} +8 -7
  14. package/dist/lib/MxModule/loadCoreCode/loadCoreCode.js.map +1 -0
  15. package/dist/lib/MxModule/{useCoreCode → loadCoreCode}/mxfun.es5.js +4 -9
  16. package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js.map +1 -0
  17. package/dist/lib/MxModule/useCanvasResizeListener/useCanvasResizeListener.js +1 -1
  18. package/dist/lib/MxModule/useCanvasResizeListener/useCanvasResizeListener.js.map +1 -1
  19. package/dist/lib/doc.js +3 -3
  20. package/dist/lib/doc.js.map +1 -1
  21. package/dist/lib/mxdraw.js +4 -4
  22. package/dist/lib/mxdraw.js.map +1 -1
  23. package/dist/mxdraw.es5.js +2 -2
  24. package/dist/mxdraw.es5.js.map +1 -1
  25. package/dist/mxdraw.umd.js +2 -2
  26. package/dist/mxdraw.umd.js.map +1 -1
  27. package/dist/types/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.d.ts +1 -1
  28. package/dist/types/MxModule/MrxDbgUiPrPoint/MrxDbgUiPrPointClass.d.ts +1 -1
  29. package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +11 -0
  30. package/dist/types/MxModule/MxFun/MxFun.d.ts +9 -0
  31. package/dist/types/MxModule/MxThreeJS/MxThreeJS.d.ts +1 -1
  32. package/dist/types/MxModule/loadCoreCode/index.d.ts +3 -0
  33. package/dist/types/MxModule/loadCoreCode/loadCoreCode.d.ts +9 -0
  34. package/dist/types/MxModule/{useCoreCode → loadCoreCode}/mxfun.es5.d.ts +0 -0
  35. package/dist/types/doc.d.ts +2 -2
  36. package/dist/types/mxdraw.d.ts +3 -3
  37. package/package.json +1 -1
  38. package/dist/lib/MxModule/useCoreCode/index.js +0 -6
  39. package/dist/lib/MxModule/useCoreCode/index.js.map +0 -1
  40. package/dist/lib/MxModule/useCoreCode/mxfun.es5.js.map +0 -1
  41. package/dist/lib/MxModule/useCoreCode/useCoreCode.js.map +0 -1
  42. package/dist/types/MxModule/useCoreCode/index.d.ts +0 -3
  43. package/dist/types/MxModule/useCoreCode/useCoreCode.d.ts +0 -9
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
2
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
- 目录
4
-
5
- - [简介](#%E7%AE%80%E4%BB%8B)
6
- - [mxdraw 是什么?](#mxdraw-%E6%98%AF%E4%BB%80%E4%B9%88)
7
- - [项目应用构建](#%E9%A1%B9%E7%9B%AE%E5%BA%94%E7%94%A8%E6%9E%84%E5%BB%BA)
8
- - [基于Vue-cli构建Vue单页面应用程序](#%E5%9F%BA%E4%BA%8Evue-cli%E6%9E%84%E5%BB%BAvue%E5%8D%95%E9%A1%B5%E9%9D%A2%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F)
9
- - [安装](#%E5%AE%89%E8%A3%85)
10
- - [npm](#npm)
11
- - [用法](#%E7%94%A8%E6%B3%95)
12
- - [引入](#%E5%BC%95%E5%85%A5)
13
- - [加载](#%E5%8A%A0%E8%BD%BD)
14
- - [如何实现一个画线的功能命令?](#%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%94%BB%E7%BA%BF%E7%9A%84%E5%8A%9F%E8%83%BD%E5%91%BD%E4%BB%A4)
15
- - [按需引入配置](#%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5%E9%85%8D%E7%BD%AE)
16
- - [License](#license)
17
-
18
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
1
+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
2
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
+ 目录
4
+
5
+ - [简介](#%E7%AE%80%E4%BB%8B)
6
+ - [mxdraw 是什么?](#mxdraw-%E6%98%AF%E4%BB%80%E4%B9%88)
7
+ - [项目应用构建](#%E9%A1%B9%E7%9B%AE%E5%BA%94%E7%94%A8%E6%9E%84%E5%BB%BA)
8
+ - [基于Vue-cli构建Vue单页面应用程序](#%E5%9F%BA%E4%BA%8Evue-cli%E6%9E%84%E5%BB%BAvue%E5%8D%95%E9%A1%B5%E9%9D%A2%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F)
9
+ - [安装](#%E5%AE%89%E8%A3%85)
10
+ - [npm](#npm)
11
+ - [用法](#%E7%94%A8%E6%B3%95)
12
+ - [引入](#%E5%BC%95%E5%85%A5)
13
+ - [加载](#%E5%8A%A0%E8%BD%BD)
14
+ - [如何实现一个画线的功能命令?](#%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E7%94%BB%E7%BA%BF%E7%9A%84%E5%8A%9F%E8%83%BD%E5%91%BD%E4%BB%A4)
15
+ - [按需引入配置](#%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5%E9%85%8D%E7%BD%AE)
16
+ - [License](#license)
17
+
18
+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
19
19
  ## 简介
20
20
  ### mxdraw 是什么?
21
21
  > 是一套用于构建CAD在线绘图的JS库,可以方便快捷构建起一个网页界面,实现CAD图纸预览和编辑功能的一套解决方案
@@ -182,7 +182,7 @@ import Mx from "mxdraw"
182
182
  ``` javascript
183
183
  import Mx from "mxdraw"
184
184
  // 动态加载 js库核心代码
185
- Mx.useCoreCode().then(()=> {
185
+ Mx.loadCoreCode().then(()=> {
186
186
  // 设置服务器地址
187
187
  Mx.MxFun.setMxServer("服务器地址")
188
188
  // 创建控件对象
@@ -5,7 +5,7 @@ var store_1 = require("../store/store");
5
5
  var _McEdGetPointWorldDraw;
6
6
  /**
7
7
  * McEdGetPointWorldDrawObject 用于构建一个动态绘制回调对象
8
- * ```typescript
8
+ * @example ```typescript
9
9
  * Mx.McEdGetPointWorldDrawObject()
10
10
  * ```
11
11
  */
@@ -5,7 +5,7 @@ var store_1 = require("../store/store");
5
5
  var _MrxDbgUiPrPoint;
6
6
  /**
7
7
  * MrxDbgUiPrPoint 用于构建一个取点对象
8
- * ```typescript
8
+ * @example ```typescript
9
9
  * new Mx.MrxDbgUiPrPoint()
10
10
  * ```
11
11
  */
@@ -292,6 +292,19 @@ var MxDrawObject = /** @class */ (function () {
292
292
  MxDrawObject.prototype.setIniset = function (options) {
293
293
  return _mxdrawObj.setIniset(options);
294
294
  };
295
+ /**
296
+ * 初始WebGL Renderer的创建参数,该函数在MxFun.createMxObject函数调用时,调用。
297
+ * @param param
298
+ * @returns void
299
+ * @example
300
+ * ```typescript
301
+ * mxObj.initRendererParam({preserveDrawingBuffer: true})
302
+ *
303
+ * ```
304
+ */
305
+ MxDrawObject.prototype.initRendererParam = function (param) {
306
+ return _mxdrawObj.initRendererParam(param);
307
+ };
295
308
  return MxDrawObject;
296
309
  }());
297
310
  exports.default = MxDrawObject;
@@ -1 +1 @@
1
- {"version":3,"file":"MxDrawObject.js","sourceRoot":"","sources":["../../../../src/MxModule/MxDrawObject/MxDrawObject.ts"],"names":[],"mappings":";AAAA,2BAA2B;;AAI3B,IAAI,UAA4B,CAAA;AAChC;;;;;;;;;GASG;AACH;IACE,sBAAY,MAAwB;QAClC,UAAU,GAAG,MAAM,CAAA;IACrB,CAAC;IAMD;;;OAGG;IACH,+BAAQ,GAAR;QACE,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAA;IAC9B,CAAC;IAED;;;OAGG;IACH,gCAAS,GAAT;QACE,OAAO,UAAU,CAAC,SAAS,EAAE,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACH,kCAAW,GAAX;QACE,OAAO,UAAU,CAAC,QAAQ,CAAA;IAC5B,CAAC;IACD;;;;;;;;;OASG;IACH,0CAAmB,GAAnB,UAAoB,QAAe;QAAf,yBAAA,EAAA,eAAe;QACjC,OAAO,UAAU,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAA;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,0CAAmB,GAAnB;QACE,OAAO,UAAU,CAAC,mBAAmB,EAAE,CAAA;IACzC,CAAC;IAED;;;OAGG;IACH,gCAAS,GAAT;QACE,OAAO,UAAU,CAAC,SAAS,EAAE,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACH,oCAAa,GAAb;QACE,OAAO,UAAU,CAAC,aAAa,EAAE,CAAA;IACnC,CAAC;IACD;;;;;;;;;;;OAWG;IACH,4CAAqB,GAArB,UAAsB,EAA+B,EAAE,KAAc;QACnE,OAAO,UAAU,CAAC,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;IACpD,CAAC;IAED;;;;;;;;OAQG;IACH,mCAAY,GAAZ,UAAa,KAAa;QACxB,OAAO,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IACvC,CAAC;IAED;;;;;;;;;OASG;IACH,8BAAO,GAAP,UAAQ,KAAa,EAAE,MAAc;QAC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,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC5C,CAAC;IACH,mBAAC;AAAD,CAAC,AA7TD,IA6TC"}
@@ -432,6 +432,17 @@ var MxFun = /** @class */ (function () {
432
432
  MxFun.prototype.upDisplayForLayerData = function (dataLayers) {
433
433
  return store_1.default.state.MxFun.upDisplayForLayerData(dataLayers);
434
434
  };
435
+ /**
436
+ * 初始化插件的UI数据对象。
437
+ * @param uiDataObj
438
+ * @return
439
+ * @example
440
+ * ``` typescript
441
+ * ```
442
+ */
443
+ MxFun.prototype.initUiDataObject = function (uiDataObj) {
444
+ return store_1.default.state.MxFun.initUiDataObject(uiDataObj);
445
+ };
435
446
  /**
436
447
  * 梦想开发测试
437
448
  * @param p
@@ -1 +1 @@
1
- {"version":3,"file":"MxFun.js","sourceRoot":"","sources":["../../../../src/MxModule/MxFun/MxFun.ts"],"names":[],"mappings":";;AAIA,uDAA8D;AAC9D,iDAAyE;AACzE,2CAAqD;AAErD,gDAA0C;AAC1C,wCAAkC;AAClC,IAAI,UAAwB,CAAA;AAE5B;;;;;;GAMG;AACH;IACE;QACE,SAAS;QACT,IAAA,yBAAiB,EAAC,IAAI,EAAE,eAAK,CAAC,KAAK,CAAC,KAAkB,EAAE,YAAY,CAAC,CAAA;IACvE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,8BAAc,GAAd,UAAe,EAgBd;QAhBD,iBAwDC;YAvDC,gBAA4B,EAA5B,QAAQ,mBAAG,IAAA,wBAAe,GAAE,KAAA,EAC5B,gBAAsB,EAAtB,QAAQ,mBAAG,WAAW,KAAA,EACtB,QAAQ,cAAA,EACR,iBAAgB,EAAhB,SAAS,mBAAG,IAAI,KAAA;QAahB,eAAe;QACf,IAAM,MAAM,GAAG,IAAA,qBAAY,EAAC,QAAQ,CAAC,CAAA;QACrC,IAAM,YAAY,GAAG,IAAA,2BAAkB,EAAC,MAAM,CAAiB,CAAA;QAE/D,IAAI,CAAC,YAAY,CAAC,UAAU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;IAED;;;;;;;;;;;OAWG;IACH,yBAAS,GAAT,UAAU,OAAwB,EAAE,MAAe,EAAE,QAAkB;QACrE,OAAQ,eAAK,CAAC,KAAK,CAAC,KAAmB,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC9E,CAAC;IAaD,qDAAqD;IACrD,gEAAgE;IAChE,IAAI;IAEJ;;;;;;;;OAQG;IACH,+BAAe,GAAf;QACE,OAAO,UAAU,CAAA;QACjB,4DAA4D;IAC9D,CAAC;IAED;;;;;;;;OAQG;IACH,8BAAc,GAAd,UAAe,IAAY;QACzB,OAAQ,eAAK,CAAC,KAAK,CAAC,KAAmB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;IAC9D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,yBAAS,GAAT,UAAU,MAAwC;QAChD,OAAQ,eAAK,CAAC,KAAK,CAAC,KAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IAC3D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,qCAAqB,GAArB,UAAsB,UAAe;QACnC,OAAQ,eAAK,CAAC,KAAK,CAAC,KAAmB,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAA;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,gCAAgB,GAAhB,UAAiB,SAAc;QAC7B,OAAQ,eAAK,CAAC,KAAK,CAAC,KAAmB,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,sBAAM,GAAN,UAAO,CAAO;QACZ,OAAO,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;IACH,YAAC;AAAD,CAAC,AApfD,IAofC"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var MxFun_1 = require("./MxFun");
4
4
  // import store from '../store/_index'
5
- // import useCoreCode from '../useCoreCode'
5
+ // import loadCoreCode from '../loadCoreCode'
6
6
  // if (!store.state.MxFUn) {
7
- // useCoreCode()
7
+ // loadCoreCode()
8
8
  // }
9
9
  exports.default = new MxFun_1.default();
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/MxModule/MxFun/index.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,sCAAsC;AACtC,2CAA2C;AAC3C,4BAA4B;AAC5B,kBAAkB;AAClB,IAAI;AACJ,kBAAe,IAAI,eAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/MxModule/MxFun/index.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,sCAAsC;AACtC,6CAA6C;AAC7C,4BAA4B;AAC5B,mBAAmB;AACnB,IAAI;AACJ,kBAAe,IAAI,eAAW,EAAE,CAAA"}
@@ -24,7 +24,7 @@ var formatting_1 = require("../../tools/formatting");
24
24
  * // js
25
25
  * import Mx from "mxdraw"
26
26
  * import Three from "three"
27
- * Mx.useCoreCode().then(()=> {
27
+ * Mx.loadCoreCode().then(()=> {
28
28
  * Mx.MxFun.setMxServer()
29
29
  * Mx.MxFun.createMxObject({
30
30
  * callback(mxDraw, dom) {
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** @module loadCoreCode */
4
+ var loadCoreCode_1 = require("./loadCoreCode");
5
+ exports.default = loadCoreCode_1.default;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/MxModule/loadCoreCode/index.ts"],"names":[],"mappings":";;AAAA,2BAA2B;AAC3B,+CAAyC;AACzC,kBAAe,sBAAY,CAAA"}
@@ -39,14 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var store_1 = require("../store/store");
40
40
  var mxfun_es5_js_1 = require("./mxfun.es5.js");
41
41
  /**
42
- * 使用库的核心代码 才能使用Mx的其他模块
42
+ * 加载MxDraw库的核心代码 才能使用Mx的其他模块
43
43
  * @returns Promise<{@link MxFun}>
44
44
  * @example
45
45
  * ```
46
- * Mx.useCoreCode().then(()=> console.log("加载完成", Mx.MxFun))
46
+ * Mx.loadCoreCode().then(()=> console.log("加载完成", Mx.MxFun))
47
47
  * ```
48
48
  */
49
- function useCoreCode() {
49
+ function loadCoreCode() {
50
50
  return __awaiter(this, void 0, void 0, function () {
51
51
  var _this = this;
52
52
  return __generator(this, function (_a) {
@@ -56,10 +56,10 @@ function useCoreCode() {
56
56
  // 加载jQuery
57
57
  try {
58
58
  if (store_1.default.state.MxFun) {
59
- console.error('内部已调用useCoreCode, 无需重复调用!');
59
+ console.error('内部已调用loadCoreCode, 无需重复调用!');
60
60
  return [2 /*return*/, rej({
61
61
  code: 'error',
62
- msg: '内部已调用useCoreCode, 无需重复调用'
62
+ msg: '内部已调用loadCoreCode, 无需重复调用'
63
63
  })];
64
64
  }
65
65
  jQuery_1 = require('jquery');
@@ -82,6 +82,7 @@ function useCoreCode() {
82
82
  res();
83
83
  return 0;
84
84
  };
85
+ // 加载mxfun.min.js,mxfun()相当直接模拟了mxfun.min.js的加载。
85
86
  (0, mxfun_es5_js_1.default)();
86
87
  }
87
88
  catch (e) {
@@ -96,5 +97,5 @@ function useCoreCode() {
96
97
  });
97
98
  });
98
99
  }
99
- exports.default = useCoreCode;
100
- //# sourceMappingURL=useCoreCode.js.map
100
+ exports.default = loadCoreCode;
101
+ //# sourceMappingURL=loadCoreCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadCoreCode.js","sourceRoot":"","sources":["../../../../src/MxModule/loadCoreCode/loadCoreCode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wCAAkC;AAClC,+CAAkC;AAElC;;;;;;;GAOG;AACH,SAA8B,YAAY;;;;YACxC,sBAAO,IAAI,OAAO,CAAO,UAAO,GAAG,EAAE,GAAG;;;wBACtC,W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fun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
5960
5960
  Object.defineProperty(n, "__esModule", { value: !0 }), n.MxDrawObject = n.IniSetName = n.MxRunMode = void 0;
5961
5961
  var s, i, r, c = t("three"), u = t("./MxFun"), a = t("./MxCadSketchLayer"), o = t("./MxBrowseLayerData"), l = t("./MxBrowseDisplay"), L = t("./MxNetData"), h = t("./MxNetData"), d = t("./MxSelect"), p = t("./MxManager"), f = t("./MxJigCmdManager"), m = t("./MxSystemVariable"), g = t("./MxCADObject"), v = t("./MxLocalFileLoad"), y = t("./MxDrawObjectOsnap");
5962
5962
  (i = s = n.MxRunMode || (n.MxRunMode = {}))[i.kBrowse = 1] = "kBrowse", i[i.kMxCAD = 2] = "kMxCAD", i[i.kMxCADBrowseApp = 3] = "kMxCADBrowseApp", (r = n.IniSetName || (n.IniSetName = {})).kEnableOsnapFunction = "EnableOsnapFunction";
5963
- var x = (_.prototype.setOtherRefFile = function (t) { this._tzDwgStaticFile = t; }, _.prototype.setRequestHeader = function (t) { this._requestHeader = t; }, _.prototype.initZoomW = function (t, e) { this._initZoomwCoordPt1 = t.clone(), this._initZoomWCoordPt2 = e.clone(); }, _.prototype.getMxCAD = function () { return this._mxCAD; }, _.prototype.setMouseRightRotate = function (t) { this._mouseRightRotate = t, null != this.controls && (this.controls.mouseButtons.RIGHT = t ? c.MOUSE.ROTATE : c.MOUSE.PAN); }, _.prototype.initRunMode = function (t) { this._isCreate ? console.log("iniRunMode failed,mxobject already created") : this._runMode = t; }, _.prototype.getRunMode = function () { return this._runMode; }, _.prototype.setStaticLocalLoad = function (t) { this._isStaticLocalLoad = t; }, _.prototype.isStaticLocalLoad = function () { return this._isStaticLocalLoad; }, _.prototype.setStaticLocalLoadPath = function (t) { this._staticLocalLoadPath = t; }, _.prototype.addEvent = function (t, e) { this._event[t] = e; }, _.prototype.removeEvent = function (t) { this._event[t] = void 0; }, _.prototype.getEvent = function () { return this._event; }, _.prototype.sysVariable = function () { return this.m_sysVariable; }, _.prototype.setIniset = function (t) { this.m_iniSet = t; }, _.prototype.getInisetValue = function (t) { return this.m_iniSet[t]; }, _.prototype.getViewColor = function () { return this._viewcolor; }, _.prototype.isWhiteViewColor = function () { return 16777215 == this._viewcolor; }, _.prototype.initUserLoginData = function (t, e) { this._userIdentitySign = t, this._userRandomToken = e; }, _.prototype.automaticInversionColor = function (t) { return 16777215 != this._viewcolor || 16777215 != t ? t : 0; }, _.prototype.setViewColor = function (t) { this._viewcolor = t, null != this.scene && (this.scene.background = new c.Color(t)); }, _.prototype.callInitCompleteEvent = function () { null != this._event.loadComplete && this._event.loadComplete(); }, _.prototype.callEvent = function (t, e) { return null != this._event[t] && (this._event[t](e), !0); }, _.prototype.userLoginResult = function (t) { null != this._event.userLoginResult && this._event.userLoginResult(t); }, _.prototype.serverReturn = function (t) { var e = JSON.parse(t); null != this._event.serverReturn && this._event.serverReturn(e); }, _.prototype.openFileResult = function (t) { JSON.parse(t).linkServer || console.log("link mx serverobj error"), null != this._event.openFileResult && this._event.openFileResult(t); }, _.prototype.xzSize = function (t) { var e = this._devicePixelRatio; if (e - 1 <= 1e-4 && -1e-4 <= e - 1)
5963
+ var x = (_.prototype.setOtherRefFile = function (t) { this._tzDwgStaticFile = t; }, _.prototype.setRequestHeader = function (t) { this._requestHeader = t; }, _.prototype.initZoomW = function (t, e) { this._initZoomwCoordPt1 = t.clone(), this._initZoomWCoordPt2 = e.clone(); }, _.prototype.getMxCAD = function () { return this._mxCAD; }, _.prototype.setMouseRightRotate = function (t) { this._mouseRightRotate = t, null != this.controls && (this.controls.mouseButtons.RIGHT = t ? c.MOUSE.ROTATE : c.MOUSE.PAN); }, _.prototype.initRunMode = function (t) { this._isCreate ? console.log("iniRunMode failed,mxobject already created") : this._runMode = t; }, _.prototype.getRunMode = function () { return this._runMode; }, _.prototype.setStaticLocalLoad = function (t) { this._isStaticLocalLoad = t; }, _.prototype.isStaticLocalLoad = function () { return this._isStaticLocalLoad; }, _.prototype.setStaticLocalLoadPath = function (t) { this._staticLocalLoadPath = t; }, _.prototype.addEvent = function (t, e) { this._event[t] = e; }, _.prototype.removeEvent = function (t) { this._event[t] = void 0; }, _.prototype.getEvent = function () { return this._event; }, _.prototype.sysVariable = function () { return this.m_sysVariable; }, _.prototype.setIniset = function (t) { this.m_iniSet = t; }, _.prototype.getInisetValue = function (t) { return this.m_iniSet[t]; }, _.prototype.getViewColor = function () { return this._viewcolor; }, _.prototype.isWhiteViewColor = function () { return 16777215 == this._viewcolor; }, _.prototype.initUserLoginData = function (t, e) { this._userIdentitySign = t, this._userRandomToken = e; }, _.prototype.initRendererParam = function (t) { this._rendererParam = t; }, _.prototype.automaticInversionColor = function (t) { return 16777215 != this._viewcolor || 16777215 != t ? t : 0; }, _.prototype.setViewColor = function (t) { this._viewcolor = t, null != this.scene && (this.scene.background = new c.Color(t)); }, _.prototype.callInitCompleteEvent = function () { null != this._event.loadComplete && this._event.loadComplete(); }, _.prototype.callEvent = function (t, e) { return null != this._event[t] && (this._event[t](e), !0); }, _.prototype.userLoginResult = function (t) { null != this._event.userLoginResult && this._event.userLoginResult(t); }, _.prototype.serverReturn = function (t) { var e = JSON.parse(t); null != this._event.serverReturn && this._event.serverReturn(e); }, _.prototype.openFileResult = function (t) { JSON.parse(t).linkServer || console.log("link mx serverobj error"), null != this._event.openFileResult && this._event.openFileResult(t); }, _.prototype.xzSize = function (t) { var e = this._devicePixelRatio; if (e - 1 <= 1e-4 && -1e-4 <= e - 1)
5964
5964
  return t; for (var n = 9999999, i = t, r = 0, a = t; r < 100; r++) {
5965
5965
  if ((s = (o = a * e) - Math.floor(o)) <= .001)
5966
5966
  return a;
@@ -6135,7 +6135,7 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
6135
6135
  C.addGeometryMesh(l, c, r, h, u, d), M.createThreejsObj(C, this, S);
6136
6136
  }
6137
6137
  } }, _.prototype.mxWebCreateAllBlocks = function (t, e) { var n = new L.MxNetData(t).getDatabaseIndex(); -1 != e && (n = e); var i = this._blocks; 0 != n && (i = this._extRefManager.getBlocks(n)), i.createBlocks(t, this.scene); }, _.prototype.mxWebEntitysData = function (t, e) { -1 == e && this._objectsOsnap.mxWebEntitysData(t, e); }, _.prototype.getObjectOsnap = function () { return this._objectsOsnap; }, _);
6138
- function _() { this._is2d = !0, this._runMode = s.kBrowse, this._mxCAD = null, this._userCanvas = null, this._openFile = "empty", this._openFileExtName = "", this._userIdentitySign = "", this._userRandomToken = "", this._isCreate = !1, this.m_iniSet = {}, this._net = null, this._staticNet = null, this._staticLoadTzNet = null, this._staticLocalNet = null, this._isStaticLocalLoad = !1, this._staticLocalLoadPath = "", this._viewWidth = 1, this._viewHeight = 1, this.m_sysVariable = new m.MxSystemVariable, this._color = "#FFFFFF", this._viewcolor = 15790320, this._isAnimation = !1, this._isAnimationStarting = !1, this._isWaiteCount = 0, this._callCreateCanvasImageData = void 0, this._event = {}, this.scene = null, this.camera = null, this.secenView = null, this.cameraView = null, this.renderer = null, this.controls = null, this.threejsselectObjects = null, this.threejsselectObjectsView = null, this._mouseRightRotate = !0, this._mapId2Entity = new Map, this._setAdyDelete = new Map, this._sketchLayers = new a.MxCadSketchLayers(this), this._layers = new o.MxBrowseLayerData, this._blocks = new l.Blocks, this._extRefManager = new l.ExternalReferenceManager, this._doc2World = new c.Matrix4, this._word2doc = new c.Matrix4, this._allLayoutName = new Array, this._devicePixelRatio = 1, this._tzDwgStaticFile = "", this._requestHeader = "", this._objectsOsnap = null, this._initZoomwCoordPt1 = null, this._initZoomWCoordPt2 = null, this._blocks.initRootBlockRef(), this.m_iniSet[r.kEnableOsnapFunction] = !1, this.m_sysVariable.init(this); }
6138
+ function _() { this._is2d = !0, this._runMode = s.kBrowse, this._mxCAD = null, this._userCanvas = null, this._openFile = "empty", this._openFileExtName = "", this._userIdentitySign = "", this._rendererParam = void 0, this._userRandomToken = "", this._isCreate = !1, this.m_iniSet = {}, this._net = null, this._staticNet = null, this._staticLoadTzNet = null, this._staticLocalNet = null, this._isStaticLocalLoad = !1, this._staticLocalLoadPath = "", this._viewWidth = 1, this._viewHeight = 1, this.m_sysVariable = new m.MxSystemVariable, this._color = "#FFFFFF", this._viewcolor = 15790320, this._isAnimation = !1, this._isAnimationStarting = !1, this._isWaiteCount = 0, this._callCreateCanvasImageData = void 0, this._event = {}, this.scene = null, this.camera = null, this.secenView = null, this.cameraView = null, this.renderer = null, this.controls = null, this.threejsselectObjects = null, this.threejsselectObjectsView = null, this._mouseRightRotate = !0, this._mapId2Entity = new Map, this._setAdyDelete = new Map, this._sketchLayers = new a.MxCadSketchLayers(this), this._layers = new o.MxBrowseLayerData, this._blocks = new l.Blocks, this._extRefManager = new l.ExternalReferenceManager, this._doc2World = new c.Matrix4, this._word2doc = new c.Matrix4, this._allLayoutName = new Array, this._devicePixelRatio = 1, this._tzDwgStaticFile = "", this._requestHeader = "", this._objectsOsnap = null, this._initZoomwCoordPt1 = null, this._initZoomWCoordPt2 = null, this._blocks.initRootBlockRef(), this.m_iniSet[r.kEnableOsnapFunction] = !1, this.m_sysVariable.init(this); }
6139
6139
  n.MxDrawObject = x;
6140
6140
  }, { "./MxBrowseDisplay": 23, "./MxBrowseLayerData": 24, "./MxCADObject": 28, "./MxCadSketchLayer": 31, "./MxDrawObjectOsnap": 38, "./MxFun": 39, "./MxJigCmdManager": 42, "./MxLocalFileLoad": 44, "./MxManager": 45, "./MxNetData": 47, "./MxSelect": 48, "./MxSystemVariable": 51, three: 19 }], 36: [function (t, e, n) {
6141
6141
  "use strict";
@@ -6164,12 +6164,7 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
6164
6164
  this.secenView.add(n);
6165
6165
  var i = new g.DirectionalLight(16777215, 1);
6166
6166
  i.position.set(-2, 2, 3).normalize(), this.secenView.add(i), this.threejsselectObjectsView = new g.Object3D, this.secenView.add(this.threejsselectObjectsView);
6167
- } }, d.prototype.onInitThreejs = function () { var t = this.getViewWidth(), e = this.getViewHeight(), n = (t = this.xzSize(t)) / (e = this.xzSize(e)) * 50; this.initViewScene(), this.camera = new g.OrthographicCamera(n / -2, n / 2, 25, -25, 1, 1e3), this.camera.position.set(0, 0, 200), this.scene = new g.Scene; var i = this.getUserCanvas(); if (null == i)
6168
- this.renderer = new g.WebGLRenderer({ antialias: !1 }), this.renderer.setClearColor(0, 1), this.renderer.setPixelRatio(this._devicePixelRatio), this.renderer.setSize(t, e), document.body.appendChild(this.renderer.domElement);
6169
- else {
6170
- var r = {};
6171
- r.canvas = i, this.renderer = new g.WebGLRenderer(r), this.renderer.setClearColor(0, 1), this.renderer.setPixelRatio(this._devicePixelRatio);
6172
- } this.renderer.sortObjects = !0; var a = this.getUserCanvas(); null == a && (a = this.renderer.domElement), this.controls = new l.OrbitControls(this.camera, a), this.is3DDraw || (this.controls.enableZoom = !0), o.MxFun.isPC() ? (this.controls.zoomSpeed = 4, this.controls.mouseButtons.LEFT = g.MOUSE.PAN, this._mouseRightRotate ? this.controls.mouseButtons.RIGHT = g.MOUSE.ROTATE : this.controls.mouseButtons.RIGHT = g.MOUSE.PAN) : (this.controls.zoomSpeed = 1.5, this.controls.touches.ONE = g.TOUCH.PAN), this.controls.screenSpacePanning = !0; }, d.prototype.onCreate = function () { this._is2d = !0, this.onInitScene(); }, d.prototype.mxWebAddEntity_3DChild = function (t) { var e = new c.MxNetData(t), n = e.getMesh(); if (null == n.id)
6167
+ } }, d.prototype.onInitThreejs = function () { var t = this.getViewWidth(), e = this.getViewHeight(), n = (t = this.xzSize(t)) / (e = this.xzSize(e)) * 50; this.initViewScene(), this.camera = new g.OrthographicCamera(n / -2, n / 2, 25, -25, 1, 1e3), this.camera.position.set(0, 0, 200), this.scene = new g.Scene; var i = this.getUserCanvas(), r = this._rendererParam; r = r || {}, null == i ? (r.antialias = !1, this.renderer = new g.WebGLRenderer(r), this.renderer.setClearColor(0, 1), this.renderer.setPixelRatio(this._devicePixelRatio), this.renderer.setSize(t, e), document.body.appendChild(this.renderer.domElement)) : (r.canvas = i, this.renderer = new g.WebGLRenderer(r), this.renderer.setClearColor(0, 1), this.renderer.setPixelRatio(this._devicePixelRatio)), this.renderer.sortObjects = !0; var a = this.getUserCanvas(); null == a && (a = this.renderer.domElement), this.controls = new l.OrbitControls(this.camera, a), this.is3DDraw || (this.controls.enableZoom = !0), o.MxFun.isPC() ? (this.controls.zoomSpeed = 4, this.controls.mouseButtons.LEFT = g.MOUSE.PAN, this._mouseRightRotate ? this.controls.mouseButtons.RIGHT = g.MOUSE.ROTATE : this.controls.mouseButtons.RIGHT = g.MOUSE.PAN) : (this.controls.zoomSpeed = 1.5, this.controls.touches.ONE = g.TOUCH.PAN), this.controls.screenSpacePanning = !0; }, d.prototype.onCreate = function () { this._is2d = !0, this.onInitScene(); }, d.prototype.mxWebAddEntity_3DChild = function (t) { var e = new c.MxNetData(t), n = e.getMesh(); if (null == n.id)
6173
6168
  return n.size; var i = new g.Mesh(n.geometry, u.MxMaterial.GetBaseColorMaterial(n.nColorIndex)); return this.removeEntity(n.id), this.scene.add(i), n.isSketchEntity && (this.addEntity(n.id, i), this.getSketchLayers().addEntity(n.id, e.getLayerId())), n.size; }, d.prototype.mxWebAddEntity_Curve = function (t, e) { var n = new c.MxNetData(t), i = n.getCurve(e); if (null != i.id) {
6174
6169
  var r = u.MxMaterial.GetCurveColorMaterial(i.colorIndex), a = new g.LineSegments(i.geometry, r);
6175
6170
  this.removeEntity(i.id), this.scene.add(a), i.isSketchEntity && (this.addEntity(i.id, a), this.getSketchLayers().addEntity(i.id, n.getLayerId()));
@@ -6346,7 +6341,7 @@ function mxfun() { !function a(o, s, l) { function c(e, t) { if (!s[e]) {
6346
6341
  "dwg" != o.toLowerCase() && "dxf" != o.toLowerCase() && "dwf" != o.toLowerCase() && "mwg" != o.toLowerCase() || (a = !0);
6347
6342
  }
6348
6343
  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 = 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++)
6344
+ 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.initUiDataObject = function (t) { t.init(l), T.MxUiVue.init(t); }, 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
6345
  e[n - 1] = arguments[n]; if (!T.MxUiVue.isNull()) {
6351
6346
  for (var i = arguments, r = i[0], a = 0; a < i.length - 1; a++) {
6352
6347
  var o = new RegExp("\\{" + a + "\\}", "gm");