mxcad 1.0.150 → 1.0.151

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/mxcad.es.js CHANGED
@@ -692,7 +692,7 @@ var MxG2312 = /*#__PURE__*/function () {
692
692
  }();
693
693
  var MxG2312Obj = new MxG2312();
694
694
 
695
- const version$1 = "1.0.150";
695
+ const version$1 = "1.0.151";
696
696
 
697
697
  var isSharedArrayBuffer = ("SharedArrayBuffer" in window);
698
698
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
@@ -12912,75 +12912,96 @@ function _Mx_ZoomE() {
12912
12912
  }));
12913
12913
  return _Mx_ZoomE.apply(this, arguments);
12914
12914
  }
12915
+ function Mx_Plan90CW() {
12916
+ return _Mx_Plan90CW.apply(this, arguments);
12917
+ }
12918
+ function _Mx_Plan90CW() {
12919
+ _Mx_Plan90CW = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee8() {
12920
+ var lAng, mxcad;
12921
+ return regenerator.wrap(function _callee8$(_context8) {
12922
+ while (1) switch (_context8.prev = _context8.next) {
12923
+ case 0:
12924
+ lAng = MxFun.getCurrentDraw().getViewAngle();
12925
+ lAng += Math.PI * 0.5;
12926
+ mxcad = MxCpp.getCurrentMxCAD();
12927
+ mxcad.zoomAngle(lAng);
12928
+ case 4:
12929
+ case "end":
12930
+ return _context8.stop();
12931
+ }
12932
+ }, _callee8);
12933
+ }));
12934
+ return _Mx_Plan90CW.apply(this, arguments);
12935
+ }
12915
12936
  function Mx_Offset() {
12916
12937
  return _Mx_Offset.apply(this, arguments);
12917
12938
  }
12918
12939
  function _Mx_Offset() {
12919
- _Mx_Offset = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee8() {
12940
+ _Mx_Offset = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee9() {
12920
12941
  var getDist, dist, filter, retIds, getPoint, pt, curve, aryObj;
12921
- return regenerator.wrap(function _callee8$(_context8) {
12922
- while (1) switch (_context8.prev = _context8.next) {
12942
+ return regenerator.wrap(function _callee9$(_context9) {
12943
+ while (1) switch (_context9.prev = _context9.next) {
12923
12944
  case 0:
12924
12945
  getDist = new MxCADUiPrDist();
12925
12946
  getDist.setMessage("\n\u6307\u5B9A\u504F\u79FB\u8DDD\u79BB\u6216:");
12926
- _context8.next = 4;
12947
+ _context9.next = 4;
12927
12948
  return getDist.go();
12928
12949
  case 4:
12929
- dist = _context8.sent;
12950
+ dist = _context9.sent;
12930
12951
  if (!(dist == null)) {
12931
- _context8.next = 7;
12952
+ _context9.next = 7;
12932
12953
  break;
12933
12954
  }
12934
- return _context8.abrupt("return");
12955
+ return _context9.abrupt("return");
12935
12956
  case 7:
12936
12957
  filter = new MxCADResbuf();
12937
12958
  filter.AddMcDbEntityTypes("LINE,CIRCLE,LWPOLYLINE,ARC");
12938
- _context8.next = 11;
12959
+ _context9.next = 11;
12939
12960
  return MxCADUtility.selectEnt("\n\u9009\u62E9\u504F\u79FB\u5BF9\u8C61", filter, false);
12940
12961
  case 11:
12941
- retIds = _context8.sent;
12962
+ retIds = _context9.sent;
12942
12963
  if (!(retIds.length == 0)) {
12943
- _context8.next = 14;
12964
+ _context9.next = 14;
12944
12965
  break;
12945
12966
  }
12946
- return _context8.abrupt("return");
12967
+ return _context9.abrupt("return");
12947
12968
  case 14:
12948
12969
  getPoint = new MxCADUiPrPoint();
12949
12970
  getPoint.setDynamicInputType(DynamicInputType.kXYCoordInput);
12950
12971
  getPoint.setMessage("\n\u6307\u5B9A\u8981\u504F\u79FB\u90A3\u4E00\u4FA7\u4E0A\u7684\u70B9:");
12951
12972
  getPoint.disableAllTrace();
12952
- _context8.next = 20;
12973
+ _context9.next = 20;
12953
12974
  return getPoint.go();
12954
12975
  case 20:
12955
- pt = _context8.sent;
12976
+ pt = _context9.sent;
12956
12977
  if (!(pt == null)) {
12957
- _context8.next = 23;
12978
+ _context9.next = 23;
12958
12979
  break;
12959
12980
  }
12960
- return _context8.abrupt("return");
12981
+ return _context9.abrupt("return");
12961
12982
  case 23:
12962
12983
  curve = retIds[0].getMcDbCurve();
12963
12984
  if (curve) {
12964
- _context8.next = 26;
12985
+ _context9.next = 26;
12965
12986
  break;
12966
12987
  }
12967
- return _context8.abrupt("return");
12988
+ return _context9.abrupt("return");
12968
12989
  case 26:
12969
12990
  aryObj = curve.offsetCurves(dist, pt);
12970
12991
  if (!aryObj.empty()) {
12971
- _context8.next = 29;
12992
+ _context9.next = 29;
12972
12993
  break;
12973
12994
  }
12974
- return _context8.abrupt("return");
12995
+ return _context9.abrupt("return");
12975
12996
  case 29:
12976
12997
  aryObj.forEach(function (obj) {
12977
12998
  MxCpp.getCurrentMxCAD().drawEntity(obj);
12978
12999
  });
12979
13000
  case 30:
12980
13001
  case "end":
12981
- return _context8.stop();
13002
+ return _context9.stop();
12982
13003
  }
12983
- }, _callee8);
13004
+ }, _callee9);
12984
13005
  }));
12985
13006
  return _Mx_Offset.apply(this, arguments);
12986
13007
  }
