@jlceda/pro-api-types 0.1.150 → 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 +18 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -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
  }
@@ -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
  *
@@ -12367,7 +12377,7 @@ 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
  /**
@@ -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.150",
3
+ "version": "0.1.152",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [