@jlceda/pro-api-types 0.1.171 → 0.1.173
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 +171 -46
- 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;
|
|
@@ -1875,7 +1876,9 @@ declare enum ESYS_NetlistType {
|
|
|
1875
1876
|
/** EasyEDA Pro Edition */
|
|
1876
1877
|
EASYEDA_PRO = "EasyEDA",
|
|
1877
1878
|
/** Altium Designer */
|
|
1878
|
-
ALTIUM_DESIGNER = "Protel2"
|
|
1879
|
+
ALTIUM_DESIGNER = "Protel2",
|
|
1880
|
+
/** 数字化工业软件联盟 */
|
|
1881
|
+
DISA = "DISA"
|
|
1879
1882
|
}
|
|
1880
1883
|
|
|
1881
1884
|
/**
|
|
@@ -2095,6 +2098,8 @@ declare interface IDMT_EditorDocumentItem {
|
|
|
2095
2098
|
documentType: EDMT_EditorDocumentType;
|
|
2096
2099
|
/** 文档 UUID */
|
|
2097
2100
|
uuid: string;
|
|
2101
|
+
/** 文档的标签页 ID */
|
|
2102
|
+
tabId: string;
|
|
2098
2103
|
/** 文档所属工程 UUID */
|
|
2099
2104
|
parentProjectUuid?: string;
|
|
2100
2105
|
/** 库文档所属库 UUID */
|
|
@@ -2722,6 +2727,12 @@ declare interface ILIB_ExtendLibraryDeviceFunctions extends ILIB_ExtendLibraryFu
|
|
|
2722
2727
|
manufacturer?: string;
|
|
2723
2728
|
description?: string;
|
|
2724
2729
|
}>>;
|
|
2730
|
+
/**
|
|
2731
|
+
* 获取支持的符号类型
|
|
2732
|
+
*
|
|
2733
|
+
* @returns 符号类型数组
|
|
2734
|
+
*/
|
|
2735
|
+
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2725
2736
|
}
|
|
2726
2737
|
|
|
2727
2738
|
/**
|
|
@@ -2775,12 +2786,6 @@ declare interface ILIB_ExtendLibraryFunctions {
|
|
|
2775
2786
|
* @returns 库元素列表
|
|
2776
2787
|
*/
|
|
2777
2788
|
getList: (props: ILIB_ExtendLibrarySearchProperty<any>) => Promise<ILIB_ExtendLibrarySearchResult<any>>;
|
|
2778
|
-
/**
|
|
2779
|
-
* 获取支持的符号类型
|
|
2780
|
-
*
|
|
2781
|
-
* @returns 符号类型数组
|
|
2782
|
-
*/
|
|
2783
|
-
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2784
2789
|
}
|
|
2785
2790
|
|
|
2786
2791
|
/**
|
|
@@ -2877,6 +2882,12 @@ declare interface ILIB_ExtendLibrarySymbolFunctions extends ILIB_ExtendLibraryFu
|
|
|
2877
2882
|
modifier?: ILIB_ExtendLibraryUserIndex;
|
|
2878
2883
|
owner?: ILIB_ExtendLibraryUserIndex;
|
|
2879
2884
|
}>>;
|
|
2885
|
+
/**
|
|
2886
|
+
* 获取支持的符号类型
|
|
2887
|
+
*
|
|
2888
|
+
* @returns 符号类型数组
|
|
2889
|
+
*/
|
|
2890
|
+
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2880
2891
|
}
|
|
2881
2892
|
|
|
2882
2893
|
/**
|
|
@@ -3060,10 +3071,16 @@ declare interface ILIB_SymbolSearchItem {
|
|
|
3060
3071
|
* @public
|
|
3061
3072
|
*/
|
|
3062
3073
|
declare interface IPCB_BomPropertiesTableColumns {
|
|
3074
|
+
/** 属性 */
|
|
3063
3075
|
property: string;
|
|
3076
|
+
/** 显示名称 */
|
|
3064
3077
|
title?: string;
|
|
3078
|
+
/** 排序规则 */
|
|
3065
3079
|
sort?: null | 'asc' | 'desc';
|
|
3080
|
+
/** 是否分组 */
|
|
3066
3081
|
group?: null | 'Yes' | 'No';
|
|
3082
|
+
/** 排列权重(大权重优先在 BOM 的左侧) */
|
|
3083
|
+
orderWeight?: number;
|
|
3067
3084
|
}
|
|
3068
3085
|
|
|
3069
3086
|
/**
|
|
@@ -4120,7 +4137,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
4120
4137
|
*/
|
|
4121
4138
|
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveComponent;
|
|
4122
4139
|
/**
|
|
4123
|
-
*
|
|
4140
|
+
* 设置属性状态:��否加入 BOM
|
|
4124
4141
|
*
|
|
4125
4142
|
* @beta
|
|
4126
4143
|
* @param addIntoBom - 是否加入 BOM
|
|
@@ -5396,7 +5413,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
5396
5413
|
*/
|
|
5397
5414
|
getState_Layer(): TPCB_LayersOfPad;
|
|
5398
5415
|
/**
|
|
5399
|
-
*
|
|
5416
|
+
* 获取属性状态:焊盘编号
|
|
5400
5417
|
*
|
|
5401
5418
|
* @public
|
|
5402
5419
|
* @returns 焊盘编号
|
|
@@ -5975,7 +5992,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
5975
5992
|
*/
|
|
5976
5993
|
getState_PourFillMethod(): any;
|
|
5977
5994
|
/**
|
|
5978
|
-
*
|
|
5995
|
+
* 获取属性状态��是否保留孤岛
|
|
5979
5996
|
*
|
|
5980
5997
|
* @public
|
|
5981
5998
|
* @returns 是否保留孤岛
|
|
@@ -6609,7 +6626,7 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
6609
6626
|
*/
|
|
6610
6627
|
setState_Text(text: string): IPCB_PrimitiveString;
|
|
6611
6628
|
/**
|
|
6612
|
-
*
|
|
6629
|
+
* 设置属性���态:字体
|
|
6613
6630
|
*
|
|
6614
6631
|
* @beta
|
|
6615
6632
|
* @param fontFamily - 字体
|
|
@@ -7927,7 +7944,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
7927
7944
|
[key: string]: string | number | boolean;
|
|
7928
7945
|
}): ISCH_PrimitiveComponent;
|
|
7929
7946
|
/**
|
|
7930
|
-
*
|
|
7947
|
+
* 将图元转换为异步图元
|
|
7931
7948
|
*
|
|
7932
7949
|
* @public
|
|
7933
7950
|
* @returns 圆弧线图元对象
|
|
@@ -9190,7 +9207,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
9190
9207
|
*/
|
|
9191
9208
|
setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
|
|
9192
9209
|
/**
|
|
9193
|
-
*
|
|
9210
|
+
* 设置属性状��:字体名称
|
|
9194
9211
|
*
|
|
9195
9212
|
* @beta
|
|
9196
9213
|
* @param fontName - 字体名称
|
|
@@ -9209,7 +9226,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
9209
9226
|
* 设置属性状态:是否加粗
|
|
9210
9227
|
*
|
|
9211
9228
|
* @beta
|
|
9212
|
-
* @param bold -
|
|
9229
|
+
* @param bold - 是否加粗
|
|
9213
9230
|
* @returns 文本图元对象
|
|
9214
9231
|
*/
|
|
9215
9232
|
setState_Bold(bold: boolean): ISCH_PrimitiveText;
|
|
@@ -9443,67 +9460,71 @@ declare interface ISYS_FileSystemFileList {
|
|
|
9443
9460
|
*/
|
|
9444
9461
|
declare interface ISYS_HeaderMenus {
|
|
9445
9462
|
/** 主页 */
|
|
9446
|
-
home?: Array<
|
|
9463
|
+
home?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9447
9464
|
/** 空白页 */
|
|
9448
|
-
blank?: Array<
|
|
9465
|
+
blank?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9449
9466
|
/** 原理图 */
|
|
9450
|
-
schematic?: Array<
|
|
9467
|
+
schematic?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9451
9468
|
/**
|
|
9452
9469
|
* 原理图
|
|
9453
9470
|
*
|
|
9454
9471
|
* @deprecated 请使用 `schematic` 替代 `sch`
|
|
9455
9472
|
*/
|
|
9456
|
-
sch?: Array<
|
|
9473
|
+
sch?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9457
9474
|
/** 符号(包括 CBB 符号) */
|
|
9458
|
-
symbol?: Array<
|
|
9475
|
+
symbol?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9459
9476
|
/** PCB */
|
|
9460
|
-
pcb?: Array<
|
|
9477
|
+
pcb?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9461
9478
|
/** 封装 */
|
|
9462
|
-
footprint?: Array<
|
|
9479
|
+
footprint?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9463
9480
|
/** PCB 预览(包括 2D、3D 预览) */
|
|
9464
|
-
pcbView?: Array<
|
|
9481
|
+
pcbView?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9465
9482
|
/** 面板 */
|
|
9466
|
-
panel?: Array<
|
|
9483
|
+
panel?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9467
9484
|
/** 面板预览 */
|
|
9468
|
-
panelView?: Array<
|
|
9485
|
+
panelView?: Array<ISYS_HeaderMenuTopMenuItem>;
|
|
9469
9486
|
}
|
|
9470
9487
|
|
|
9471
9488
|
/**
|
|
9472
|
-
*
|
|
9489
|
+
* 顶部二级菜单项
|
|
9473
9490
|
*
|
|
9474
9491
|
* @public
|
|
9475
9492
|
*/
|
|
9476
|
-
declare interface
|
|
9493
|
+
declare interface ISYS_HeaderMenuSub1MenuItem {
|
|
9477
9494
|
/** 菜单项 ID,不可重复 */
|
|
9478
9495
|
id: string;
|
|
9479
9496
|
/** 菜单项标题 */
|
|
9480
9497
|
title: string;
|
|
9498
|
+
/** 菜单项图标 */
|
|
9499
|
+
icon?: string;
|
|
9481
9500
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9482
9501
|
registerFn?: string;
|
|
9483
9502
|
/** 子菜单项 */
|
|
9484
|
-
menuItems?: Array<
|
|
9503
|
+
menuItems?: Array<ISYS_HeaderMenuSub2MenuItem | null>;
|
|
9485
9504
|
}
|
|
9486
9505
|
|
|
9487
9506
|
/**
|
|
9488
|
-
*
|
|
9507
|
+
* 顶部三级菜单项
|
|
9489
9508
|
*
|
|
9490
9509
|
* @public
|
|
9491
9510
|
*/
|
|
9492
|
-
declare interface
|
|
9511
|
+
declare interface ISYS_HeaderMenuSub2MenuItem {
|
|
9493
9512
|
/** 菜单项 ID,不可重复 */
|
|
9494
9513
|
id: string;
|
|
9495
9514
|
/** 菜单项标题 */
|
|
9496
9515
|
title: string;
|
|
9516
|
+
/** 菜单项图标 */
|
|
9517
|
+
icon?: string;
|
|
9497
9518
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9498
9519
|
registerFn?: string;
|
|
9499
9520
|
}
|
|
9500
9521
|
|
|
9501
9522
|
/**
|
|
9502
|
-
*
|
|
9523
|
+
* 顶部一级菜单项
|
|
9503
9524
|
*
|
|
9504
9525
|
* @public
|
|
9505
9526
|
*/
|
|
9506
|
-
declare interface
|
|
9527
|
+
declare interface ISYS_HeaderMenuTopMenuItem {
|
|
9507
9528
|
/** 菜单项 ID,不可重复 */
|
|
9508
9529
|
id: string;
|
|
9509
9530
|
/** 菜单项标题 */
|
|
@@ -9511,7 +9532,7 @@ declare interface ISYS_HeaderMenuTopMenus {
|
|
|
9511
9532
|
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9512
9533
|
registerFn?: string;
|
|
9513
9534
|
/** 子菜单项 */
|
|
9514
|
-
menuItems?: Array<
|
|
9535
|
+
menuItems?: Array<ISYS_HeaderMenuSub1MenuItem | null>;
|
|
9515
9536
|
}
|
|
9516
9537
|
|
|
9517
9538
|
/**
|
|
@@ -9570,6 +9591,24 @@ declare interface ISYS_MultilingualLanguagesData {
|
|
|
9570
9591
|
[language: string]: ISYS_LanguageKeyValuePairs;
|
|
9571
9592
|
}
|
|
9572
9593
|
|
|
9594
|
+
/**
|
|
9595
|
+
* 右键菜单项
|
|
9596
|
+
*
|
|
9597
|
+
* @public
|
|
9598
|
+
*/
|
|
9599
|
+
declare interface ISYS_RightClickMenuItem {
|
|
9600
|
+
/** 菜单项 ID,不可重复 */
|
|
9601
|
+
id: string;
|
|
9602
|
+
/** 菜单项标题 */
|
|
9603
|
+
title?: string;
|
|
9604
|
+
/** 菜单项图标 */
|
|
9605
|
+
icon?: string;
|
|
9606
|
+
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9607
|
+
registerFn?: string;
|
|
9608
|
+
/** 子菜单项 */
|
|
9609
|
+
menuItems?: Array<ISYS_RightClickMenuItem | null>;
|
|
9610
|
+
}
|
|
9611
|
+
|
|
9573
9612
|
/**
|
|
9574
9613
|
* 窗口事件监听可移除对象
|
|
9575
9614
|
*
|
|
@@ -10112,6 +10151,9 @@ declare class LIB_Footprint {
|
|
|
10112
10151
|
* @remarks 此处所有接口都基于编辑器当前工作区环境,如需切换到其他工作区,请使用 {@link DMT_Workspace.toggleToWorkspace} 接口切换工作区
|
|
10113
10152
|
*/
|
|
10114
10153
|
declare class LIB_LibrariesList {
|
|
10154
|
+
/** 扩展 UUID */
|
|
10155
|
+
private extensionUuid?;
|
|
10156
|
+
/* Excluded from this release type: __constructor */
|
|
10115
10157
|
/**
|
|
10116
10158
|
* 获取系统库的 UUID
|
|
10117
10159
|
*
|
|
@@ -10483,7 +10525,7 @@ declare class PCB_Document {
|
|
|
10483
10525
|
* @remarks
|
|
10484
10526
|
* 本接口在前端画布上定位到指定的区域,区域数据为相对于数据原点的偏移;
|
|
10485
10527
|
*
|
|
10486
|
-
*
|
|
10528
|
+
* 例如:传入���据为 `{left: 0, right: 60, top: 100, bottom: -20}` =\> `navigateToRegion(0, 60, 100, -20)`,
|
|
10487
10529
|
* 则画布将会定位到以 `[30, 40]` 为中心的,`x` 轴方向长度为 `60`,`y` 轴方向长度为 `120` 的矩形范围;
|
|
10488
10530
|
*
|
|
10489
10531
|
* 本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
|
|
@@ -12925,7 +12967,7 @@ declare class SCH_ManufactureData {
|
|
|
12925
12967
|
* @param fileType - 文件类型
|
|
12926
12968
|
* @param template - 模板名称
|
|
12927
12969
|
* @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
|
|
12928
|
-
* @param statistics -
|
|
12970
|
+
* @param statistics - 统计,包含所有需要启用的统计项的名称
|
|
12929
12971
|
* @param property - 属性,包含所有需要启用的属性的名称
|
|
12930
12972
|
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
12931
12973
|
* @returns BOM 文件数据
|
|
@@ -13656,7 +13698,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13656
13698
|
* @param mirror - 是否镜像
|
|
13657
13699
|
* @param addIntoBom - 是否加入 BOM
|
|
13658
13700
|
* @param addIntoPcb - 是否转到 PCB
|
|
13659
|
-
* @returns
|
|
13701
|
+
* @returns 器件图元对���
|
|
13660
13702
|
*/
|
|
13661
13703
|
create(component: {
|
|
13662
13704
|
libraryUuid: string;
|
|
@@ -13679,7 +13721,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13679
13721
|
* 创建网络端口
|
|
13680
13722
|
*
|
|
13681
13723
|
* @beta
|
|
13682
|
-
* @param direction -
|
|
13724
|
+
* @param direction - 端口方向
|
|
13683
13725
|
* @param net - 网络名称
|
|
13684
13726
|
* @param x - 坐标 X
|
|
13685
13727
|
* @param y - 坐标 Y
|
|
@@ -14034,7 +14076,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
14034
14076
|
* 获取矩形
|
|
14035
14077
|
*
|
|
14036
14078
|
* @beta
|
|
14037
|
-
* @remarks 如若传入多个图元 ID,任意图元 ID
|
|
14079
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元���返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
14038
14080
|
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
14039
14081
|
* @returns 矩形图元对象,空数组表示获取失败
|
|
14040
14082
|
*/
|
|
@@ -14413,7 +14455,7 @@ declare class SYS_Dialog {
|
|
|
14413
14455
|
* @param defaultOption - 默认选项,以选项的值作为匹配参数,如若 `multiple` 参数为 `true`,则此处需要传入字符串数组
|
|
14414
14456
|
* @param multiple - 是否支持多选,默认为单选框
|
|
14415
14457
|
* @param callbackFn - 回调函数
|
|
14416
|
-
* @returns 用户选择的值,对应传入的 `options`
|
|
14458
|
+
* @returns 用户选择的值,对应传入的 `options` ���的 `value` 字段
|
|
14417
14459
|
*/
|
|
14418
14460
|
showSelectDialog(options: Array<string> | Array<{
|
|
14419
14461
|
value: string;
|
|
@@ -14521,6 +14563,27 @@ declare class SYS_Environment {
|
|
|
14521
14563
|
* @returns 编辑器编译日期
|
|
14522
14564
|
*/
|
|
14523
14565
|
getEditorCompliedDate(): string;
|
|
14566
|
+
/**
|
|
14567
|
+
* 获取用户信息
|
|
14568
|
+
*
|
|
14569
|
+
* @public
|
|
14570
|
+
* @returns 用户信息
|
|
14571
|
+
*/
|
|
14572
|
+
getUserInfo(): {
|
|
14573
|
+
username?: string;
|
|
14574
|
+
nickname?: string;
|
|
14575
|
+
avatar?: string;
|
|
14576
|
+
uuid?: string;
|
|
14577
|
+
customerCode?: string;
|
|
14578
|
+
};
|
|
14579
|
+
/**
|
|
14580
|
+
* 设置环境:保持工程仅拥有一个板子
|
|
14581
|
+
*
|
|
14582
|
+
* @public
|
|
14583
|
+
* @remarks Board、Schematic、PCB 均保持唯一
|
|
14584
|
+
* @param status - 环境变量状态
|
|
14585
|
+
*/
|
|
14586
|
+
setKeepProjectHasOnlyOneBoard(status?: boolean): Promise<void>;
|
|
14524
14587
|
}
|
|
14525
14588
|
|
|
14526
14589
|
/**
|
|
@@ -14741,9 +14804,20 @@ declare class SYS_FileSystem {
|
|
|
14741
14804
|
*
|
|
14742
14805
|
* @beta
|
|
14743
14806
|
* @param filenameExtensions - 文件扩展名
|
|
14807
|
+
* @param multiFiles - 是否允许读取多文件
|
|
14808
|
+
* @returns File 格式文件数组
|
|
14809
|
+
*/
|
|
14810
|
+
openReadFileDialog(filenameExtensions?: string | Array<string>, multiFiles?: true): Promise<Array<File> | undefined>;
|
|
14811
|
+
/**
|
|
14812
|
+
* 打开读入文件窗口
|
|
14813
|
+
*
|
|
14814
|
+
* @beta
|
|
14815
|
+
* @param filenameExtensions - 文件扩展名
|
|
14816
|
+
* @param multiFiles - 是否允许读取多文件
|
|
14744
14817
|
* @returns File 格式文件
|
|
14745
14818
|
*/
|
|
14746
|
-
openReadFileDialog(filenameExtensions?: string | Array<string
|
|
14819
|
+
openReadFileDialog(filenameExtensions?: string | Array<string>, multiFiles?: false): Promise<File | undefined>;
|
|
14820
|
+
/* Excluded from this release type: openReadFolderDialog */
|
|
14747
14821
|
/**
|
|
14748
14822
|
* 保存文件
|
|
14749
14823
|
*
|
|
@@ -14789,7 +14863,7 @@ declare class SYS_FileSystem {
|
|
|
14789
14863
|
*
|
|
14790
14864
|
* @beta
|
|
14791
14865
|
* @remarks
|
|
14792
|
-
*
|
|
14866
|
+
* 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
|
|
14793
14867
|
*
|
|
14794
14868
|
* 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
14795
14869
|
* @param folderPath - 目录路径
|
|
@@ -15202,7 +15276,7 @@ declare class SYS_Message {
|
|
|
15202
15276
|
* 展示跟随鼠标的提示
|
|
15203
15277
|
*
|
|
15204
15278
|
* @beta
|
|
15205
|
-
* @remarks
|
|
15279
|
+
* @remarks 同一时间只能展示一条提示,如果展示新的���示,则之前的提示将被自动移除
|
|
15206
15280
|
* @param tip - 提示内容
|
|
15207
15281
|
* @param msTimeout - 展示时间,以毫秒(ms)为单位,如若不传入则持续展示,直到调用 {@link SYS_Message.removeFollowMouseTip | removeFollowMouseTip} 或被其它提示覆盖
|
|
15208
15282
|
*/
|
|
@@ -15513,6 +15587,18 @@ declare class SYS_PanelControl {
|
|
|
15513
15587
|
isBottomPanelLocked(): Promise<boolean>;
|
|
15514
15588
|
}
|
|
15515
15589
|
|
|
15590
|
+
/**
|
|
15591
|
+
* 系统 / 右键菜单类
|
|
15592
|
+
*
|
|
15593
|
+
* @public
|
|
15594
|
+
*/
|
|
15595
|
+
declare class SYS_RightClickMenu {
|
|
15596
|
+
/** 扩展 UUID */
|
|
15597
|
+
private extensionUuid?;
|
|
15598
|
+
/* Excluded from this release type: __constructor */
|
|
15599
|
+
/* Excluded from this release type: changeMenu */
|
|
15600
|
+
}
|
|
15601
|
+
|
|
15516
15602
|
/**
|
|
15517
15603
|
* 系统 / 设置类
|
|
15518
15604
|
*
|
|
@@ -15522,6 +15608,7 @@ declare class SYS_Setting {
|
|
|
15522
15608
|
/**
|
|
15523
15609
|
* 全局恢复默认设置
|
|
15524
15610
|
*
|
|
15611
|
+
* @beta
|
|
15525
15612
|
* @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
|
|
15526
15613
|
* @returns 操作是否成功
|
|
15527
15614
|
*/
|
|
@@ -15727,7 +15814,20 @@ declare class SYS_ToastMessage {
|
|
|
15727
15814
|
* @public
|
|
15728
15815
|
*/
|
|
15729
15816
|
declare class SYS_Tool {
|
|
15730
|
-
|
|
15817
|
+
/**
|
|
15818
|
+
* 网表对比
|
|
15819
|
+
*
|
|
15820
|
+
* @beta
|
|
15821
|
+
* @param netlist1 - 网表 1,可以为当前工程内的 PCB 和原理图的 UUID、网表的文件数据
|
|
15822
|
+
* @param netlist2 - 网表 2,可以为当前工程内的 PCB 和原理图的 UUID、网表的文件数据
|
|
15823
|
+
* @returns 网表对比结果
|
|
15824
|
+
*/
|
|
15825
|
+
netlistComparison(netlist1: string | File, netlist2: string | File): Promise<Array<{
|
|
15826
|
+
type: 'Net' | 'Component';
|
|
15827
|
+
object: string;
|
|
15828
|
+
netlist1Name: Array<string>;
|
|
15829
|
+
netlist2Name: Array<string>;
|
|
15830
|
+
}>>;
|
|
15731
15831
|
}
|
|
15732
15832
|
|
|
15733
15833
|
/**
|
|
@@ -15860,7 +15960,7 @@ declare class SYS_Window {
|
|
|
15860
15960
|
/**
|
|
15861
15961
|
* 打开资源窗口
|
|
15862
15962
|
*
|
|
15863
|
-
* @
|
|
15963
|
+
* @public
|
|
15864
15964
|
* @param url - 欲加载资源的 URL 或路径
|
|
15865
15965
|
* @param target - 上下文目标
|
|
15866
15966
|
*/
|
|
@@ -15868,7 +15968,7 @@ declare class SYS_Window {
|
|
|
15868
15968
|
/**
|
|
15869
15969
|
* 新增事件监听
|
|
15870
15970
|
*
|
|
15871
|
-
* @
|
|
15971
|
+
* @public
|
|
15872
15972
|
* @param type - 事件类型,当前支持 `blur` `focus`
|
|
15873
15973
|
* @param listener - 事件监听回调
|
|
15874
15974
|
* @param options - 可选参数
|
|
@@ -15883,11 +15983,21 @@ declare class SYS_Window {
|
|
|
15883
15983
|
/**
|
|
15884
15984
|
* 移除事件监听
|
|
15885
15985
|
*
|
|
15886
|
-
* @
|
|
15986
|
+
* @public
|
|
15887
15987
|
* @param removableObject - 窗口事件监听可移除对象
|
|
15888
15988
|
*/
|
|
15889
15989
|
removeEventListener(removableObject: ISYS_WindowEventListenerRemovableObject): void;
|
|
15890
|
-
|
|
15990
|
+
/**
|
|
15991
|
+
* 打开 UI 窗口
|
|
15992
|
+
*
|
|
15993
|
+
* @public
|
|
15994
|
+
* @remarks 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
|
|
15995
|
+
* @param uiName - UI 名称
|
|
15996
|
+
* @param args - 可选参数对象
|
|
15997
|
+
*/
|
|
15998
|
+
openUI(uiName: string, args?: {
|
|
15999
|
+
[key: string]: any;
|
|
16000
|
+
}): Promise<void>;
|
|
15891
16001
|
/**
|
|
15892
16002
|
* 获取当前主题
|
|
15893
16003
|
*
|
|
@@ -15896,6 +16006,21 @@ declare class SYS_Window {
|
|
|
15896
16006
|
* @returns 当前主题
|
|
15897
16007
|
*/
|
|
15898
16008
|
getCurrentTheme(): Promise<ESYS_Theme>;
|
|
16009
|
+
/**
|
|
16010
|
+
* 获取 URL 参数
|
|
16011
|
+
*
|
|
16012
|
+
* @public
|
|
16013
|
+
* @param key - 参数名
|
|
16014
|
+
* @returns 参数值
|
|
16015
|
+
*/
|
|
16016
|
+
getUrlParam(key: string): string | null;
|
|
16017
|
+
/**
|
|
16018
|
+
* 获取 URL 锚点
|
|
16019
|
+
*
|
|
16020
|
+
* @public
|
|
16021
|
+
* @returns URL 锚点值
|
|
16022
|
+
*/
|
|
16023
|
+
getUrlAnchor(): string;
|
|
15899
16024
|
}
|
|
15900
16025
|
|
|
15901
16026
|
/**
|