@@ -12991,21 +13012,21 @@ function Mx_Mirror() {
12991
13012
  return _Mx_Mirror.apply(this, arguments);
12992
13013
  }
12993
13014
  function _Mx_Mirror() {
12994
- _Mx_Mirror = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee9() {
13015
+ _Mx_Mirror = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee10() {
12995
13016
  var aryId, minPt, maxPt, retBox, getPoint, ptBase, mxcad, ptBase2, i, tmp;
12996
- return regenerator.wrap(function _callee9$(_context9) {
12997
- while (1) switch (_context9.prev = _context9.next) {
13017
+ return regenerator.wrap(function _callee10$(_context10) {
13018
+ while (1) switch (_context10.prev = _context10.next) {
12998
13019
  case 0:
12999
- _context9.next = 2;
13020
+ _context10.next = 2;
13000
13021
  return MxCADUtility.userSelect("\u9009\u62E9\u955C\u50CF\u5BF9\u8C61");
13001
13022
  case 2:
13002
- aryId = _context9.sent;
13023
+ aryId = _context10.sent;
13003
13024
  if (!(aryId.length == 0)) {
13004
- _context9.next = 6;
13025
+ _context10.next = 6;
13005
13026
  break;
13006
13027
  }
13007
13028
  MxFun.acutPrintf("\n \u6CA1\u6709\u80FD\u955C\u50CF\u7684\u5BF9\u8C61");
13008
- return _context9.abrupt("return");
13029
+ return _context10.abrupt("return");
13009
13030
  case 6:
13010
13031
  retBox = MxGetMcDbEntityBoundingBox(aryId);
13011
13032
  if (retBox) {
@@ -13014,15 +13035,15 @@ function _Mx_Mirror() {
13014
13035
  }
13015
13036
  getPoint = new MxCADUiPrPoint();
13016
13037
  getPoint.setMessage("\u6307\u5B9A\u57FA\u70B9");
13017
- _context9.next = 12;
13038
+ _context10.next = 12;
13018
13039
  return getPoint.go();
13019
13040
  case 12:
13020
- ptBase = _context9.sent;
13041
+ ptBase = _context10.sent;
13021
13042
  if (!(ptBase == null)) {
13022
- _context9.next = 15;
13043
+ _context10.next = 15;
13023
13044
  break;
13024
13045
  }
13025
- return _context9.abrupt("return");
13046
+ return _context10.abrupt("return");
13026
13047
  case 15:
13027
13048
  getPoint.setMessage("\u6307\u5B9A\u955C\u5411\u70B9");
13028
13049
  getPoint.setBasePt(ptBase);
@@ -13059,40 +13080,40 @@ function _Mx_Mirror() {
13059
13080
  }
13060
13081
  });
13061
13082
  getPoint.setDynamicInputType(DynamicInputType.kXYCoordInput);
13062
- _context9.next = 23;
13083
+ _context10.next = 23;
13063
13084
  return getPoint.go();
13064
13085
  case 23:
13065
- ptBase2 = _context9.sent;
13086
+ ptBase2 = _context10.sent;
13066
13087
  if (ptBase2) {
13067
- _context9.next = 26;
13088
+ _context10.next = 26;
13068
13089
  break;
13069
13090
  }
13070
- return _context9.abrupt("return");
13091
+ return _context10.abrupt("return");
13071
13092
  case 26:
13072
13093
  i = 0;
13073
13094
  case 27:
13074
13095
  if (!(i < aryId.length)) {
13075
- _context9.next = 36;
13096
+ _context10.next = 36;
13076
13097
  break;
13077
13098
  }
13078
13099
  tmp = aryId[i].clone();
13079
13100
  if (tmp) {
13080
- _context9.next = 31;
13101
+ _context10.next = 31;
13081
13102
  break;
13082
13103
  }
13083
- return _context9.abrupt("continue", 33);
13104
+ return _context10.abrupt("continue", 33);
13084
13105
  case 31:
13085
13106
  tmp.mirror(ptBase, ptBase2);
13086
13107
  MxCpp.getCurrentMxCAD().drawEntity(tmp);
13087
13108
  case 33:
13088
13109
  i++;
13089
- _context9.next = 27;
13110
+ _context10.next = 27;
13090
13111
  break;
13091
13112
  case 36:
13092
13113
  case "end":
13093
- return _context9.stop();
13114
+ return _context10.stop();
13094
13115
  }
13095
- }, _callee9);
13116
+ }, _callee10);
13096
13117
  }));
13097
13118
  return _Mx_Mirror.apply(this, arguments);
13098
13119
  }
@@ -13100,73 +13121,73 @@ function Mx_Chamfer() {
13100
13121
  return _Mx_Chamfer.apply(this, arguments);
13101
13122
  }
13102
13123
  function _Mx_Chamfer() {
13103
- _Mx_Chamfer = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee10() {
13124
+ _Mx_Chamfer = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee11() {
13104
13125
  var _id1$getMcDbEntity, _id1$getMcDbEntity2;
13105
13126
  var getDist, dist1, dist2, filter, selEntity1, id1, pt1, selEntity2, id2, pt2;
13106
- return regenerator.wrap(function _callee10$(_context10) {
13107
- while (1) switch (_context10.prev = _context10.next) {
13127
+ return regenerator.wrap(function _callee11$(_context11) {
13128
+ while (1) switch (_context11.prev = _context11.next) {
13108
13129
  case 0:
13109
13130
  getDist = new MxCADUiPrDist();
13110
13131
  getDist.setMessage("\u6307\u5B9A\u7B2C\u4E00\u4E2A\u5012\u89D2\u8DDD\u79BB");
13111
- _context10.next = 4;
13132
+ _context11.next = 4;
13112
13133
  return getDist.go();
13113
13134
  case 4:
13114
- dist1 = _context10.sent;
13135
+ dist1 = _context11.sent;
13115
13136
  if (dist1) {
13116
- _context10.next = 7;
13137
+ _context11.next = 7;
13117
13138
  break;
13118
13139
  }
13119
- return _context10.abrupt("return");
13140
+ return _context11.abrupt("return");
13120
13141
  case 7:
13121
13142
  getDist.setMessage("\u6307\u5B9A\u7B2C\u4E8C\u4E2A\u5012\u89D2\u8DDD\u79BB");
13122
- _context10.next = 10;
13143
+ _context11.next = 10;
13123
13144
  return getDist.go();
13124
13145
  case 10:
13125
- dist2 = _context10.sent;
13146
+ dist2 = _context11.sent;
13126
13147
  if (dist2) {
13127
- _context10.next = 13;
13148
+ _context11.next = 13;
13128
13149
  break;
13129
13150
  }
13130
- return _context10.abrupt("return");
13151
+ return _context11.abrupt("return");
13131
13152
  case 13:
13132
13153
  filter = new MxCADResbuf();
13133
13154
  filter.AddMcDbEntityTypes("LINE,LWPOLYLINE");
13134
13155
  selEntity1 = new MxCADUiPrEntity();
13135
13156
  selEntity1.setFilter(filter);
13136
13157
  selEntity1.setMessage("\u9009\u62E9\u7B2C\u4E00\u6761\u76F4\u7EBF");
13137
- _context10.next = 20;
13158
+ _context11.next = 20;
13138
13159
  return selEntity1.go();
13139
13160
  case 20:
13140
- id1 = _context10.sent;
13161
+ id1 = _context11.sent;
13141
13162
  pt1 = selEntity1.pickPoint();
13142
13163
  if (id1.isValid()) {
13143
- _context10.next = 24;
13164
+ _context11.next = 24;
13144
13165
  break;
13145
13166
  }
13146
- return _context10.abrupt("return");
13167
+ return _context11.abrupt("return");
13147
13168
  case 24:
13148
13169
  (_id1$getMcDbEntity = id1.getMcDbEntity()) === null || _id1$getMcDbEntity === void 0 ? void 0 : _id1$getMcDbEntity.highlight(true);
13149
13170
  selEntity2 = new MxCADUiPrEntity();
13150
13171
  selEntity2.setFilter(filter);
13151
13172
  selEntity2.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF");
13152
- _context10.next = 30;
13173
+ _context11.next = 30;
13153
13174
  return selEntity2.go();
13154
13175
  case 30:
13155
- id2 = _context10.sent;
13176
+ id2 = _context11.sent;
13156
13177
  pt2 = selEntity2.pickPoint();
13157
13178
  if (id2.isValid()) {
13158
- _context10.next = 34;
13179
+ _context11.next = 34;
13159
13180
  break;
13160
13181
  }
13161
- return _context10.abrupt("return");
13182
+ return _context11.abrupt("return");
13162
13183
  case 34:
13163
13184
  (_id1$getMcDbEntity2 = id1.getMcDbEntity()) === null || _id1$getMcDbEntity2 === void 0 ? void 0 : _id1$getMcDbEntity2.highlight(false);
13164
13185
  MxCpp.App.MxCADAssist.MxChamfer(id1.id, id2.id, pt1.x, pt1.y, pt2.x, pt2.y, dist1, dist2, true);
13165
13186
  case 36:
13166
13187
  case "end":
13167
- return _context10.stop();
13188
+ return _context11.stop();
13168
13189
  }
13169
- }, _callee10);
13190
+ }, _callee11);
13170
13191
  }));
13171
13192
  return _Mx_Chamfer.apply(this, arguments);
13172
13193
  }
@@ -13174,62 +13195,62 @@ function Mx_Fillet() {
13174
13195
  return _Mx_Fillet.apply(this, arguments);
13175
13196
  }
13176
13197
  function _Mx_Fillet() {
13177
- _Mx_Fillet = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee11() {
13198
+ _Mx_Fillet = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee12() {
13178
13199
  var _id1$getMcDbEntity3, _id1$getMcDbEntity4;
13179
13200
  var getDist, dRadius, filter, selEntity1, id1, pt1, selEntity2, id2, pt2;
13180
- return regenerator.wrap(function _callee11$(_context11) {
13181
- while (1) switch (_context11.prev = _context11.next) {
13201
+ return regenerator.wrap(function _callee12$(_context12) {
13202
+ while (1) switch (_context12.prev = _context12.next) {
13182
13203
  case 0:
13183
13204
  getDist = new MxCADUiPrDist();
13184
13205
  getDist.setMessage("\u6307\u5B9A\u5012\u5706\u89D2\u534A\u5F84");
13185
- _context11.next = 4;
13206
+ _context12.next = 4;
13186
13207
  return getDist.go();
13187
13208
  case 4:
13188
- dRadius = _context11.sent;
13209
+ dRadius = _context12.sent;
13189
13210
  if (dRadius) {
13190
- _context11.next = 7;
13211
+ _context12.next = 7;
13191
13212
  break;
13192
13213
  }
13193
- return _context11.abrupt("return");
13214
+ return _context12.abrupt("return");
13194
13215
  case 7:
13195
13216
  filter = new MxCADResbuf();
13196
13217
  filter.AddMcDbEntityTypes("LINE,LWPOLYLINE");
13197
13218
  selEntity1 = new MxCADUiPrEntity();
13198
13219
  selEntity1.setFilter(filter);
13199
13220
  selEntity1.setMessage("\u9009\u62E9\u7B2C\u4E00\u6761\u76F4\u7EBF");
13200
- _context11.next = 14;
13221
+ _context12.next = 14;
13201
13222
  return selEntity1.go();
13202
13223
  case 14:
13203
- id1 = _context11.sent;
13224
+ id1 = _context12.sent;
13204
13225
  pt1 = selEntity1.pickPoint();
13205
13226
  if (id1.isValid()) {
13206
- _context11.next = 18;
13227
+ _context12.next = 18;
13207
13228
  break;
13208
13229
  }
13209
- return _context11.abrupt("return");
13230
+ return _context12.abrupt("return");
13210
13231
  case 18:
13211
13232
  (_id1$getMcDbEntity3 = id1.getMcDbEntity()) === null || _id1$getMcDbEntity3 === void 0 ? void 0 : _id1$getMcDbEntity3.highlight(true);
13212
13233
  selEntity2 = new MxCADUiPrEntity();
13213
13234
  selEntity2.setFilter(filter);
13214
13235
  selEntity2.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF");
13215
- _context11.next = 24;
13236
+ _context12.next = 24;
13216
13237
  return selEntity2.go();
13217
13238
  case 24:
13218
- id2 = _context11.sent;
13239
+ id2 = _context12.sent;
13219
13240
  pt2 = selEntity2.pickPoint();
13220
13241
  if (id2.isValid()) {
13221
- _context11.next = 28;
13242
+ _context12.next = 28;
13222
13243
  break;
13223
13244
  }
13224
- return _context11.abrupt("return");
13245
+ return _context12.abrupt("return");
13225
13246
  case 28:
13226
13247
  (_id1$getMcDbEntity4 = id1.getMcDbEntity()) === null || _id1$getMcDbEntity4 === void 0 ? void 0 : _id1$getMcDbEntity4.highlight(false);
13227
13248
  MxCpp.App.MxCADAssist.MxFillet(id1.id, id2.id, pt1.x, pt1.y, pt2.x, pt2.y, dRadius, true);
13228
13249
  case 30:
13229
13250
  case "end":
13230
- return _context11.stop();
13251
+ return _context12.stop();
13231
13252
  }
13232
- }, _callee11);
13253
+ }, _callee12);
13233
13254
  }));
13234
13255
  return _Mx_Fillet.apply(this, arguments);
13235
13256
  }
@@ -13237,63 +13258,63 @@ function Mx_Trim() {
13237
13258
  return _Mx_Trim.apply(this, arguments);
13238
13259
  }
13239
13260
  function _Mx_Trim() {
13240
- _Mx_Trim = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee12() {
13261
+ _Mx_Trim = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee13() {
13241
13262
  var filter, aryId, aryIdLong, mxcadTrimAssert, ss, ids, selPoint;
13242
- return regenerator.wrap(function _callee12$(_context12) {
13243
- while (1) switch (_context12.prev = _context12.next) {
13263
+ return regenerator.wrap(function _callee13$(_context13) {
13264
+ while (1) switch (_context13.prev = _context13.next) {
13244
13265
  case 0:
13245
13266
  filter = new MxCADResbuf();
13246
13267
  filter.AddMcDbEntityTypes("LINE,LWPOLYLINE,ELLIPSE,ARC,CIRCLE,SPLINE,XLINE");
13247
- _context12.next = 4;
13268
+ _context13.next = 4;
13248
13269
  return MxCADUtility.userSelect("\u9009\u62E9\u5BF9\u8C61", filter);
13249
13270
  case 4:
13250
- aryId = _context12.sent;
13271
+ aryId = _context13.sent;
13251
13272
  if (!(aryId.length == 0)) {
13252
- _context12.next = 7;
13273
+ _context13.next = 7;
13253
13274
  break;
13254
13275
  }
13255
- return _context12.abrupt("return");
13276
+ return _context13.abrupt("return");
13256
13277
  case 7:
13257
13278
  aryIdLong = new McGeLongArray();
13258
13279
  aryIdLong.copyFormAryId(aryId);
13259
13280
  mxcadTrimAssert = new MxCpp.mxcadassemblyimp.MxDrawTrimAssist();
13260
13281
  if (mxcadTrimAssert.Init(aryIdLong.imp)) {
13261
- _context12.next = 12;
13282
+ _context13.next = 12;
13262
13283
  break;
13263
13284
  }
13264
- return _context12.abrupt("return");
13285
+ return _context13.abrupt("return");
13265
13286
  case 12:
13266
13287
  ss = new MxCADSelectionSet();
13267
13288
  ss.isWhileSelect = false;
13268
13289
  ss.isSelectHighlight = false;
13269
- _context12.next = 18;
13290
+ _context13.next = 18;
13270
13291
  return ss.userSelect("\u9009\u62E9\u526A\u5207\u5BF9\u8C61", filter);
13271
13292
  case 18:
13272
- if (_context12.sent) {
13273
- _context12.next = 20;
13293
+ if (_context13.sent) {
13294
+ _context13.next = 20;
13274
13295
  break;
13275
13296
  }
13276
- return _context12.abrupt("break", 28);
13297
+ return _context13.abrupt("break", 28);
13277
13298
  case 20:
13278
13299
  ids = ss.getIds();
13279
13300
  if (!(ids.length == 0)) {
13280
- _context12.next = 23;
13301
+ _context13.next = 23;
13281
13302
  break;
13282
13303
  }
13283
- return _context12.abrupt("continue", 12);
13304
+ return _context13.abrupt("continue", 12);
13284
13305
  case 23:
13285
13306
  selPoint = ss.getSelectPoint();
13286
13307
  aryIdLong.copyFormAryId(ids);
13287
13308
  mxcadTrimAssert.DoTrim(aryIdLong.imp, selPoint.pt1.x, selPoint.pt1.y, selPoint.pt2.x, selPoint.pt2.y);
13288
- _context12.next = 12;
13309
+ _context13.next = 12;
13289
13310
  break;
13290
13311
  case 28:
13291
13312
  mxcadTrimAssert.UnInit();
13292
13313
  case 29:
13293
13314
  case "end":
13294
- return _context12.stop();
13315
+ return _context13.stop();
13295
13316
  }
13296
- }, _callee12);
13317
+ }, _callee13);
13297
13318
  }));
13298
13319
  return _Mx_Trim.apply(this, arguments);
13299
13320
  }
@@ -13301,63 +13322,63 @@ function Mx_Extend() {
13301
13322
  return _Mx_Extend.apply(this, arguments);
13302
13323
  }
13303
13324
  function _Mx_Extend() {
13304
- _Mx_Extend = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee13() {
13325
+ _Mx_Extend = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee14() {
13305
13326
  var filter, aryId, aryIdLong, mxcadExtendAssert, ss, ids, selPoint;
13306
- return regenerator.wrap(function _callee13$(_context13) {
13307
- while (1) switch (_context13.prev = _context13.next) {
13327
+ return regenerator.wrap(function _callee14$(_context14) {
13328
+ while (1) switch (_context14.prev = _context14.next) {
13308
13329
  case 0:
13309
13330
  filter = new MxCADResbuf();
13310
13331
  filter.AddMcDbEntityTypes("LINE,LWPOLYLINE,ARC");
13311
- _context13.next = 4;
13332
+ _context14.next = 4;
13312
13333
  return MxCADUtility.userSelect("\u9009\u62E9\u5BF9\u8C61", filter);
13313
13334
  case 4:
13314
- aryId = _context13.sent;
13335
+ aryId = _context14.sent;
13315
13336
  if (!(aryId.length == 0)) {
13316
- _context13.next = 7;
13337
+ _context14.next = 7;
13317
13338
  break;
13318
13339
  }
13319
- return _context13.abrupt("return");
13340
+ return _context14.abrupt("return");
13320
13341
  case 7:
13321
13342
  aryIdLong = new McGeLongArray();
13322
13343
  aryIdLong.copyFormAryId(aryId);
13323
13344
  mxcadExtendAssert = new MxCpp.mxcadassemblyimp.MxDrawExtendAssist();
13324
13345
  if (mxcadExtendAssert.Init(aryIdLong.imp)) {
13325
- _context13.next = 12;
13346
+ _context14.next = 12;
13326
13347
  break;
13327
13348
  }
13328
- return _context13.abrupt("return");
13349
+ return _context14.abrupt("return");
13329
13350
  case 12:
13330
13351
  ss = new MxCADSelectionSet();
13331
13352
  ss.isWhileSelect = false;
13332
13353
  ss.isSelectHighlight = false;
13333
- _context13.next = 18;
13354
+ _context14.next = 18;
13334
13355
  return ss.userSelect("\u9009\u62E9\u8981\u5EF6\u4F38\u7684\u5BF9\u8C61", filter);
13335
13356
  case 18:
13336
- if (_context13.sent) {
13337
- _context13.next = 20;
13357
+ if (_context14.sent) {
13358
+ _context14.next = 20;
13338
13359
  break;
13339
13360
  }
13340
- return _context13.abrupt("break", 28);
13361
+ return _context14.abrupt("break", 28);
13341
13362
  case 20:
13342
13363
  ids = ss.getIds();
13343
13364
  if (!(ids.length == 0)) {
13344
- _context13.next = 23;
13365
+ _context14.next = 23;
13345
13366
  break;
13346
13367
  }
13347
- return _context13.abrupt("continue", 12);
13368
+ return _context14.abrupt("continue", 12);
13348
13369
  case 23:
13349
13370
  selPoint = ss.getSelectPoint();
13350
13371
  aryIdLong.copyFormAryId(ids);
13351
13372
  mxcadExtendAssert.DoExtend(aryIdLong.imp, selPoint.pt1.x, selPoint.pt1.y, selPoint.pt2.x, selPoint.pt2.y);
13352
- _context13.next = 12;
13373
+ _context14.next = 12;
13353
13374
  break;
13354
13375
  case 28:
13355
13376
  mxcadExtendAssert.UnInit();
13356
13377
  case 29:
13357
13378
  case "end":
13358
- return _context13.stop();
13379
+ return _context14.stop();
13359
13380
  }
13360
- }, _callee13);
13381
+ }, _callee14);
13361
13382
  }));
13362
13383
  return _Mx_Extend.apply(this, arguments);
13363
13384
  }
@@ -13365,31 +13386,31 @@ function Mx_Explode() {
13365
13386
  return _Mx_Explode.apply(this, arguments);
13366
13387
  }
13367
13388
  function _Mx_Explode() {
13368
- _Mx_Explode = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee14() {
13389
+ _Mx_Explode = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee15() {
13369
13390
  var filter, aryId, aryIdLong;
13370
- return regenerator.wrap(function _callee14$(_context14) {
13371
- while (1) switch (_context14.prev = _context14.next) {
13391
+ return regenerator.wrap(function _callee15$(_context15) {
13392
+ while (1) switch (_context15.prev = _context15.next) {
13372
13393
  case 0:
13373
13394
  filter = new MxCADResbuf();
13374
13395
  filter.AddMcDbEntityTypes("INSERT,MTEXT,ROTATEDDIMENSION,ALIGNEDDIMENSION,DIMENSION,LWPOLYLINE");
13375
- _context14.next = 4;
13396
+ _context15.next = 4;
13376
13397
  return MxCADUtility.userSelect("\u9009\u62E9\u5206\u89E3\u5BF9\u8C61", filter);
13377
13398
  case 4:
13378
- aryId = _context14.sent;
13399
+ aryId = _context15.sent;
13379
13400
  if (!(aryId.length == 0)) {
13380
- _context14.next = 7;
13401
+ _context15.next = 7;
13381
13402
  break;
13382
13403
  }
13383
- return _context14.abrupt("return");
13404
+ return _context15.abrupt("return");
13384
13405
  case 7:
13385
13406
  aryIdLong = new McGeLongArray();
13386
13407
  aryIdLong.copyFormAryId(aryId);
13387
13408
  MxCpp.App.MxCADAssist.MxExplode(aryIdLong.imp);
13388
13409
  case 10:
13389
13410
  case "end":
13390
- return _context14.stop();
13411
+ return _context15.stop();
13391
13412
  }
13392
- }, _callee14);
13413
+ }, _callee15);
13393
13414
  }));
13394
13415
  return _Mx_Explode.apply(this, arguments);
13395
13416
  }
@@ -13397,31 +13418,31 @@ function Mx_Join() {
13397
13418
  return _Mx_Join.apply(this, arguments);
13398
13419
  }
13399
13420
  function _Mx_Join() {
13400
- _Mx_Join = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee15() {
13421
+ _Mx_Join = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee16() {
13401
13422
  var filter, aryId, aryIdLong;
13402
- return regenerator.wrap(function _callee15$(_context15) {
13403
- while (1) switch (_context15.prev = _context15.next) {
13423
+ return regenerator.wrap(function _callee16$(_context16) {
13424
+ while (1) switch (_context16.prev = _context16.next) {
13404
13425
  case 0:
13405
13426
  filter = new MxCADResbuf();
13406
13427
  filter.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE");
13407
- _context15.next = 4;
13428
+ _context16.next = 4;
13408
13429
  return MxCADUtility.userSelect("\u9009\u62E9\u8981\u5408\u5E76\u7684\u5BF9\u8C61", filter);
13409
13430
  case 4:
13410
- aryId = _context15.sent;
13431
+ aryId = _context16.sent;
13411
13432
  if (!(aryId.length == 0)) {
13412
- _context15.next = 7;
13433
+ _context16.next = 7;
13413
13434
  break;
13414
13435
  }
13415
- return _context15.abrupt("return");
13436
+ return _context16.abrupt("return");
13416
13437
  case 7:
13417
13438
  aryIdLong = new McGeLongArray();
13418
13439
  aryIdLong.copyFormAryId(aryId);
13419
13440
  MxCpp.App.MxCADAssist.MxJoin(aryIdLong.imp);
13420
13441
  case 10:
13421
13442
  case "end":
13422
- return _context15.stop();
13443
+ return _context16.stop();
13423
13444
  }
13424
- }, _callee15);
13445
+ }, _callee16);
13425
13446
  }));
13426
13447
  return _Mx_Join.apply(this, arguments);
13427
13448
  }
@@ -13429,60 +13450,60 @@ function Mx_Break() {
13429
13450
  return _Mx_Break.apply(this, arguments);
13430
13451
  }
13431
13452
  function _Mx_Break() {
13432
- _Mx_Break = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee16() {
13453
+ _Mx_Break = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee17() {
13433
13454
  var filter, selEntity, id, curve, getPoint, ptBreak, closePoint, vec, pt1, pt2, breakPoint, breakcurve;
13434
- return regenerator.wrap(function _callee16$(_context16) {
13435
- while (1) switch (_context16.prev = _context16.next) {
13455
+ return regenerator.wrap(function _callee17$(_context17) {
13456
+ while (1) switch (_context17.prev = _context17.next) {
13436
13457
  case 0:
13437
13458
  filter = new MxCADResbuf();
13438
13459
  filter.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE,CIRCLE");
13439
13460
  selEntity = new MxCADUiPrEntity();
13440
13461
  selEntity.setFilter(filter);
13441
13462
  selEntity.setMessage("\u9009\u62E9\u8981\u6253\u65AD\u7684\u5BF9\u8C61");
13442
- _context16.next = 7;
13463
+ _context17.next = 7;
13443
13464
  return selEntity.go();
13444
13465
  case 7:
13445
- id = _context16.sent;
13466
+ id = _context17.sent;
13446
13467
  if (id.isValid()) {
13447
- _context16.next = 10;
13468
+ _context17.next = 10;
13448
13469
  break;
13449
13470
  }
13450
- return _context16.abrupt("return");
13471
+ return _context17.abrupt("return");
13451
13472
  case 10:
13452
13473
  curve = id.getMcDbCurve();
13453
13474
  if (curve) {
13454
- _context16.next = 13;
13475
+ _context17.next = 13;
13455
13476
  break;
13456
13477
  }
13457
- return _context16.abrupt("return");
13478
+ return _context17.abrupt("return");
13458
13479
  case 13:
13459
13480
  curve.highlight(true);
13460
13481
  getPoint = new MxCADUiPrPoint();
13461
13482
  getPoint.setMessage("\u6307\u5B9A\u6253\u65AD\u70B9");
13462
- _context16.next = 18;
13483
+ _context17.next = 18;
13463
13484
  return getPoint.go();
13464
13485
  case 18:
13465
- ptBreak = _context16.sent;
13486
+ ptBreak = _context17.sent;
13466
13487
  if (ptBreak) {
13467
- _context16.next = 22;
13488
+ _context17.next = 22;
13468
13489
  break;
13469
13490
  }
13470
13491
  curve.highlight(false);
13471
- return _context16.abrupt("return");
13492
+ return _context17.abrupt("return");
13472
13493
  case 22:
13473
13494
  closePoint = curve.getClosestPointTo(ptBreak, false);
13474
13495
  if (closePoint.ret) {
13475
- _context16.next = 25;
13496
+ _context17.next = 25;
13476
13497
  break;
13477
13498
  }
13478
- return _context16.abrupt("return");
13499
+ return _context17.abrupt("return");
13479
13500
  case 25:
13480
13501
  vec = curve.getFirstDeriv(closePoint.val);
13481
13502
  if (vec.ret) {
13482
- _context16.next = 28;
13503
+ _context17.next = 28;
13483
13504
  break;
13484
13505
  }
13485
- return _context16.abrupt("return");
13506
+ return _context17.abrupt("return");
13486
13507
  case 28:
13487
13508
  vec.val.normalize().mult(MxFun.viewCoordLong2Cad(5));
13488
13509
  pt1 = closePoint.val.clone();
@@ -13494,11 +13515,11 @@ function _Mx_Break() {
13494
13515
  breakPoint.push(pt2);
13495
13516
  breakcurve = curve.splitCurves(breakPoint);
13496
13517
  if (!breakcurve.empty()) {
13497
- _context16.next = 40;
13518
+ _context17.next = 40;
13498
13519
  break;
13499
13520
  }
13500
13521
  curve.highlight(false);
13501
- return _context16.abrupt("return");
13522
+ return _context17.abrupt("return");
13502
13523
  case 40:
13503
13524
  breakcurve.forEach(function (obj, index) {
13504
13525
  if (index % 2 == 0) MxCpp.getCurrentMxCAD().drawEntity(obj);
@@ -13506,9 +13527,9 @@ function _Mx_Break() {
13506
13527
  curve.erase();
13507
13528
  case 42:
13508
13529
  case "end":
13509
- return _context16.stop();
13530
+ return _context17.stop();
13510
13531
  }
13511
- }, _callee16);
13532
+ }, _callee17);
13512
13533
  }));
13513
13534
  return _Mx_Break.apply(this, arguments);
13514
13535
  }
@@ -13520,6 +13541,7 @@ MxFun.on("init", function () {
13520
13541
  MxFun.addCommand("Mx_Scale", Mx_Scale);
13521
13542
  MxFun.addCommand("Mx_WindowZoom", Mx_WindowZoom);
13522
13543
  MxFun.addCommand("Mx_ZoomE", Mx_ZoomE);
13544
+ MxFun.addCommand("Mx_Plan90CW", Mx_Plan90CW);
13523
13545
  MxFun.addCommand("Mx_Offset", Mx_Offset);
13524
13546
  MxFun.addCommand("Mx_Regen", Mx_Regen);
13525
13547
  MxFun.addCommand("Mx_Mirror", Mx_Mirror);