@jlceda/pro-api-types 0.1.94 → 0.1.96
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.
- package/index.d.ts +24 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -413,7 +413,7 @@ declare class DMT_Project {
|
|
|
413
413
|
* @beta
|
|
414
414
|
* @param projectFriendlyName - 工程友好名称
|
|
415
415
|
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
|
|
416
|
-
* @param teamUuid - 团队 UUID
|
|
416
|
+
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定���队 UUID
|
|
417
417
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
418
418
|
* @param description - 工程描述
|
|
419
419
|
* @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
@@ -1375,7 +1375,7 @@ declare enum EPCB_PrimitiveRegionRuleType {
|
|
|
1375
1375
|
declare enum EPCB_PrimitiveType {
|
|
1376
1376
|
/** 圆弧线 */
|
|
1377
1377
|
ARC = "Arc",
|
|
1378
|
-
/**
|
|
1378
|
+
/** 器件 */
|
|
1379
1379
|
COMPONENT = "Component",
|
|
1380
1380
|
/** 焊盘 */
|
|
1381
1381
|
PAD = "Pad",
|
|
@@ -2419,7 +2419,7 @@ declare interface IPCB_PadPairGroupItem {
|
|
|
2419
2419
|
*/
|
|
2420
2420
|
declare interface IPCB_PadPairMinWireLengthItem {
|
|
2421
2421
|
/** 焊盘对数组 */
|
|
2422
|
-
|
|
2422
|
+
padPair: [string, string];
|
|
2423
2423
|
/** 最短导线长度 */
|
|
2424
2424
|
minWireLength: number;
|
|
2425
2425
|
}
|
|
@@ -3233,7 +3233,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3233
3233
|
* 获取属性状态:BBox 左上点坐标 X
|
|
3234
3234
|
*
|
|
3235
3235
|
* @public
|
|
3236
|
-
* @returns BBox
|
|
3236
|
+
* @returns BBox 左上���坐标 X
|
|
3237
3237
|
*/
|
|
3238
3238
|
getState_X(): number;
|
|
3239
3239
|
/**
|
|
@@ -3573,7 +3573,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3573
3573
|
*/
|
|
3574
3574
|
toSync(): IPCB_PrimitiveLine;
|
|
3575
3575
|
/**
|
|
3576
|
-
*
|
|
3576
|
+
* 查询图元是否为异步��元
|
|
3577
3577
|
*
|
|
3578
3578
|
* @public
|
|
3579
3579
|
* @returns 是否为异步图元
|
|
@@ -3872,7 +3872,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3872
3872
|
* 设置属性状态:孔偏移 X
|
|
3873
3873
|
*
|
|
3874
3874
|
* @beta
|
|
3875
|
-
* @remarks
|
|
3875
|
+
* @remarks 如若孔不存在,则属性���不会被修改
|
|
3876
3876
|
* @param holeOffsetX - 孔偏移 X
|
|
3877
3877
|
* @returns 焊盘图元对象
|
|
3878
3878
|
*/
|
|
@@ -4789,7 +4789,7 @@ declare interface ISCH_Primitive {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
|
|
4791
4791
|
/**
|
|
4792
|
-
*
|
|
4792
|
+
* 原理图图元接��
|
|
4793
4793
|
*
|
|
4794
4794
|
* @public
|
|
4795
4795
|
*/
|
|
@@ -6714,7 +6714,7 @@ declare class PCB_Document {
|
|
|
6714
6714
|
*
|
|
6715
6715
|
* @public
|
|
6716
6716
|
* @remarks
|
|
6717
|
-
*
|
|
6717
|
+
* 嘉立创 EDA 专业版前端显示的坐标均为画布原点;
|
|
6718
6718
|
*
|
|
6719
6719
|
* 嘉立创 EDA 专业版 API 使用的均为数据原点;
|
|
6720
6720
|
*
|
|
@@ -7065,7 +7065,7 @@ declare class PCB_Drc {
|
|
|
7065
7065
|
* 从等长网络组中移除网络
|
|
7066
7066
|
*
|
|
7067
7067
|
* @beta
|
|
7068
|
-
* @param equalLengthNetGroupName -
|
|
7068
|
+
* @param equalLengthNetGroupName - 等长网��组名称
|
|
7069
7069
|
* @param net - 网络名称
|
|
7070
7070
|
* @returns 操作是否成功
|
|
7071
7071
|
*/
|
|
@@ -7193,7 +7193,7 @@ declare class PCB_Layer {
|
|
|
7193
7193
|
* 将层设置为不可见
|
|
7194
7194
|
*
|
|
7195
7195
|
* @beta
|
|
7196
|
-
* @param layer -
|
|
7196
|
+
* @param layer - 层,如若不指定任何层则默认为所有层
|
|
7197
7197
|
* @param setOtherLayerVisible - 是否将其它层设置为可见
|
|
7198
7198
|
* @returns 操作是否成功
|
|
7199
7199
|
*/
|
|
@@ -7306,7 +7306,7 @@ declare class PCB_ManufactureData {
|
|
|
7306
7306
|
* 获取 PCB 制版文件(Gerber)
|
|
7307
7307
|
*
|
|
7308
7308
|
* @beta
|
|
7309
|
-
* @remarks 可以使用 {@link SYS_FileSystem.saveFile}
|
|
7309
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文��系统
|
|
7310
7310
|
* @param fileName - 文件名
|
|
7311
7311
|
* @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
|
|
7312
7312
|
* @param unit - 单位
|
|
@@ -7389,7 +7389,7 @@ declare class PCB_ManufactureData {
|
|
|
7389
7389
|
* 获取网表文件(Netlist)
|
|
7390
7390
|
*
|
|
7391
7391
|
* @beta
|
|
7392
|
-
* @remarks 可以使用 {@link SYS_FileSystem.saveFile}
|
|
7392
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接���将文件导出到本地文件系统
|
|
7393
7393
|
* @param fileName - 文件名
|
|
7394
7394
|
* @param netlistType - 网表类型
|
|
7395
7395
|
* @returns 网表文件数据
|
|
@@ -7469,7 +7469,7 @@ declare class PCB_ManufactureData {
|
|
|
7469
7469
|
* @beta
|
|
7470
7470
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
7471
7471
|
* @deprecated 新版自动布局 JSON 文件正在开发中,之后将会取代本接口
|
|
7472
|
-
* @param fileName -
|
|
7472
|
+
* @param fileName - ���件名
|
|
7473
7473
|
* @returns 旧版自动布局 JSON 文件数据
|
|
7474
7474
|
*/
|
|
7475
7475
|
getOldAutoLayoutJsonFile(fileName?: string): Promise<File | undefined>;
|
|
@@ -9996,7 +9996,16 @@ declare class SYS_Log {
|
|
|
9996
9996
|
* @param types - 日志类型数组,可以在指定的日志类型内查找
|
|
9997
9997
|
* @returns 符合查找条件的日志条目数组
|
|
9998
9998
|
*/
|
|
9999
|
-
find(message: string
|
|
9999
|
+
find(message: string | Array<string | {
|
|
10000
|
+
text: string;
|
|
10001
|
+
attr?: {
|
|
10002
|
+
id?: string;
|
|
10003
|
+
path?: string;
|
|
10004
|
+
sheet?: string;
|
|
10005
|
+
pcbid?: string;
|
|
10006
|
+
type?: string;
|
|
10007
|
+
};
|
|
10008
|
+
}>, types?: ESYS_LogType | Array<ESYS_LogType>): Promise<Array<ISYS_LogLine>>;
|
|
10000
10009
|
}
|
|
10001
10010
|
|
|
10002
10011
|
/**
|
|
@@ -10024,7 +10033,7 @@ declare class SYS_MessageBox {
|
|
|
10024
10033
|
* @public
|
|
10025
10034
|
* @deprecated 请使用 {@link SYS_Dialog.showConfirmationMessage} 替代
|
|
10026
10035
|
* @remarks 显示一个拥有确认和取消按钮的确认框
|
|
10027
|
-
* @param content -
|
|
10036
|
+
* @param content - 消息文本,支持使用 `\n` 换行
|
|
10028
10037
|
* @param title - 确认框标题
|
|
10029
10038
|
* @param mainButtonTitle - 主要按钮标题
|
|
10030
10039
|
* @param buttonTitle - 主要按钮标题
|