mxcad 1.0.342 → 1.0.343

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.d.ts CHANGED
@@ -2709,7 +2709,7 @@ export declare class MxCADUtilityClass {
2709
2709
  console.log(objIds);
2710
2710
  * ```
2711
2711
  */
2712
- getCurrentSelect(filter?: MxCADResbuf | null, returnMxCADObject?: boolean, returnMxDrawObject?: boolean): McObjectId[];
2712
+ getCurrentSelect(filter?: MxCADResbuf | null, returnMxCADObject?: boolean, returnMxDrawObject?: boolean, whenEmptyReturnPrvSelect?: boolean): McObjectId[];
2713
2713
  /** 用户选择
2714
2714
  * @param strPrompt 字符串提示
2715
2715
  * @param filter 过滤对象
package/dist/mxcad.es.js CHANGED
@@ -15079,7 +15079,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
15079
15079
  return MxG2312Obj.decodeFromGb2312Imp(hexstr);
15080
15080
  };
15081
15081
 
15082
- const version$1 = "1.0.341";
15082
+ const version$1 = "1.0.342";
15083
15083
 
15084
15084
  var isSharedArrayBuffer = "SharedArrayBuffer" in window;
15085
15085
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
@@ -16101,15 +16101,16 @@ var MxCADUtilityClass = /*#__PURE__*/function () {
16101
16101
  var filter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
16102
16102
  var returnMxCADObject = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
16103
16103
  var returnMxDrawObject = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
16104
+ var whenEmptyReturnPrvSelect = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
16104
16105
  var aryRetId = [];
16105
16106
  if (returnMxDrawObject) {
16106
- var aryId = MxFun.getCurrentDraw().getMxCurrentSelect();
16107
+ var aryId = MxFun.getCurrentDraw().getMxCurrentSelect(whenEmptyReturnPrvSelect);
16107
16108
  aryId.forEach(function (val) {
16108
16109
  aryRetId.push(new McObjectId(val, McObjectIdType.kMxDraw));
16109
16110
  });
16110
16111
  }
16111
16112
  if (returnMxCADObject) {
16112
- var aryMxCADId = MxFun.getCurrentDraw().getMxCADCurrentSelect();
16113
+ var aryMxCADId = MxFun.getCurrentDraw().getMxCADCurrentSelect(whenEmptyReturnPrvSelect);
16113
16114
  if (aryMxCADId.length <= 0) {
16114
16115
  return aryRetId;
16115
16116
  }