@jlceda/pro-api-types 0.1.105 → 0.1.106
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 +114 -75
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ declare class DMT_EditorControl {
|
|
|
89
89
|
* @returns 标签页 ID,如若为 `undefined`,则打开文档失败
|
|
90
90
|
*/
|
|
91
91
|
openDocument(documentUuid: string, splitScreenId?: string): Promise<string | undefined>;
|
|
92
|
+
/* Excluded from this release type: openLibraryDocument */
|
|
92
93
|
/**
|
|
93
94
|
* 关闭文档
|
|
94
95
|
*
|
|
@@ -310,7 +311,7 @@ declare class DMT_Panel {
|
|
|
310
311
|
*
|
|
311
312
|
* @public
|
|
312
313
|
* @remarks 将会获取当前打开且拥有最后输入焦点的面板的详细属性
|
|
313
|
-
* @returns
|
|
314
|
+
* @returns 面板���详细属性,如若为 `undefined` 则获取失败
|
|
314
315
|
*/
|
|
315
316
|
getCurrentPanelInfo(): Promise<IDMT_PanelItem | undefined>;
|
|
316
317
|
/**
|
|
@@ -416,7 +417,7 @@ declare class DMT_Project {
|
|
|
416
417
|
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
|
|
417
418
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
418
419
|
* @param description - 工程描述
|
|
419
|
-
* @param collaborationMode -
|
|
420
|
+
* @param collaborationMode - 工程协作���式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
420
421
|
* @returns 工程 UUID,如若为 `undefined` 则创建失败
|
|
421
422
|
*/
|
|
422
423
|
createProject(projectFriendlyName: string, projectName?: string, teamUuid?: string, folderUuid?: string, description?: string, collaborationMode?: EDMT_ProjectCollaborationMode): Promise<string | undefined>;
|
|
@@ -595,7 +596,7 @@ declare class DMT_Schematic {
|
|
|
595
596
|
*/
|
|
596
597
|
getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
|
|
597
598
|
/**
|
|
598
|
-
*
|
|
599
|
+
* 获取当前原理图图页的详细属性
|
|
599
600
|
*
|
|
600
601
|
* @beta
|
|
601
602
|
* @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -783,6 +784,7 @@ declare class EDA {
|
|
|
783
784
|
sys_IFrame: SYS_IFrame;
|
|
784
785
|
sys_LoadingAndProgressBar: SYS_LoadingAndProgressBar;
|
|
785
786
|
sys_Log: SYS_Log;
|
|
787
|
+
sys_Message: SYS_Message;
|
|
786
788
|
sys_MessageBox: SYS_MessageBox;
|
|
787
789
|
sys_PanelControl: SYS_PanelControl;
|
|
788
790
|
sys_ShortcutKey: SYS_ShortcutKey;
|
|
@@ -1017,7 +1019,7 @@ declare enum EPCB_LayerId {
|
|
|
1017
1019
|
TOP_SOLDER_MASK = 5,
|
|
1018
1020
|
/** 顶层锡膏(助焊)层 */
|
|
1019
1021
|
TOP_PASTE_MASK = 7,
|
|
1020
|
-
/**
|
|
1022
|
+
/** 顶层装配层 */
|
|
1021
1023
|
TOP_ASSEMBLY = 9,
|
|
1022
1024
|
/** 顶层 FPC 补强层 */
|
|
1023
1025
|
TOP_STIFFENER = 58,
|
|
@@ -1659,15 +1661,15 @@ declare enum ESYS_ShortcutKeyEffectiveEditorScene {
|
|
|
1659
1661
|
*/
|
|
1660
1662
|
declare enum ESYS_ToastMessageType {
|
|
1661
1663
|
/** 错误 */
|
|
1662
|
-
ERROR =
|
|
1664
|
+
ERROR = "error",
|
|
1663
1665
|
/** 警告 */
|
|
1664
|
-
WARNING =
|
|
1666
|
+
WARNING = "warn",
|
|
1665
1667
|
/** 信息 */
|
|
1666
|
-
INFO =
|
|
1668
|
+
INFO = "info",
|
|
1667
1669
|
/** 成功 */
|
|
1668
|
-
SUCCESS =
|
|
1670
|
+
SUCCESS = "success",
|
|
1669
1671
|
/** 问询 */
|
|
1670
|
-
ASK =
|
|
1672
|
+
ASK = "question"
|
|
1671
1673
|
}
|
|
1672
1674
|
|
|
1673
1675
|
/**
|
|
@@ -1799,8 +1801,7 @@ declare interface IDMT_EditorTabItem {
|
|
|
1799
1801
|
draggable: boolean;
|
|
1800
1802
|
/** 标签页是否可关闭 */
|
|
1801
1803
|
isAbleDelete: boolean;
|
|
1802
|
-
|
|
1803
|
-
notUseI18n?: boolean;
|
|
1804
|
+
/* Excluded from this release type: notUseI18n */
|
|
1804
1805
|
}
|
|
1805
1806
|
|
|
1806
1807
|
/**
|
|
@@ -2126,6 +2127,32 @@ declare interface ILIB_DeviceItem {
|
|
|
2126
2127
|
property: ILIB_DeviceExtendPropertyItem;
|
|
2127
2128
|
}
|
|
2128
2129
|
|
|
2130
|
+
/**
|
|
2131
|
+
* 可用于精确搜索的器件参数
|
|
2132
|
+
*
|
|
2133
|
+
* @public
|
|
2134
|
+
*/
|
|
2135
|
+
declare interface ILIB_DevicePropertiesForSearch {
|
|
2136
|
+
/** 器件名称 */
|
|
2137
|
+
name?: string;
|
|
2138
|
+
/** 值 */
|
|
2139
|
+
value?: string;
|
|
2140
|
+
/** 描述 */
|
|
2141
|
+
description?: string;
|
|
2142
|
+
/** 关联符号名称 */
|
|
2143
|
+
symbolName?: string;
|
|
2144
|
+
/** 关联封装名称 */
|
|
2145
|
+
footprintName?: string;
|
|
2146
|
+
/** 供应商封装名称 */
|
|
2147
|
+
supplierFootprint?: string;
|
|
2148
|
+
/** 供应商编号 */
|
|
2149
|
+
supplierId?: string;
|
|
2150
|
+
/** 料号 */
|
|
2151
|
+
partNumber?: string;
|
|
2152
|
+
/** 元件编码 */
|
|
2153
|
+
partCode?: string;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2129
2156
|
/**
|
|
2130
2157
|
* 搜索到的器件属性
|
|
2131
2158
|
*
|
|
@@ -2160,11 +2187,11 @@ declare interface ILIB_DeviceSearchItem {
|
|
|
2160
2187
|
description?: string;
|
|
2161
2188
|
/** 制造商 */
|
|
2162
2189
|
manufacturer?: string;
|
|
2163
|
-
/**
|
|
2190
|
+
/** 制造商编号 */
|
|
2164
2191
|
manufacturerId?: string;
|
|
2165
2192
|
/** 供应商 */
|
|
2166
2193
|
supplier?: string;
|
|
2167
|
-
/**
|
|
2194
|
+
/** 供应商编号 */
|
|
2168
2195
|
supplierId?: string;
|
|
2169
2196
|
/** 立创商城库存 */
|
|
2170
2197
|
lcscInventory?: number;
|
|
@@ -3102,7 +3129,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3102
3129
|
*
|
|
3103
3130
|
* @public
|
|
3104
3131
|
* @remarks
|
|
3105
|
-
*
|
|
3132
|
+
* 器件焊盘图元是一个特殊的图元,它指的是在 PCB 画布上关联到封装的焊盘
|
|
3106
3133
|
*
|
|
3107
3134
|
* 你只能通过 {@link PCB_PrimitiveComponent.getAllPadsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link IPCB_PrimitiveComponent.getAllPins | 器件图元的 getAllPads 方法} 获取到器件焊盘图元
|
|
3108
3135
|
*/
|
|
@@ -3322,14 +3349,14 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3322
3349
|
private readonly primitiveType;
|
|
3323
3350
|
/** 图元 ID */
|
|
3324
3351
|
private primitiveId?;
|
|
3325
|
-
/** 网络名称 */
|
|
3326
|
-
private net;
|
|
3327
3352
|
/** 层 */
|
|
3328
3353
|
private layer;
|
|
3329
3354
|
/** 复杂多边形 */
|
|
3330
3355
|
private complexPolygon;
|
|
3356
|
+
/** 网络名称 */
|
|
3357
|
+
private net?;
|
|
3331
3358
|
/** 填充模式 */
|
|
3332
|
-
private fillMode
|
|
3359
|
+
private fillMode?;
|
|
3333
3360
|
/** 线宽 */
|
|
3334
3361
|
private lineWidth?;
|
|
3335
3362
|
/** 是否锁定 */
|
|
@@ -3350,13 +3377,6 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3350
3377
|
* @returns 图元 ID
|
|
3351
3378
|
*/
|
|
3352
3379
|
getState_PrimitiveId(): string;
|
|
3353
|
-
/**
|
|
3354
|
-
* 获取属性状态:网络名称
|
|
3355
|
-
*
|
|
3356
|
-
* @public
|
|
3357
|
-
* @returns 网络名称
|
|
3358
|
-
*/
|
|
3359
|
-
getState_Net(): string;
|
|
3360
3380
|
/**
|
|
3361
3381
|
* 获取属性状态:层
|
|
3362
3382
|
*
|
|
@@ -3370,14 +3390,21 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3370
3390
|
* @public
|
|
3371
3391
|
* @returns 复杂多边形
|
|
3372
3392
|
*/
|
|
3373
|
-
getState_ComplexPolygon():
|
|
3393
|
+
getState_ComplexPolygon(): IPCB_Polygon;
|
|
3394
|
+
/**
|
|
3395
|
+
* 获取属性状态:网络名称
|
|
3396
|
+
*
|
|
3397
|
+
* @public
|
|
3398
|
+
* @returns 网络名称
|
|
3399
|
+
*/
|
|
3400
|
+
getState_Net(): string | undefined;
|
|
3374
3401
|
/**
|
|
3375
3402
|
* 获取属性状态:填充模式
|
|
3376
3403
|
*
|
|
3377
3404
|
* @public
|
|
3378
3405
|
* @returns 填充模式
|
|
3379
3406
|
*/
|
|
3380
|
-
getState_FillMode(): EPCB_PrimitiveFillMode;
|
|
3407
|
+
getState_FillMode(): EPCB_PrimitiveFillMode | undefined;
|
|
3381
3408
|
/**
|
|
3382
3409
|
* 获取属性状态:线宽
|
|
3383
3410
|
*
|
|
@@ -3386,20 +3413,12 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3386
3413
|
*/
|
|
3387
3414
|
getState_LineWidth(): number;
|
|
3388
3415
|
/**
|
|
3389
|
-
*
|
|
3416
|
+
* 获取属性状��:是否锁定
|
|
3390
3417
|
*
|
|
3391
3418
|
* @public
|
|
3392
3419
|
* @returns 是否锁定
|
|
3393
3420
|
*/
|
|
3394
3421
|
getState_PrimitiveLock(): boolean;
|
|
3395
|
-
/**
|
|
3396
|
-
* 设置属性状态:网络名称
|
|
3397
|
-
*
|
|
3398
|
-
* @beta
|
|
3399
|
-
* @param net - 网络名称
|
|
3400
|
-
* @returns 填充图元对象
|
|
3401
|
-
*/
|
|
3402
|
-
setState_Net(net: string): IPCB_PrimitiveFill;
|
|
3403
3422
|
/**
|
|
3404
3423
|
* 设置属性状态:层
|
|
3405
3424
|
*
|
|
@@ -3415,7 +3434,15 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3415
3434
|
* @param complexPolygon - 复杂多边形
|
|
3416
3435
|
* @returns 填充图元对象
|
|
3417
3436
|
*/
|
|
3418
|
-
setState_ComplexPolygon(complexPolygon:
|
|
3437
|
+
setState_ComplexPolygon(complexPolygon: IPCB_Polygon): IPCB_PrimitiveFill;
|
|
3438
|
+
/**
|
|
3439
|
+
* 设置属性状态:网络名称
|
|
3440
|
+
*
|
|
3441
|
+
* @beta
|
|
3442
|
+
* @param net - 网络名称
|
|
3443
|
+
* @returns 填充图元对象
|
|
3444
|
+
*/
|
|
3445
|
+
setState_Net(net: string): IPCB_PrimitiveFill;
|
|
3419
3446
|
/**
|
|
3420
3447
|
* 设置属性状态:填充模式
|
|
3421
3448
|
*
|
|
@@ -3578,7 +3605,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3578
3605
|
*/
|
|
3579
3606
|
getState_PrimitiveLock(): boolean;
|
|
3580
3607
|
/**
|
|
3581
|
-
*
|
|
3608
|
+
* 设置属性状态:BBox 左上点坐标 X
|
|
3582
3609
|
*
|
|
3583
3610
|
* @beta
|
|
3584
3611
|
* @param x - BBox 左上点坐标 X
|
|
@@ -3713,7 +3740,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3713
3740
|
* 获取属性状态:图元类型
|
|
3714
3741
|
*
|
|
3715
3742
|
* @public
|
|
3716
|
-
* @returns
|
|
3743
|
+
* @returns 图元���型
|
|
3717
3744
|
*/
|
|
3718
3745
|
getState_PrimitiveType(): EPCB_PrimitiveType;
|
|
3719
3746
|
/**
|
|
@@ -3745,7 +3772,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3745
3772
|
*/
|
|
3746
3773
|
getState_StartX(): number;
|
|
3747
3774
|
/**
|
|
3748
|
-
*
|
|
3775
|
+
* 获取属性状态:起始位置 Y
|
|
3749
3776
|
*
|
|
3750
3777
|
* @public
|
|
3751
3778
|
* @returns 起始位置 Y
|
|
@@ -4230,7 +4257,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4230
4257
|
*/
|
|
4231
4258
|
getState_Hole(): TPCB_PrimitivePadHole | null;
|
|
4232
4259
|
/**
|
|
4233
|
-
*
|
|
4260
|
+
* 获取属性状态:孔偏移 X
|
|
4234
4261
|
*
|
|
4235
4262
|
* @public
|
|
4236
4263
|
* @returns 孔偏移 X
|
|
@@ -4358,7 +4385,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4358
4385
|
* 设置属性状态:网络
|
|
4359
4386
|
*
|
|
4360
4387
|
* @beta
|
|
4361
|
-
* @remarks 本接口仅在 PCB 编辑器可用,空字符串与 `undefined`
|
|
4388
|
+
* @remarks 本接口仅在 PCB 编辑器可用,空字符串与 `undefined` 均被视为空网络
|
|
4362
4389
|
* @param net - 网络名称
|
|
4363
4390
|
* @returns 焊盘图元对象
|
|
4364
4391
|
*/
|
|
@@ -4488,7 +4515,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4488
4515
|
*/
|
|
4489
4516
|
reset(): Promise<IPCB_PrimitivePad>;
|
|
4490
4517
|
/**
|
|
4491
|
-
*
|
|
4518
|
+
* 将对图元的更改应用到画布
|
|
4492
4519
|
*
|
|
4493
4520
|
* @beta
|
|
4494
4521
|
* @returns 尺寸标注图元对象
|
|
@@ -4733,7 +4760,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
4733
4760
|
* @public
|
|
4734
4761
|
* @returns 复杂多边形
|
|
4735
4762
|
*/
|
|
4736
|
-
getState_ComplexPolygon():
|
|
4763
|
+
getState_ComplexPolygon(): IPCB_Polygon;
|
|
4737
4764
|
/**
|
|
4738
4765
|
* 获取属性状态:覆铜填充方法
|
|
4739
4766
|
*
|
|
@@ -4799,7 +4826,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
4799
4826
|
* @param complexPolygon - 复杂多边形
|
|
4800
4827
|
* @returns 覆铜边框图元对象
|
|
4801
4828
|
*/
|
|
4802
|
-
setState_ComplexPolygon(complexPolygon:
|
|
4829
|
+
setState_ComplexPolygon(complexPolygon: IPCB_Polygon): IPCB_PrimitivePour;
|
|
4803
4830
|
/**
|
|
4804
4831
|
* 设置属性状态:覆铜填充方法
|
|
4805
4832
|
*
|
|
@@ -4812,7 +4839,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
4812
4839
|
* 设置属性状态:是否保留孤岛
|
|
4813
4840
|
*
|
|
4814
4841
|
* @beta
|
|
4815
|
-
* @param preserveSilos -
|
|
4842
|
+
* @param preserveSilos - 是否保留孤岛
|
|
4816
4843
|
* @returns 覆铜边框图元对象
|
|
4817
4844
|
*/
|
|
4818
4845
|
setState_PreserveSilos(preserveSilos: boolean): IPCB_PrimitivePour;
|
|
@@ -4929,7 +4956,7 @@ declare class IPCB_PrimitiveRegion implements IPCB_Primitive {
|
|
|
4929
4956
|
* @public
|
|
4930
4957
|
* @returns 复杂多边形
|
|
4931
4958
|
*/
|
|
4932
|
-
getState_ComplexPolygon():
|
|
4959
|
+
getState_ComplexPolygon(): IPCB_Polygon;
|
|
4933
4960
|
/**
|
|
4934
4961
|
* 获取属性状态:区域规则类型
|
|
4935
4962
|
*
|
|
@@ -4973,7 +5000,7 @@ declare class IPCB_PrimitiveRegion implements IPCB_Primitive {
|
|
|
4973
5000
|
* @param complexPolygon - 复杂多边形
|
|
4974
5001
|
* @returns 区域图元对象
|
|
4975
5002
|
*/
|
|
4976
|
-
setState_ComplexPolygon(complexPolygon:
|
|
5003
|
+
setState_ComplexPolygon(complexPolygon: IPCB_Polygon): IPCB_PrimitiveRegion;
|
|
4977
5004
|
/**
|
|
4978
5005
|
* 设置属性状态:区域规则类型
|
|
4979
5006
|
*
|
|
@@ -5104,7 +5131,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
5104
5131
|
*/
|
|
5105
5132
|
getState_PrimitiveType(): EPCB_PrimitiveType;
|
|
5106
5133
|
/**
|
|
5107
|
-
*
|
|
5134
|
+
* 获取属性状态:图元 ID
|
|
5108
5135
|
*
|
|
5109
5136
|
* @public
|
|
5110
5137
|
* @returns 图元 ID
|
|
@@ -5267,7 +5294,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
5267
5294
|
*/
|
|
5268
5295
|
isAsync(): boolean;
|
|
5269
5296
|
/**
|
|
5270
|
-
*
|
|
5297
|
+
* 将异步图元重置为当前画布状态
|
|
5271
5298
|
*
|
|
5272
5299
|
* @beta
|
|
5273
5300
|
* @returns 过孔图元对象
|
|
@@ -6831,6 +6858,7 @@ declare class LIB_Device {
|
|
|
6831
6858
|
* @returns 搜索到的器件属性的列表
|
|
6832
6859
|
*/
|
|
6833
6860
|
search(key: string, libraryUuid?: string, classification?: ILIB_ClassificationIndex, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Promise<Array<ILIB_DeviceSearchItem>>;
|
|
6861
|
+
/* Excluded from this release type: searchByProperties */
|
|
6834
6862
|
/**
|
|
6835
6863
|
* 使用立创 C 编号获取器件
|
|
6836
6864
|
*
|
|
@@ -7285,7 +7313,7 @@ declare class PCB_Document {
|
|
|
7285
7313
|
offsetY: number;
|
|
7286
7314
|
}>;
|
|
7287
7315
|
/**
|
|
7288
|
-
*
|
|
7316
|
+
* 设置画布原点相对于数据原点的偏移坐标
|
|
7289
7317
|
*
|
|
7290
7318
|
* @public
|
|
7291
7319
|
* @remarks
|
|
@@ -8123,7 +8151,7 @@ declare class PCB_MathPolygon {
|
|
|
8123
8151
|
*/
|
|
8124
8152
|
declare class PCB_Net {
|
|
8125
8153
|
/**
|
|
8126
|
-
*
|
|
8154
|
+
* 获取所有网络的网络名称
|
|
8127
8155
|
*
|
|
8128
8156
|
* @beta
|
|
8129
8157
|
* @returns 网络名称数组
|
|
@@ -8154,22 +8182,8 @@ declare class PCB_Net {
|
|
|
8154
8182
|
* @returns 操作是否成功
|
|
8155
8183
|
*/
|
|
8156
8184
|
selectNet(net: string): Promise<boolean>;
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
*
|
|
8160
|
-
* @beta
|
|
8161
|
-
* @param net - 网络名称
|
|
8162
|
-
* @returns 操作是否成功
|
|
8163
|
-
*/
|
|
8164
|
-
unselectNet(net: string): Promise<boolean>;
|
|
8165
|
-
/**
|
|
8166
|
-
* 取消选中所有网络
|
|
8167
|
-
*
|
|
8168
|
-
* @beta
|
|
8169
|
-
* @remarks 如果希望取消选中所有图元,请使用 {@link PCB_SelectControl.clearSelected} 接口
|
|
8170
|
-
* @returns 操作是否成功
|
|
8171
|
-
*/
|
|
8172
|
-
unselectAllNets(): Promise<boolean>;
|
|
8185
|
+
/* Excluded from this release type: unselectNet */
|
|
8186
|
+
/* Excluded from this release type: unselectAllNets */
|
|
8173
8187
|
/**
|
|
8174
8188
|
* 高亮网络
|
|
8175
8189
|
*
|
|
@@ -8345,7 +8359,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
8345
8359
|
* @param primitiveLock - 是否锁定
|
|
8346
8360
|
* @param addIntoBom - 是否加入 BOM
|
|
8347
8361
|
* @param designator - 位号
|
|
8348
|
-
* @param name - 名称,`null`
|
|
8362
|
+
* @param name - 名称,`null` 表示留空
|
|
8349
8363
|
* @param uniqueId - 唯一 ID,`null` 表示留空
|
|
8350
8364
|
* @param manufacturer - 制造商,`null` 表示留空
|
|
8351
8365
|
* @param manufacturerId - 制造商编号,`null` 表示留空
|
|
@@ -8653,7 +8667,7 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
|
|
|
8653
8667
|
* 获取直线
|
|
8654
8668
|
*
|
|
8655
8669
|
* @beta
|
|
8656
|
-
* @remarks 如若传入多个图元 ID,任意图元 ID
|
|
8670
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
8657
8671
|
* @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
8658
8672
|
* @returns 直线图元对象,空数组表示获取失败
|
|
8659
8673
|
*/
|
|
@@ -8896,7 +8910,7 @@ declare class PCB_PrimitivePour implements IPCB_PrimitiveAPI {
|
|
|
8896
8910
|
}
|
|
8897
8911
|
|
|
8898
8912
|
/**
|
|
8899
|
-
* PCB & 封装 /
|
|
8913
|
+
* PCB & 封装 / 禁止区域和约束区域图元类
|
|
8900
8914
|
*
|
|
8901
8915
|
* @public
|
|
8902
8916
|
*/
|
|
@@ -10243,7 +10257,7 @@ declare class SYS_Environment {
|
|
|
10243
10257
|
*/
|
|
10244
10258
|
isProPrivateEdition(): boolean;
|
|
10245
10259
|
/**
|
|
10246
|
-
*
|
|
10260
|
+
* 是否为在线模式
|
|
10247
10261
|
*
|
|
10248
10262
|
* @public
|
|
10249
10263
|
* @returns 是否为在线模式
|
|
@@ -10446,7 +10460,7 @@ declare class SYS_I18n {
|
|
|
10446
10460
|
*
|
|
10447
10461
|
* @public
|
|
10448
10462
|
* @remarks
|
|
10449
|
-
* 可以使用 `${1}`
|
|
10463
|
+
* 可以使用 `${1}` 格式的占位符表示参数;
|
|
10450
10464
|
*
|
|
10451
10465
|
* 语言优先级:当前显示语言 \> 系统默认语言 \> 数据集中第一个搜索到的包含该文本标签的语言 \> 文本标签(tag)
|
|
10452
10466
|
* @param tag - 文本标签,对应多语言文件键值对中的键
|
|
@@ -10548,7 +10562,7 @@ declare class SYS_IFrame {
|
|
|
10548
10562
|
* 关闭当前扩展打开的所有内联框架窗口;
|
|
10549
10563
|
*
|
|
10550
10564
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
10551
|
-
* @param id - 内联框架窗口 ID,如若传入 `undefined
|
|
10565
|
+
* @param id - 内联框架窗口 ID,如若传入 `undefined`,将关闭由本扩展打开的所有内联框架窗口
|
|
10552
10566
|
* @returns 操作是否成功
|
|
10553
10567
|
*/
|
|
10554
10568
|
closeIFrame(id?: string): Promise<boolean>;
|
|
@@ -10649,6 +10663,29 @@ declare class SYS_Log {
|
|
|
10649
10663
|
}>, types?: ESYS_LogType | Array<ESYS_LogType>): Promise<Array<ISYS_LogLine>>;
|
|
10650
10664
|
}
|
|
10651
10665
|
|
|
10666
|
+
/**
|
|
10667
|
+
* 系统 / 消息通知类
|
|
10668
|
+
*
|
|
10669
|
+
* @public
|
|
10670
|
+
* @remarks 生成各种对用户的非侵入式提醒
|
|
10671
|
+
*/
|
|
10672
|
+
declare class SYS_Message {
|
|
10673
|
+
/**
|
|
10674
|
+
* 显示吐司消息
|
|
10675
|
+
*
|
|
10676
|
+
* @public
|
|
10677
|
+
* @param message - 消息内容
|
|
10678
|
+
* @param messageType - 消息类型
|
|
10679
|
+
* @param timer - 自动关闭倒计时秒数,`0` 为不自动关闭
|
|
10680
|
+
* @param bottomPanel - 展开底部信息面板
|
|
10681
|
+
* @param buttonTitle - 回调按钮标题
|
|
10682
|
+
* @param buttonCallbackFn - 回调函数内容,字符串形式,会被自动解析并执行
|
|
10683
|
+
*/
|
|
10684
|
+
showToastMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
|
|
10685
|
+
/* Excluded from this release type: showFollowMouseTip */
|
|
10686
|
+
/* Excluded from this release type: removeFollowMouseTip */
|
|
10687
|
+
}
|
|
10688
|
+
|
|
10652
10689
|
/**
|
|
10653
10690
|
* 系统 / 消息框类
|
|
10654
10691
|
*
|
|
@@ -10684,7 +10721,7 @@ declare class SYS_MessageBox {
|
|
|
10684
10721
|
}
|
|
10685
10722
|
|
|
10686
10723
|
/**
|
|
10687
|
-
*
|
|
10724
|
+
* 系统 / 面板控制类
|
|
10688
10725
|
*
|
|
10689
10726
|
* @public
|
|
10690
10727
|
*/
|
|
@@ -10826,7 +10863,7 @@ declare class SYS_Storage {
|
|
|
10826
10863
|
* 获取扩展所有用户配置
|
|
10827
10864
|
*
|
|
10828
10865
|
* @public
|
|
10829
|
-
* @remarks
|
|
10866
|
+
* @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
10830
10867
|
* @returns 扩展所有用户配置信息
|
|
10831
10868
|
*/
|
|
10832
10869
|
getExtensionAllUserConfigs(): {
|
|
@@ -10946,6 +10983,7 @@ declare class SYS_Timer {
|
|
|
10946
10983
|
* 系统 / 吐司消息类
|
|
10947
10984
|
*
|
|
10948
10985
|
* @public
|
|
10986
|
+
* @deprecated 即将移除吐司消息类,合并入 {@link SYS_Message | 消息通知类}
|
|
10949
10987
|
* @remarks 在屏幕的边缘弹出简短的消息提醒,会在一定时间后自动消除
|
|
10950
10988
|
*/
|
|
10951
10989
|
declare class SYS_ToastMessage {
|
|
@@ -10953,6 +10991,7 @@ declare class SYS_ToastMessage {
|
|
|
10953
10991
|
* 显示吐司消息
|
|
10954
10992
|
*
|
|
10955
10993
|
* @public
|
|
10994
|
+
* @deprecated 请使用 {@link SYS_Message.showToastMessage} 方法替代
|
|
10956
10995
|
* @param message - 消息内容
|
|
10957
10996
|
* @param messageType - 消息类型
|
|
10958
10997
|
* @param timer - 自动关闭倒计时秒数,`0` 为不自动关闭
|