@jlceda/pro-api-types 0.1.135 → 0.1.136
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 +21 -52
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -348,7 +348,7 @@ declare class DMT_Folder {
|
|
|
348
348
|
* @public
|
|
349
349
|
* @param teamUuid - 团队 UUID
|
|
350
350
|
* @param folderUuid - 文件夹 UUID
|
|
351
|
-
* @returns
|
|
351
|
+
* @returns 操作是否成功
|
|
352
352
|
*/
|
|
353
353
|
deleteFolder(teamUuid: string, folderUuid: string): Promise<boolean>;
|
|
354
354
|
}
|
|
@@ -655,7 +655,7 @@ declare class DMT_Schematic {
|
|
|
655
655
|
* 获取原理图图页的详细属性
|
|
656
656
|
*
|
|
657
657
|
* @beta
|
|
658
|
-
* @param schematicPageUuid -
|
|
658
|
+
* @param schematicPageUuid - ��理图图页 UUID
|
|
659
659
|
* @returns 原理图图页的详细属性,如若为 `undefined` 则获取失败
|
|
660
660
|
*/
|
|
661
661
|
getSchematicPageInfo(schematicPageUuid: string): Promise<IDMT_SchematicPageItem | undefined>;
|
|
@@ -733,10 +733,10 @@ declare class DMT_Schematic {
|
|
|
733
733
|
*/
|
|
734
734
|
declare class DMT_SelectControl {
|
|
735
735
|
/**
|
|
736
|
-
*
|
|
736
|
+
* 获取当前文档的属性
|
|
737
737
|
*
|
|
738
738
|
* @beta
|
|
739
|
-
* @remarks
|
|
739
|
+
* @remarks 仅在存在打开的工程后生效,将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID
|
|
740
740
|
* @returns 文档类型、UUID、所属工程的 UUID 组成的对象,如若为 `undefined` 则获取失败
|
|
741
741
|
*/
|
|
742
742
|
getCurrentDocumentInfo(): Promise<IDMT_EditorDocumentItem | undefined>;
|
|
@@ -1393,20 +1393,6 @@ declare enum EPCB_PrimitiveFillMode {
|
|
|
1393
1393
|
INNER_ELECTRICAL_LAYER = 2
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
-
/**
|
|
1397
|
-
* 焊盘功能
|
|
1398
|
-
*
|
|
1399
|
-
* @public
|
|
1400
|
-
*/
|
|
1401
|
-
declare enum EPCB_PrimitivePadFunction {
|
|
1402
|
-
/** 普通焊盘 */
|
|
1403
|
-
NORMAL = "Normal",
|
|
1404
|
-
/** 测试点 */
|
|
1405
|
-
TEST_POINT = "Test Point",
|
|
1406
|
-
/** 标识点 */
|
|
1407
|
-
MARK_POINT = "Mark Point"
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
1396
|
/**
|
|
1411
1397
|
* 焊盘热焊连接方式
|
|
1412
1398
|
*
|
|
@@ -1460,7 +1446,9 @@ declare enum EPCB_PrimitivePadType {
|
|
|
1460
1446
|
/** 焊盘 */
|
|
1461
1447
|
NORMAL = "NORMAL",
|
|
1462
1448
|
/** 测试点 */
|
|
1463
|
-
TEST = "TEST"
|
|
1449
|
+
TEST = "TEST",
|
|
1450
|
+
/** 标识点 */
|
|
1451
|
+
MARK_POINT = "Mark Point"
|
|
1464
1452
|
}
|
|
1465
1453
|
|
|
1466
1454
|
/**
|
|
@@ -3509,7 +3497,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3509
3497
|
*/
|
|
3510
3498
|
setState_SupplierId(supplierId: string | undefined): IPCB_PrimitiveComponent;
|
|
3511
3499
|
/**
|
|
3512
|
-
*
|
|
3500
|
+
* 设置属性状态:其它参数
|
|
3513
3501
|
*
|
|
3514
3502
|
* @beta
|
|
3515
3503
|
* @param otherProperty - 其它参数
|
|
@@ -4680,8 +4668,8 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4680
4668
|
protected holeRotation: number;
|
|
4681
4669
|
/** 是否金属化孔壁 */
|
|
4682
4670
|
protected metallization: boolean;
|
|
4683
|
-
/**
|
|
4684
|
-
protected
|
|
4671
|
+
/** 焊盘类型 */
|
|
4672
|
+
protected padType: EPCB_PrimitivePadType;
|
|
4685
4673
|
/** 特殊焊盘外形 */
|
|
4686
4674
|
protected specialPad?: TPCB_PrimitiveSpecialPadShape;
|
|
4687
4675
|
/** 阻焊/助焊扩展 */
|
|
@@ -4690,8 +4678,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4690
4678
|
protected heatWelding: IPCB_PrimitivePadHeatWelding | null;
|
|
4691
4679
|
/** 是否锁定 */
|
|
4692
4680
|
protected primitiveLock: boolean;
|
|
4693
|
-
/** 焊盘类型 */
|
|
4694
|
-
protected padType: EPCB_PrimitivePadType;
|
|
4695
4681
|
/* Excluded from this release type: __constructor */
|
|
4696
4682
|
/**
|
|
4697
4683
|
* 在 PCB 画布中创建图元
|
|
@@ -4785,7 +4771,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4785
4771
|
*/
|
|
4786
4772
|
getState_HoleOffsetY(): number;
|
|
4787
4773
|
/**
|
|
4788
|
-
*
|
|
4774
|
+
* 获取属性状态:孔相对于焊盘的旋转角度
|
|
4789
4775
|
*
|
|
4790
4776
|
* @public
|
|
4791
4777
|
* @returns 孔相对于焊盘的旋转角度
|
|
@@ -4799,12 +4785,12 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4799
4785
|
*/
|
|
4800
4786
|
getState_Metallization(): boolean;
|
|
4801
4787
|
/**
|
|
4802
|
-
*
|
|
4788
|
+
* 获取属性状态:焊盘类型
|
|
4803
4789
|
*
|
|
4804
4790
|
* @public
|
|
4805
|
-
* @returns
|
|
4791
|
+
* @returns 焊盘类型
|
|
4806
4792
|
*/
|
|
4807
|
-
|
|
4793
|
+
getState_PadType(): EPCB_PrimitivePadType;
|
|
4808
4794
|
/**
|
|
4809
4795
|
* 获取属性状态:特殊焊盘外形
|
|
4810
4796
|
*
|
|
@@ -4833,13 +4819,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4833
4819
|
* @returns 是否锁定
|
|
4834
4820
|
*/
|
|
4835
4821
|
getState_PrimitiveLock(): boolean;
|
|
4836
|
-
/**
|
|
4837
|
-
* 获取属性状态:焊盘类型
|
|
4838
|
-
*
|
|
4839
|
-
* @public
|
|
4840
|
-
* @returns 焊盘类型
|
|
4841
|
-
*/
|
|
4842
|
-
getState_PadType(): EPCB_PrimitivePadType;
|
|
4843
4822
|
/**
|
|
4844
4823
|
* 设置属性状态:层
|
|
4845
4824
|
*
|
|
@@ -4962,14 +4941,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4962
4941
|
* @returns 焊盘图元对象
|
|
4963
4942
|
*/
|
|
4964
4943
|
setState_Metallization(metallization: boolean): IPCB_PrimitivePad;
|
|
4965
|
-
/**
|
|
4966
|
-
* 设置属性状态:焊盘功能
|
|
4967
|
-
*
|
|
4968
|
-
* @beta
|
|
4969
|
-
* @param padFunction - 焊盘功能
|
|
4970
|
-
* @returns 焊盘图元对象
|
|
4971
|
-
*/
|
|
4972
|
-
setState_PadFunction(padFunction: EPCB_PrimitivePadFunction): IPCB_PrimitivePad;
|
|
4973
4944
|
/**
|
|
4974
4945
|
* 设置属性状态:特殊焊盘外形
|
|
4975
4946
|
*
|
|
@@ -5375,7 +5346,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
5375
5346
|
*/
|
|
5376
5347
|
setState_ComplexPolygon(complexPolygon: IPCB_Polygon): IPCB_PrimitivePour;
|
|
5377
5348
|
/**
|
|
5378
|
-
*
|
|
5349
|
+
* 设置属性状态:覆铜填充方法
|
|
5379
5350
|
*
|
|
5380
5351
|
* @beta
|
|
5381
5352
|
* @param pourFillMethod - 覆铜填充方法
|
|
@@ -6207,7 +6178,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
6207
6178
|
*
|
|
6208
6179
|
* @beta
|
|
6209
6180
|
* @param designRuleBlindViaName - 盲埋孔设计规则项名称
|
|
6210
|
-
* @returns
|
|
6181
|
+
* @returns 过孔���元对象
|
|
6211
6182
|
*/
|
|
6212
6183
|
setState_DesignRuleBlindViaName(designRuleBlindViaName: string | null): IPCB_PrimitiveVia;
|
|
6213
6184
|
/**
|
|
@@ -6862,7 +6833,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
|
|
|
6862
6833
|
*/
|
|
6863
6834
|
toSync(): ISCH_PrimitiveCircle;
|
|
6864
6835
|
/**
|
|
6865
|
-
*
|
|
6836
|
+
* 查询���元是否为异步图元
|
|
6866
6837
|
*
|
|
6867
6838
|
* @public
|
|
6868
6839
|
* @returns 是否为异步图元
|
|
@@ -11472,15 +11443,14 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
11472
11443
|
* @param holeOffsetY - 孔偏移 Y
|
|
11473
11444
|
* @param holeRotation - 孔相对于焊盘的旋转角度
|
|
11474
11445
|
* @param metallization - 是否金属化孔壁
|
|
11475
|
-
* @param
|
|
11446
|
+
* @param padType - 焊盘类型
|
|
11476
11447
|
* @param specialPad - 特殊焊盘外形
|
|
11477
11448
|
* @param solderMaskAndPasteMaskExpansion - 阻焊/助焊扩展,`null` 表示遵循规则
|
|
11478
11449
|
* @param heatWelding - 热焊优化参数
|
|
11479
11450
|
* @param primitiveLock - 是否锁定
|
|
11480
|
-
* @param padType - 焊盘类型
|
|
11481
11451
|
* @returns 焊盘图元对象
|
|
11482
11452
|
*/
|
|
11483
|
-
create(layer: TPCB_LayersOfPad, padNumber: string, x: number, y: number, rotation?: number, pad?: TPCB_PrimitivePadShape, net?: string, hole?: TPCB_PrimitivePadHole | null, holeOffsetX?: number, holeOffsetY?: number, holeRotation?: number, metallization?: boolean,
|
|
11453
|
+
create(layer: TPCB_LayersOfPad, padNumber: string, x: number, y: number, rotation?: number, pad?: TPCB_PrimitivePadShape, net?: string, hole?: TPCB_PrimitivePadHole | null, holeOffsetX?: number, holeOffsetY?: number, holeRotation?: number, metallization?: boolean, padType?: EPCB_PrimitivePadType, specialPad?: TPCB_PrimitiveSpecialPadShape, solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null, heatWelding?: IPCB_PrimitivePadHeatWelding | null, primitiveLock?: boolean): Promise<IPCB_PrimitivePad | undefined>;
|
|
11484
11454
|
/**
|
|
11485
11455
|
* 删除焊盘
|
|
11486
11456
|
*
|
|
@@ -11510,7 +11480,6 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
11510
11480
|
holeOffsetY?: number;
|
|
11511
11481
|
holeRotation?: number;
|
|
11512
11482
|
metallization?: boolean;
|
|
11513
|
-
padFunction?: EPCB_PrimitivePadFunction;
|
|
11514
11483
|
specialPad?: TPCB_PrimitiveSpecialPadShape;
|
|
11515
11484
|
solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
|
|
11516
11485
|
heatWelding?: IPCB_PrimitivePadHeatWelding | null;
|
|
@@ -13711,7 +13680,7 @@ declare class SYS_FileManager {
|
|
|
13711
13680
|
getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
|
|
13712
13681
|
/* Excluded from this release type: getSymbolFileBySymbolUuid */
|
|
13713
13682
|
/**
|
|
13714
|
-
* 使用封装 UUID
|
|
13683
|
+
* 使用封装 UUID 获取封���文件
|
|
13715
13684
|
*
|
|
13716
13685
|
* @beta
|
|
13717
13686
|
* @remarks
|
|
@@ -14677,7 +14646,7 @@ declare type TPCB_LayersOfPad = EPCB_LayerId.TOP | EPCB_LayerId.BOTTOM | EPCB_La
|
|
|
14677
14646
|
declare type TPCB_LayersOfRegion = TPCB_LayersOfCopper | EPCB_LayerId.MULTI;
|
|
14678
14647
|
|
|
14679
14648
|
/**
|
|
14680
|
-
*
|
|
14649
|
+
* 内层允许设置的图层类型
|
|
14681
14650
|
*
|
|
14682
14651
|
* @public
|
|
14683
14652
|
*/
|