@jlceda/pro-api-types 0.1.110 → 0.1.111

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 +92 -27
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -180,6 +180,11 @@ declare class DMT_EditorControl {
180
180
  * @returns 操作是否成功
181
181
  */
182
182
  mergeAllDocumentFromSplitScreen(): Promise<boolean>;
183
+ /* Excluded from this release type: getCurrentRenderedAreaImage */
184
+ /* Excluded from this release type: zoomToRegion */
185
+ /* Excluded from this release type: zoomTo */
186
+ /* Excluded from this release type: zoomToAllPrimitives */
187
+ /* Excluded from this release type: zoomToSelectedPrimitives */
183
188
  }
184
189
 
185
190
  /**
@@ -196,7 +201,7 @@ declare class DMT_Folder {
196
201
  * @param teamUuid - 团队 UUID
197
202
  * @param parentFolderUuid - 父文件夹 UUID,如若不指定,则为根文件夹
198
203
  * @param description - 文件夹描述
199
- * @returns 文���夹 UUID,如若为 `undefined` 则创建失败
204
+ * @returns 文件夹 UUID,如若为 `undefined` 则创建失败
200
205
  */
201
206
  createFolder(folderName: string, teamUuid: string, parentFolderUuid?: string, description?: string): Promise<string | undefined>;
202
207
  /**
@@ -311,7 +316,7 @@ declare class DMT_Panel {
311
316
  *
312
317
  * @public
313
318
  * @remarks 将会获取当前打开且拥有最后输入焦点的面板的详细属性
314
- * @returns 面板���详细属性,如若为 `undefined` 则获取失败
319
+ * @returns 面板的详细属性,如若为 `undefined` 则获取失败
315
320
  */
316
321
  getCurrentPanelInfo(): Promise<IDMT_PanelItem | undefined>;
317
322
  /**
@@ -413,11 +418,11 @@ declare class DMT_Project {
413
418
  *
414
419
  * @beta
415
420
  * @param projectFriendlyName - 工程友好名称
416
- * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
421
+ * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生��
417
422
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
418
423
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
419
424
  * @param description - 工程描述
420
- * @param collaborationMode - 工程协作���式,如若团队权限无需工程设置协作模式,则该参数将被忽略
425
+ * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
421
426
  * @returns 工程 UUID,如若为 `undefined` 则创建失败
422
427
  */
423
428
  createProject(projectFriendlyName: string, projectName?: string, teamUuid?: string, folderUuid?: string, description?: string, collaborationMode?: EDMT_ProjectCollaborationMode): Promise<string | undefined>;
@@ -987,6 +992,20 @@ declare enum EPCB_DocumentRatlineCalculatingActiveStatus {
987
992
  INACTIVE = "inactive"
988
993
  }
989
994
 
995
+ /**
996
+ * 非激活层展示模式
997
+ *
998
+ * @public
999
+ */
1000
+ declare enum EPCB_InactiveLayerDisplayMode {
1001
+ /** 正常亮度 */
1002
+ NORMAL_BRIGHTNESS = 0,
1003
+ /** 置灰 */
1004
+ TURN_GRAY = 1,
1005
+ /** 隐藏 */
1006
+ HIDE = 2
1007
+ }
1008
+
990
1009
  /**
991
1010
  * 图层颜色配置
992
1011
  *
@@ -1167,7 +1186,7 @@ declare enum EPCB_LayerId {
1167
1186
  CUSTOM_28 = 98,
1168
1187
  /** 自定义层 29 */
1169
1188
  CUSTOM_29 = 99,
1170
- /** 自定义层 30 */
1189
+ /** ���定义层 30 */
1171
1190
  CUSTOM_30 = 100,
1172
1191
  /** 夹层(介电基板)1 */
1173
1192
  SUBSTRATE_1 = 101,
@@ -1899,7 +1918,7 @@ declare interface IDMT_ProjectItem extends IDMT_BriefProjectItem {
1899
1918
  description?: string;
1900
1919
  /** 工程内文档数据 */
1901
1920
  data: Array<IDMT_BoardItem | IDMT_SchematicItem | IDMT_PcbItem | IDMT_PanelItem>;
1902
- /** 工程协作模式 */
1921
+ /** 工��协作模式 */
1903
1922
  collaborationMode?: EDMT_ProjectCollaborationMode;
1904
1923
  }
1905
1924
 
@@ -2415,7 +2434,7 @@ declare class IPCB_ComplexPolygon {
2415
2434
  */
2416
2435
  getSource(): TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>;
2417
2436
  /**
2418
- * 获取复杂多边形数据
2437
+ * 获��复杂多边形数据
2419
2438
  *
2420
2439
  * @public
2421
2440
  * @remarks 强制返回复杂多边形格式数据,即使它仅包含单一的单多边形
@@ -2449,6 +2468,8 @@ declare interface IPCB_EqualLengthNetGroupItem {
2449
2468
  name: string;
2450
2469
  /** 网络名称数组 */
2451
2470
  nets: Array<string>;
2471
+ /** 等长网络组颜色 */
2472
+ color: string | null;
2452
2473
  }
2453
2474
 
2454
2475
  /**
@@ -2479,6 +2500,22 @@ declare interface IPCB_NetClassItem {
2479
2500
  name: string;
2480
2501
  /** 网络名称数组 */
2481
2502
  nets: Array<string>;
2503
+ /** 网络类颜色 */
2504
+ color: string | null;
2505
+ }
2506
+
2507
+ /**
2508
+ * 网络属性
2509
+ *
2510
+ * @public
2511
+ */
2512
+ declare interface IPCB_NetInfo {
2513
+ /** 网络名称 */
2514
+ net: string;
2515
+ /** 颜色 */
2516
+ color: string | null;
2517
+ /** 长度 */
2518
+ length: number;
2482
2519
  }
2483
2520
 
2484
2521
  /**
@@ -3569,7 +3606,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
3569
3606
  */
3570
3607
  convertToPour(): Promise<IPCB_PrimitivePour>;
3571
3608
  /**
3572
- * 转换到:区��图元(默认是禁止区域)
3609
+ * 转换到:区域图元(默认是禁止区域)
3573
3610
  *
3574
3611
  * @beta
3575
3612
  * @returns 区域图元对象
@@ -4028,7 +4065,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4028
4065
  private width;
4029
4066
  /** 高 */
4030
4067
  private height;
4031
- /** 旋转角度 */
4068
+ /** 旋���角度 */
4032
4069
  private rotation;
4033
4070
  /** 是否水平镜像 */
4034
4071
  private mirror;
@@ -4067,7 +4104,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4067
4104
  */
4068
4105
  getState_TopLeftX(): number | undefined;
4069
4106
  /**
4070
- * 获取属性状态:左上�� Y
4107
+ * 获取属性状态:左上点 Y
4071
4108
  *
4072
4109
  * @public
4073
4110
  * @returns 左上点 Y
@@ -4476,7 +4513,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4476
4513
  */
4477
4514
  setState_Rotation(rotation: number): IPCB_PrimitivePad;
4478
4515
  /**
4479
- * 设置属性状态:焊盘外形
4516
+ * 设置属性状��:焊盘外形
4480
4517
  *
4481
4518
  * @beta
4482
4519
  * @remarks
@@ -4601,7 +4638,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4601
4638
  */
4602
4639
  toAsync(): IPCB_PrimitivePad;
4603
4640
  /**
4604
- * 将图元转换为同步图元
4641
+ * ���图元转换为同步图元
4605
4642
  *
4606
4643
  * @public
4607
4644
  * @returns 焊盘图元对象
@@ -5858,7 +5895,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5858
5895
  */
5859
5896
  getState_ComponentType(): ESCH_PrimitiveComponentType;
5860
5897
  /**
5861
- * 获取属性状态:���元 ID
5898
+ * 获取属性状态:图元 ID
5862
5899
  *
5863
5900
  * @public
5864
5901
  * @returns 图元 ID
@@ -7063,7 +7100,7 @@ declare class LIB_Device {
7063
7100
  * 私有化部署环境暂无法使用本接口
7064
7101
  * @param lcscIds - 立创 C 编号
7065
7102
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
7066
- * @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个结果
7103
+ * @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个���果
7067
7104
  * @returns 搜索到的器件属性
7068
7105
  */
7069
7106
  getByLcscIds<T extends boolean>(lcscIds: string, libraryUuid?: string, allowMultiMatch?: T): Promise<T extends true ? ILIB_DeviceSearchItem | undefined : Array<ILIB_DeviceSearchItem>>;
@@ -7571,6 +7608,7 @@ declare class PCB_Document {
7571
7608
  /* Excluded from this release type: navigateToRegion */
7572
7609
  /* Excluded from this release type: getPrimitiveAtPoint */
7573
7610
  /* Excluded from this release type: getPrimitivesInRegion */
7611
+ /* Excluded from this release type: zoomToBoardOutline */
7574
7612
  }
7575
7613
 
7576
7614
  /**
@@ -7739,9 +7777,10 @@ declare class PCB_Drc {
7739
7777
  * @beta
7740
7778
  * @param netClassName - 网络类名称
7741
7779
  * @param nets - 网络名称数组
7780
+ * @param color - 网络类颜色
7742
7781
  * @returns 操作是否成功
7743
7782
  */
7744
- createNetClass(netClassName: string, nets: Array<string>): Promise<boolean>;
7783
+ createNetClass(netClassName: string, nets: Array<string>, color?: string | null): Promise<boolean>;
7745
7784
  /**
7746
7785
  * 删除网络类
7747
7786
  *
@@ -7842,9 +7881,10 @@ declare class PCB_Drc {
7842
7881
  * @beta
7843
7882
  * @param equalLengthNetGroupName - 等长网络组名称
7844
7883
  * @param nets - 网络名称数组
7884
+ * @param color - 等长网络组颜色
7845
7885
  * @returns 操作是否成功
7846
7886
  */
7847
- createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>): Promise<boolean>;
7887
+ createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color?: string | null): Promise<boolean>;
7848
7888
  /**
7849
7889
  * 删除等长网络组
7850
7890
  *
@@ -8052,7 +8092,7 @@ declare class PCB_Layer {
8052
8092
  * 设置非激活层透明度
8053
8093
  *
8054
8094
  * @beta
8055
- * @param transparency - 透明度
8095
+ * @param transparency - 透明度,范围 `0-100`
8056
8096
  * @returns 操作是否成功
8057
8097
  */
8058
8098
  setInactiveLayerTransparency(transparency: number): Promise<boolean>;
@@ -8110,6 +8150,7 @@ declare class PCB_Layer {
8110
8150
  * @returns 所有图层的详细属性
8111
8151
  */
8112
8152
  getAllLayers(): Promise<Array<IPCB_LayerItem>>;
8153
+ /* Excluded from this release type: setInactiveLayerDisplayMode */
8113
8154
  }
8114
8155
 
8115
8156
  /**
@@ -8507,21 +8548,33 @@ declare class PCB_MathPolygon {
8507
8548
  * @public
8508
8549
  */
8509
8550
  declare class PCB_Net {
8551
+ /* Excluded from this release type: getAllNets */
8552
+ /* Excluded from this release type: getNet */
8510
8553
  /**
8511
8554
  * 获取所有网络的网络名称
8512
8555
  *
8513
- * @beta
8556
+ * @public
8557
+ * @returns 网络名称数组
8558
+ */
8559
+ getAllNetsName(): Promise<Array<string>>;
8560
+ /**
8561
+ * 获取所有网络的网络名称
8562
+ *
8563
+ * @public
8564
+ * @deprecated 请使用 {@link PCB_Net.getAllNetsName | getAllNetsName} 替代
8514
8565
  * @returns 网络名称数组
8515
8566
  */
8516
8567
  getAllNetName(): Promise<Array<string>>;
8517
8568
  /**
8518
8569
  * 获取指定网络的长度
8519
8570
  *
8520
- * @beta
8571
+ * @public
8521
8572
  * @param net - 网络名称
8522
8573
  * @returns 网络长度,`undefined` 为不存在该网络,`0` 为网络无长度
8523
8574
  */
8524
8575
  getNetLength(net: string): Promise<number | undefined>;
8576
+ /* Excluded from this release type: getNetColor */
8577
+ /* Excluded from this release type: setNetColor */
8525
8578
  /**
8526
8579
  * 获取关联指定网络的所有图元
8527
8580
  *
@@ -8563,7 +8616,7 @@ declare class PCB_Net {
8563
8616
  /**
8564
8617
  * 获取网表
8565
8618
  *
8566
- * @beta
8619
+ * @public
8567
8620
  * @param type - 网表格式
8568
8621
  * @returns 网表数据,当 type 为 `JLCEDA` 或 `EasyEDA` 时,返回值为数组
8569
8622
  */
@@ -8571,7 +8624,7 @@ declare class PCB_Net {
8571
8624
  /**
8572
8625
  * 更新网表
8573
8626
  *
8574
- * @beta
8627
+ * @public
8575
8628
  * @param type - 网表格式
8576
8629
  * @param netlist - 网表数据
8577
8630
  */
@@ -8947,7 +9000,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
8947
9000
  * @beta
8948
9001
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8949
9002
  * @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8950
- * @returns 填充图元对象,空数组表示获取失败
9003
+ * @returns 填充图元对象,空��组表示获取失败
8951
9004
  */
8952
9005
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
8953
9006
  /**
@@ -9201,7 +9254,7 @@ declare class PCB_PrimitiveObject implements IPCB_PrimitiveAPI {
9201
9254
  * 获取二进制内嵌对象
9202
9255
  *
9203
9256
  * @beta
9204
- * @param primitiveIds - 二进制内嵌对象的图元 ID,��以为字符串或字符串数组,如若为数组,则返回的也是数组
9257
+ * @param primitiveIds - 二进制内嵌对象的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9205
9258
  * @returns 二进制内嵌对象图元对象,`undefined` 表示获取失败
9206
9259
  */
9207
9260
  get(primitiveIds: string): Promise<IPCB_PrimitiveObject | undefined>;
@@ -9954,7 +10007,19 @@ declare class SCH_Primitive {
9954
10007
  */
9955
10008
  getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
9956
10009
  /* Excluded from this release type: getPrimitivesByPrimitiveId */
9957
- /* Excluded from this release type: getPrimitivesBBox */
10010
+ /**
10011
+ * 获取图元的 BBox
10012
+ *
10013
+ * @beta
10014
+ * @param primitiveIds - 图元 ID 数组或图元对象数组
10015
+ * @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
10016
+ */
10017
+ getPrimitivesBBox(primitiveIds: Array<string | ISCH_Primitive>): Promise<{
10018
+ minX: number;
10019
+ minY: number;
10020
+ maxX: number;
10021
+ maxY: number;
10022
+ } | undefined>;
9958
10023
  }
9959
10024
 
9960
10025
  /**
@@ -10337,7 +10402,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10337
10402
  * @param uniqueId - 唯一 ID,`null` 表示留空
10338
10403
  * @param manufacturer - 制造商,`null` 表示留空
10339
10404
  * @param manufacturerId - 制造商编号,`null` 表示留空
10340
- * @param supplier - 供应商,`null` 表示留空
10405
+ * @param supplier - 供应���,`null` 表示留空
10341
10406
  * @param supplierId - 供应商编号,`null` 表示留空
10342
10407
  * @returns 器件图元对象
10343
10408
  */
@@ -10996,7 +11061,7 @@ declare class SYS_FileManager {
10996
11061
  */
10997
11062
  getProjectFile(fileName?: string, password?: string): Promise<File | undefined>;
10998
11063
  /**
10999
- * ���取文档文件
11064
+ * 获取文档文件
11000
11065
  *
11001
11066
  * @public
11002
11067
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
@@ -11481,7 +11546,7 @@ declare class SYS_PanelControl {
11481
11546
  */
11482
11547
  openRightPanel(tab?: ESYS_RightPanelTab): void;
11483
11548
  /**
11484
- * 关闭右侧面板
11549
+ * 关闭���侧面板
11485
11550
  *
11486
11551
  * @public
11487
11552
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.110",
3
+ "version": "0.1.111",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [