@jlceda/pro-api-types 0.1.90 → 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 +63 -16
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -2604,7 +2605,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
|
2604
2605
|
*/
|
|
2605
2606
|
setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveArc;
|
|
2606
2607
|
/**
|
|
2607
|
-
*
|
|
2608
|
+
* 设置属性状态:起始位置 X
|
|
2608
2609
|
*
|
|
2609
2610
|
* @beta
|
|
2610
2611
|
* @param startX - 起始位置 X
|
|
@@ -3235,7 +3236,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3235
3236
|
* 获取属性状态:图像源数据(复杂多边形)
|
|
3236
3237
|
*
|
|
3237
3238
|
* @public
|
|
3238
|
-
* @returns
|
|
3239
|
+
* @returns 图像源数据(复杂多边形)
|
|
3239
3240
|
*/
|
|
3240
3241
|
getState_ComplexPolygon(): TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>;
|
|
3241
3242
|
/**
|
|
@@ -3404,7 +3405,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3404
3405
|
private startY;
|
|
3405
3406
|
/** 终止位置 X */
|
|
3406
3407
|
private endX;
|
|
3407
|
-
/**
|
|
3408
|
+
/** 终止位置 Y */
|
|
3408
3409
|
private endY;
|
|
3409
3410
|
/** 线宽 */
|
|
3410
3411
|
private lineWidth;
|
|
@@ -3575,7 +3576,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3575
3576
|
*/
|
|
3576
3577
|
reset(): Promise<IPCB_PrimitiveLine>;
|
|
3577
3578
|
/**
|
|
3578
|
-
*
|
|
3579
|
+
* 将对���元的更改应用到画布
|
|
3579
3580
|
*
|
|
3580
3581
|
* @beta
|
|
3581
3582
|
* @returns 导线图元对象
|
|
@@ -4481,7 +4482,7 @@ declare class IPCB_PrimitiveRegion implements IPCB_Primitive {
|
|
|
4481
4482
|
*/
|
|
4482
4483
|
setState_LineWidth(lineWidth: number): IPCB_PrimitiveRegion;
|
|
4483
4484
|
/**
|
|
4484
|
-
*
|
|
4485
|
+
* 设置属性状态:是否锁定
|
|
4485
4486
|
*
|
|
4486
4487
|
* @beta
|
|
4487
4488
|
* @param primitiveLock - 是否锁定
|
|
@@ -5381,7 +5382,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5381
5382
|
*
|
|
5382
5383
|
* @beta
|
|
5383
5384
|
* @param otherProperty - 其它参数
|
|
5384
|
-
* @returns
|
|
5385
|
+
* @returns ���件图元对象
|
|
5385
5386
|
*/
|
|
5386
5387
|
setState_OtherProperty(otherProperty: {
|
|
5387
5388
|
[key: string]: string;
|
|
@@ -6709,7 +6710,7 @@ declare class PCB_Document {
|
|
|
6709
6710
|
* 建议调用本方法并设置偏移量为零,
|
|
6710
6711
|
* 即 `setCanvasOrigin(0, 0)`;
|
|
6711
6712
|
*
|
|
6712
|
-
*
|
|
6713
|
+
* 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
|
|
6713
6714
|
* @param offsetX - 画布原点相对于数据原点的 X 坐标偏移
|
|
6714
6715
|
* @param offsetY - 画布原点相对于数据原点的 Y 坐标偏移
|
|
6715
6716
|
* @returns 操作是否成功
|
|
@@ -7465,6 +7466,15 @@ declare class PCB_ManufactureData {
|
|
|
7465
7466
|
/* Excluded from this release type: placeSmtComponentsOrder */
|
|
7466
7467
|
/* Excluded from this release type: placePcbOrder */
|
|
7467
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>;
|
|
7468
7478
|
}
|
|
7469
7479
|
|
|
7470
7480
|
/**
|
|
@@ -8435,7 +8445,7 @@ declare class SCH_Document {
|
|
|
8435
8445
|
* 保存文档
|
|
8436
8446
|
*
|
|
8437
8447
|
* @public
|
|
8438
|
-
* @returns
|
|
8448
|
+
* @returns 保存操作是否成功,保存失败、上传失败等错误均返回 `false`
|
|
8439
8449
|
*/
|
|
8440
8450
|
save(): Promise<boolean>;
|
|
8441
8451
|
}
|
|
@@ -8540,7 +8550,7 @@ declare class SCH_ManufactureData {
|
|
|
8540
8550
|
*/
|
|
8541
8551
|
placeComponentsOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;
|
|
8542
8552
|
/**
|
|
8543
|
-
* SMT
|
|
8553
|
+
* SMT 元件下单
|
|
8544
8554
|
*
|
|
8545
8555
|
* @beta
|
|
8546
8556
|
* @param interactive - 是否启用交互式检查
|
|
@@ -9019,7 +9029,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
9019
9029
|
*
|
|
9020
9030
|
* @beta
|
|
9021
9031
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9022
|
-
* @returns
|
|
9032
|
+
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
9023
9033
|
*/
|
|
9024
9034
|
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
9025
9035
|
/**
|
|
@@ -9113,7 +9123,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
9113
9123
|
* 获取所有引脚的图元 ID
|
|
9114
9124
|
*
|
|
9115
9125
|
* @beta
|
|
9116
|
-
* @remarks
|
|
9126
|
+
* @remarks 当处于符号编辑器时,componentPrimitiveId 应始终为 undefined
|
|
9117
9127
|
* @returns 引脚的图元 ID 数组
|
|
9118
9128
|
*/
|
|
9119
9129
|
getAllPrimitiveId(componentPrimitiveId?: string | ISCH_PrimitiveComponent): Promise<Array<string>>;
|
|
@@ -9207,7 +9217,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
9207
9217
|
* @param height - 高
|
|
9208
9218
|
* @param cornerRadius - 圆角半径
|
|
9209
9219
|
* @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
|
|
9210
|
-
* @param color - 颜色,`null`
|
|
9220
|
+
* @param color - 颜色,`null` 表示默认
|
|
9211
9221
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
9212
9222
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
9213
9223
|
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
@@ -9513,6 +9523,40 @@ declare class SYS_ClientUrl {
|
|
|
9513
9523
|
}, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
|
|
9514
9524
|
}
|
|
9515
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
|
+
|
|
9516
9560
|
/**
|
|
9517
9561
|
* 系统 / 运行环境类
|
|
9518
9562
|
*
|
|
@@ -9686,7 +9730,7 @@ declare class SYS_FileSystem {
|
|
|
9686
9730
|
private allowExternalInteractions?;
|
|
9687
9731
|
/* Excluded from this release type: __constructor */
|
|
9688
9732
|
/**
|
|
9689
|
-
*
|
|
9733
|
+
* 打开读入文件窗口
|
|
9690
9734
|
*
|
|
9691
9735
|
* @beta
|
|
9692
9736
|
* @param filenameExtensions - 文件扩展名
|
|
@@ -9931,6 +9975,7 @@ declare class SYS_Log {
|
|
|
9931
9975
|
* 系统 / 消息框类
|
|
9932
9976
|
*
|
|
9933
9977
|
* @public
|
|
9978
|
+
* @deprecated 已更名为 {@link SYS_Dialog}
|
|
9934
9979
|
* @remarks 生成消息提示框
|
|
9935
9980
|
*/
|
|
9936
9981
|
declare class SYS_MessageBox {
|
|
@@ -9938,6 +9983,7 @@ declare class SYS_MessageBox {
|
|
|
9938
9983
|
* 显示消息框
|
|
9939
9984
|
*
|
|
9940
9985
|
* @public
|
|
9986
|
+
* @deprecated 请使用 {@link SYS_Dialog.showInformationMessage} 替代
|
|
9941
9987
|
* @remarks 显示一个文字消息提示框
|
|
9942
9988
|
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9943
9989
|
* @param title - 消息框标题
|
|
@@ -9948,12 +9994,13 @@ declare class SYS_MessageBox {
|
|
|
9948
9994
|
* 显示确认框
|
|
9949
9995
|
*
|
|
9950
9996
|
* @public
|
|
9997
|
+
* @deprecated 请使用 {@link SYS_Dialog.showConfirmationMessage} 替代
|
|
9951
9998
|
* @remarks 显示一个拥有确认和取消按钮的确认框
|
|
9952
9999
|
* @param content - 消息文本,支持使用 `\n` 换行
|
|
9953
10000
|
* @param title - 确认框标题
|
|
9954
10001
|
* @param mainButtonTitle - 主要按钮标题
|
|
9955
10002
|
* @param buttonTitle - 主要按钮标题
|
|
9956
|
-
* @param callbackFn -
|
|
10003
|
+
* @param callbackFn - 回调函数,如需调用扩展内的函数,请在函数名前加上扩展的唯一 ID,以西文句号 `.` 分隔
|
|
9957
10004
|
*/
|
|
9958
10005
|
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
9959
10006
|
}
|
|
@@ -10061,7 +10108,7 @@ declare class SYS_ShortcutKey {
|
|
|
10061
10108
|
* @param shortcutKey - 快捷键,数组中包含多个元素则解析为组合快捷键,将按规则排序后存入缓存
|
|
10062
10109
|
* @param title - 快捷键标题,快捷键的友好名称
|
|
10063
10110
|
* @param callbackFn - 回调函数
|
|
10064
|
-
* @returns
|
|
10111
|
+
* @returns 注册操作是否成功
|
|
10065
10112
|
*/
|
|
10066
10113
|
registerShortcutKey(shortcutKey: TShortcutKeys, title: string, callbackFn: (shortcutKey: TShortcutKeys) => void | Promise<void>, documentType: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType> | undefined, scene: Array<ESYS_ShortcutKeyEffectiveEditorScene> | undefined, hotkeyCmd: string): Promise<boolean>;
|
|
10067
10114
|
/**
|