@jlceda/pro-api-types 0.1.83 → 0.1.85
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 +515 -152
- 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 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -1187,7 +1187,7 @@ declare enum EPCB_LayerId {
|
|
|
1187
1187
|
SHELL_3D_TOP = 54,
|
|
1188
1188
|
/** 3D 外壳底层 */
|
|
1189
1189
|
SHELL_3D_BOTTOM = 55,
|
|
1190
|
-
/**
|
|
1190
|
+
/** 钻���图层 */
|
|
1191
1191
|
DRILL_DRAWING = 56
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
@@ -1393,6 +1393,46 @@ declare enum EPCB_PrimitiveViaType {
|
|
|
1393
1393
|
SUTURE = 2
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
+
/**
|
|
1397
|
+
* 器件类型
|
|
1398
|
+
*
|
|
1399
|
+
* @public
|
|
1400
|
+
*/
|
|
1401
|
+
declare enum ESCH_PrimitiveComponentType {
|
|
1402
|
+
/** 元件 */
|
|
1403
|
+
COMPONENT = "part",
|
|
1404
|
+
/** 图纸 */
|
|
1405
|
+
DRAWING = "Drawing",
|
|
1406
|
+
/** 网络标识 */
|
|
1407
|
+
NET_FLAG = "netflag",
|
|
1408
|
+
/** 网络端口 */
|
|
1409
|
+
NET_PORT = "netport",
|
|
1410
|
+
/** 无电气标识 */
|
|
1411
|
+
NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
|
|
1412
|
+
/** 短接标识 */
|
|
1413
|
+
SHORT_CIRCUIT_FLAG = "short_symbol"
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* 引脚类型
|
|
1418
|
+
*
|
|
1419
|
+
* @public
|
|
1420
|
+
*/
|
|
1421
|
+
declare enum ESCH_PrimitivePinType {
|
|
1422
|
+
IN = "IN",
|
|
1423
|
+
OUT = "OUT",
|
|
1424
|
+
BI = "BI",
|
|
1425
|
+
OPEN_COLLECTOR = "Open Collector",
|
|
1426
|
+
STATE_3 = "3 State",
|
|
1427
|
+
OPEN_EMITTER = "Open Emitter",
|
|
1428
|
+
POWER = "Power",
|
|
1429
|
+
HIZ = "HIZ",
|
|
1430
|
+
UNDEFINED = "Undefined",
|
|
1431
|
+
TERMINATOR = "Terminator",
|
|
1432
|
+
GROUND = "Ground",
|
|
1433
|
+
DEFAULT = "BI"
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1396
1436
|
/**
|
|
1397
1437
|
* 图元类型
|
|
1398
1438
|
*
|
|
@@ -1407,6 +1447,8 @@ declare enum ESCH_PrimitiveType {
|
|
|
1407
1447
|
CIRCLE = "Circle",
|
|
1408
1448
|
/** 器件 */
|
|
1409
1449
|
COMPONENT = "Component",
|
|
1450
|
+
/** 器件引脚 */
|
|
1451
|
+
COMPONENT_PIN = "ComponentPin",
|
|
1410
1452
|
/** 引脚 */
|
|
1411
1453
|
PIN = "Pin",
|
|
1412
1454
|
/** 多边形 */
|
|
@@ -1707,7 +1749,7 @@ declare interface IDMT_EditorTabItem {
|
|
|
1707
1749
|
title: string;
|
|
1708
1750
|
/** 标签页 ID */
|
|
1709
1751
|
tabId: string;
|
|
1710
|
-
/**
|
|
1752
|
+
/** 标签页��否可拖动 */
|
|
1711
1753
|
draggable: boolean;
|
|
1712
1754
|
/** 标签页是否可关闭 */
|
|
1713
1755
|
isAbleDelete: boolean;
|
|
@@ -1930,7 +1972,7 @@ declare interface ILIB_CbbItem {
|
|
|
1930
1972
|
}
|
|
1931
1973
|
|
|
1932
1974
|
/**
|
|
1933
|
-
*
|
|
1975
|
+
* 搜索到的复用模块属性
|
|
1934
1976
|
*
|
|
1935
1977
|
* @public
|
|
1936
1978
|
*/
|
|
@@ -2711,7 +2753,16 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
2711
2753
|
/* Excluded from this release type: setState_SupplierId */
|
|
2712
2754
|
/* Excluded from this release type: setState_Manufacturer */
|
|
2713
2755
|
/* Excluded from this release type: setState_ManufacturerId */
|
|
2714
|
-
|
|
2756
|
+
/**
|
|
2757
|
+
* 设置属性状态:其它参数
|
|
2758
|
+
*
|
|
2759
|
+
* @beta
|
|
2760
|
+
* @param otherProperty - 其它参数
|
|
2761
|
+
* @returns 器件图元对象
|
|
2762
|
+
*/
|
|
2763
|
+
setState_OtherProperty(otherProperty: {
|
|
2764
|
+
[key: string]: string;
|
|
2765
|
+
}): IPCB_PrimitiveComponent;
|
|
2715
2766
|
/**
|
|
2716
2767
|
* 将图元转换为异步图元
|
|
2717
2768
|
*
|
|
@@ -3066,7 +3117,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3066
3117
|
*/
|
|
3067
3118
|
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveFill;
|
|
3068
3119
|
/**
|
|
3069
|
-
*
|
|
3120
|
+
* 将图元转换为异步图元
|
|
3070
3121
|
*
|
|
3071
3122
|
* @public
|
|
3072
3123
|
* @returns 填充图元对象
|
|
@@ -3844,7 +3895,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3844
3895
|
*/
|
|
3845
3896
|
setState_SolderMaskAndPasteMaskExpansion(solderMaskAndPasteMaskExpansion: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null): IPCB_PrimitivePad;
|
|
3846
3897
|
/**
|
|
3847
|
-
*
|
|
3898
|
+
* 设置属性状态:热焊优化参数
|
|
3848
3899
|
*
|
|
3849
3900
|
* @beta
|
|
3850
3901
|
* @param heatWelding - 热焊优化参数
|
|
@@ -4004,7 +4055,7 @@ declare class IPCB_PrimitivePolyline implements IPCB_Primitive {
|
|
|
4004
4055
|
*/
|
|
4005
4056
|
setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitivePolyline;
|
|
4006
4057
|
/**
|
|
4007
|
-
*
|
|
4058
|
+
* 设置属性状态:单多边形
|
|
4008
4059
|
*
|
|
4009
4060
|
* @beta
|
|
4010
4061
|
* @param polygon - 单多边形
|
|
@@ -4981,30 +5032,28 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
4981
5032
|
private componentType;
|
|
4982
5033
|
/** 图元 ID */
|
|
4983
5034
|
private primitiveId?;
|
|
4984
|
-
/** 关联库器件
|
|
4985
|
-
private
|
|
4986
|
-
/** 子库编号 */
|
|
4987
|
-
private subLibraryId;
|
|
4988
|
-
/** 关联库符号 UUID */
|
|
4989
|
-
private symbolUuid?;
|
|
5035
|
+
/** 关联库器件 */
|
|
5036
|
+
private component;
|
|
4990
5037
|
/** 坐标 X */
|
|
4991
5038
|
private x;
|
|
4992
5039
|
/** 坐标 Y */
|
|
4993
5040
|
private y;
|
|
5041
|
+
/** 子图块名称 */
|
|
5042
|
+
private subPartName?;
|
|
4994
5043
|
/** 旋转角度 */
|
|
4995
5044
|
private rotation;
|
|
4996
5045
|
/** 是否镜像 */
|
|
4997
5046
|
private mirror;
|
|
4998
|
-
/** 库路径 */
|
|
4999
|
-
private libraryPath;
|
|
5000
5047
|
/** Component 属性:是否加入 BOM */
|
|
5001
5048
|
private addIntoBom?;
|
|
5002
5049
|
/** Component 属性:是否转到 PCB */
|
|
5003
5050
|
private addIntoPcb?;
|
|
5004
5051
|
/** NetPort 和 NetFlag 属性:网络名称 */
|
|
5005
5052
|
private net?;
|
|
5053
|
+
/** 关联库符号 UUID */
|
|
5054
|
+
private symbol?;
|
|
5006
5055
|
/** 关联库封装 UUID */
|
|
5007
|
-
private
|
|
5056
|
+
private footprint?;
|
|
5008
5057
|
/** Component 属性:位号 */
|
|
5009
5058
|
private designator?;
|
|
5010
5059
|
/** Component 属性:名称 */
|
|
@@ -5019,93 +5068,351 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5019
5068
|
private supplier?;
|
|
5020
5069
|
/** Component 属性:供应商编号 */
|
|
5021
5070
|
private supplierId?;
|
|
5071
|
+
/** 其它参数 */
|
|
5072
|
+
private otherProperty?;
|
|
5022
5073
|
/* Excluded from this release type: __constructor */
|
|
5074
|
+
/* Excluded from this release type: create */
|
|
5023
5075
|
/**
|
|
5024
|
-
*
|
|
5076
|
+
* 获取属性状态:图元类型
|
|
5025
5077
|
*
|
|
5026
|
-
* @
|
|
5078
|
+
* @public
|
|
5079
|
+
* @returns 图元类型
|
|
5080
|
+
*/
|
|
5081
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5082
|
+
/**
|
|
5083
|
+
* 获取属性状态:器件类型
|
|
5084
|
+
*
|
|
5085
|
+
* @public
|
|
5086
|
+
* @returns 器件类型
|
|
5087
|
+
*/
|
|
5088
|
+
getState_ComponentType(): ESCH_PrimitiveComponentType;
|
|
5089
|
+
/**
|
|
5090
|
+
* 获取属性状态:图元 ID
|
|
5091
|
+
*
|
|
5092
|
+
* @public
|
|
5093
|
+
* @returns 图元 ID
|
|
5027
5094
|
*/
|
|
5028
|
-
create(): Promise<ISCH_PrimitiveComponent>;
|
|
5029
|
-
getState_PrimitiveType(): string;
|
|
5030
|
-
getState_ComponentType(): string;
|
|
5031
5095
|
getState_PrimitiveId(): string;
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5096
|
+
/**
|
|
5097
|
+
* 获取属性状态:关联库器件
|
|
5098
|
+
*
|
|
5099
|
+
* @public
|
|
5100
|
+
* @returns 关联库器件
|
|
5101
|
+
*/
|
|
5102
|
+
getState_Component(): {
|
|
5103
|
+
libraryUuid: string;
|
|
5104
|
+
uuid: string;
|
|
5105
|
+
};
|
|
5106
|
+
/**
|
|
5107
|
+
* 获取属性状态:坐标 X
|
|
5108
|
+
*
|
|
5109
|
+
* @public
|
|
5110
|
+
* @returns 坐标 X
|
|
5111
|
+
*/
|
|
5035
5112
|
getState_X(): number;
|
|
5113
|
+
/**
|
|
5114
|
+
* 获取属性状态:坐标 Y
|
|
5115
|
+
*
|
|
5116
|
+
* @public
|
|
5117
|
+
* @returns 坐标 Y
|
|
5118
|
+
*/
|
|
5036
5119
|
getState_Y(): number;
|
|
5120
|
+
/**
|
|
5121
|
+
* 获取属性状态:子图块名称
|
|
5122
|
+
*
|
|
5123
|
+
* @public
|
|
5124
|
+
* @returns 子图块名称
|
|
5125
|
+
*/
|
|
5126
|
+
getState_SubPartName(): string | undefined;
|
|
5127
|
+
/**
|
|
5128
|
+
* 获取属性状态:旋转角度
|
|
5129
|
+
*
|
|
5130
|
+
* @public
|
|
5131
|
+
* @returns 旋转角度
|
|
5132
|
+
*/
|
|
5037
5133
|
getState_Rotation(): number;
|
|
5134
|
+
/**
|
|
5135
|
+
* 获取属性状态:是否镜像
|
|
5136
|
+
*
|
|
5137
|
+
* @public
|
|
5138
|
+
* @returns 是否镜像
|
|
5139
|
+
*/
|
|
5038
5140
|
getState_Mirror(): boolean;
|
|
5141
|
+
/**
|
|
5142
|
+
* 获取属性状态:是否加入 BOM
|
|
5143
|
+
*
|
|
5144
|
+
* @public
|
|
5145
|
+
* @returns 是否加入 BOM
|
|
5146
|
+
*/
|
|
5039
5147
|
getState_AddIntoBom(): boolean | undefined;
|
|
5148
|
+
/**
|
|
5149
|
+
* 获取属性状态:是否转到 PCB
|
|
5150
|
+
*
|
|
5151
|
+
* @public
|
|
5152
|
+
* @returns 是否转到 PCB
|
|
5153
|
+
*/
|
|
5040
5154
|
getState_AddIntoPcb(): boolean | undefined;
|
|
5155
|
+
/**
|
|
5156
|
+
* 获取属性状态:网络名称
|
|
5157
|
+
*
|
|
5158
|
+
* @public
|
|
5159
|
+
* @returns 网络名称
|
|
5160
|
+
*/
|
|
5041
5161
|
getState_Net(): string | undefined;
|
|
5042
|
-
|
|
5162
|
+
/**
|
|
5163
|
+
* 获取属性状态:关联库符号
|
|
5164
|
+
*
|
|
5165
|
+
* @public
|
|
5166
|
+
* @returns 关联库符号
|
|
5167
|
+
*/
|
|
5168
|
+
getState_Symbol(): {
|
|
5169
|
+
libraryUuid: string;
|
|
5170
|
+
uuid: string;
|
|
5171
|
+
} | undefined;
|
|
5172
|
+
/**
|
|
5173
|
+
* 获取属性状态:关联库封装
|
|
5174
|
+
*
|
|
5175
|
+
* @public
|
|
5176
|
+
* @returns 关联库封装
|
|
5177
|
+
*/
|
|
5178
|
+
getState_Footprint(): {
|
|
5179
|
+
libraryUuid: string;
|
|
5180
|
+
uuid: string;
|
|
5181
|
+
} | undefined;
|
|
5182
|
+
/**
|
|
5183
|
+
* 获取属性状态:位号
|
|
5184
|
+
*
|
|
5185
|
+
* @public
|
|
5186
|
+
* @returns 位号
|
|
5187
|
+
*/
|
|
5043
5188
|
getState_Designator(): string | undefined;
|
|
5189
|
+
/**
|
|
5190
|
+
* 获取属性状态:名称
|
|
5191
|
+
*
|
|
5192
|
+
* @public
|
|
5193
|
+
* @returns 名称
|
|
5194
|
+
*/
|
|
5044
5195
|
getState_Name(): string | undefined;
|
|
5196
|
+
/**
|
|
5197
|
+
* 获取属性状态:唯一 ID
|
|
5198
|
+
*
|
|
5199
|
+
* @public
|
|
5200
|
+
* @returns 唯一 ID
|
|
5201
|
+
*/
|
|
5045
5202
|
getState_UniqueId(): string | undefined;
|
|
5203
|
+
/**
|
|
5204
|
+
* 获取属性状态:制造商
|
|
5205
|
+
*
|
|
5206
|
+
* @public
|
|
5207
|
+
* @returns 制造商
|
|
5208
|
+
*/
|
|
5046
5209
|
getState_Manufacturer(): string | undefined;
|
|
5210
|
+
/**
|
|
5211
|
+
* 获取属性状态:制造商编号
|
|
5212
|
+
*
|
|
5213
|
+
* @public
|
|
5214
|
+
* @returns 制造商编号
|
|
5215
|
+
*/
|
|
5047
5216
|
getState_ManufacturerId(): string | undefined;
|
|
5217
|
+
/**
|
|
5218
|
+
* 获取属性状态:供应商
|
|
5219
|
+
*
|
|
5220
|
+
* @public
|
|
5221
|
+
* @returns 供应商
|
|
5222
|
+
*/
|
|
5048
5223
|
getState_Supplier(): string | undefined;
|
|
5224
|
+
/**
|
|
5225
|
+
* 获取属性状态:供应商编号
|
|
5226
|
+
*
|
|
5227
|
+
* @public
|
|
5228
|
+
* @returns 供应商编号
|
|
5229
|
+
*/
|
|
5049
5230
|
getState_SupplierId(): string | undefined;
|
|
5050
|
-
/**
|
|
5231
|
+
/**
|
|
5232
|
+
* 获取属性状态:其它参数
|
|
5233
|
+
*
|
|
5234
|
+
* @public
|
|
5235
|
+
* @returns 其它参数
|
|
5236
|
+
*/
|
|
5237
|
+
getState_OtherProperty(): {
|
|
5238
|
+
[key: string]: string;
|
|
5239
|
+
} | undefined;
|
|
5240
|
+
/**
|
|
5241
|
+
* 设置属性状态:坐标 X
|
|
5242
|
+
*
|
|
5243
|
+
* @beta
|
|
5244
|
+
* @param x - 坐标 X
|
|
5245
|
+
* @returns 器件图元对象
|
|
5246
|
+
*/
|
|
5051
5247
|
setState_X(x: number): ISCH_PrimitiveComponent;
|
|
5052
|
-
/**
|
|
5248
|
+
/**
|
|
5249
|
+
* 设置属性状态:坐标 Y
|
|
5250
|
+
*
|
|
5251
|
+
* @beta
|
|
5252
|
+
* @param y - 坐标 Y
|
|
5253
|
+
* @returns 器件图元对象
|
|
5254
|
+
*/
|
|
5053
5255
|
setState_Y(y: number): ISCH_PrimitiveComponent;
|
|
5054
|
-
/**
|
|
5256
|
+
/**
|
|
5257
|
+
* 设置属性状态:旋转角度
|
|
5258
|
+
*
|
|
5259
|
+
* @beta
|
|
5260
|
+
* @param rotation - 旋转角度
|
|
5261
|
+
* @returns 器件图元对象
|
|
5262
|
+
*/
|
|
5055
5263
|
setState_Rotation(rotation: number): ISCH_PrimitiveComponent;
|
|
5056
|
-
/**
|
|
5264
|
+
/**
|
|
5265
|
+
* 设置属性状态:是否镜像
|
|
5266
|
+
*
|
|
5267
|
+
* @beta
|
|
5268
|
+
* @param mirror - 是否镜像
|
|
5269
|
+
* @returns 器件图元对象
|
|
5270
|
+
*/
|
|
5057
5271
|
setState_Mirror(mirror: boolean): ISCH_PrimitiveComponent;
|
|
5058
|
-
/**
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5272
|
+
/**
|
|
5273
|
+
* 设置属性状态:是否加入 BOM
|
|
5274
|
+
*
|
|
5275
|
+
* @beta
|
|
5276
|
+
* @param addIntoBom - 是否加入 BOM
|
|
5277
|
+
* @returns 器件图元对象
|
|
5278
|
+
*/
|
|
5279
|
+
setState_AddIntoBom(addIntoBom: boolean | undefined): ISCH_PrimitiveComponent;
|
|
5280
|
+
/**
|
|
5281
|
+
* 设置属性状态:是否转到 PCB
|
|
5282
|
+
*
|
|
5283
|
+
* @beta
|
|
5284
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
5285
|
+
* @returns 器件图元对象
|
|
5286
|
+
*/
|
|
5287
|
+
setState_AddIntoPcb(addIntoPcb: boolean | undefined): ISCH_PrimitiveComponent;
|
|
5288
|
+
/**
|
|
5289
|
+
* 设置属性状态:网络名称
|
|
5290
|
+
*
|
|
5291
|
+
* @beta
|
|
5292
|
+
* @param net - 网络名称
|
|
5293
|
+
* @returns 器件图元对象
|
|
5294
|
+
*/
|
|
5063
5295
|
setState_Net(net: string | undefined): ISCH_PrimitiveComponent;
|
|
5064
|
-
/**
|
|
5296
|
+
/**
|
|
5297
|
+
* 设置属性状态:位号
|
|
5298
|
+
*
|
|
5299
|
+
* @beta
|
|
5300
|
+
* @param designator - 位号
|
|
5301
|
+
* @returns 器件图元对象
|
|
5302
|
+
*/
|
|
5065
5303
|
setState_Designator(designator: string | undefined): ISCH_PrimitiveComponent;
|
|
5066
|
-
/**
|
|
5304
|
+
/**
|
|
5305
|
+
* 设置属性状态:名称
|
|
5306
|
+
*
|
|
5307
|
+
* @beta
|
|
5308
|
+
* @param name - 名称
|
|
5309
|
+
* @returns 器件图元对象
|
|
5310
|
+
*/
|
|
5067
5311
|
setState_Name(name: string | undefined): ISCH_PrimitiveComponent;
|
|
5068
|
-
/**
|
|
5312
|
+
/**
|
|
5313
|
+
* 设置属性状态:唯一 ID
|
|
5314
|
+
*
|
|
5315
|
+
* @beta
|
|
5316
|
+
* @param uniqueId - 唯一 ID
|
|
5317
|
+
* @returns 器件图元对象
|
|
5318
|
+
*/
|
|
5069
5319
|
setState_UniqueId(uniqueId: string | undefined): ISCH_PrimitiveComponent;
|
|
5070
|
-
/**
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5320
|
+
/**
|
|
5321
|
+
* 设置属性状态:制造商
|
|
5322
|
+
*
|
|
5323
|
+
* @beta
|
|
5324
|
+
* @param manufacturer - 制造商
|
|
5325
|
+
* @returns 器件图元对象
|
|
5326
|
+
*/
|
|
5075
5327
|
setState_Manufacturer(manufacturer: string | undefined): ISCH_PrimitiveComponent;
|
|
5076
|
-
/**
|
|
5328
|
+
/**
|
|
5329
|
+
* 设置属性状态:制造商编号
|
|
5330
|
+
*
|
|
5331
|
+
* @beta
|
|
5332
|
+
* @param manufacturerId - 制造商编号
|
|
5333
|
+
* @returns 器件图元对象
|
|
5334
|
+
*/
|
|
5077
5335
|
setState_ManufacturerId(manufacturerId: string | undefined): ISCH_PrimitiveComponent;
|
|
5336
|
+
/**
|
|
5337
|
+
* 设置属性状态:供应商
|
|
5338
|
+
*
|
|
5339
|
+
* @beta
|
|
5340
|
+
* @param supplier - 供应商
|
|
5341
|
+
* @returns 器件图元对象
|
|
5342
|
+
*/
|
|
5343
|
+
setState_Supplier(supplier: string | undefined): ISCH_PrimitiveComponent;
|
|
5344
|
+
/**
|
|
5345
|
+
* 设置属性状态:供应商编号
|
|
5346
|
+
*
|
|
5347
|
+
* @beta
|
|
5348
|
+
* @param supplierId - 供应商编号
|
|
5349
|
+
* @returns 器件图元对象
|
|
5350
|
+
*/
|
|
5351
|
+
setState_SupplierId(supplierId: string | undefined): ISCH_PrimitiveComponent;
|
|
5352
|
+
/**
|
|
5353
|
+
* 设置属性状态:其它参数
|
|
5354
|
+
*
|
|
5355
|
+
* @beta
|
|
5356
|
+
* @param otherProperty - 其它参数
|
|
5357
|
+
* @returns 器件图元对象
|
|
5358
|
+
*/
|
|
5359
|
+
setState_OtherProperty(otherProperty: {
|
|
5360
|
+
[key: string]: string;
|
|
5361
|
+
}): ISCH_PrimitiveComponent;
|
|
5078
5362
|
/**
|
|
5079
5363
|
* 将图元转换为异步图元
|
|
5364
|
+
*
|
|
5365
|
+
* @public
|
|
5366
|
+
* @returns 圆弧线图元对象
|
|
5080
5367
|
*/
|
|
5081
5368
|
toAsync(): ISCH_PrimitiveComponent;
|
|
5082
5369
|
/**
|
|
5083
5370
|
* 将图元转换为同步图元
|
|
5371
|
+
*
|
|
5372
|
+
* @public
|
|
5373
|
+
* @returns 圆弧线图元对象
|
|
5084
5374
|
*/
|
|
5085
5375
|
toSync(): ISCH_PrimitiveComponent;
|
|
5086
5376
|
/**
|
|
5087
5377
|
* 查询图元是否为异步图元
|
|
5378
|
+
*
|
|
5379
|
+
* @public
|
|
5380
|
+
* @returns 是否为异步图元
|
|
5088
5381
|
*/
|
|
5089
5382
|
isAsync(): boolean;
|
|
5090
5383
|
/**
|
|
5091
5384
|
* 将异步图元重置为当前画布状态
|
|
5092
5385
|
*
|
|
5093
5386
|
* @beta
|
|
5387
|
+
* @returns 器件图元对象
|
|
5094
5388
|
*/
|
|
5095
5389
|
reset(): Promise<ISCH_PrimitiveComponent>;
|
|
5096
5390
|
/**
|
|
5097
5391
|
* 将对图元的更改应用到画布
|
|
5098
5392
|
*
|
|
5099
5393
|
* @beta
|
|
5100
|
-
* @
|
|
5394
|
+
* @returns 器件图元对象
|
|
5101
5395
|
*/
|
|
5102
5396
|
done(): Promise<ISCH_PrimitiveComponent>;
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5397
|
+
/* Excluded from this release type: setState_Component */
|
|
5398
|
+
/* Excluded from this release type: setState_SubPartName */
|
|
5399
|
+
}
|
|
5400
|
+
|
|
5401
|
+
/**
|
|
5402
|
+
* 器件引脚
|
|
5403
|
+
*
|
|
5404
|
+
* @public
|
|
5405
|
+
*/
|
|
5406
|
+
declare interface ISCH_PrimitiveComponentPin {
|
|
5407
|
+
readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
|
|
5408
|
+
readonly primitiveId: string;
|
|
5409
|
+
readonly x: number;
|
|
5410
|
+
readonly y: number;
|
|
5411
|
+
readonly pinNumber: string;
|
|
5412
|
+
readonly pinName: string;
|
|
5413
|
+
readonly pinShape: string;
|
|
5414
|
+
readonly pinType: ESCH_PrimitivePinType;
|
|
5415
|
+
readonly noConnectFlag: boolean;
|
|
5109
5416
|
}
|
|
5110
5417
|
|
|
5111
5418
|
/**
|
|
@@ -5156,7 +5463,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
5156
5463
|
getState_PinLength(): number;
|
|
5157
5464
|
getState_PinColor(): string | null;
|
|
5158
5465
|
getState_PinShape(): string;
|
|
5159
|
-
getState_pinType():
|
|
5466
|
+
getState_pinType(): ESCH_PrimitivePinType;
|
|
5160
5467
|
setState_X(x: number): ISCH_PrimitivePin;
|
|
5161
5468
|
setState_Y(y: number): ISCH_PrimitivePin;
|
|
5162
5469
|
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
@@ -5165,7 +5472,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
5165
5472
|
setState_PinLength(pinLength: number): ISCH_PrimitivePin;
|
|
5166
5473
|
setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
|
|
5167
5474
|
setState_PinShape(pinShape: string): this;
|
|
5168
|
-
setState_PinType(pinType:
|
|
5475
|
+
setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
|
|
5169
5476
|
/**
|
|
5170
5477
|
* 将图元转换为异步图元
|
|
5171
5478
|
*/
|
|
@@ -5686,7 +5993,7 @@ declare class LIB_Cbb {
|
|
|
5686
5993
|
*/
|
|
5687
5994
|
get(cbbUuid: string, libraryUuid?: string): Promise<ILIB_CbbItem | undefined>;
|
|
5688
5995
|
/**
|
|
5689
|
-
*
|
|
5996
|
+
* 复制复用模块
|
|
5690
5997
|
*
|
|
5691
5998
|
* @beta
|
|
5692
5999
|
* @param cbbUuid - 复用模块 UUID
|
|
@@ -6267,17 +6574,23 @@ declare class PCB_Document {
|
|
|
6267
6574
|
*/
|
|
6268
6575
|
importChanges(uuid: string): Promise<boolean>;
|
|
6269
6576
|
/**
|
|
6270
|
-
*
|
|
6577
|
+
* 导入自动布线文件(JSON)
|
|
6271
6578
|
*
|
|
6272
|
-
* @
|
|
6579
|
+
* @beta
|
|
6273
6580
|
* @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
|
|
6274
6581
|
* @param autoRouteFile - 欲导入的 JSON 文件
|
|
6275
6582
|
* @returns 导入操作是否成功
|
|
6276
6583
|
*/
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6584
|
+
importAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
|
|
6585
|
+
/**
|
|
6586
|
+
* 导入自动布局文件(JSON)
|
|
6587
|
+
*
|
|
6588
|
+
* @beta
|
|
6589
|
+
* @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
|
|
6590
|
+
* @param autoLayoutFile - 欲导入的 JSON 文件
|
|
6591
|
+
* @returns 导入操作是否成功
|
|
6592
|
+
*/
|
|
6593
|
+
importAutoLayoutJsonFile(autoLayoutFile: File): Promise<boolean>;
|
|
6281
6594
|
/**
|
|
6282
6595
|
* 保存文档
|
|
6283
6596
|
*
|
|
@@ -6414,7 +6727,7 @@ declare class PCB_Drc {
|
|
|
6414
6727
|
/**
|
|
6415
6728
|
* 获取当前设计规则配置
|
|
6416
6729
|
*
|
|
6417
|
-
* @
|
|
6730
|
+
* @beta
|
|
6418
6731
|
* @returns 当前设计规则配置,`undefined` 为获取失败
|
|
6419
6732
|
*/
|
|
6420
6733
|
getCurrentRuleConfiguration(): Promise<{
|
|
@@ -6423,7 +6736,7 @@ declare class PCB_Drc {
|
|
|
6423
6736
|
/**
|
|
6424
6737
|
* 获取指定设计规则配置
|
|
6425
6738
|
*
|
|
6426
|
-
* @
|
|
6739
|
+
* @public
|
|
6427
6740
|
* @param configurationName - 配置名称
|
|
6428
6741
|
* @returns 设计规则配置,`undefined` 为不存在该设计规则
|
|
6429
6742
|
*/
|
|
@@ -6456,6 +6769,7 @@ declare class PCB_Drc {
|
|
|
6456
6769
|
* 重命名设计规则配置
|
|
6457
6770
|
*
|
|
6458
6771
|
* @beta
|
|
6772
|
+
* @remarks 只有自定义配置可以重命名,系统配置不允许重命名
|
|
6459
6773
|
* @param originalConfigurationName - 原设计规则配置名称
|
|
6460
6774
|
* @param configurationName - 新设计规则配置名称
|
|
6461
6775
|
* @returns 重命名是否成功
|
|
@@ -6465,6 +6779,7 @@ declare class PCB_Drc {
|
|
|
6465
6779
|
* 删除设计规则配置
|
|
6466
6780
|
*
|
|
6467
6781
|
* @beta
|
|
6782
|
+
* @remarks 系统配置不允许删除
|
|
6468
6783
|
* @param configurationName - 配置名称
|
|
6469
6784
|
* @returns 删除是否成功
|
|
6470
6785
|
*/
|
|
@@ -6480,6 +6795,7 @@ declare class PCB_Drc {
|
|
|
6480
6795
|
* 设置为新建 PCB 默认设计规则配置
|
|
6481
6796
|
*
|
|
6482
6797
|
* @beta
|
|
6798
|
+
* @remarks 返回值为结果导向,重复设置相同的设计规则为默认设计规则也将返回 `true`
|
|
6483
6799
|
* @param configurationName - 配置名称
|
|
6484
6800
|
* @returns 设置是否成功
|
|
6485
6801
|
*/
|
|
@@ -7353,15 +7669,12 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
7353
7669
|
* @param y - 坐标 Y
|
|
7354
7670
|
* @param rotation - 旋转角度
|
|
7355
7671
|
* @param primitiveLock - 是否锁定
|
|
7356
|
-
* @param addIntoBom - 是否加入 BOM
|
|
7357
7672
|
* @returns 器件图元对象
|
|
7358
7673
|
*/
|
|
7359
7674
|
create(component: {
|
|
7360
7675
|
libraryUuid: string;
|
|
7361
7676
|
uuid: string;
|
|
7362
|
-
} | ILIB_DeviceItem, layer: TPCB_LayersOfComponent, x: number, y: number, rotation?: number, primitiveLock?:
|
|
7363
|
-
[key: string]: any;
|
|
7364
|
-
}): Promise<IPCB_PrimitiveComponent | undefined>;
|
|
7677
|
+
} | ILIB_DeviceItem, layer: TPCB_LayersOfComponent, x: number, y: number, rotation?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveComponent | undefined>;
|
|
7365
7678
|
/**
|
|
7366
7679
|
* 删除器件
|
|
7367
7680
|
*
|
|
@@ -7435,6 +7748,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
7435
7748
|
* @returns 器件图元对象数组
|
|
7436
7749
|
*/
|
|
7437
7750
|
getAll(layer?: TPCB_LayersOfComponent, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveComponent>>;
|
|
7751
|
+
/* Excluded from this release type: placeComponentWithMouse */
|
|
7438
7752
|
}
|
|
7439
7753
|
|
|
7440
7754
|
/**
|
|
@@ -7854,7 +8168,7 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
|
|
|
7854
8168
|
* 获取折线
|
|
7855
8169
|
*
|
|
7856
8170
|
* @beta
|
|
7857
|
-
* @param primitiveIds - 折线的图元 ID
|
|
8171
|
+
* @param primitiveIds - 折线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
7858
8172
|
* @returns 折线图元对象,`undefined` 表示获取失败
|
|
7859
8173
|
*/
|
|
7860
8174
|
get(primitiveIds: string): Promise<IPCB_PrimitivePolyline | undefined>;
|
|
@@ -8033,6 +8347,7 @@ declare class PCB_SelectControl {
|
|
|
8033
8347
|
*
|
|
8034
8348
|
* @beta
|
|
8035
8349
|
* @param primitiveIds - 图元 ID
|
|
8350
|
+
* @returns 操作是否成功
|
|
8036
8351
|
*/
|
|
8037
8352
|
doSelectPrimitives(primitiveIds: string | Array<string>): Promise<boolean>;
|
|
8038
8353
|
/**
|
|
@@ -8043,31 +8358,17 @@ declare class PCB_SelectControl {
|
|
|
8043
8358
|
* @param pins - 器件位号_引脚编号,格式为 ['U1_1', 'U1_2']
|
|
8044
8359
|
* @param nets - 网络名称
|
|
8045
8360
|
* @param highlight - 是否高亮
|
|
8046
|
-
* @param select -
|
|
8361
|
+
* @param select - 操作是否成功
|
|
8047
8362
|
*/
|
|
8048
8363
|
doCrossProbeSelect(components?: Array<string>, pins?: Array<string>, nets?: Array<string>, highlight?: boolean, select?: boolean): Promise<boolean>;
|
|
8049
8364
|
/**
|
|
8050
8365
|
* 清除选中
|
|
8051
8366
|
*
|
|
8052
8367
|
* @beta
|
|
8053
|
-
* @returns
|
|
8368
|
+
* @returns 操作是否成功
|
|
8054
8369
|
*/
|
|
8055
8370
|
clearSelected(): Promise<boolean>;
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
declare enum PIN_TYPE {
|
|
8059
|
-
IN = "IN",
|
|
8060
|
-
OUT = "OUT",
|
|
8061
|
-
BI = "BI",
|
|
8062
|
-
OPEN_COLLECTOR = "Open Collector",
|
|
8063
|
-
STATE_3 = "3 State",
|
|
8064
|
-
OPEN_EMITTER = "Open Emitter",
|
|
8065
|
-
POWER = "Power",
|
|
8066
|
-
HIZ = "HIZ",
|
|
8067
|
-
UNDEFINED = "Undefined",
|
|
8068
|
-
TERMINATOR = "Terminator",
|
|
8069
|
-
GROUND = "Ground",
|
|
8070
|
-
DEFAULT = "BI"
|
|
8371
|
+
/* Excluded from this release type: getCurrentMousePosition */
|
|
8071
8372
|
}
|
|
8072
8373
|
|
|
8073
8374
|
/**
|
|
@@ -8189,8 +8490,44 @@ declare class SCH_ManufactureData {
|
|
|
8189
8490
|
* @returns 网表文件数据
|
|
8190
8491
|
*/
|
|
8191
8492
|
getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
|
|
8192
|
-
|
|
8193
|
-
|
|
8493
|
+
/**
|
|
8494
|
+
* 元件下单
|
|
8495
|
+
*
|
|
8496
|
+
* @beta
|
|
8497
|
+
* @param interactive - 是否启用交互式检查
|
|
8498
|
+
*
|
|
8499
|
+
* 如若启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
|
|
8500
|
+
* 即 `ignoreWarning` 参数将被忽略;
|
|
8501
|
+
*
|
|
8502
|
+
* 如若禁用,则在调用后不会有任何 EDA 内部弹窗,程序执行静默检查,
|
|
8503
|
+
* 如若达成下单条件,将返回 `true` 并在新标签页打开下单页面
|
|
8504
|
+
* @param ignoreWarning - 在非交互式检查时忽略警告
|
|
8505
|
+
*
|
|
8506
|
+
* 如果设置为 `true`,将会忽略所有检查警告项并尽可能生成下单资料;
|
|
8507
|
+
*
|
|
8508
|
+
* 如果设置为 `false`,存在任意警告将中断执行并返回 `false` 的结果
|
|
8509
|
+
* @returns 是否通过下单检查
|
|
8510
|
+
*/
|
|
8511
|
+
placeComponentsOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;
|
|
8512
|
+
/**
|
|
8513
|
+
* SMT 元件下单
|
|
8514
|
+
*
|
|
8515
|
+
* @beta
|
|
8516
|
+
* @param interactive - 是否启用交互式检查
|
|
8517
|
+
*
|
|
8518
|
+
* 如若启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
|
|
8519
|
+
* 即 `ignoreWarning` 参数将被忽略;
|
|
8520
|
+
*
|
|
8521
|
+
* 如若禁用,则在调用后不会有任何 EDA 内部弹窗,程序执行静默检查,
|
|
8522
|
+
* 如若达成下单条件,将返回 `true` 并在新标签页打开下单页面
|
|
8523
|
+
* @param ignoreWarning - 在非交互式检查时忽略警告
|
|
8524
|
+
*
|
|
8525
|
+
* 如果设置为 `true`,将会忽略所有检查警告项并尽可能生成下单资料;
|
|
8526
|
+
*
|
|
8527
|
+
* 如果设置为 `false`,存在任意警告将中断执行并返回 `false` 的结果
|
|
8528
|
+
* @returns 是否通过下单检查
|
|
8529
|
+
*/
|
|
8530
|
+
placeSmtComponentsOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;
|
|
8194
8531
|
}
|
|
8195
8532
|
|
|
8196
8533
|
/**
|
|
@@ -8471,87 +8808,103 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
8471
8808
|
private netPortComponentUuid_OUT;
|
|
8472
8809
|
private netPortComponentUuid_BI;
|
|
8473
8810
|
private shortCircuitFlagComponentUuid;
|
|
8474
|
-
private
|
|
8475
|
-
|
|
8811
|
+
private defaultLibraryUuid;
|
|
8812
|
+
/* Excluded from this release type: __constructor */
|
|
8476
8813
|
/**
|
|
8477
8814
|
* 设置在扩展 API 中 Power 网络标识关联的器件 UUID
|
|
8478
8815
|
*
|
|
8479
8816
|
* @beta
|
|
8480
|
-
* @param
|
|
8481
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8817
|
+
* @param component - 关联库器件
|
|
8482
8818
|
* @returns 操作是否成功
|
|
8483
8819
|
*/
|
|
8484
|
-
setNetFlagComponentUuid_Power(
|
|
8820
|
+
setNetFlagComponentUuid_Power(component: {
|
|
8821
|
+
libraryUuid: string;
|
|
8822
|
+
uuid: string;
|
|
8823
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8485
8824
|
/**
|
|
8486
8825
|
* 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
|
|
8487
8826
|
*
|
|
8488
8827
|
* @beta
|
|
8489
|
-
* @param
|
|
8490
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8828
|
+
* @param component - 关联库器件
|
|
8491
8829
|
* @returns 操作是否成功
|
|
8492
8830
|
*/
|
|
8493
|
-
setNetFlagComponentUuid_Ground(
|
|
8831
|
+
setNetFlagComponentUuid_Ground(component: {
|
|
8832
|
+
libraryUuid: string;
|
|
8833
|
+
uuid: string;
|
|
8834
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8494
8835
|
/**
|
|
8495
8836
|
* 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
|
|
8496
8837
|
*
|
|
8497
8838
|
* @beta
|
|
8498
|
-
* @param
|
|
8499
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8839
|
+
* @param component - 关联库器件
|
|
8500
8840
|
* @returns 操作是否成功
|
|
8501
8841
|
*/
|
|
8502
|
-
setNetFlagComponentUuid_AnalogGround(
|
|
8842
|
+
setNetFlagComponentUuid_AnalogGround(component: {
|
|
8843
|
+
libraryUuid: string;
|
|
8844
|
+
uuid: string;
|
|
8845
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8503
8846
|
/**
|
|
8504
8847
|
* 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
|
|
8505
8848
|
*
|
|
8506
8849
|
* @beta
|
|
8507
|
-
* @param
|
|
8508
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8850
|
+
* @param component - 关联库器件
|
|
8509
8851
|
* @returns 操作是否成功
|
|
8510
8852
|
*/
|
|
8511
|
-
setNetFlagComponentUuid_ProtectGround(
|
|
8853
|
+
setNetFlagComponentUuid_ProtectGround(component: {
|
|
8854
|
+
libraryUuid: string;
|
|
8855
|
+
uuid: string;
|
|
8856
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8512
8857
|
/**
|
|
8513
8858
|
* 设置在扩展 API 中 IN 网络端口关联的器件 UUID
|
|
8514
8859
|
*
|
|
8515
8860
|
* @beta
|
|
8516
|
-
* @param
|
|
8517
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8861
|
+
* @param component - 关联库器件
|
|
8518
8862
|
* @returns 操作是否成功
|
|
8519
8863
|
*/
|
|
8520
|
-
setNetPortComponentUuid_IN(
|
|
8864
|
+
setNetPortComponentUuid_IN(component: {
|
|
8865
|
+
libraryUuid: string;
|
|
8866
|
+
uuid: string;
|
|
8867
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8521
8868
|
/**
|
|
8522
8869
|
* 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
|
|
8523
8870
|
*
|
|
8524
8871
|
* @beta
|
|
8525
|
-
* @param
|
|
8526
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8872
|
+
* @param component - 关联库器件
|
|
8527
8873
|
* @returns 操作是否成功
|
|
8528
8874
|
*/
|
|
8529
|
-
setNetPortComponentUuid_OUT(
|
|
8875
|
+
setNetPortComponentUuid_OUT(component: {
|
|
8876
|
+
libraryUuid: string;
|
|
8877
|
+
uuid: string;
|
|
8878
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8530
8879
|
/**
|
|
8531
8880
|
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
8532
8881
|
*
|
|
8533
8882
|
* @beta
|
|
8534
|
-
* @param
|
|
8535
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8883
|
+
* @param component - 关联库器件
|
|
8536
8884
|
* @returns 操作是否成功
|
|
8537
8885
|
*/
|
|
8538
|
-
setNetPortComponentUuid_BI(
|
|
8886
|
+
setNetPortComponentUuid_BI(component: {
|
|
8887
|
+
libraryUuid: string;
|
|
8888
|
+
uuid: string;
|
|
8889
|
+
} | ILIB_DeviceItem): Promise<boolean>;
|
|
8539
8890
|
/**
|
|
8540
8891
|
* 创建器件
|
|
8541
8892
|
*
|
|
8542
8893
|
* @beta
|
|
8543
|
-
* @param
|
|
8544
|
-
* @param
|
|
8894
|
+
* @param component - 关联库器件
|
|
8895
|
+
* @param subPartName - 子图块名称
|
|
8545
8896
|
* @param x - 坐标 X
|
|
8546
8897
|
* @param y - 坐标 Y
|
|
8547
|
-
* @param rotation -
|
|
8898
|
+
* @param rotation - 旋转角度
|
|
8548
8899
|
* @param mirror - 是否镜像
|
|
8549
|
-
* @param libraryPath - 库路径,默认为系统库
|
|
8550
8900
|
* @param addIntoBom - 是否加入 BOM
|
|
8551
8901
|
* @param addIntoPcb - 是否转到 PCB
|
|
8552
8902
|
* @returns 器件图元对象
|
|
8553
8903
|
*/
|
|
8554
|
-
create(
|
|
8904
|
+
create(component: {
|
|
8905
|
+
libraryUuid: string;
|
|
8906
|
+
uuid: string;
|
|
8907
|
+
} | ILIB_DeviceItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
8555
8908
|
/**
|
|
8556
8909
|
* 创建网络标识
|
|
8557
8910
|
*
|
|
@@ -8601,11 +8954,11 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
8601
8954
|
* 修改器件
|
|
8602
8955
|
*
|
|
8603
8956
|
* @beta
|
|
8604
|
-
* @remarks 仅当器件类型为
|
|
8957
|
+
* @remarks 仅当器件类型为 {@link ESCH_PrimitiveComponentType.COMPONENT | COMPONENT} 时允许使用该方法进行修改
|
|
8605
8958
|
* @param primitiveId - 图元 ID
|
|
8606
8959
|
* @param x - 坐标 X
|
|
8607
8960
|
* @param y - 坐标 Y
|
|
8608
|
-
* @param rotation -
|
|
8961
|
+
* @param rotation - 旋转角度
|
|
8609
8962
|
* @param mirror - 是否镜像
|
|
8610
8963
|
* @param libraryPath - 库路径,默认为系统库
|
|
8611
8964
|
* @param addIntoBom - 是否加入 BOM
|
|
@@ -8619,17 +8972,41 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
8619
8972
|
* @param supplierId - 供应商编号,`null` 表示留空
|
|
8620
8973
|
* @returns 器件图元对象
|
|
8621
8974
|
*/
|
|
8622
|
-
modify(primitiveId: string | ISCH_PrimitiveComponent,
|
|
8975
|
+
modify(primitiveId: string | ISCH_PrimitiveComponent, property: {
|
|
8976
|
+
x?: number;
|
|
8977
|
+
y?: number;
|
|
8978
|
+
rotation?: number;
|
|
8979
|
+
mirror?: boolean;
|
|
8980
|
+
addIntoBom?: boolean;
|
|
8981
|
+
addIntoPcb?: boolean;
|
|
8982
|
+
designator?: string | null;
|
|
8983
|
+
name?: string | null;
|
|
8984
|
+
uniqueId?: string | null;
|
|
8985
|
+
manufacturer?: string | null;
|
|
8986
|
+
manufacturerId?: string | null;
|
|
8987
|
+
supplier?: string | null;
|
|
8988
|
+
supplierId?: string | null;
|
|
8989
|
+
otherProperty?: {
|
|
8990
|
+
[key: string]: string;
|
|
8991
|
+
};
|
|
8992
|
+
}): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
8623
8993
|
/**
|
|
8624
8994
|
* 获取器件
|
|
8625
8995
|
*
|
|
8626
8996
|
* @beta
|
|
8627
8997
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
8628
|
-
* @returns
|
|
8998
|
+
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
8629
8999
|
*/
|
|
8630
9000
|
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
9001
|
+
/**
|
|
9002
|
+
* 获取器件
|
|
9003
|
+
*
|
|
9004
|
+
* @beta
|
|
9005
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
9006
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9007
|
+
* @returns 器件图元对象,空数组表示获取失败
|
|
9008
|
+
*/
|
|
8631
9009
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
8632
|
-
/* Excluded from this release type: transformPrimitiveTypeToCmdKey */
|
|
8633
9010
|
/**
|
|
8634
9011
|
* 获取所有器件的图元 ID
|
|
8635
9012
|
*
|
|
@@ -8647,23 +9024,9 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
8647
9024
|
*/
|
|
8648
9025
|
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
8649
9026
|
/* Excluded from this release type: getAllPinsByPrimitiveId */
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
* @param componentUuid - 器件 UUID
|
|
8654
|
-
* @param libraryPath - 库 PATH
|
|
8655
|
-
* @returns 器件的详细信息
|
|
8656
|
-
*/
|
|
8657
|
-
private getComponentDetail;
|
|
8658
|
-
/**
|
|
8659
|
-
* 根据 DOCTYPE 验证输入的 UUID 是否正确
|
|
8660
|
-
*
|
|
8661
|
-
* @param componentType - 器件类型
|
|
8662
|
-
* @param componentUuid - 器件 UUID
|
|
8663
|
-
* @param libraryPath - 库 PATH
|
|
8664
|
-
* @returns 是否正确
|
|
8665
|
-
*/
|
|
8666
|
-
private checkComponentType;
|
|
9027
|
+
/* Excluded from this release type: placeComponentWithMouse */
|
|
9028
|
+
/* Excluded from this release type: getComponentDetail */
|
|
9029
|
+
/* Excluded from this release type: checkComponentType */
|
|
8667
9030
|
}
|
|
8668
9031
|
|
|
8669
9032
|
/**
|
|
@@ -8687,7 +9050,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
8687
9050
|
* @param pinType - 引脚类型
|
|
8688
9051
|
* @returns 引脚图元对象
|
|
8689
9052
|
*/
|
|
8690
|
-
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?:
|
|
9053
|
+
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
|
|
8691
9054
|
/**
|
|
8692
9055
|
* 删除引脚
|
|
8693
9056
|
*
|
|
@@ -8712,7 +9075,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
8712
9075
|
* @param pinType - 引脚类型
|
|
8713
9076
|
* @returns 引脚图元对象
|
|
8714
9077
|
*/
|
|
8715
|
-
modify(primitiveId: string | ISCH_PrimitivePin, x?: number, y?: number, pinNumber?: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?:
|
|
9078
|
+
modify(primitiveId: string | ISCH_PrimitivePin, x?: number, y?: number, pinNumber?: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
|
|
8716
9079
|
/**
|
|
8717
9080
|
* 获取引脚
|
|
8718
9081
|
*
|
|
@@ -8750,7 +9113,7 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
8750
9113
|
* 创建多边形
|
|
8751
9114
|
*
|
|
8752
9115
|
* @beta
|
|
8753
|
-
* @param line -
|
|
9116
|
+
* @param line - 坐标���,连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
|
|
8754
9117
|
* @param color - 颜色,`null` 表示默认
|
|
8755
9118
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
8756
9119
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
@@ -9057,6 +9420,7 @@ declare class SCH_SelectControl {
|
|
|
9057
9420
|
*
|
|
9058
9421
|
* @public
|
|
9059
9422
|
* @param primitiveIds - 图元 ID
|
|
9423
|
+
* @returns 操作是否成功
|
|
9060
9424
|
*/
|
|
9061
9425
|
doSelectPrimitives(primitiveIds: string | Array<string>): Promise<boolean>;
|
|
9062
9426
|
/**
|
|
@@ -9068,14 +9432,17 @@ declare class SCH_SelectControl {
|
|
|
9068
9432
|
* @param nets - 网络名称
|
|
9069
9433
|
* @param highlight - 是否高亮
|
|
9070
9434
|
* @param select - 是否选中
|
|
9435
|
+
* @returns 操作是否成功
|
|
9071
9436
|
*/
|
|
9072
9437
|
doCrossProbeSelect(components?: Array<string>, pins?: Array<string>, nets?: Array<string>, highlight?: boolean, select?: boolean): boolean;
|
|
9073
9438
|
/**
|
|
9074
9439
|
* 清除选中
|
|
9075
9440
|
*
|
|
9076
9441
|
* @public
|
|
9442
|
+
* @returns 操作是否成功
|
|
9077
9443
|
*/
|
|
9078
9444
|
clearSelected(): boolean;
|
|
9445
|
+
/* Excluded from this release type: getCurrentMousePosition */
|
|
9079
9446
|
}
|
|
9080
9447
|
|
|
9081
9448
|
/**
|
|
@@ -9109,7 +9476,7 @@ declare class SYS_ClientUrl {
|
|
|
9109
9476
|
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
9110
9477
|
* @param url - 请求地址
|
|
9111
9478
|
* @param method - 请求方法
|
|
9112
|
-
* @param data -
|
|
9479
|
+
* @param data - 请求发送的数据,可以是直接数��或 {@link https://developer.mozilla.org/docs/Web/API/URLSearchParams | URLSearchParams} 对象,如果 method 为 `HEAD` 或 `GET`,本参数将被忽略
|
|
9113
9480
|
* @param options - 请求参数
|
|
9114
9481
|
* @param succeedCallFn - 请求成功后回调的函数
|
|
9115
9482
|
* @returns Fetch 的返回结果
|
|
@@ -9151,7 +9518,7 @@ declare class SYS_Environment {
|
|
|
9151
9518
|
*/
|
|
9152
9519
|
isEasyEDAProEdition(): boolean;
|
|
9153
9520
|
/**
|
|
9154
|
-
* 是否为嘉立创EDA
|
|
9521
|
+
* 是否为嘉立创EDA 专业版本
|
|
9155
9522
|
*
|
|
9156
9523
|
* @public
|
|
9157
9524
|
* @returns 是否为嘉立创EDA 专业版本
|
|
@@ -9234,7 +9601,7 @@ declare class SYS_FileManager {
|
|
|
9234
9601
|
* 修改文档源码
|
|
9235
9602
|
*
|
|
9236
9603
|
* @beta
|
|
9237
|
-
* @param source -
|
|
9604
|
+
* @param source - 文档源��
|
|
9238
9605
|
* @returns 是否修改成功,如果输入的文档源码格式错误,将返回 `false` 的结果
|
|
9239
9606
|
*/
|
|
9240
9607
|
setDocumentSource(source: string): Promise<boolean>;
|
|
@@ -9298,9 +9665,10 @@ declare class SYS_FileSystem {
|
|
|
9298
9665
|
* 打开读入文件窗口
|
|
9299
9666
|
*
|
|
9300
9667
|
* @beta
|
|
9668
|
+
* @param filenameExtensions - 文件扩展名
|
|
9301
9669
|
* @returns File 格式文件
|
|
9302
9670
|
*/
|
|
9303
|
-
openReadFileDialog(): Promise<File | undefined>;
|
|
9671
|
+
openReadFileDialog(filenameExtensions?: string | Array<string>): Promise<File | undefined>;
|
|
9304
9672
|
/**
|
|
9305
9673
|
* 保存文件
|
|
9306
9674
|
*
|
|
@@ -9363,7 +9731,7 @@ declare class SYS_I18n {
|
|
|
9363
9731
|
* @remarks
|
|
9364
9732
|
* 可以使用 `${1}` 格式的占位符表示参数;
|
|
9365
9733
|
*
|
|
9366
|
-
* 语言优先级:当前显示语言 \> 系统默认语言 \>
|
|
9734
|
+
* 语言优先级:当前显示语言 \> 系统默认语言 \> 数据集中第一个搜索到的包含该文本标签的语言 \> 文本标签(tag)
|
|
9367
9735
|
* @param tag - 文本标签,对应多语言文件键值对中的键
|
|
9368
9736
|
* @param namespace - 文本命名空间,在扩展运行环境内默认为扩展的 UUID,否则为系统默认命名空间
|
|
9369
9737
|
* @param language - 语言,`undefined` 为 EDA 当前的显示语言
|
|
@@ -9379,13 +9747,6 @@ declare class SYS_I18n {
|
|
|
9379
9747
|
* @returns 语言
|
|
9380
9748
|
*/
|
|
9381
9749
|
getCurrentLanguage(): Promise<string>;
|
|
9382
|
-
/**
|
|
9383
|
-
* 刷新当前语言环境
|
|
9384
|
-
*
|
|
9385
|
-
* @public
|
|
9386
|
-
* @remarks 使扩展内部语言环境与 EDA 当前语言环境同步
|
|
9387
|
-
*/
|
|
9388
|
-
flushCurrentLanguage(): Promise<void>;
|
|
9389
9750
|
/**
|
|
9390
9751
|
* 查询所有支持的语言
|
|
9391
9752
|
*
|
|
@@ -9446,6 +9807,8 @@ declare class SYS_IFrame {
|
|
|
9446
9807
|
*
|
|
9447
9808
|
* @beta
|
|
9448
9809
|
* @param htmlFileName - 需要加载的 HTML 文件在扩展包内的路径
|
|
9810
|
+
* @param width - 内联框架窗口的宽度
|
|
9811
|
+
* @param height - 内联框架窗口的高度
|
|
9449
9812
|
*/
|
|
9450
9813
|
openIFrame(htmlFileName: string, width?: number, height?: number): Promise<void>;
|
|
9451
9814
|
/**
|