@jlceda/pro-api-types 0.1.151 → 0.1.152

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 (2) hide show
  1. package/index.d.ts +23 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -731,7 +731,7 @@ declare class DMT_Schematic {
731
731
  * 文档树 / 选择控制类
732
732
  *
733
733
  * @public
734
- * @remarks 在文档树内进行选择焦点的查询��控制
734
+ * @remarks 在文档树内进行选择焦点的查询、控制
735
735
  */
736
736
  declare class DMT_SelectControl {
737
737
  /**
@@ -2852,7 +2852,7 @@ declare interface IPCB_LayerItem {
2852
2852
  name: string;
2853
2853
  /** 类型 */
2854
2854
  type: EPCB_LayerType;
2855
- /** 颜��(RGB HEX 格式) */
2855
+ /** 颜色(RGB HEX 格式) */
2856
2856
  color: string;
2857
2857
  /** 透明度(%) */
2858
2858
  transparency: number;
@@ -2935,6 +2935,16 @@ declare class IPCB_Polygon {
2935
2935
  * @returns 单多边形数据
2936
2936
  */
2937
2937
  getSource(): TPCB_PolygonSourceArray;
2938
+ /**
2939
+ * 获取单多边形中心点
2940
+ *
2941
+ * @public
2942
+ * @returns 单多边形中心点
2943
+ */
2944
+ getCenter(): {
2945
+ x: number;
2946
+ y: number;
2947
+ };
2938
2948
  /* Excluded from this release type: validateSource */
2939
2949
  }
2940
2950
 
@@ -4773,7 +4783,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
4773
4783
  *
4774
4784
  * @beta
4775
4785
  * @param includeVias - 是否包含导线两端的过孔
4776
- * @returns 整段导线内的所有直线、圆弧线,以及两端连接的过孔(如果有)
4786
+ * @returns 整段导线内的所有直线、圆弧线,以及两端连接的过孔(如果��)
4777
4787
  */
4778
4788
  getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
4779
4789
  }
@@ -5363,7 +5373,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
5363
5373
  * 将图元转换为异步图元
5364
5374
  *
5365
5375
  * @public
5366
- * @returns 焊盘图元对��
5376
+ * @returns 焊盘图元对象
5367
5377
  */
5368
5378
  toAsync(): IPCB_PrimitivePad;
5369
5379
  /**
@@ -6641,7 +6651,7 @@ declare interface ISCH_Primitive {
6641
6651
  }
6642
6652
 
6643
6653
  /**
6644
- * 原理图图元接口
6654
+ * 原��图图元接口
6645
6655
  *
6646
6656
  * @public
6647
6657
  */
@@ -11126,9 +11136,9 @@ declare class PCB_Net {
11126
11136
  *
11127
11137
  * @public
11128
11138
  * @param type - 网表格式
11129
- * @returns 网表数据,当 type 为 `JLCEDA` 或 `EasyEDA` 时,返回值为数组
11139
+ * @returns 网表数据
11130
11140
  */
11131
- getNetlist(type?: ESYS_NetlistType): Promise<string | Array<string>>;
11141
+ getNetlist(type?: ESYS_NetlistType): Promise<string>;
11132
11142
  /**
11133
11143
  * 更新网表
11134
11144
  *
@@ -11541,7 +11551,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
11541
11551
  * 获取所有填充
11542
11552
  *
11543
11553
  * @beta
11544
- * @param layer - ���
11554
+ * @param layer -
11545
11555
  * @param net - 网络名称
11546
11556
  * @param primitiveLock - 是否锁定
11547
11557
  * @returns 填充图元对象数组
@@ -12367,11 +12377,11 @@ declare class PNL_Document {
12367
12377
  * 原理图 & 符号 / 文档操作类
12368
12378
  *
12369
12379
  * @public
12370
- * @remarks 对设计文档总体进行的操作
12380
+ * @remarks 对设计��档总体进行的操作
12371
12381
  */
12372
12382
  declare class SCH_Document {
12373
12383
  /**
12374
- * 从 PCB 导��变更
12384
+ * 从 PCB 导入变更
12375
12385
  *
12376
12386
  * @public
12377
12387
  * @returns 导入操作是否成功,导入失败或游离原理图返回 `false`
@@ -12531,9 +12541,9 @@ declare class SCH_Netlist {
12531
12541
  *
12532
12542
  * @public
12533
12543
  * @param type - 网表格式
12534
- * @returns 网表数据,当 type 为 `JLCEDA` 或 `EasyEDA` 时,返回值为数组
12544
+ * @returns 网表数据
12535
12545
  */
12536
- getNetlist(type?: ESYS_NetlistType): Promise<string | Array<string>>;
12546
+ getNetlist(type?: ESYS_NetlistType): Promise<string>;
12537
12547
  /**
12538
12548
  * 更新网表
12539
12549
  *
@@ -14257,7 +14267,7 @@ declare class SYS_FileSystem {
14257
14267
  *
14258
14268
  * @beta
14259
14269
  * @remarks
14260
- * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14270
+ * ���意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14261
14271
  *
14262
14272
  * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14263
14273
  * @param folderPath - 目录路径
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.151",
3
+ "version": "0.1.152",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [