@jlceda/pro-api-types 0.1.98 → 0.1.100

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 +64 -50
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -595,7 +595,7 @@ declare class DMT_Schematic {
595
595
  */
596
596
  getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
597
597
  /**
598
- * 获取当前原理图图页的详细属性
598
+ * 获取当前原理���图页的详细属性
599
599
  *
600
600
  * @beta
601
601
  * @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
@@ -797,7 +797,6 @@ declare class EDA {
797
797
  /* Excluded from this release type: extensionUuid */
798
798
  /* Excluded from this release type: allowExternalInteractions */
799
799
  /* Excluded from this release type: __constructor */
800
- /* Excluded from this release type: reassignInstantiatedObjectsBeforeAllowExternalInteractionsChange */
801
800
  }
802
801
 
803
802
  /**
@@ -2602,7 +2601,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2602
2601
  */
2603
2602
  setState_Net(net: string): IPCB_PrimitiveArc;
2604
2603
  /**
2605
- * 设置属性状���:层
2604
+ * 设置属性状态:层
2606
2605
  *
2607
2606
  * @beta
2608
2607
  * @param layer - 层
@@ -2708,6 +2707,8 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2708
2707
  * @returns 圆弧线图元对象
2709
2708
  */
2710
2709
  done(): Promise<IPCB_PrimitiveArc>;
2710
+ /* Excluded from this release type: getAdjacentPrimitives */
2711
+ /* Excluded from this release type: getEntireTrack */
2711
2712
  }
2712
2713
 
2713
2714
  /**
@@ -3395,7 +3396,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3395
3396
  }
3396
3397
 
3397
3398
  /**
3398
- * 导线图元
3399
+ * 直线图元
3399
3400
  *
3400
3401
  * @public
3401
3402
  */
@@ -3499,7 +3500,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3499
3500
  *
3500
3501
  * @beta
3501
3502
  * @param net - 网络名称
3502
- * @returns 导线图元对象
3503
+ * @returns 直线图元对象
3503
3504
  */
3504
3505
  setState_Net(net: string): IPCB_PrimitiveLine;
3505
3506
  /**
@@ -3507,7 +3508,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3507
3508
  *
3508
3509
  * @beta
3509
3510
  * @param layer - 层
3510
- * @returns 导线图元对象
3511
+ * @returns 直线图元对象
3511
3512
  */
3512
3513
  setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveLine;
3513
3514
  /**
@@ -3515,7 +3516,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3515
3516
  *
3516
3517
  * @beta
3517
3518
  * @param startX - 起始位置 X
3518
- * @returns 导线图元对象
3519
+ * @returns 直线图元对象
3519
3520
  */
3520
3521
  setState_StartX(startX: number): IPCB_PrimitiveLine;
3521
3522
  /**
@@ -3523,7 +3524,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3523
3524
  *
3524
3525
  * @beta
3525
3526
  * @param startY - 起始位置 Y
3526
- * @returns 导线图元对象
3527
+ * @returns 直线图元对象
3527
3528
  */
3528
3529
  setState_StartY(startY: number): IPCB_PrimitiveLine;
3529
3530
  /**
@@ -3531,7 +3532,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3531
3532
  *
3532
3533
  * @beta
3533
3534
  * @param endX - 终止位置 X
3534
- * @returns 导线图元对象
3535
+ * @returns 直线图元对象
3535
3536
  */
3536
3537
  setState_EndX(endX: number): IPCB_PrimitiveLine;
3537
3538
  /**
@@ -3539,7 +3540,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3539
3540
  *
3540
3541
  * @beta
3541
3542
  * @param endY - 终止位置 Y
3542
- * @returns 导线图元对象
3543
+ * @returns 直线图元对象
3543
3544
  */
3544
3545
  setState_EndY(endY: number): IPCB_PrimitiveLine;
3545
3546
  /**
@@ -3547,7 +3548,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3547
3548
  *
3548
3549
  * @beta
3549
3550
  * @param lineWidth - 线宽
3550
- * @returns 导线图元对象
3551
+ * @returns 直线图元对象
3551
3552
  */
3552
3553
  setState_LineWidth(lineWidth: number): IPCB_PrimitiveLine;
3553
3554
  /**
@@ -3555,25 +3556,25 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3555
3556
  *
3556
3557
  * @beta
3557
3558
  * @param primitiveLock - 是否锁定
3558
- * @returns 导线图元对象
3559
+ * @returns 直线图元对象
3559
3560
  */
3560
3561
  setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveLine;
3561
3562
  /**
3562
3563
  * 将图元转换为异步图元
3563
3564
  *
3564
3565
  * @public
3565
- * @returns 导线图元对象
3566
+ * @returns 直线图元对象
3566
3567
  */
3567
3568
  toAsync(): IPCB_PrimitiveLine;
3568
3569
  /**
3569
3570
  * 将图元转换为同步图元
3570
3571
  *
3571
3572
  * @public
3572
- * @returns 导线图元对象
3573
+ * @returns 直线图元对象
3573
3574
  */
3574
3575
  toSync(): IPCB_PrimitiveLine;
3575
3576
  /**
3576
- * 查询图元是否为异步��元
3577
+ * 查询图元是否为异步图元
3577
3578
  *
3578
3579
  * @public
3579
3580
  * @returns 是否为异步图元
@@ -3583,16 +3584,18 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3583
3584
  * 将异步图元重置为当前画布状态
3584
3585
  *
3585
3586
  * @beta
3586
- * @returns 导线图元对象
3587
+ * @returns 直线图元对象
3587
3588
  */
3588
3589
  reset(): Promise<IPCB_PrimitiveLine>;
3589
3590
  /**
3590
3591
  * 将对图元的更改应用到画布
3591
3592
  *
3592
3593
  * @beta
3593
- * @returns 导线图元对象
3594
+ * @returns 直线图元对象
3594
3595
  */
3595
3596
  done(): Promise<IPCB_PrimitiveLine>;
3597
+ /* Excluded from this release type: getAdjacentPrimitives */
3598
+ /* Excluded from this release type: getEntireTrack */
3596
3599
  }
3597
3600
 
3598
3601
  /**
@@ -4770,6 +4773,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
4770
4773
  * @returns 过孔图元对象
4771
4774
  */
4772
4775
  done(): Promise<IPCB_PrimitiveVia>;
4776
+ /* Excluded from this release type: getAdjacentPrimitives */
4773
4777
  }
4774
4778
 
4775
4779
  /**
@@ -4789,7 +4793,7 @@ declare interface ISCH_Primitive {
4789
4793
  }
4790
4794
 
4791
4795
  /**
4792
- * 原理图图元接��
4796
+ * 原理图图元接口
4793
4797
  *
4794
4798
  * @public
4795
4799
  */
@@ -6637,14 +6641,24 @@ declare class PCB_Document {
6637
6641
  */
6638
6642
  importChanges(uuid: string): Promise<boolean>;
6639
6643
  /**
6640
- * 导入自动布线文件(JSON)
6644
+ * 导入旧版自动布线文件(JSON)
6641
6645
  *
6642
6646
  * @beta
6643
6647
  * @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
6644
6648
  * @param autoRouteFile - 欲导入的 JSON 文件
6645
6649
  * @returns 导入操作是否成功
6646
6650
  */
6647
- importAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
6651
+ importOldAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
6652
+ /**
6653
+ * 导入旧版自动布局文件(JSON)
6654
+ *
6655
+ * @beta
6656
+ * @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
6657
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoLayoutJsonFile} 接口提供的自动布线文件,它对应 {@link PCB_Document.importAutoLayoutJsonFile} 导入接口
6658
+ * @param autoLayoutFile - 欲导入的 JSON 文件
6659
+ * @returns 导入操作是否成功
6660
+ */
6661
+ importOldAutoLayoutJsonFile(autoLayoutFile: File): Promise<boolean>;
6648
6662
  /**
6649
6663
  * 导入自动布局文件(JSON)
6650
6664
  *
@@ -7065,7 +7079,7 @@ declare class PCB_Drc {
7065
7079
  * 从等长网络组中移除网络
7066
7080
  *
7067
7081
  * @beta
7068
- * @param equalLengthNetGroupName - 等长网��组名称
7082
+ * @param equalLengthNetGroupName - 等长网络组名称
7069
7083
  * @param net - 网络名称
7070
7084
  * @returns 操作是否成功
7071
7085
  */
@@ -7306,7 +7320,7 @@ declare class PCB_ManufactureData {
7306
7320
  * 获取 PCB 制版文件(Gerber)
7307
7321
  *
7308
7322
  * @beta
7309
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文��系统
7323
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7310
7324
  * @param fileName - 文件名
7311
7325
  * @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
7312
7326
  * @param unit - 单位
@@ -7389,7 +7403,7 @@ declare class PCB_ManufactureData {
7389
7403
  * 获取网表文件(Netlist)
7390
7404
  *
7391
7405
  * @beta
7392
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接���将文件导出到本地文件系统
7406
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7393
7407
  * @param fileName - 文件名
7394
7408
  * @param netlistType - 网表类型
7395
7409
  * @returns 网表文件数据
@@ -7449,7 +7463,7 @@ declare class PCB_ManufactureData {
7449
7463
  *
7450
7464
  * @public
7451
7465
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7452
- * @deprecated 新版自动布线 JSON 文件正在开发中,之后将会取代本接口
7466
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoRouteJsonFile} 接口提供的自动布线文件
7453
7467
  * @param fileName - 文件名
7454
7468
  * @returns 旧版自动布线 JSON 文件数据
7455
7469
  */
@@ -7468,8 +7482,8 @@ declare class PCB_ManufactureData {
7468
7482
  *
7469
7483
  * @beta
7470
7484
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7471
- * @deprecated 新版自动布局 JSON 文件正在开发中,之后将会取代本接口
7472
- * @param fileName - ���件名
7485
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoLayoutJsonFile} 接口提供的自动布局文件
7486
+ * @param fileName - 文件名
7473
7487
  * @returns 旧版自动布局 JSON 文件数据
7474
7488
  */
7475
7489
  getOldAutoLayoutJsonFile(fileName?: string): Promise<File | undefined>;
@@ -7629,6 +7643,7 @@ declare class PCB_Primitive {
7629
7643
  * PCB & 封装 / 圆弧线图元类
7630
7644
  *
7631
7645
  * @public
7646
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
7632
7647
  */
7633
7648
  declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
7634
7649
  /**
@@ -7996,13 +8011,14 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
7996
8011
  }
7997
8012
 
7998
8013
  /**
7999
- * PCB & 封装 / 导线图元类
8014
+ * PCB & 封装 / 直线图元类
8000
8015
  *
8001
8016
  * @public
8017
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
8002
8018
  */
8003
8019
  declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8004
8020
  /**
8005
- * 创建导线
8021
+ * 创建直线
8006
8022
  *
8007
8023
  * @public
8008
8024
  * @param net - 网络名称
@@ -8013,24 +8029,24 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8013
8029
  * @param endY - 终止位置 Y
8014
8030
  * @param lineWidth - 线宽
8015
8031
  * @param primitiveLock - 是否锁定
8016
- * @returns 导线图元对象
8032
+ * @returns 直线图元对象
8017
8033
  */
8018
8034
  create(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveLine | undefined>;
8019
8035
  /**
8020
- * 删除导线
8036
+ * 删除直线
8021
8037
  *
8022
8038
  * @beta
8023
- * @param primitiveIds - 导线的图元 ID 或导线图元对象
8039
+ * @param primitiveIds - 直线的图元 ID 或直线图元对象
8024
8040
  * @returns 删除操作是否成功
8025
8041
  */
8026
8042
  delete(primitiveIds: string | IPCB_PrimitiveLine | Array<string> | Array<IPCB_PrimitiveLine>): Promise<boolean>;
8027
8043
  /**
8028
- * 修改导线
8044
+ * 修改直线
8029
8045
  *
8030
8046
  * @beta
8031
8047
  * @param primitiveId - 图元 ID
8032
8048
  * @param property - 修改参数
8033
- * @returns 导线图元对象
8049
+ * @returns 直线图元对象
8034
8050
  */
8035
8051
  modify(primitiveId: string | IPCB_PrimitiveLine, property: {
8036
8052
  net?: string;
@@ -8043,24 +8059,24 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8043
8059
  primitiveLock?: boolean;
8044
8060
  }): Promise<IPCB_PrimitiveLine | undefined>;
8045
8061
  /**
8046
- * 获取导线
8062
+ * 获取直线
8047
8063
  *
8048
8064
  * @beta
8049
- * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8050
- * @returns 导线图元对象,`undefined` 表示获取失败
8065
+ * @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8066
+ * @returns 直线图元对象,`undefined` 表示获取失败
8051
8067
  */
8052
8068
  get(primitiveIds: string): Promise<IPCB_PrimitiveLine | undefined>;
8053
8069
  /**
8054
- * 获取导线
8070
+ * 获取直线
8055
8071
  *
8056
8072
  * @beta
8057
8073
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8058
- * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8059
- * @returns 导线图元对象,空数组表示获取失败
8074
+ * @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8075
+ * @returns 直线图元对象,空数组表示获取失败
8060
8076
  */
8061
8077
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveLine>>;
8062
8078
  /**
8063
- * 获取所有导线的图元 ID
8079
+ * 获取所有直线的图元 ID
8064
8080
  *
8065
8081
  * @beta
8066
8082
  * @param net - 网络名称
@@ -8070,13 +8086,13 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8070
8086
  */
8071
8087
  getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<string>>;
8072
8088
  /**
8073
- * 获取所有导线
8089
+ * 获取所有直线
8074
8090
  *
8075
8091
  * @beta
8076
8092
  * @param net - 网络名称
8077
8093
  * @param layer - 层
8078
8094
  * @param primitiveLock - 是否锁定
8079
- * @returns 导线图元对象数组
8095
+ * @returns 直线图元对象数组
8080
8096
  */
8081
8097
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveLine>>;
8082
8098
  }
@@ -9517,8 +9533,8 @@ declare class SCH_Utils {
9517
9533
  * @remarks 向外部服务器发起安全的 cURL 请求
9518
9534
  */
9519
9535
  declare class SYS_ClientUrl {
9520
- /** 是否允许外部交互 */
9521
- private allowExternalInteractions?;
9536
+ /** 扩展 UUID */
9537
+ private extensionUuid?;
9522
9538
  /* Excluded from this release type: __constructor */
9523
9539
  /**
9524
9540
  * 发起即时请求
@@ -9583,7 +9599,7 @@ declare class SYS_Dialog {
9583
9599
  * 系统 / 运行环境类
9584
9600
  *
9585
9601
  * @public
9586
- * @remarks 获取嘉立创 EDA 专���版运行环境参数
9602
+ * @remarks 获取嘉立创 EDA 专业版运行环境参数
9587
9603
  */
9588
9604
  declare class SYS_Environment {
9589
9605
  /**
@@ -9748,8 +9764,8 @@ declare class SYS_FileManager {
9748
9764
  * @public
9749
9765
  */
9750
9766
  declare class SYS_FileSystem {
9751
- /** 是否允许外部交互 */
9752
- private allowExternalInteractions?;
9767
+ /** 扩展 UUID */
9768
+ private extensionUuid?;
9753
9769
  /* Excluded from this release type: __constructor */
9754
9770
  /**
9755
9771
  * 打开读入文件窗口
@@ -9763,7 +9779,7 @@ declare class SYS_FileSystem {
9763
9779
  * 保存文件
9764
9780
  *
9765
9781
  * @public
9766
- * @remarks 调用浏览器下载接口或 Electron 保存文件接口,将传入的文件流保存到本地
9782
+ * @remarks 调用浏览器下载接口或 Electron 保存文件接口,将传入的文件流��存到本地
9767
9783
  * @param fileData - 文件数据
9768
9784
  * @param fileName - 文件名称
9769
9785
  */
@@ -10402,8 +10418,6 @@ declare class SYS_Unit {
10402
10418
  declare class SYS_WebSocket {
10403
10419
  /** 扩展 UUID */
10404
10420
  private extensionUuid?;
10405
- /** 是否允许外部交互 */
10406
- private allowExternalInteractions?;
10407
10421
  /* Excluded from this release type: __constructor */
10408
10422
  /**
10409
10423
  * 注册 WebSocket 连接
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.98",
3
+ "version": "0.1.100",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [