@jlceda/pro-api-types 0.1.134 → 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 +33 -98
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -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
|
/**
|
|
@@ -1507,23 +1495,23 @@ declare enum EPCB_PrimitiveRegionRuleType {
|
|
|
1507
1495
|
*/
|
|
1508
1496
|
declare enum EPCB_PrimitiveStringAlignMode {
|
|
1509
1497
|
/** 左上 */
|
|
1510
|
-
LEFT_TOP =
|
|
1511
|
-
/** 中上 */
|
|
1512
|
-
CENTER_TOP = "CENTER_TOP",
|
|
1513
|
-
/** 右上 */
|
|
1514
|
-
RIGHT_TOP = "RIGHT_TOP",
|
|
1498
|
+
LEFT_TOP = 1,
|
|
1515
1499
|
/** 左中 */
|
|
1516
|
-
LEFT_MIDDLE =
|
|
1517
|
-
/** 中心 */
|
|
1518
|
-
CENTER = "CENTER_MIDDLE",
|
|
1519
|
-
/** 右中 */
|
|
1520
|
-
RIGHT_MIDDLE = "RIGHT_MIDDLE",
|
|
1500
|
+
LEFT_MIDDLE = 2,
|
|
1521
1501
|
/** 左下 */
|
|
1522
|
-
LEFT_BOTTOM =
|
|
1502
|
+
LEFT_BOTTOM = 3,
|
|
1503
|
+
/** 中上 */
|
|
1504
|
+
CENTER_TOP = 4,
|
|
1505
|
+
/** 中心 */
|
|
1506
|
+
CENTER = 5,
|
|
1523
1507
|
/** 中下 */
|
|
1524
|
-
CENTER_BOTTOM =
|
|
1508
|
+
CENTER_BOTTOM = 6,
|
|
1509
|
+
/** 右上 */
|
|
1510
|
+
RIGHT_TOP = 7,
|
|
1511
|
+
/** 右中 */
|
|
1512
|
+
RIGHT_MIDDLE = 8,
|
|
1525
1513
|
/** 右下 */
|
|
1526
|
-
RIGHT_BOTTOM =
|
|
1514
|
+
RIGHT_BOTTOM = 9
|
|
1527
1515
|
}
|
|
1528
1516
|
|
|
1529
1517
|
/**
|
|
@@ -3802,7 +3790,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3802
3790
|
private complexPolygon;
|
|
3803
3791
|
/** 网络名称 */
|
|
3804
3792
|
private net?;
|
|
3805
|
-
/**
|
|
3793
|
+
/** 填充模式 */
|
|
3806
3794
|
private fillMode?;
|
|
3807
3795
|
/** 线宽 */
|
|
3808
3796
|
private lineWidth?;
|
|
@@ -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 画布中创建图元
|
|
@@ -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
|
*
|
|
@@ -5797,10 +5768,6 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
5797
5768
|
private fontSize;
|
|
5798
5769
|
/** 线宽 */
|
|
5799
5770
|
private lineWidth;
|
|
5800
|
-
/** 是否加粗 */
|
|
5801
|
-
private bold;
|
|
5802
|
-
/** 是否斜体 */
|
|
5803
|
-
private italic;
|
|
5804
5771
|
/** 对齐模式 */
|
|
5805
5772
|
private alignMode;
|
|
5806
5773
|
/** 旋转角度 */
|
|
@@ -5813,7 +5780,7 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
5813
5780
|
private mirror;
|
|
5814
5781
|
/** 是否锁定 */
|
|
5815
5782
|
private primitiveLock;
|
|
5816
|
-
constructor(layer: TPCB_LayersOfImage, x: number, y: number, text: string, fontFamily?: string, fontSize?: number, lineWidth?: number,
|
|
5783
|
+
constructor(layer: TPCB_LayersOfImage, x: number, y: number, text: string, fontFamily?: string, fontSize?: number, lineWidth?: number, alignMode?: EPCB_PrimitiveStringAlignMode, rotation?: number, reverse?: boolean, expansion?: number, mirror?: boolean, primitiveLock?: boolean, primitiveId?: string);
|
|
5817
5784
|
/* Excluded from this release type: create */
|
|
5818
5785
|
/**
|
|
5819
5786
|
* 获取属性状态:图元类型
|
|
@@ -5878,20 +5845,6 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
5878
5845
|
* @returns 线宽
|
|
5879
5846
|
*/
|
|
5880
5847
|
getState_LineWidth(): number;
|
|
5881
|
-
/**
|
|
5882
|
-
* 获取属性状态:是否加粗
|
|
5883
|
-
*
|
|
5884
|
-
* @public
|
|
5885
|
-
* @returns 是否加粗
|
|
5886
|
-
*/
|
|
5887
|
-
getState_Bold(): boolean;
|
|
5888
|
-
/**
|
|
5889
|
-
* 获取属性状态:是否斜体
|
|
5890
|
-
*
|
|
5891
|
-
* @public
|
|
5892
|
-
* @returns 是否斜体
|
|
5893
|
-
*/
|
|
5894
|
-
getState_Italic(): boolean;
|
|
5895
5848
|
/**
|
|
5896
5849
|
* 获取属性状态:对齐模式
|
|
5897
5850
|
*
|
|
@@ -5990,22 +5943,6 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
5990
5943
|
* @returns 文本图元对象
|
|
5991
5944
|
*/
|
|
5992
5945
|
setState_LineWidth(lineWidth: number): IPCB_PrimitiveString;
|
|
5993
|
-
/**
|
|
5994
|
-
* 设置属性状态:是否加粗
|
|
5995
|
-
*
|
|
5996
|
-
* @beta
|
|
5997
|
-
* @param bold - 是否加粗
|
|
5998
|
-
* @returns 文本图元对象
|
|
5999
|
-
*/
|
|
6000
|
-
setState_Bold(bold: boolean): IPCB_PrimitiveString;
|
|
6001
|
-
/**
|
|
6002
|
-
* 设置属性状态:是否斜体
|
|
6003
|
-
*
|
|
6004
|
-
* @beta
|
|
6005
|
-
* @param italic - 是否斜体
|
|
6006
|
-
* @returns 文本图元对象
|
|
6007
|
-
*/
|
|
6008
|
-
setState_Italic(italic: boolean): IPCB_PrimitiveString;
|
|
6009
5946
|
/**
|
|
6010
5947
|
* 设置属性状态:对齐模式
|
|
6011
5948
|
*
|
|
@@ -6241,7 +6178,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
6241
6178
|
*
|
|
6242
6179
|
* @beta
|
|
6243
6180
|
* @param designRuleBlindViaName - 盲埋孔设计规则项名称
|
|
6244
|
-
* @returns
|
|
6181
|
+
* @returns 过孔���元对象
|
|
6245
6182
|
*/
|
|
6246
6183
|
setState_DesignRuleBlindViaName(designRuleBlindViaName: string | null): IPCB_PrimitiveVia;
|
|
6247
6184
|
/**
|
|
@@ -6896,7 +6833,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
|
|
|
6896
6833
|
*/
|
|
6897
6834
|
toSync(): ISCH_PrimitiveCircle;
|
|
6898
6835
|
/**
|
|
6899
|
-
*
|
|
6836
|
+
* 查询���元是否为异步图元
|
|
6900
6837
|
*
|
|
6901
6838
|
* @public
|
|
6902
6839
|
* @returns 是否为异步图元
|
|
@@ -8265,7 +8202,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
|
|
|
8265
8202
|
*/
|
|
8266
8203
|
setState_CornerRadius(cornerRadius: number): ISCH_PrimitiveRectangle;
|
|
8267
8204
|
/**
|
|
8268
|
-
*
|
|
8205
|
+
* 设置属性状态:旋转角度
|
|
8269
8206
|
*
|
|
8270
8207
|
* @beta
|
|
8271
8208
|
* @param rotation - 旋转角度
|
|
@@ -10071,7 +10008,7 @@ declare class PCB_Drc {
|
|
|
10071
10008
|
* @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
|
|
10072
10009
|
* await eda.pcb_Drc.createPadPairGroup('test',[['e0','e1']]) // 游离焊盘-游离焊盘
|
|
10073
10010
|
* await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','R1:2'],['R2:1','R2:2']]) // 器件焊盘 - 器件焊盘
|
|
10074
|
-
* await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','e0'],['R1:2','e1']]) //
|
|
10011
|
+
* await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','e0'],['R1:2','e1']]) // 器件焊盘 - 游离焊盘
|
|
10075
10012
|
*/
|
|
10076
10013
|
createPadPairGroup(padPairGroupName: string, padPairs: Array<[string, string]>): Promise<boolean>;
|
|
10077
10014
|
/**
|
|
@@ -11506,15 +11443,14 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
11506
11443
|
* @param holeOffsetY - 孔偏移 Y
|
|
11507
11444
|
* @param holeRotation - 孔相对于焊盘的旋转角度
|
|
11508
11445
|
* @param metallization - 是否金属化孔壁
|
|
11509
|
-
* @param
|
|
11446
|
+
* @param padType - 焊盘类型
|
|
11510
11447
|
* @param specialPad - 特殊焊盘外形
|
|
11511
11448
|
* @param solderMaskAndPasteMaskExpansion - 阻焊/助焊扩展,`null` 表示遵循规则
|
|
11512
11449
|
* @param heatWelding - 热焊优化参数
|
|
11513
11450
|
* @param primitiveLock - 是否锁定
|
|
11514
|
-
* @param padType - 焊盘类型
|
|
11515
11451
|
* @returns 焊盘图元对象
|
|
11516
11452
|
*/
|
|
11517
|
-
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>;
|
|
11518
11454
|
/**
|
|
11519
11455
|
* 删除焊盘
|
|
11520
11456
|
*
|
|
@@ -11544,7 +11480,6 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
11544
11480
|
holeOffsetY?: number;
|
|
11545
11481
|
holeRotation?: number;
|
|
11546
11482
|
metallization?: boolean;
|
|
11547
|
-
padFunction?: EPCB_PrimitivePadFunction;
|
|
11548
11483
|
specialPad?: TPCB_PrimitiveSpecialPadShape;
|
|
11549
11484
|
solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
|
|
11550
11485
|
heatWelding?: IPCB_PrimitivePadHeatWelding | null;
|
|
@@ -12836,7 +12771,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
12836
12771
|
uuid: string;
|
|
12837
12772
|
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
12838
12773
|
/**
|
|
12839
|
-
* 设置在扩展 API 中 BI
|
|
12774
|
+
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
12840
12775
|
*
|
|
12841
12776
|
* @beta
|
|
12842
12777
|
* @param component - 关联库器件
|
|
@@ -13745,7 +13680,7 @@ declare class SYS_FileManager {
|
|
|
13745
13680
|
getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
|
|
13746
13681
|
/* Excluded from this release type: getSymbolFileBySymbolUuid */
|
|
13747
13682
|
/**
|
|
13748
|
-
* 使用封装 UUID
|
|
13683
|
+
* 使用封装 UUID 获取封���文件
|
|
13749
13684
|
*
|
|
13750
13685
|
* @beta
|
|
13751
13686
|
* @remarks
|
|
@@ -14403,7 +14338,7 @@ declare class SYS_Timer {
|
|
|
14403
14338
|
*/
|
|
14404
14339
|
setIntervalTimer(id: string, timeout: number, callFn: (...args: any) => void, ...args: any): boolean;
|
|
14405
14340
|
/**
|
|
14406
|
-
*
|
|
14341
|
+
* 清除指定循环定时器
|
|
14407
14342
|
*
|
|
14408
14343
|
* @public
|
|
14409
14344
|
* @param id - 定时器 ID
|