@jlceda/pro-api-types 0.1.171 → 0.1.172
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 +121 -42
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -892,6 +892,7 @@ declare class EDA {
|
|
|
892
892
|
sys_MessageBox: SYS_MessageBox;
|
|
893
893
|
sys_MessageBus: SYS_MessageBus;
|
|
894
894
|
sys_PanelControl: SYS_PanelControl;
|
|
895
|
+
sys_RightClickMenu: SYS_RightClickMenu;
|
|
895
896
|
sys_Setting: SYS_Setting;
|
|
896
897
|
sys_ShortcutKey: SYS_ShortcutKey;
|
|
897
898
|
sys_Storage: SYS_Storage;
|
|
@@ -2722,6 +2723,12 @@ declare interface ILIB_ExtendLibraryDeviceFunctions extends ILIB_ExtendLibraryFu
|
|
|
2722
2723
|
manufacturer?: string;
|
|
2723
2724
|
description?: string;
|
|
2724
2725
|
}>>;
|
|
2726
|
+
/**
|
|
2727
|
+
* 获取支持的符号类型
|
|
2728
|
+
*
|
|
2729
|
+
* @returns 符号类型数组
|
|
2730
|
+
*/
|
|
2731
|
+
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2725
2732
|
}
|
|
2726
2733
|
|
|
2727
2734
|
/**
|
|
@@ -2775,12 +2782,6 @@ declare interface ILIB_ExtendLibraryFunctions {
|
|
|
2775
2782
|
* @returns 库元素列表
|
|
2776
2783
|
*/
|
|
2777
2784
|
getList: (props: ILIB_ExtendLibrarySearchProperty<any>) => Promise<ILIB_ExtendLibrarySearchResult<any>>;
|
|
2778
|
-
/**
|
|
2779
|
-
* 获取支持的符号类型
|
|
2780
|
-
*
|
|
2781
|
-
* @returns 符号类型数组
|
|
2782
|
-
*/
|
|
2783
|
-
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2784
2785
|
}
|
|
2785
2786
|
|
|
2786
2787
|
/**
|
|
@@ -2877,6 +2878,12 @@ declare interface ILIB_ExtendLibrarySymbolFunctions extends ILIB_ExtendLibraryFu
|
|
|
2877
2878
|
modifier?: ILIB_ExtendLibraryUserIndex;
|
|
2878
2879
|
owner?: ILIB_ExtendLibraryUserIndex;
|
|
2879
2880
|
}>>;
|
|
2881
|
+
/**
|
|
2882
|
+
* 获取支持的符号类型
|
|
2883
|
+
*
|
|
2884
|
+
* @returns 符号类型数组
|
|
2885
|
+
*/
|
|
2886
|
+
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2880
2887
|
}
|
|
2881
2888
|
|
|
2882
2889
|
/**
|
|
@@ -3473,7 +3480,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
|
3473
3480
|
* 设置属性状态:是否锁定
|
|
3474
3481
|
*
|
|
3475
3482
|
* @beta
|
|
3476
|
-
* @param primitiveLock -
|
|
3483
|
+
* @param primitiveLock - ��否锁定
|
|
3477
3484
|
* @returns 圆弧线图元对象
|
|
3478
3485
|
*/
|
|
3479
3486
|
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveArc;
|
|
@@ -4131,7 +4138,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
4131
4138
|
* 设置属性状态:位号
|
|
4132
4139
|
*
|
|
4133
4140
|
* @beta
|
|
4134
|
-
* @param designator -
|
|
4141
|
+
* @param designator - 位��
|
|
4135
4142
|
* @returns 器件图元对象
|
|
4136
4143
|
*/
|
|
4137
4144
|
setState_Designator(designator: string | undefined): IPCB_PrimitiveComponent;
|
|
@@ -5396,7 +5403,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
5396
5403
|
*/
|
|
5397
5404
|
getState_Layer(): TPCB_LayersOfPad;
|
|
5398
5405
|
/**
|
|
5399
|
-
*
|
|
5406
|
+
* 获取属性状态:焊盘编号
|
|
5400
5407
|
*
|
|
5401
5408
|
* @public
|
|
5402
5409
|
* @returns 焊盘编号
|
|
@@ -7920,14 +7927,14 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
7920
7927
|
* 设置属性状态:其它参数
|
|
7921
7928
|
*
|
|
7922
7929
|
* @beta
|
|
7923
|
-
* @param otherProperty -
|
|
7930
|
+
* @param otherProperty - 其它参���
|
|
7924
7931
|
* @returns 器件图元对象
|
|
7925
7932
|
*/
|
|
7926
7933
|
setState_OtherProperty(otherProperty: {
|
|
7927
7934
|
[key: string]: string | number | boolean;
|
|
7928
7935
|
}): ISCH_PrimitiveComponent;
|
|
7929
7936
|
/**
|
|
7930
|
-
*
|
|
7937
|
+
* 将图元转换为异步图元
|
|
7931
7938
|
*
|
|
7932
7939
|
* @public
|
|
7933
7940
|
* @returns 圆弧线图元对象
|
|
@@ -8521,7 +8528,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
8521
8528
|
* 设置属性状态:引脚编号
|
|
8522
8529
|
*
|
|
8523
8530
|
* @beta
|
|
8524
|
-
* @param pinNumber -
|
|
8531
|
+
* @param pinNumber - 引脚编���
|
|
8525
8532
|
* @returns 引脚图元对象
|
|
8526
8533
|
*/
|
|
8527
8534
|
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
@@ -9201,7 +9208,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
9201
9208
|
* 设置属性状态:字体大小
|
|
9202
9209
|
*
|
|
9203
9210
|
* @beta
|
|
9204
|
-
* @param fontSize -
|
|
9211
|
+
* @param fontSize - 字体��小
|
|
9205
9212
|
* @returns 文本图元对象
|
|
9206
9213
|
*/
|
|
9207
9214
|
setState_FontSize(fontSize: number | null): ISCH_PrimitiveText;
|
|
@@ -9209,7 +9216,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
9209
9216
|
* 设置属性状态:是否加粗
|
|
9210
9217
|
*
|
|
9211
9218
|
* @beta
|
|
9212
|
-
* @param bold -
|
|
9219
|
+
* @param bold - 是否加粗
|
|
9213
9220
|
* @returns 文本图元对象
|
|
9214
9221
|
*/
|
|
9215
9222
|
setState_Bold(bold: boolean): ISCH_PrimitiveText;
|
|
@@ -9443,67 +9450,71 @@ declare interface ISYS_FileSystemFileList {
|
|
|
9443
9450
|
*/
|
|
9444
9451
|
declare interface ISYS_HeaderMenus {
|
|
9445
9452
|
/** 主页 */
|
|
9446
|
-
home?: Array<
|
|
9453
|
+
home?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9447
9454
|
/** 空白页 */
|
|
9448
|
-
blank?: Array<
|
|
9455
|
+
blank?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9449
9456
|
/** 原理图 */
|
|
9450
|
-
schematic?: Array<
|
|
9457
|
+
schematic?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9451
9458
|
/**
|
|
9452
9459
|
* 原理图
|
|
9453
9460
|
*
|
|
9454
9461
|
* @deprecated 请使用 `schematic` 替代 `sch`
|
|
9455
9462
|
*/
|
|
9456
|
-
sch?: Array<
|
|
9463
|
+
sch?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9457
9464
|
/** 符号(包括 CBB 符号) */
|
|
9458
|
-
symbol?: Array<
|
|
9465
|
+
symbol?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9459
9466
|
/** PCB */
|
|
9460
|
-
pcb?: Array<
|
|
9467
|
+
pcb?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9461
9468
|
/** 封装 */
|
|
9462
|
-
footprint?: Array<
|
|
9469
|
+
footprint?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9463
9470
|
/** PCB 预览(包括 2D、3D 预览) */
|
|
9464
|
-
pcbView?: Array<
|
|
9471
|
+
pcbView?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9465
9472
|
/** 面板 */
|
|
9466
|
-
panel?: Array<
|
|
9473
|
+
panel?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9467
9474
|
/** 面板预览 */
|
|
9468
|
-
panelView?: Array<
|
|
9475
|
+
panelView?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9469
9476
|
}
|
|
9470
9477
|
|
|
9471
9478
|
/**
|
|
9472
|
-
*
|
|
9479
|
+
* 顶部二级菜单项
|
|
9473
9480
|
*
|
|
9474
9481
|
* @public
|
|
9475
9482
|
*/
|
|
9476
|
-
declare interface
|
|
9483
|
+
declare interface ISYS_HeaderMenuSub1MenuItem {
|
|
9477
9484
|
/** 菜单项 ID,不可重复 */
|
|
9478
9485
|
id: string;
|
|
9479
9486
|
/** 菜单项标题 */
|
|
9480
9487
|
title: string;
|
|
9488
|
+
/** 菜单项图标 */
|
|
9489
|
+
icon?: string;
|
|
9481
9490
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9482
9491
|
registerFn?: string;
|
|
9483
9492
|
/** 子菜单项 */
|
|
9484
|
-
menuItems?: Array<
|
|
9493
|
+
menuItems?: Array<ISYS_HeaderMenuSub2MenuItem | null>;
|
|
9485
9494
|
}
|
|
9486
9495
|
|
|
9487
9496
|
/**
|
|
9488
|
-
*
|
|
9497
|
+
* 顶部三级菜单项
|
|
9489
9498
|
*
|
|
9490
9499
|
* @public
|
|
9491
9500
|
*/
|
|
9492
|
-
declare interface
|
|
9501
|
+
declare interface ISYS_HeaderMenuSub2MenuItem {
|
|
9493
9502
|
/** 菜单项 ID,不可重复 */
|
|
9494
9503
|
id: string;
|
|
9495
9504
|
/** 菜单项标题 */
|
|
9496
9505
|
title: string;
|
|
9506
|
+
/** 菜单项图标 */
|
|
9507
|
+
icon?: string;
|
|
9497
9508
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9498
9509
|
registerFn?: string;
|
|
9499
9510
|
}
|
|
9500
9511
|
|
|
9501
9512
|
/**
|
|
9502
|
-
*
|
|
9513
|
+
* 顶部一级菜单项
|
|
9503
9514
|
*
|
|
9504
9515
|
* @public
|
|
9505
9516
|
*/
|
|
9506
|
-
declare interface
|
|
9517
|
+
declare interface ISYS_HeaderMenuTopMenuItem {
|
|
9507
9518
|
/** 菜单项 ID,不可重复 */
|
|
9508
9519
|
id: string;
|
|
9509
9520
|
/** 菜单项标题 */
|
|
@@ -9511,7 +9522,7 @@ declare interface ISYS_HeaderMenuTopMenus {
|
|
|
9511
9522
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9512
9523
|
registerFn?: string;
|
|
9513
9524
|
/** 子菜单项 */
|
|
9514
|
-
menuItems?: Array<
|
|
9525
|
+
menuItems?: Array<ISYS_HeaderMenuSub1MenuItem | null>;
|
|
9515
9526
|
}
|
|
9516
9527
|
|
|
9517
9528
|
/**
|
|
@@ -9570,6 +9581,24 @@ declare interface ISYS_MultilingualLanguagesData {
|
|
|
9570
9581
|
[language: string]: ISYS_LanguageKeyValuePairs;
|
|
9571
9582
|
}
|
|
9572
9583
|
|
|
9584
|
+
/**
|
|
9585
|
+
* 右键菜单项
|
|
9586
|
+
*
|
|
9587
|
+
* @public
|
|
9588
|
+
*/
|
|
9589
|
+
declare interface ISYS_RightClickMenuItem {
|
|
9590
|
+
/** 菜单项 ID,不可重复 */
|
|
9591
|
+
id: string;
|
|
9592
|
+
/** 菜单项标题 */
|
|
9593
|
+
title?: string;
|
|
9594
|
+
/** 菜单项图标 */
|
|
9595
|
+
icon?: string;
|
|
9596
|
+
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9597
|
+
registerFn?: string;
|
|
9598
|
+
/** 子菜单项 */
|
|
9599
|
+
menuItems?: Array<ISYS_RightClickMenuItem | null>;
|
|
9600
|
+
}
|
|
9601
|
+
|
|
9573
9602
|
/**
|
|
9574
9603
|
* 窗口事件监听可移除对象
|
|
9575
9604
|
*
|
|
@@ -9735,7 +9764,7 @@ declare class LIB_Cbb {
|
|
|
9735
9764
|
* 在编辑器打开复用模块工程
|
|
9736
9765
|
*
|
|
9737
9766
|
* @beta
|
|
9738
|
-
* @remarks 本操作将会在 EDA
|
|
9767
|
+
* @remarks 本操作将会在 EDA 前端打开模块工程,如若原先已打开其它工程且��未保存的变更,执行本操作将直接丢失所有未保存的数据
|
|
9739
9768
|
* @param cbbUuid - 复用模块 UUID
|
|
9740
9769
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
9741
9770
|
*/
|
|
@@ -10112,6 +10141,9 @@ declare class LIB_Footprint {
|
|
|
10112
10141
|
* @remarks 此处所有接口都基于编辑器当前工作区环境,如需切换到其他工作区,请使用 {@link DMT_Workspace.toggleToWorkspace} 接口切换工作区
|
|
10113
10142
|
*/
|
|
10114
10143
|
declare class LIB_LibrariesList {
|
|
10144
|
+
/** 扩展 UUID */
|
|
10145
|
+
private extensionUuid?;
|
|
10146
|
+
/* Excluded from this release type: __constructor */
|
|
10115
10147
|
/**
|
|
10116
10148
|
* 获取系统库的 UUID
|
|
10117
10149
|
*
|
|
@@ -12925,7 +12957,7 @@ declare class SCH_ManufactureData {
|
|
|
12925
12957
|
* @param fileType - 文件类型
|
|
12926
12958
|
* @param template - 模板名称
|
|
12927
12959
|
* @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
|
|
12928
|
-
* @param statistics -
|
|
12960
|
+
* @param statistics - 统计,包含所有需要启用的统计项的名称
|
|
12929
12961
|
* @param property - 属性,包含所有需要启用的属性的名称
|
|
12930
12962
|
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
12931
12963
|
* @returns BOM 文件数据
|
|
@@ -13679,7 +13711,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13679
13711
|
* 创建网络端口
|
|
13680
13712
|
*
|
|
13681
13713
|
* @beta
|
|
13682
|
-
* @param direction -
|
|
13714
|
+
* @param direction - 端口方向
|
|
13683
13715
|
* @param net - 网络名称
|
|
13684
13716
|
* @param x - 坐标 X
|
|
13685
13717
|
* @param y - 坐标 Y
|
|
@@ -14741,9 +14773,20 @@ declare class SYS_FileSystem {
|
|
|
14741
14773
|
*
|
|
14742
14774
|
* @beta
|
|
14743
14775
|
* @param filenameExtensions - 文件扩展名
|
|
14776
|
+
* @param multiFiles - 是否允许读取多文件
|
|
14777
|
+
* @returns File 格式文件数组
|
|
14778
|
+
*/
|
|
14779
|
+
openReadFileDialog(filenameExtensions?: string | Array<string>, multiFiles?: true): Promise<Array<File> | undefined>;
|
|
14780
|
+
/**
|
|
14781
|
+
* 打开读入文件窗口
|
|
14782
|
+
*
|
|
14783
|
+
* @beta
|
|
14784
|
+
* @param filenameExtensions - 文件扩展名
|
|
14785
|
+
* @param multiFiles - 是否允许读取多文件
|
|
14744
14786
|
* @returns File 格式文件
|
|
14745
14787
|
*/
|
|
14746
|
-
openReadFileDialog(filenameExtensions?: string | Array<string
|
|
14788
|
+
openReadFileDialog(filenameExtensions?: string | Array<string>, multiFiles?: false): Promise<File | undefined>;
|
|
14789
|
+
/* Excluded from this release type: openReadFolderDialog */
|
|
14747
14790
|
/**
|
|
14748
14791
|
* 保存文件
|
|
14749
14792
|
*
|
|
@@ -14789,7 +14832,7 @@ declare class SYS_FileSystem {
|
|
|
14789
14832
|
*
|
|
14790
14833
|
* @beta
|
|
14791
14834
|
* @remarks
|
|
14792
|
-
*
|
|
14835
|
+
* 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
|
|
14793
14836
|
*
|
|
14794
14837
|
* 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
14795
14838
|
* @param folderPath - 目录路径
|
|
@@ -15513,6 +15556,18 @@ declare class SYS_PanelControl {
|
|
|
15513
15556
|
isBottomPanelLocked(): Promise<boolean>;
|
|
15514
15557
|
}
|
|
15515
15558
|
|
|
15559
|
+
/**
|
|
15560
|
+
* 系统 / 右键菜单类
|
|
15561
|
+
*
|
|
15562
|
+
* @public
|
|
15563
|
+
*/
|
|
15564
|
+
declare class SYS_RightClickMenu {
|
|
15565
|
+
/** 扩展 UUID */
|
|
15566
|
+
private extensionUuid?;
|
|
15567
|
+
/* Excluded from this release type: __constructor */
|
|
15568
|
+
/* Excluded from this release type: changeMenu */
|
|
15569
|
+
}
|
|
15570
|
+
|
|
15516
15571
|
/**
|
|
15517
15572
|
* 系统 / 设置类
|
|
15518
15573
|
*
|
|
@@ -15522,6 +15577,7 @@ declare class SYS_Setting {
|
|
|
15522
15577
|
/**
|
|
15523
15578
|
* 全局恢复默认设置
|
|
15524
15579
|
*
|
|
15580
|
+
* @beta
|
|
15525
15581
|
* @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
|
|
15526
15582
|
* @returns 操作是否成功
|
|
15527
15583
|
*/
|
|
@@ -15727,7 +15783,20 @@ declare class SYS_ToastMessage {
|
|
|
15727
15783
|
* @public
|
|
15728
15784
|
*/
|
|
15729
15785
|
declare class SYS_Tool {
|
|
15730
|
-
|
|
15786
|
+
/**
|
|
15787
|
+
* 网表对比
|
|
15788
|
+
*
|
|
15789
|
+
* @beta
|
|
15790
|
+
* @param netlist1 - 网表 1,可以为当前工程内�� PCB 和原理图的 UUID、网表的文件数据
|
|
15791
|
+
* @param netlist2 - 网表 2,可以为当前工程内的 PCB 和原理图的 UUID、网表的文件数据
|
|
15792
|
+
* @returns 网表对比结果
|
|
15793
|
+
*/
|
|
15794
|
+
netlistComparison(netlist1: string | File, netlist2: string | File): Promise<Array<{
|
|
15795
|
+
type: 'Net' | 'Component';
|
|
15796
|
+
object: string;
|
|
15797
|
+
netlist1Name: Array<string>;
|
|
15798
|
+
netlist2Name: Array<string>;
|
|
15799
|
+
}>>;
|
|
15731
15800
|
}
|
|
15732
15801
|
|
|
15733
15802
|
/**
|
|
@@ -15860,7 +15929,7 @@ declare class SYS_Window {
|
|
|
15860
15929
|
/**
|
|
15861
15930
|
* 打开资源窗口
|
|
15862
15931
|
*
|
|
15863
|
-
* @
|
|
15932
|
+
* @public
|
|
15864
15933
|
* @param url - 欲加载资源的 URL 或路径
|
|
15865
15934
|
* @param target - 上下文目标
|
|
15866
15935
|
*/
|
|
@@ -15868,7 +15937,7 @@ declare class SYS_Window {
|
|
|
15868
15937
|
/**
|
|
15869
15938
|
* 新增事件监听
|
|
15870
15939
|
*
|
|
15871
|
-
* @
|
|
15940
|
+
* @public
|
|
15872
15941
|
* @param type - 事件类型,当前支持 `blur` `focus`
|
|
15873
15942
|
* @param listener - 事件监听回调
|
|
15874
15943
|
* @param options - 可选参数
|
|
@@ -15883,11 +15952,21 @@ declare class SYS_Window {
|
|
|
15883
15952
|
/**
|
|
15884
15953
|
* 移除事件监听
|
|
15885
15954
|
*
|
|
15886
|
-
* @
|
|
15955
|
+
* @public
|
|
15887
15956
|
* @param removableObject - 窗口事件监听可移除对象
|
|
15888
15957
|
*/
|
|
15889
15958
|
removeEventListener(removableObject: ISYS_WindowEventListenerRemovableObject): void;
|
|
15890
|
-
|
|
15959
|
+
/**
|
|
15960
|
+
* 打开 UI 窗口
|
|
15961
|
+
*
|
|
15962
|
+
* @public
|
|
15963
|
+
* @remarks 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
|
|
15964
|
+
* @param uiName - UI 名称
|
|
15965
|
+
* @param args - 可选参数对象
|
|
15966
|
+
*/
|
|
15967
|
+
openUI(uiName: string, args?: {
|
|
15968
|
+
[key: string]: any;
|
|
15969
|
+
}): Promise<void>;
|
|
15891
15970
|
/**
|
|
15892
15971
|
* 获取当前主题
|
|
15893
15972
|
*
|