@jlceda/pro-api-types 0.1.121 → 0.1.123

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 +58 -58
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -86,7 +86,7 @@ declare class DMT_EditorControl {
86
86
  * 关闭文档
87
87
  *
88
88
  * @public
89
- * @remarks 如若文档尚未保存,执行此操作将会直接丢失所有未保存的数据,请在修改操作完成后首先执行 {@link SCH_Document.save}、{@link PCB_Document.save}、{@link PNL_Document.save} 保存数据
89
+ * @remarks 如若文档尚未保存,执行此操作将会直接丢失所���未保存的数据,请在修改操作完成后首先执行 {@link SCH_Document.save}、{@link PCB_Document.save}、{@link PNL_Document.save} 保存数据
90
90
  * @param tabId - 标签页 ID,此处支持 {@link IDMT_SchematicPageItem.uuid}、{@link IDMT_PcbItem.uuid}、{@link IDMT_PanelItem.uuid} 作为输入
91
91
  * @returns 操作是否成功
92
92
  */
@@ -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 - 工程描述
@@ -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
  *
@@ -1925,7 +1925,7 @@ declare interface IDMT_PanelItem {
1925
1925
  readonly itemType: EDMT_ItemType.PANEL;
1926
1926
  /** 面板 UUID */
1927
1927
  uuid: string;
1928
- /** 面板名称 */
1928
+ /** 面板��称 */
1929
1929
  name: string;
1930
1930
  /** 所属工程 UUID */
1931
1931
  parentProjectUuid: string;
@@ -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
  */
@@ -4961,7 +4961,7 @@ declare class IPCB_PrimitivePolyline implements IPCB_Primitive {
4961
4961
  */
4962
4962
  toSync(): IPCB_PrimitivePolyline;
4963
4963
  /**
4964
- * 查询图元是否为异步图元
4964
+ * 查询图元是���为异步图元
4965
4965
  *
4966
4966
  * @public
4967
4967
  * @returns 是否为异步图元
@@ -5607,7 +5607,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
5607
5607
  *
5608
5608
  * @beta
5609
5609
  * @param diameter - 外径
5610
- * @returns 过孔图元对象
5610
+ * @returns 过孔图���对象
5611
5611
  */
5612
5612
  setState_Diameter(diameter: number): IPCB_PrimitiveVia;
5613
5613
  /**
@@ -6913,7 +6913,7 @@ declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
6913
6913
  *
6914
6914
  * @beta
6915
6915
  * @param y - 坐标 Y
6916
- * @returns 器件图元对象
6916
+ * @returns 器件图元对���
6917
6917
  */
6918
6918
  setState_Y(y: number): ISCH_PrimitiveComponent_2;
6919
6919
  /**
@@ -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 */
@@ -7690,7 +7690,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
7690
7690
  * 设置属性状态:填充样式
7691
7691
  *
7692
7692
  * @beta
7693
- * @param fillStyle - 填充样式
7693
+ * @param fillStyle - 填���样式
7694
7694
  * @returns 矩形图元对象
7695
7695
  */
7696
7696
  setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveRectangle;
@@ -8305,8 +8305,8 @@ declare class LIB_Cbb {
8305
8305
  * 修改复用模块
8306
8306
  *
8307
8307
  * @beta
8308
- * @remarks 如希望清除某些属性,则将其的值设置为 `null`
8309
- * @param cbbUuid - 复��模块 UUID
8308
+ * @remarks 如希望清除某��属性,则将其的值设置为 `null`
8309
+ * @param cbbUuid - 复用模块 UUID
8310
8310
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
8311
8311
  * @param cbbName - 复用模块名称
8312
8312
  * @param classification - 分类
@@ -8667,10 +8667,10 @@ declare class LIB_Footprint {
8667
8667
  */
8668
8668
  modify(footprintUuid: string, libraryUuid: string, footprintName?: string, classification?: ILIB_ClassificationIndex | null, description?: string | null): Promise<boolean>;
8669
8669
  /**
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` 则代表修改失败或图层不存在
@@ -9771,7 +9771,7 @@ declare class PCB_ManufactureData {
9771
9771
  * @param fileName - 文件名
9772
9772
  * @param fileType - 文件类型
9773
9773
  * @param template - 模板名称
9774
- * @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
9774
+ * @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的���
9775
9775
  * @param statistics - 统计,包含所有需要启用的统计项的名称
9776
9776
  * @param property - 属性,包含所有需要启用的属性的名称
9777
9777
  * @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
@@ -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
  /**
@@ -13624,7 +13624,7 @@ declare class SYS_Storage {
13624
13624
  * 获取扩展所有用户配置
13625
13625
  *
13626
13626
  * @public
13627
- * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
13627
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境��调用将始终 `throw Error`
13628
13628
  * @returns 扩展所有用户配置信息
13629
13629
  */
13630
13630
  getExtensionAllUserConfigs(): {
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.123",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [