@jlceda/pro-api-types 0.1.135 → 0.1.137

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.
Files changed (2) hide show
  1. package/index.d.ts +493 -65
  2. 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
  }
@@ -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 仅在存在打���的工程后生效,将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID
739
+ * @remarks 仅在存在打开的工程后生效,将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID
740
740
  * @returns 文档类型、UUID、所属工程的 UUID 组成的对象,如若为 `undefined` 则获取失败
741
741
  */
742
742
  getCurrentDocumentInfo(): Promise<IDMT_EditorDocumentItem | undefined>;
@@ -837,6 +837,7 @@ declare class EDA {
837
837
  pcb_Net: PCB_Net;
838
838
  pcb_Primitive: PCB_Primitive;
839
839
  pcb_PrimitiveArc: PCB_PrimitiveArc;
840
+ pcb_PrimitiveAttribute: PCB_PrimitiveAttribute;
840
841
  pcb_PrimitiveComponent: PCB_PrimitiveComponent;
841
842
  pcb_PrimitiveDimension: PCB_PrimitiveDimension;
842
843
  pcb_PrimitiveFill: PCB_PrimitiveFill;
@@ -1393,20 +1394,6 @@ declare enum EPCB_PrimitiveFillMode {
1393
1394
  INNER_ELECTRICAL_LAYER = 2
1394
1395
  }
1395
1396
 
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
1397
  /**
1411
1398
  * 焊盘热焊连接方式
1412
1399
  *
@@ -1460,7 +1447,9 @@ declare enum EPCB_PrimitivePadType {
1460
1447
  /** 焊盘 */
1461
1448
  NORMAL = "NORMAL",
1462
1449
  /** 测试点 */
1463
- TEST = "TEST"
1450
+ TEST = "TEST",
1451
+ /** 标识点 */
1452
+ MARK_POINT = "Mark Point"
1464
1453
  }
1465
1454
 
1466
1455
  /**
@@ -1561,7 +1550,9 @@ declare enum EPCB_PrimitiveType {
1561
1550
  /** 覆铜填充 */
1562
1551
  POURED = "Poured",
1563
1552
  /** 文本 */
1564
- STRING = "String"
1553
+ STRING = "String",
1554
+ /** 属性 */
1555
+ ATTRIBUTE = "Attribute"
1565
1556
  }
1566
1557
 
1567
1558
  /**
@@ -1733,7 +1724,13 @@ declare enum ESCH_PrimitiveType {
1733
1724
  /** 文本 */
1734
1725
  TEXT = "Text",
1735
1726
  /** 导线 */
1736
- WIRE = "Wire"
1727
+ WIRE = "Wire",
1728
+ /** 二进制内嵌对象 */
1729
+ OBJECT = "Object",
1730
+ /** 三阶贝塞尔线条 */
1731
+ BEZIER = "Bezier",
1732
+ /** 椭圆 */
1733
+ ELLIPSE = "Ellipse"
1737
1734
  }
1738
1735
 
1739
1736
  /**
@@ -3199,6 +3196,340 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
3199
3196
  getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
3200
3197
  }
3201
3198
 
3199
+ /**
3200
+ * 属性图元
3201
+ *
3202
+ * @public
3203
+ */
3204
+ declare class IPCB_PrimitiveAttribute implements IPCB_Primitive {
3205
+ /** 异步 */
3206
+ private async;
3207
+ /** 图元类型 */
3208
+ private readonly primitiveType;
3209
+ /** 图元 ID */
3210
+ private primitiveId;
3211
+ /** 关联的父图元 ID */
3212
+ private parentPrimitiveId;
3213
+ /** 层 */
3214
+ private layer;
3215
+ /** 坐标 X */
3216
+ private x;
3217
+ /** 坐标 Y */
3218
+ private y;
3219
+ /** Key */
3220
+ private key;
3221
+ /** Value */
3222
+ private value;
3223
+ /** Key 是否可见 */
3224
+ private keyVisible;
3225
+ /** Value 是否可见 */
3226
+ private valueVisible;
3227
+ /** 字体 */
3228
+ private fontFamily;
3229
+ /** 字号 */
3230
+ private fontSize;
3231
+ /** 线宽 */
3232
+ private lineWidth;
3233
+ /** 对齐模式 */
3234
+ private alignMode;
3235
+ /** 旋转角度 */
3236
+ private rotation;
3237
+ /** 是否反相 */
3238
+ private reverse;
3239
+ /** 反相扩展 */
3240
+ private expansion;
3241
+ /** 是否镜像 */
3242
+ private mirror;
3243
+ /** 是否锁定 */
3244
+ private primitiveLock;
3245
+ constructor(layer: TPCB_LayersOfImage, x: number | null, y: number | null, key: string, value: string, keyVisible: boolean, valueVisible: boolean, fontFamily: string, fontSize: number, lineWidth: number, alignMode: EPCB_PrimitiveStringAlignMode, rotation: number, reverse: boolean, expansion: number, mirror: boolean, primitiveLock: boolean, primitiveId: string, parentPrimitiveId: string);
3246
+ /* Excluded from this release type: create */
3247
+ /**
3248
+ * 获取属性状态:图元类型
3249
+ *
3250
+ * @public
3251
+ * @returns 图元类型
3252
+ */
3253
+ getState_PrimitiveType(): EPCB_PrimitiveType;
3254
+ /**
3255
+ * 获取属性状态:图元 ID
3256
+ *
3257
+ * @public
3258
+ * @returns 图元 ID
3259
+ */
3260
+ getState_PrimitiveId(): string;
3261
+ /**
3262
+ * 获取属性状态:关联的父图元 ID
3263
+ *
3264
+ * @public
3265
+ * @returns 关联的父图元 ID
3266
+ */
3267
+ getState_ParentPrimitiveId(): string;
3268
+ /**
3269
+ * 获取属性状态:层
3270
+ *
3271
+ * @public
3272
+ * @returns 层
3273
+ */
3274
+ getState_Layer(): TPCB_LayersOfImage;
3275
+ /**
3276
+ * 获取属性状态:坐标 X
3277
+ *
3278
+ * @public
3279
+ * @returns 坐标 X
3280
+ */
3281
+ getState_X(): number | null;
3282
+ /**
3283
+ * 获取属性状态:坐标 Y
3284
+ *
3285
+ * @public
3286
+ * @returns 坐标 Y
3287
+ */
3288
+ getState_Y(): number | null;
3289
+ /**
3290
+ * 获取属性状态:Key
3291
+ *
3292
+ * @public
3293
+ * @returns Key
3294
+ */
3295
+ getState_Key(): string;
3296
+ /**
3297
+ * 获取属性状态:Value
3298
+ *
3299
+ * @public
3300
+ * @returns Value
3301
+ */
3302
+ getState_Value(): string;
3303
+ /**
3304
+ * 获取属性状态:Key 是否可见
3305
+ *
3306
+ * @public
3307
+ * @returns Key 是否可见
3308
+ */
3309
+ getState_KeyVisible(): boolean;
3310
+ /**
3311
+ * 获取属性状态:Value 是否可见
3312
+ *
3313
+ * @public
3314
+ * @returns Value 是否可见
3315
+ */
3316
+ getState_ValueVisible(): boolean;
3317
+ /**
3318
+ * 获取属性状态:字体
3319
+ *
3320
+ * @public
3321
+ * @returns 字体
3322
+ */
3323
+ getState_FontFamily(): string;
3324
+ /**
3325
+ * 获取属性状态:字号
3326
+ *
3327
+ * @public
3328
+ * @returns 字号
3329
+ */
3330
+ getState_FontSize(): number;
3331
+ /**
3332
+ * 获取属性状态:线宽
3333
+ *
3334
+ * @public
3335
+ * @returns 线宽
3336
+ */
3337
+ getState_LineWidth(): number;
3338
+ /**
3339
+ * 获取属性状态:对齐模式
3340
+ *
3341
+ * @public
3342
+ * @returns 对齐模式
3343
+ */
3344
+ getState_AlignMode(): EPCB_PrimitiveStringAlignMode;
3345
+ /**
3346
+ * 获取属性状态:旋转角度
3347
+ *
3348
+ * @public
3349
+ * @returns 旋转角度
3350
+ */
3351
+ getState_Rotation(): number;
3352
+ /**
3353
+ * 获取属性状态:是否反相
3354
+ *
3355
+ * @public
3356
+ * @returns 是否反相
3357
+ */
3358
+ getState_Reverse(): boolean;
3359
+ /**
3360
+ * 获取属性状态:反相扩展
3361
+ *
3362
+ * @public
3363
+ * @returns 反相扩展
3364
+ */
3365
+ getState_Expansion(): number;
3366
+ /**
3367
+ * 获取属性状态:是否镜像
3368
+ *
3369
+ * @public
3370
+ * @returns 是否镜像
3371
+ */
3372
+ getState_Mirror(): boolean;
3373
+ /**
3374
+ * 获取属性状态:是否锁定
3375
+ *
3376
+ * @public
3377
+ * @returns 是否锁定
3378
+ */
3379
+ getState_PrimitiveLock(): boolean;
3380
+ /**
3381
+ * 设置属性状态:层
3382
+ *
3383
+ * @beta
3384
+ * @param layer - 层
3385
+ * @returns 属性图元对象
3386
+ */
3387
+ setState_Layer(layer: TPCB_LayersOfImage): IPCB_PrimitiveAttribute;
3388
+ /**
3389
+ * 设置属性状态:坐标 X
3390
+ *
3391
+ * @beta
3392
+ * @param x - 坐标 X
3393
+ * @returns 属性图元对象
3394
+ */
3395
+ setState_X(x: number): IPCB_PrimitiveAttribute;
3396
+ /**
3397
+ * 设置属性状态:坐标 Y
3398
+ *
3399
+ * @beta
3400
+ * @param y - 坐标 Y
3401
+ * @returns 属性图元对象
3402
+ */
3403
+ setState_Y(y: number): IPCB_PrimitiveAttribute;
3404
+ /**
3405
+ * 设置属性状态:Key
3406
+ *
3407
+ * @beta
3408
+ * @param key - Key
3409
+ * @returns 属性图元对象
3410
+ */
3411
+ setState_Key(key: string): IPCB_PrimitiveAttribute;
3412
+ /**
3413
+ * 设置属性状态:Value
3414
+ *
3415
+ * @beta
3416
+ * @param value - Value
3417
+ * @returns 属性图元对象
3418
+ */
3419
+ setState_Value(value: string): IPCB_PrimitiveAttribute;
3420
+ /**
3421
+ * 设置属性状态:Key 是否可见
3422
+ *
3423
+ * @beta
3424
+ * @param keyVisible - Key 是否可见
3425
+ * @returns 属性图元对象
3426
+ */
3427
+ setState_KeyVisible(keyVisible: boolean): IPCB_PrimitiveAttribute;
3428
+ /**
3429
+ * 设置属性状态:Value 是否可见
3430
+ *
3431
+ * @beta
3432
+ * @param valueVisible - Value 是否可见
3433
+ * @returns 属性图元对象
3434
+ */
3435
+ setState_ValueVisible(valueVisible: boolean): IPCB_PrimitiveAttribute;
3436
+ /**
3437
+ * 设置属性状态:字体
3438
+ *
3439
+ * @beta
3440
+ * @param fontFamily - 字体
3441
+ * @returns 属性图元对象
3442
+ */
3443
+ setState_FontFamily(fontFamily: string): IPCB_PrimitiveAttribute;
3444
+ /**
3445
+ * 设置属性状态:字号
3446
+ *
3447
+ * @beta
3448
+ * @param fontSize - 字号
3449
+ * @returns 属性图元对象
3450
+ */
3451
+ setState_FontSize(fontSize: number): IPCB_PrimitiveAttribute;
3452
+ /**
3453
+ * 设置属性状态:线宽
3454
+ *
3455
+ * @beta
3456
+ * @param lineWidth - 线宽
3457
+ * @returns 属性图元对象
3458
+ */
3459
+ setState_LineWidth(lineWidth: number): IPCB_PrimitiveAttribute;
3460
+ /**
3461
+ * 设置属性状态:对齐模式
3462
+ *
3463
+ * @beta
3464
+ * @param alignMode - 对齐模式
3465
+ * @returns 属性图元对象
3466
+ */
3467
+ setState_AlignMode(alignMode: EPCB_PrimitiveStringAlignMode): IPCB_PrimitiveAttribute;
3468
+ /**
3469
+ * 设置属性状态:旋转角度
3470
+ *
3471
+ * @beta
3472
+ * @param rotation - 旋转角度
3473
+ * @returns 属性图元对象
3474
+ */
3475
+ setState_Rotation(rotation: number): IPCB_PrimitiveAttribute;
3476
+ /**
3477
+ * 设置属性状态:是否反相
3478
+ *
3479
+ * @beta
3480
+ * @param reverse - 是否反相
3481
+ * @returns 属性图元对象
3482
+ */
3483
+ setState_Reverse(reverse: boolean): IPCB_PrimitiveAttribute;
3484
+ /**
3485
+ * 设置属性状态:反相扩展
3486
+ *
3487
+ * @beta
3488
+ * @param expansion - 反相扩展
3489
+ * @returns 属性图元对象
3490
+ */
3491
+ setState_Expansion(expansion: number): IPCB_PrimitiveAttribute;
3492
+ /**
3493
+ * 设置属性状态:是否镜像
3494
+ *
3495
+ * @beta
3496
+ * @param mirror - 是否镜像
3497
+ * @returns 属性图元对象
3498
+ */
3499
+ setState_Mirror(mirror: boolean): IPCB_PrimitiveAttribute;
3500
+ /**
3501
+ * 设置属性状态:是否锁定
3502
+ *
3503
+ * @beta
3504
+ * @param primitiveLock - 是否锁定
3505
+ * @returns 属性图元对象
3506
+ */
3507
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveAttribute;
3508
+ /**
3509
+ * 将图元转换为异步图元
3510
+ *
3511
+ * @public
3512
+ * @returns 属性图元对象
3513
+ */
3514
+ toAsync(): IPCB_PrimitiveAttribute;
3515
+ /**
3516
+ * 将图元转换为同步图元
3517
+ *
3518
+ * @public
3519
+ * @returns 属性图元对象
3520
+ */
3521
+ toSync(): IPCB_PrimitiveAttribute;
3522
+ /**
3523
+ * 查询图元是否为异步图元
3524
+ *
3525
+ * @public
3526
+ * @returns 是否为异步图元
3527
+ */
3528
+ isAsync(): boolean;
3529
+ /* Excluded from this release type: reset */
3530
+ /* Excluded from this release type: done */
3531
+ }
3532
+
3202
3533
  /**
3203
3534
  * 器件图元
3204
3535
  *
@@ -3509,7 +3840,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
3509
3840
  */
3510
3841
  setState_SupplierId(supplierId: string | undefined): IPCB_PrimitiveComponent;
3511
3842
  /**
3512
- * 设置属性状态:其���参数
3843
+ * 设置属性状态:其它参数
3513
3844
  *
3514
3845
  * @beta
3515
3846
  * @param otherProperty - 其它参数
@@ -3639,7 +3970,7 @@ declare class IPCB_PrimitiveDimension implements IPCB_Primitive {
3639
3970
  * 获取属性状态:尺寸标注类型
3640
3971
  *
3641
3972
  * @public
3642
- * @returns 尺寸标注类型
3973
+ * @returns 尺寸���注类型
3643
3974
  */
3644
3975
  getState_DimensionType(): EPCB_PrimitiveDimensionType;
3645
3976
  /**
@@ -4680,8 +5011,8 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4680
5011
  protected holeRotation: number;
4681
5012
  /** 是否金属化孔壁 */
4682
5013
  protected metallization: boolean;
4683
- /** 焊盘功能 */
4684
- protected padFunction: EPCB_PrimitivePadFunction;
5014
+ /** 焊盘类型 */
5015
+ protected padType: EPCB_PrimitivePadType;
4685
5016
  /** 特殊焊盘外形 */
4686
5017
  protected specialPad?: TPCB_PrimitiveSpecialPadShape;
4687
5018
  /** 阻焊/助焊扩展 */
@@ -4690,8 +5021,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4690
5021
  protected heatWelding: IPCB_PrimitivePadHeatWelding | null;
4691
5022
  /** 是否锁定 */
4692
5023
  protected primitiveLock: boolean;
4693
- /** 焊盘类型 */
4694
- protected padType: EPCB_PrimitivePadType;
4695
5024
  /* Excluded from this release type: __constructor */
4696
5025
  /**
4697
5026
  * 在 PCB 画布中创建图元
@@ -4785,7 +5114,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4785
5114
  */
4786
5115
  getState_HoleOffsetY(): number;
4787
5116
  /**
4788
- * 获取属性状态:孔��对于焊盘的旋转角度
5117
+ * 获取属性状态:孔相对于焊盘的旋转角度
4789
5118
  *
4790
5119
  * @public
4791
5120
  * @returns 孔相对于焊盘的旋转角度
@@ -4799,12 +5128,12 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4799
5128
  */
4800
5129
  getState_Metallization(): boolean;
4801
5130
  /**
4802
- * 获取属性状态:焊盘功能
5131
+ * 获取属性状态:焊盘类型
4803
5132
  *
4804
5133
  * @public
4805
- * @returns 焊盘功能
5134
+ * @returns 焊盘类型
4806
5135
  */
4807
- getState_PadFunction(): EPCB_PrimitivePadFunction;
5136
+ getState_PadType(): EPCB_PrimitivePadType;
4808
5137
  /**
4809
5138
  * 获取属性状态:特殊焊盘外形
4810
5139
  *
@@ -4833,13 +5162,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4833
5162
  * @returns 是否锁定
4834
5163
  */
4835
5164
  getState_PrimitiveLock(): boolean;
4836
- /**
4837
- * 获取属性状态:焊盘类型
4838
- *
4839
- * @public
4840
- * @returns 焊盘类型
4841
- */
4842
- getState_PadType(): EPCB_PrimitivePadType;
4843
5165
  /**
4844
5166
  * 设置属性状态:层
4845
5167
  *
@@ -4962,14 +5284,6 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4962
5284
  * @returns 焊盘图元对象
4963
5285
  */
4964
5286
  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
5287
  /**
4974
5288
  * 设置属性状态:特殊焊盘外形
4975
5289
  *
@@ -5375,7 +5689,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
5375
5689
  */
5376
5690
  setState_ComplexPolygon(complexPolygon: IPCB_Polygon): IPCB_PrimitivePour;
5377
5691
  /**
5378
- * 设置属��状态:覆铜填充方法
5692
+ * 设置属性状态:覆铜填充方法
5379
5693
  *
5380
5694
  * @beta
5381
5695
  * @param pourFillMethod - 覆铜填充方法
@@ -5457,7 +5771,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
5457
5771
  * @returns 覆铜边框图元对象
5458
5772
  */
5459
5773
  done(): Promise<IPCB_PrimitivePour>;
5460
- /* Excluded from this release type: getCopperRegion */
5774
+ /* Excluded from this release type: getCopperRegions */
5461
5775
  /* Excluded from this release type: rebuildCopperRegion */
5462
5776
  /**
5463
5777
  * 转换到:填充图元(默认是填充区域)
@@ -8791,7 +9105,7 @@ declare interface ITableColum {
8791
9105
  */
8792
9106
  declare class LIB_3DModel {
8793
9107
  /**
8794
- * 创建 3D 模型
9108
+ * ��建 3D 模型
8795
9109
  *
8796
9110
  * @beta
8797
9111
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
@@ -9641,7 +9955,7 @@ declare class PCB_Document {
9641
9955
  y: number;
9642
9956
  }>;
9643
9957
  /**
9644
- * 获取画布原点相对于数据原点的偏移坐标
9958
+ * 获取画布原点相对于数据原��的偏移坐标
9645
9959
  *
9646
9960
  * @public
9647
9961
  * @remarks
@@ -10066,7 +10380,7 @@ declare class PCB_Drc {
10066
10380
  * @returns 操作是否成功
10067
10381
  * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
10068
10382
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
10069
- * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
10383
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // ���件焊盘 - 器件焊盘
10070
10384
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','e1']) // 器件焊盘 - 游离焊盘
10071
10385
  */
10072
10386
  addPadPairToPadPairGroup(padPairGroupName: string, padPair: [string, string] | Array<[string, string]>): Promise<boolean>;
@@ -10909,6 +11223,21 @@ declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
10909
11223
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveArc>>;
10910
11224
  }
10911
11225
 
11226
+ /**
11227
+ * PCB & 封装 / 属性图元类
11228
+ *
11229
+ * @public
11230
+ */
11231
+ declare class PCB_PrimitiveAttribute implements IPCB_PrimitiveAPI {
11232
+ /* Excluded from this release type: create */
11233
+ /* Excluded from this release type: delete */
11234
+ /* Excluded from this release type: modify */
11235
+ /* Excluded from this release type: get */
11236
+ /* Excluded from this release type: get */
11237
+ /* Excluded from this release type: getAllPrimitiveId */
11238
+ /* Excluded from this release type: getAll */
11239
+ }
11240
+
10912
11241
  /**
10913
11242
  * PCB & 封装 / 器件图元类
10914
11243
  *
@@ -11472,15 +11801,14 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
11472
11801
  * @param holeOffsetY - 孔偏移 Y
11473
11802
  * @param holeRotation - 孔相对于焊盘的旋转角度
11474
11803
  * @param metallization - 是否金属化孔壁
11475
- * @param padFunction - 焊盘功能
11804
+ * @param padType - 焊盘类型
11476
11805
  * @param specialPad - 特殊焊盘外形
11477
11806
  * @param solderMaskAndPasteMaskExpansion - 阻焊/助焊扩展,`null` 表示遵循规则
11478
11807
  * @param heatWelding - 热焊优化参数
11479
11808
  * @param primitiveLock - 是否锁定
11480
- * @param padType - 焊盘类型
11481
11809
  * @returns 焊盘图元对象
11482
11810
  */
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, padFunction?: EPCB_PrimitivePadFunction, specialPad?: TPCB_PrimitiveSpecialPadShape, solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null, heatWelding?: IPCB_PrimitivePadHeatWelding | null, primitiveLock?: boolean, padType?: EPCB_PrimitivePadType): Promise<IPCB_PrimitivePad | undefined>;
11811
+ 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
11812
  /**
11485
11813
  * 删除焊盘
11486
11814
  *
@@ -11510,7 +11838,6 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
11510
11838
  holeOffsetY?: number;
11511
11839
  holeRotation?: number;
11512
11840
  metallization?: boolean;
11513
- padFunction?: EPCB_PrimitivePadFunction;
11514
11841
  specialPad?: TPCB_PrimitiveSpecialPadShape;
11515
11842
  solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
11516
11843
  heatWelding?: IPCB_PrimitivePadHeatWelding | null;
@@ -13787,14 +14114,115 @@ declare class SYS_FileSystem {
13787
14114
  * @param fileName - 文件名称
13788
14115
  */
13789
14116
  saveFile(fileData: File | Blob, fileName?: string): Promise<void>;
13790
- /* Excluded from this release type: readFileFromFileSystem */
13791
- /* Excluded from this release type: saveFileToFileSystem */
13792
- /* Excluded from this release type: listFilesOfFileSystem */
13793
- /* Excluded from this release type: deleteFileInFileSystem */
13794
- /* Excluded from this release type: getEdaPath */
13795
- /* Excluded from this release type: getDocumentsPath */
13796
- /* Excluded from this release type: getLibrariesPaths */
13797
- /* Excluded from this release type: getProjectsPaths */
14117
+ /**
14118
+ * 从文件系统读取文件
14119
+ *
14120
+ * @beta
14121
+ * @remarks
14122
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14123
+ *
14124
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14125
+ * @param uri - 文件资源定位符,需要包含完整的文件名称的绝对路径
14126
+ * @returns File 格式文件
14127
+ */
14128
+ readFileFromFileSystem(uri: string): Promise<File | undefined>;
14129
+ /**
14130
+ * 向文件系统写入文件
14131
+ *
14132
+ * @beta
14133
+ * @remarks
14134
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14135
+ *
14136
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14137
+ * @param uri - 文件资源定位符
14138
+ *
14139
+ * 如若结尾为斜杠 `/`(Windows 为反斜杠 `\`),则识别为文件夹;
14140
+ *
14141
+ * 如若结尾非斜杠,则识别为完整文件名,此时 `fileName` 参数将被忽略
14142
+ * @param fileData - 文件数据
14143
+ * @param fileName - 文件名称
14144
+ * @param force - 强制写入(文件存在则覆盖文件)
14145
+ * @returns 写入操作是否成功,如若不允许覆盖但文件已存在将返回 `false` 的结果
14146
+ */
14147
+ saveFileToFileSystem(uri: string, fileData: File | Blob, fileName?: string, force?: boolean): Promise<boolean>;
14148
+ /**
14149
+ * 查看文件系统路径下的文件列表
14150
+ *
14151
+ * @beta
14152
+ * @remarks
14153
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14154
+ *
14155
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14156
+ * @param folderPath - 目录路径
14157
+ * @param recursive - 是否递归获取所有子文件
14158
+ * @returns 当前目录下的文件列表
14159
+ */
14160
+ listFilesOfFileSystem(folderPath: string, recursive?: boolean): Promise<Array<ISYS_FileSystemFileList>>;
14161
+ /**
14162
+ * 删除文件系统内的文件
14163
+ *
14164
+ * @beta
14165
+ * @remarks
14166
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14167
+ *
14168
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14169
+ * @param uri - 文件资源定位符
14170
+ *
14171
+ * 如若结尾为斜杠 `/`(Windows 为反斜杠 `\`),则识别为文件夹;
14172
+ *
14173
+ * 如若结尾非斜杠,则识别为完整文件名,此时 `fileName` 参数将被忽略
14174
+ * @param force - 强制删除文件夹(当欲删除的是文件夹且文件夹内有文件时,是否强制删除该文件夹)
14175
+ * @returns 删除操作是否成功
14176
+ */
14177
+ deleteFileInFileSystem(uri: string, force?: boolean): Promise<boolean>;
14178
+ /**
14179
+ * 获取 EDA 文档目录路径
14180
+ *
14181
+ * @beta
14182
+ * @remarks
14183
+ * 返回的路径中,结尾不包含斜杠 `/`(或反斜杠 `\`)
14184
+ *
14185
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14186
+ *
14187
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14188
+ * @returns EDA 文档目录路径
14189
+ */
14190
+ getEdaPath(): Promise<string>;
14191
+ /**
14192
+ * 获取文档目录路径
14193
+ *
14194
+ * @beta
14195
+ * @remarks
14196
+ * 返回的路径中,结尾不包含斜杠 `/`(或反斜杠 `\`)
14197
+ *
14198
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14199
+ *
14200
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14201
+ * @returns 文档目录路径
14202
+ */
14203
+ getDocumentsPath(): Promise<string>;
14204
+ /**
14205
+ * 获取库目录路径
14206
+ *
14207
+ * @beta
14208
+ * @remarks
14209
+ * 注意 1:本接口仅全离线客户端有效,在浏览器环境内调用将始终 `throw Error`
14210
+ *
14211
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14212
+ * @returns 库目录路径数组
14213
+ */
14214
+ getLibrariesPaths(): Promise<Array<string>>;
14215
+ /**
14216
+ * 获取工程目录路径
14217
+ *
14218
+ * @beta
14219
+ * @remarks
14220
+ * 注意 1:本接口仅离线客户端有效,在浏览器环境内调用将始终 `throw Error`
14221
+ *
14222
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14223
+ * @returns 工程目录路径数组
14224
+ */
14225
+ getProjectsPaths(): Promise<Array<string>>;
13798
14226
  }
13799
14227
 
13800
14228
  /**
@@ -14269,7 +14697,7 @@ declare class SYS_ShortcutKey {
14269
14697
  }
14270
14698
 
14271
14699
  /**
14272
- * 系统 / 存储类
14700
+ * 系统 / 存���类
14273
14701
  *
14274
14702
  * @public
14275
14703
  * @remarks 可以进行扩展的用户配置存储、浏览器本地存储的操作接口
@@ -14663,7 +15091,7 @@ declare type TPCB_LayersOfLine = TPCB_LayersOfCopper | TPCB_LayersOfCustom | EPC
14663
15091
  declare type TPCB_LayersOfObject = EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.DOCUMENT;
14664
15092
 
14665
15093
  /**
14666
- * 焊盘所属层
15094
+ * 焊盘所���层
14667
15095
  *
14668
15096
  * @public
14669
15097
  */
@@ -14677,7 +15105,7 @@ declare type TPCB_LayersOfPad = EPCB_LayerId.TOP | EPCB_LayerId.BOTTOM | EPCB_La
14677
15105
  declare type TPCB_LayersOfRegion = TPCB_LayersOfCopper | EPCB_LayerId.MULTI;
14678
15106
 
14679
15107
  /**
14680
- * ��层允许设置的图层类型
15108
+ * 内层允许设置的图层类型
14681
15109
  *
14682
15110
  * @public
14683
15111
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.135",
3
+ "version": "0.1.137",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [