@jlceda/pro-api-types 0.1.89 → 0.1.91
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 +91 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -416,7 +416,7 @@ declare class DMT_Project {
|
|
|
416
416
|
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
|
|
417
417
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
418
418
|
* @param description - 工程描述
|
|
419
|
-
* @param collaborationMode -
|
|
419
|
+
* @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
420
420
|
* @returns 工程 UUID,如若为 `undefined` 则创建失败
|
|
421
421
|
*/
|
|
422
422
|
createProject(projectFriendlyName: string, projectName?: string, teamUuid?: string, folderUuid?: string, description?: string, collaborationMode?: EDMT_ProjectCollaborationMode): Promise<string | undefined>;
|
|
@@ -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 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -773,6 +773,7 @@ declare class EDA {
|
|
|
773
773
|
sch_SelectControl: SCH_SelectControl;
|
|
774
774
|
sch_Utils: SCH_Utils;
|
|
775
775
|
sys_ClientUrl: SYS_ClientUrl;
|
|
776
|
+
sys_Dialog: SYS_Dialog;
|
|
776
777
|
sys_Environment: SYS_Environment;
|
|
777
778
|
sys_FileManager: SYS_FileManager;
|
|
778
779
|
sys_FileSystem: SYS_FileSystem;
|
|
@@ -1187,7 +1188,7 @@ declare enum EPCB_LayerId {
|
|
|
1187
1188
|
SHELL_3D_TOP = 54,
|
|
1188
1189
|
/** 3D 外壳底层 */
|
|
1189
1190
|
SHELL_3D_BOTTOM = 55,
|
|
1190
|
-
/**
|
|
1191
|
+
/** 钻孔图层 */
|
|
1191
1192
|
DRILL_DRAWING = 56
|
|
1192
1193
|
}
|
|
1193
1194
|
|
|
@@ -1227,6 +1228,20 @@ declare enum EPCB_PcbPlateType {
|
|
|
1227
1228
|
FPC = 2
|
|
1228
1229
|
}
|
|
1229
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* PDF 输出方式
|
|
1233
|
+
*
|
|
1234
|
+
* @public
|
|
1235
|
+
*/
|
|
1236
|
+
declare enum EPCB_PdfOutputMethod {
|
|
1237
|
+
/** 单个多页 PDF */
|
|
1238
|
+
MULTI_PAGE_PDF = "A Multi Page PDF",
|
|
1239
|
+
/** 多个单页 PDF(将会输出包含所有分解图层 PDF 文件的压缩包) */
|
|
1240
|
+
MULTIPLE_SINGLE_PAGE_PDF = "Multiple Single Page PDF",
|
|
1241
|
+
/** 单个单页 PDF(将会输出包含每层一个 PDF 文件的压缩包) */
|
|
1242
|
+
SINGLE_PAGE_PDF = "A Single Page PDF"
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1230
1245
|
/**
|
|
1231
1246
|
* 圆弧交互模式
|
|
1232
1247
|
*
|
|
@@ -2105,7 +2120,7 @@ declare interface ILIB_DeviceSearchItem {
|
|
|
2105
2120
|
footprintName?: string;
|
|
2106
2121
|
/** 关联封装 UUID */
|
|
2107
2122
|
footprintUuid?: string;
|
|
2108
|
-
/** 关联 3D
|
|
2123
|
+
/** 关联 3D 模型名称 */
|
|
2109
2124
|
model3DName?: string;
|
|
2110
2125
|
/** 关联 3D 模型 UUID */
|
|
2111
2126
|
model3DUuid?: string;
|
|
@@ -2394,6 +2409,18 @@ declare interface IPCB_PadPairGroupItem {
|
|
|
2394
2409
|
padPairs: Array<[string, string]>;
|
|
2395
2410
|
}
|
|
2396
2411
|
|
|
2412
|
+
/**
|
|
2413
|
+
* 焊盘对最短导线长度属性
|
|
2414
|
+
*
|
|
2415
|
+
* @public
|
|
2416
|
+
*/
|
|
2417
|
+
declare interface IPCB_PadPairMinWireLengthItem {
|
|
2418
|
+
/** 焊盘对数组 */
|
|
2419
|
+
padPairs: Array<[string, string]>;
|
|
2420
|
+
/** 最短导线长度 */
|
|
2421
|
+
minWireLength: number;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2397
2424
|
/**
|
|
2398
2425
|
* 单多边形
|
|
2399
2426
|
*
|
|
@@ -3241,7 +3268,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3241
3268
|
*/
|
|
3242
3269
|
getState_Rotation(): number;
|
|
3243
3270
|
/**
|
|
3244
|
-
*
|
|
3271
|
+
* 获取属性状态:是否水平镜像
|
|
3245
3272
|
*
|
|
3246
3273
|
* @public
|
|
3247
3274
|
* @returns 是否水平镜像
|
|
@@ -3549,7 +3576,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3549
3576
|
*/
|
|
3550
3577
|
reset(): Promise<IPCB_PrimitiveLine>;
|
|
3551
3578
|
/**
|
|
3552
|
-
*
|
|
3579
|
+
* 将对���元的更改应用到画布
|
|
3553
3580
|
*
|
|
3554
3581
|
* @beta
|
|
3555
3582
|
* @returns 导线图元对象
|
|
@@ -5355,7 +5382,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5355
5382
|
*
|
|
5356
5383
|
* @beta
|
|
5357
5384
|
* @param otherProperty - 其它参数
|
|
5358
|
-
* @returns
|
|
5385
|
+
* @returns ���件图元对象
|
|
5359
5386
|
*/
|
|
5360
5387
|
setState_OtherProperty(otherProperty: {
|
|
5361
5388
|
[key: string]: string;
|
|
@@ -7070,6 +7097,7 @@ declare class PCB_Drc {
|
|
|
7070
7097
|
* @returns 所有焊盘对组的详细属性
|
|
7071
7098
|
*/
|
|
7072
7099
|
getAllPadPairGroups(): Promise<Array<IPCB_PadPairGroupItem>>;
|
|
7100
|
+
/* Excluded from this release type: getPadPairGroupMinWireLength */
|
|
7073
7101
|
}
|
|
7074
7102
|
|
|
7075
7103
|
/**
|
|
@@ -7185,7 +7213,7 @@ declare class PCB_Layer {
|
|
|
7185
7213
|
*
|
|
7186
7214
|
* @beta
|
|
7187
7215
|
* @remarks
|
|
7188
|
-
* 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板,将会新增 FPC
|
|
7216
|
+
* 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板,将会新增 FPC 补强层图层。
|
|
7189
7217
|
*
|
|
7190
7218
|
* 请注意:
|
|
7191
7219
|
*
|
|
@@ -7350,6 +7378,8 @@ declare class PCB_ManufactureData {
|
|
|
7350
7378
|
layerId: number;
|
|
7351
7379
|
mirror: boolean;
|
|
7352
7380
|
}>, objects?: Array<string>): Promise<File | undefined>;
|
|
7381
|
+
/* Excluded from this release type: getPdfFile */
|
|
7382
|
+
/* Excluded from this release type: getIpcD356AFile */
|
|
7353
7383
|
/**
|
|
7354
7384
|
* 获取 ODB++ 文件
|
|
7355
7385
|
*
|
|
@@ -7421,6 +7451,8 @@ declare class PCB_ManufactureData {
|
|
|
7421
7451
|
* @returns 自动布局 JSON 文件数据
|
|
7422
7452
|
*/
|
|
7423
7453
|
getAutoLayoutJsonFile(fileName?: string): Promise<File | undefined>;
|
|
7454
|
+
/* Excluded from this release type: getAltiumDesignerFile */
|
|
7455
|
+
/* Excluded from this release type: getPadsFile */
|
|
7424
7456
|
/**
|
|
7425
7457
|
* 获取 PCB 信息文件
|
|
7426
7458
|
*
|
|
@@ -7434,6 +7466,15 @@ declare class PCB_ManufactureData {
|
|
|
7434
7466
|
/* Excluded from this release type: placeSmtComponentsOrder */
|
|
7435
7467
|
/* Excluded from this release type: placePcbOrder */
|
|
7436
7468
|
/* Excluded from this release type: place3DShellOrder */
|
|
7469
|
+
/**
|
|
7470
|
+
* 获取 IPC-D-356A 文件
|
|
7471
|
+
*
|
|
7472
|
+
* @beta
|
|
7473
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
7474
|
+
* @param fileName - 文件名
|
|
7475
|
+
* @returns IPC-D-356A 文件
|
|
7476
|
+
*/
|
|
7477
|
+
getIPCFile(fileName?: string): Promise<File | undefined>;
|
|
7437
7478
|
}
|
|
7438
7479
|
|
|
7439
7480
|
/**
|
|
@@ -7679,7 +7720,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
7679
7720
|
*
|
|
7680
7721
|
* @beta
|
|
7681
7722
|
* @param primitiveIds - 器件的图元 ID 或器件图元对象
|
|
7682
|
-
* @returns
|
|
7723
|
+
* @returns 删除操作是否成功
|
|
7683
7724
|
*/
|
|
7684
7725
|
delete(primitiveIds: string | IPCB_PrimitiveComponent | Array<string> | Array<IPCB_PrimitiveComponent>): Promise<boolean>;
|
|
7685
7726
|
/**
|
|
@@ -8295,7 +8336,7 @@ declare class PCB_PrimitiveVia implements IPCB_PrimitiveAPI {
|
|
|
8295
8336
|
* @beta
|
|
8296
8337
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
8297
8338
|
* @param primitiveIds - 过孔的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
8298
|
-
* @returns
|
|
8339
|
+
* @returns 过孔图元对象,空数组表示获取失败
|
|
8299
8340
|
*/
|
|
8300
8341
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveVia>>;
|
|
8301
8342
|
/**
|
|
@@ -9482,6 +9523,40 @@ declare class SYS_ClientUrl {
|
|
|
9482
9523
|
}, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
|
|
9483
9524
|
}
|
|
9484
9525
|
|
|
9526
|
+
/**
|
|
9527
|
+
* 系统 / 对话框类
|
|
9528
|
+
*
|
|
9529
|
+
* @public
|
|
9530
|
+
* @remarks 生成对话框窗口
|
|
9531
|
+
*/
|
|
9532
|
+
declare class SYS_Dialog {
|
|
9533
|
+
/**
|
|
9534
|
+
* 弹出消息窗口
|
|
9535
|
+
*
|
|
9536
|
+
* @public
|
|
9537
|
+
* @remarks 显示一个文字消息窗口
|
|
9538
|
+
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9539
|
+
* @param title - 弹出窗口标题
|
|
9540
|
+
* @param buttonTitle - 按钮标题,为空则不显示按钮
|
|
9541
|
+
*/
|
|
9542
|
+
showInformationMessage(content: string, title?: string, buttonTitle?: string): void;
|
|
9543
|
+
/**
|
|
9544
|
+
* 弹出确认窗口
|
|
9545
|
+
*
|
|
9546
|
+
* @public
|
|
9547
|
+
* @remarks 显示一个拥有确认和取消按钮的窗口
|
|
9548
|
+
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9549
|
+
* @param title - 弹出窗口标题
|
|
9550
|
+
* @param mainButtonTitle - 主要按钮标题
|
|
9551
|
+
* @param buttonTitle - 主要按钮标题
|
|
9552
|
+
* @param callbackFn - 回调函数,如需调用扩展内的函数,请在函数名前加上扩展的唯一 ID,以西文句号 `.` 分隔
|
|
9553
|
+
*/
|
|
9554
|
+
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
9555
|
+
/* Excluded from this release type: showInputDialog */
|
|
9556
|
+
/* Excluded from this release type: showSelectDialog */
|
|
9557
|
+
/* Excluded from this release type: showSelectDialog */
|
|
9558
|
+
}
|
|
9559
|
+
|
|
9485
9560
|
/**
|
|
9486
9561
|
* 系统 / 运行环境类
|
|
9487
9562
|
*
|
|
@@ -9900,6 +9975,7 @@ declare class SYS_Log {
|
|
|
9900
9975
|
* 系统 / 消息框类
|
|
9901
9976
|
*
|
|
9902
9977
|
* @public
|
|
9978
|
+
* @deprecated 已更名为 {@link SYS_Dialog}
|
|
9903
9979
|
* @remarks 生成消息提示框
|
|
9904
9980
|
*/
|
|
9905
9981
|
declare class SYS_MessageBox {
|
|
@@ -9907,6 +9983,7 @@ declare class SYS_MessageBox {
|
|
|
9907
9983
|
* 显示消息框
|
|
9908
9984
|
*
|
|
9909
9985
|
* @public
|
|
9986
|
+
* @deprecated 请使用 {@link SYS_Dialog.showInformationMessage} 替代
|
|
9910
9987
|
* @remarks 显示一个文字消息提示框
|
|
9911
9988
|
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9912
9989
|
* @param title - 消息框标题
|
|
@@ -9917,12 +9994,13 @@ declare class SYS_MessageBox {
|
|
|
9917
9994
|
* 显示确认框
|
|
9918
9995
|
*
|
|
9919
9996
|
* @public
|
|
9997
|
+
* @deprecated 请使用 {@link SYS_Dialog.showConfirmationMessage} 替代
|
|
9920
9998
|
* @remarks 显示一个拥有确认和取消按钮的确认框
|
|
9921
9999
|
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9922
10000
|
* @param title - 确认框标题
|
|
9923
10001
|
* @param mainButtonTitle - 主要按钮标题
|
|
9924
10002
|
* @param buttonTitle - 主要按钮标题
|
|
9925
|
-
* @param callbackFn -
|
|
10003
|
+
* @param callbackFn - 回调函数,如需调用扩展内的函数,请在函数名前加上扩展的唯一 ID,以西文句号 `.` 分隔
|
|
9926
10004
|
*/
|
|
9927
10005
|
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
9928
10006
|
}
|
|
@@ -10298,7 +10376,7 @@ declare class SYS_WebSocket {
|
|
|
10298
10376
|
* 可以用来执行前检测 WebSocket 连接是否正常,但需要注意 **不要尝试相同 ID 不同参数的连接**,这会造成混乱:
|
|
10299
10377
|
* 如果存在指定 ID 且处于活跃状态中的 WebSocket 连接,那么其余参数的变更将不会被应用
|
|
10300
10378
|
*
|
|
10301
|
-
*
|
|
10379
|
+
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
10302
10380
|
* @param id - 自定义 WebSocket ID
|
|
10303
10381
|
* @param serviceUri - WebSocket 服务地址
|
|
10304
10382
|
* @param receiveMessageCallFn - 接收到消息时的回调函数
|
|
@@ -10377,7 +10455,7 @@ declare class SYS_Window {
|
|
|
10377
10455
|
declare type TPCB_LayersInTheSelectable = TPCB_LayersOfInner | TPCB_LayersOfCustom | EPCB_LayerId.TOP | EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.TOP_SOLDER_MASK | EPCB_LayerId.TOP_PASTE_MASK | EPCB_LayerId.TOP_ASSEMBLY | EPCB_LayerId.TOP_STIFFENER | EPCB_LayerId.BOTTOM | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.BOTTOM_SOLDER_MASK | EPCB_LayerId.BOTTOM_PASTE_MASK | EPCB_LayerId.BOTTOM_ASSEMBLY | EPCB_LayerId.BOTTOM_STIFFENER | EPCB_LayerId.BOARD_OUTLINE | EPCB_LayerId.MULTI | EPCB_LayerId.DOCUMENT | EPCB_LayerId.MECHANICAL | EPCB_LayerId.DRILL_DRAWING | EPCB_LayerId.RATLINE | EPCB_LayerId.COMPONENT_SHAPE | EPCB_LayerId.COMPONENT_MARKING | EPCB_LayerId.PIN_SOLDERING | EPCB_LayerId.PIN_FLOATING | EPCB_LayerId.SHELL_3D_OUTLINE | EPCB_LayerId.SHELL_3D_TOP | EPCB_LayerId.SHELL_3D_BOTTOM;
|
|
10378
10456
|
|
|
10379
10457
|
/**
|
|
10380
|
-
*
|
|
10458
|
+
* 器件所属层
|
|
10381
10459
|
*
|
|
10382
10460
|
* @public
|
|
10383
10461
|
*/
|