@jlceda/pro-api-types 0.1.121 → 0.1.122

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 +52 -52
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -410,7 +410,7 @@ declare class DMT_Project {
410
410
  *
411
411
  * @beta
412
412
  * @param projectFriendlyName - 工程友好名称
413
- * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好���称自动生成
413
+ * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
414
414
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
415
415
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
416
416
  * @param description - 工程描述
@@ -589,7 +589,7 @@ declare class DMT_Schematic {
589
589
  *
590
590
  * @beta
591
591
  * @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页所关联的原理图的详细属性
592
- * @returns 原理图的详细属性,如若为 `undefined` 则获取失败
592
+ * @returns 原理图���详细属性,如若为 `undefined` 则获取失败
593
593
  */
594
594
  getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
595
595
  /**
@@ -954,26 +954,6 @@ declare enum ELIB_SymbolType {
954
954
  SHORT_CIRCUIT_FLAG = 22
955
955
  }
956
956
 
957
- /**
958
- * 网表类型
959
- *
960
- * @public
961
- */
962
- declare enum ENetlistType {
963
- /** Allegro */
964
- ALLEGRO = "Allegro",
965
- /** PADS */
966
- PADS = "PADS",
967
- /** Protel 2 */
968
- PROTEL2 = "Protel2",
969
- /** 嘉立创 EDA 专业版 */
970
- JLCEDA_PRO = "JLCEDA",
971
- /** EasyEDA Pro Edition */
972
- EASYEDA_PRO = "EasyEDA",
973
- /** Altium Designer */
974
- ALTIUM_DESIGNER = "AltiumDesigner"
975
- }
976
-
977
957
  /**
978
958
  * 文档飞线计算功能状态
979
959
  *
@@ -1184,7 +1164,7 @@ declare enum EPCB_LayerId {
1184
1164
  CUSTOM_30 = 100,
1185
1165
  /** 夹层(介电基板)1 */
1186
1166
  SUBSTRATE_1 = 101,
1187
- /** 孔层(焊���、过孔的内孔) */
1167
+ /** 孔层(焊盘、过孔的内孔) */
1188
1168
  HOLE = 47,
1189
1169
  /** 元件外形层 */
1190
1170
  COMPONENT_SHAPE = 48,
@@ -1213,21 +1193,21 @@ declare enum EPCB_LayerId {
1213
1193
  */
1214
1194
  declare enum EPCB_LayerType {
1215
1195
  /** 信号层 */
1216
- SIGNAL = 1,
1196
+ SIGNAL = "SIGNAL",
1217
1197
  /** 内电层 */
1218
- INTERNAL_ELECTRICAL = 2,
1198
+ INTERNAL_ELECTRICAL = "PLANE",
1219
1199
  /** 丝印层 */
1220
- SILKSCREEN = 3,
1200
+ SILKSCREEN = "SILKSCREEN",
1221
1201
  /** 阻焊层 */
1222
- SOLDER_MASK = 4,
1202
+ SOLDER_MASK = "SOLDER_MASK",
1223
1203
  /** 锡膏(助焊)层 */
1224
- PASTE_MASK = 5,
1204
+ PASTE_MASK = "PASTE_MASK",
1225
1205
  /** 装配层 */
1226
- ASSEMBLY = 6,
1206
+ ASSEMBLY = "ASSEMBLY",
1227
1207
  /** 其它 */
1228
- OTHER = 7,
1208
+ OTHER = "OTHER",
1229
1209
  /** 自定义层 */
1230
- CUSTOM = 8
1210
+ CUSTOM = "CUSTOM"
1231
1211
  }
1232
1212
 
1233
1213
  /**
@@ -1653,6 +1633,26 @@ declare enum ESYS_LogType {
1653
1633
  /* Excluded from this release type: OPEN_PROJECT */
1654
1634
  }
1655
1635
 
1636
+ /**
1637
+ * 网表类型
1638
+ *
1639
+ * @public
1640
+ */
1641
+ declare enum ESYS_NetlistType {
1642
+ /** Allegro */
1643
+ ALLEGRO = "Allegro",
1644
+ /** PADS */
1645
+ PADS = "PADS",
1646
+ /** Protel 2 */
1647
+ PROTEL2 = "Protel2",
1648
+ /** 嘉立创 EDA 专业版 */
1649
+ JLCEDA_PRO = "JLCEDA",
1650
+ /** EasyEDA Pro Edition */
1651
+ EASYEDA_PRO = "EasyEDA",
1652
+ /** Altium Designer */
1653
+ ALTIUM_DESIGNER = "AltiumDesigner"
1654
+ }
1655
+
1656
1656
  /**
1657
1657
  * 右侧面板标签页
1658
1658
  *
@@ -4383,7 +4383,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4383
4383
  * 设置属性状态:是否锁定
4384
4384
  *
4385
4385
  * @beta
4386
- * @param primitiveLock - 是否锁定
4386
+ * @param primitiveLock - ���否锁定
4387
4387
  * @returns 二进制内嵌对象图元对象
4388
4388
  */
4389
4389
  setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveObject;
@@ -4674,10 +4674,10 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4674
4674
  */
4675
4675
  setState_Pad(pad: TPCB_PrimitivePadShape): IPCB_PrimitivePad;
4676
4676
  /**
4677
- * 设置属性状态:网络
4677
+ * ���置属性状态:网络
4678
4678
  *
4679
4679
  * @beta
4680
- * @remarks 本接���仅在 PCB 编辑器可用,空字符串与 `undefined` 均被视为空网络
4680
+ * @remarks 本接口仅在 PCB 编辑器可用,空字符串与 `undefined` 均被视为空网络
4681
4681
  * @param net - 网络名称
4682
4682
  * @returns 焊盘图元对象
4683
4683
  */
@@ -5742,7 +5742,7 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
5742
5742
  private referenceY;
5743
5743
  /** 终止点 X */
5744
5744
  private endX;
5745
- /** 终止点 Y */
5745
+ /** 终止��� Y */
5746
5746
  private endY;
5747
5747
  /** 颜色 */
5748
5748
  private color;
@@ -7054,7 +7054,7 @@ declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
7054
7054
  * 将对图元的更改应用到画布
7055
7055
  *
7056
7056
  * @beta
7057
- * @returns 器件图元对象
7057
+ * @returns 器件图元对���
7058
7058
  */
7059
7059
  done(): Promise<ISCH_PrimitiveComponent_2>;
7060
7060
  /* Excluded from this release type: getAllPins */
@@ -8306,7 +8306,7 @@ declare class LIB_Cbb {
8306
8306
  *
8307
8307
  * @beta
8308
8308
  * @remarks 如希望清除某些属性,则将其的值设置为 `null`
8309
- * @param cbbUuid - 复��模块 UUID
8309
+ * @param cbbUuid - 复用模块 UUID
8310
8310
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
8311
8311
  * @param cbbName - 复用模块名称
8312
8312
  * @param classification - 分类
@@ -8670,7 +8670,7 @@ declare class LIB_Footprint {
8670
8670
  * 更新封装的文档源码
8671
8671
  *
8672
8672
  * @beta
8673
- * @param footprintUuid - 封�� UUID
8673
+ * @param footprintUuid - 封装 UUID
8674
8674
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
8675
8675
  * @param documentSource - 文档源码
8676
8676
  * @returns 是否更新成功
@@ -9385,7 +9385,7 @@ declare class PCB_Drc {
9385
9385
  */
9386
9386
  modifyDifferentialPairNegativeNet(differentialPairName: string, negativeNet: string): Promise<boolean>;
9387
9387
  /**
9388
- * 获取所���差分对的详细属性
9388
+ * 获取所有差分对的详细属性
9389
9389
  *
9390
9390
  * @beta
9391
9391
  * @returns 所有差分对的详细属性
@@ -9660,7 +9660,7 @@ declare class PCB_Layer {
9660
9660
  * 修改图层属性
9661
9661
  *
9662
9662
  * @beta
9663
- * @remarks 仅内层和自定义层允许修改名称;仅内层允许修改类型
9663
+ * @remarks 仅内层和自定义层允许修改名称;仅内层允许修改类型, 透明度仅支持0-100之间的数
9664
9664
  * @param layer - 层
9665
9665
  * @param property - 属性
9666
9666
  * @returns 修改后的图层属性,如若为 `undefined` 则代表修改失败或图层不存在
@@ -9800,7 +9800,7 @@ declare class PCB_ManufactureData {
9800
9800
  * @param netlistType - 网表类型
9801
9801
  * @returns 网表文件数据
9802
9802
  */
9803
- getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
9803
+ getNetlistFile(fileName?: string, netlistType?: ESYS_NetlistType): Promise<File | undefined>;
9804
9804
  /**
9805
9805
  * 获取 DXF 文件
9806
9806
  *
@@ -10082,7 +10082,7 @@ declare class PCB_MathPolygon {
10082
10082
  * @param inversion - 是否反相
10083
10083
  * @returns 复杂多边形对象
10084
10084
  */
10085
- convertImageToComplexPolygon(imageBlob: Blob, imageWidth: number, imageHeight: number, tolerance?: number, simplification?: number, smoothing?: number, despeckling?: number, inversion?: boolean): Promise<IPCB_ComplexPolygon | undefined>;
10085
+ convertImageToComplexPolygon(imageBlob: Blob, imageWidth: number, imageHeight: number, tolerance?: number, simplification?: number, smoothing?: number, despeckling?: number, whiteAsBackgroundColor?: boolean, inversion?: boolean): Promise<IPCB_ComplexPolygon | undefined>;
10086
10086
  }
10087
10087
 
10088
10088
  /**
@@ -10163,7 +10163,7 @@ declare class PCB_Net {
10163
10163
  * @param type - 网表格式
10164
10164
  * @returns 网表数据,当 type 为 `JLCEDA` 或 `EasyEDA` 时,返回值为数组
10165
10165
  */
10166
- getNetlist(type?: ENetlistType): Promise<string | Array<string>>;
10166
+ getNetlist(type?: ESYS_NetlistType): Promise<string | Array<string>>;
10167
10167
  /**
10168
10168
  * 更新网表
10169
10169
  *
@@ -10171,7 +10171,7 @@ declare class PCB_Net {
10171
10171
  * @param type - 网表格式
10172
10172
  * @param netlist - 网表数据
10173
10173
  */
10174
- setNetlist(type: ENetlistType | undefined, netlist: string): Promise<boolean>;
10174
+ setNetlist(type: ESYS_NetlistType | undefined, netlist: string): Promise<boolean>;
10175
10175
  }
10176
10176
 
10177
10177
  /**
@@ -10346,9 +10346,6 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
10346
10346
  y?: number;
10347
10347
  rotation?: number;
10348
10348
  primitiveLock?: boolean;
10349
- attributes?: {
10350
- [key: string]: any;
10351
- };
10352
10349
  addIntoBom?: boolean;
10353
10350
  designator?: string | null;
10354
10351
  name?: string | null;
@@ -10357,6 +10354,9 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
10357
10354
  manufacturerId?: string | null;
10358
10355
  supplier?: string | null;
10359
10356
  supplierId?: string | null;
10357
+ otherProperty?: {
10358
+ [key: string]: any;
10359
+ };
10360
10360
  }): Promise<IPCB_PrimitiveComponent | undefined>;
10361
10361
  /**
10362
10362
  * 获取器件
@@ -10929,7 +10929,7 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
10929
10929
  * @beta
10930
10930
  * @param layer - 层
10931
10931
  * @param net - 网络名称
10932
- * @param primitiveLock - 是否���定
10932
+ * @param primitiveLock - 是否锁定
10933
10933
  * @returns 焊盘图元对象数组
10934
10934
  */
10935
10935
  getAll(layer?: TPCB_LayersOfPad, net?: string, primitiveLock?: boolean): Promise<Array<IPCB_PrimitivePad>>;
@@ -11461,7 +11461,7 @@ declare class SCH_ManufactureData {
11461
11461
  * @param netlistType - 网表类型
11462
11462
  * @returns 网表文件数据
11463
11463
  */
11464
- getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
11464
+ getNetlistFile(fileName?: string, netlistType?: ESYS_NetlistType): Promise<File | undefined>;
11465
11465
  /**
11466
11466
  * 元件下单
11467
11467
  *
@@ -11516,7 +11516,7 @@ declare class SCH_Netlist {
11516
11516
  * @param type - 网表格式
11517
11517
  * @returns 网表数据,当 type 为 `JLCEDA` 或 `EasyEDA` 时,返回值为数组
11518
11518
  */
11519
- getNetlist(type?: ENetlistType): Promise<string | Array<string>>;
11519
+ getNetlist(type?: ESYS_NetlistType): Promise<string | Array<string>>;
11520
11520
  /**
11521
11521
  * 更新网表
11522
11522
  *
@@ -11524,7 +11524,7 @@ declare class SCH_Netlist {
11524
11524
  * @param type - 网表格式
11525
11525
  * @param netlist - 网表数据
11526
11526
  */
11527
- setNetlist(type: ENetlistType | undefined, netlist: string): Promise<void>;
11527
+ setNetlist(type: ESYS_NetlistType | undefined, netlist: string): Promise<void>;
11528
11528
  }
11529
11529
 
11530
11530
  /**
@@ -12507,7 +12507,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
12507
12507
  * 删除矩形
12508
12508
  *
12509
12509
  * @public
12510
- * @param primitiveIds - 矩形的图元 ID 或矩形图元对象
12510
+ * @param primitiveIds - 矩形的图元 ID 或矩形���元对象
12511
12511
  * @returns 删除操作是否成功
12512
12512
  */
12513
12513
  delete(primitiveIds: string | ISCH_PrimitiveRectangle | Array<string> | Array<ISCH_PrimitiveRectangle>): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [