mxcad 1.0.278 → 1.0.279

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
@@ -2914,6 +2914,20 @@ export declare class MxCADSelectionSet extends McRxObject {
2914
2914
  ss.allSelect(new MxCADResbuf([DxfCode.kEntityType, "LINE,ARC,CIRCLE,LWPOLYLINE",DxfCode.kLayer,"0"]));
2915
2915
  console.log("得到对象数目:" + ss.count());
2916
2916
  * ```
2917
+ * @example
2918
+ * ```ts
2919
+ * import { MxCADSelectionSet } from "mxcad";
2920
+ * let ss = new MxCADSelectionSet();
2921
+ * // 得到0层上的对象.
2922
+ * ss.allSelect(new MxCADResbuf([DxfCode.kLayer,"0"]));
2923
+ * console.log("得到对象数目:" + ss.count());
2924
+ * // 遍历对象
2925
+ *  ss.forEach((id) => {
2926
+ *   let ent = id.getMcDbEntity();
2927
+ *   if (!ent) return;
2928
+ *   let entBox = ent.getBoundingBox();
2929
+ * })
2930
+ * ```
2917
2931
  * */
2918
2932
  allSelect(filter?: MxCADResbuf | null): number;
2919
2933
  /** 根据一个坐标点选择一个实体对象的索引
package/dist/mxcad.es.js CHANGED
@@ -14199,7 +14199,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
14199
14199
  return MxG2312Obj.decodeFromGb2312Imp(hexstr);
14200
14200
  };
14201
14201
 
14202
- const version$1 = "1.0.278";
14202
+ const version$1 = "1.0.279";
14203
14203
 
14204
14204
  var isSharedArrayBuffer = ("SharedArrayBuffer" in window);
14205
14205
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);