@jlceda/pro-api-types 0.1.136 → 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 +481 -22
  2. 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 - ��理图图页 UUID
658
+ * @param schematicPageUuid - 原理图图页 UUID
659
659
  * @returns 原理图图页的详细属性,如若为 `undefined` 则获取失败
660
660
  */
661
661
  getSchematicPageInfo(schematicPageUuid: string): Promise<IDMT_SchematicPageItem | undefined>;
@@ -733,7 +733,7 @@ declare class DMT_Schematic {
733
733
  */
734
734
  declare class DMT_SelectControl {
735
735
  /**
736
- * 获取当前文档的属性
736
+ * 获取当前文档的属��
737
737
  *
738
738
  * @beta
739
739
  * @remarks 仅在存在打开的工程后生效,将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID
@@ -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;
@@ -1549,7 +1550,9 @@ declare enum EPCB_PrimitiveType {
1549
1550
  /** 覆铜填充 */
1550
1551
  POURED = "Poured",
1551
1552
  /** 文本 */
1552
- STRING = "String"
1553
+ STRING = "String",
1554
+ /** 属性 */
1555
+ ATTRIBUTE = "Attribute"
1553
1556
  }
1554
1557
 
1555
1558
  /**
@@ -1721,7 +1724,13 @@ declare enum ESCH_PrimitiveType {
1721
1724
  /** 文本 */
1722
1725
  TEXT = "Text",
1723
1726
  /** 导线 */
1724
- WIRE = "Wire"
1727
+ WIRE = "Wire",
1728
+ /** 二进制内嵌对象 */
1729
+ OBJECT = "Object",
1730
+ /** 三阶贝塞尔线条 */
1731
+ BEZIER = "Bezier",
1732
+ /** 椭圆 */
1733
+ ELLIPSE = "Ellipse"
1725
1734
  }
1726
1735
 
1727
1736
  /**
@@ -3187,6 +3196,340 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
3187
3196
  getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
3188
3197
  }
3189
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
+
3190
3533
  /**
3191
3534
  * 器件图元
3192
3535
  *
@@ -3627,7 +3970,7 @@ declare class IPCB_PrimitiveDimension implements IPCB_Primitive {
3627
3970
  * 获取属性状态:尺寸标注类型
3628
3971
  *
3629
3972
  * @public
3630
- * @returns 尺寸标注类型
3973
+ * @returns 尺寸���注类型
3631
3974
  */
3632
3975
  getState_DimensionType(): EPCB_PrimitiveDimensionType;
3633
3976
  /**
@@ -5428,7 +5771,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
5428
5771
  * @returns 覆铜边框图元对象
5429
5772
  */
5430
5773
  done(): Promise<IPCB_PrimitivePour>;
5431
- /* Excluded from this release type: getCopperRegion */
5774
+ /* Excluded from this release type: getCopperRegions */
5432
5775
  /* Excluded from this release type: rebuildCopperRegion */
5433
5776
  /**
5434
5777
  * 转换到:填充图元(默认是填充区域)
@@ -6178,7 +6521,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
6178
6521
  *
6179
6522
  * @beta
6180
6523
  * @param designRuleBlindViaName - 盲埋孔设计规则项名称
6181
- * @returns 过孔���元对象
6524
+ * @returns 过孔图元对象
6182
6525
  */
6183
6526
  setState_DesignRuleBlindViaName(designRuleBlindViaName: string | null): IPCB_PrimitiveVia;
6184
6527
  /**
@@ -6833,7 +7176,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
6833
7176
  */
6834
7177
  toSync(): ISCH_PrimitiveCircle;
6835
7178
  /**
6836
- * 查询���元是否为异步图元
7179
+ * 查询图元是否为异步图元
6837
7180
  *
6838
7181
  * @public
6839
7182
  * @returns 是否为异步图元
@@ -8762,7 +9105,7 @@ declare interface ITableColum {
8762
9105
  */
8763
9106
  declare class LIB_3DModel {
8764
9107
  /**
8765
- * 创建 3D 模型
9108
+ * ��建 3D 模型
8766
9109
  *
8767
9110
  * @beta
8768
9111
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
@@ -9612,7 +9955,7 @@ declare class PCB_Document {
9612
9955
  y: number;
9613
9956
  }>;
9614
9957
  /**
9615
- * 获取画布原点相对于数据原点的偏移坐标
9958
+ * 获取画布原点相对于数据原��的偏移坐标
9616
9959
  *
9617
9960
  * @public
9618
9961
  * @remarks
@@ -10037,7 +10380,7 @@ declare class PCB_Drc {
10037
10380
  * @returns 操作是否成功
10038
10381
  * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
10039
10382
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
10040
- * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
10383
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // ���件焊盘 - 器件焊盘
10041
10384
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','e1']) // 器件焊盘 - 游离焊盘
10042
10385
  */
10043
10386
  addPadPairToPadPairGroup(padPairGroupName: string, padPair: [string, string] | Array<[string, string]>): Promise<boolean>;
@@ -10880,6 +11223,21 @@ declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
10880
11223
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveArc>>;
10881
11224
  }
10882
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
+
10883
11241
  /**
10884
11242
  * PCB & 封装 / 器件图元类
10885
11243
  *
@@ -13680,7 +14038,7 @@ declare class SYS_FileManager {
13680
14038
  getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
13681
14039
  /* Excluded from this release type: getSymbolFileBySymbolUuid */
13682
14040
  /**
13683
- * 使用封装 UUID 获取封���文件
14041
+ * 使用封装 UUID 获取封装文件
13684
14042
  *
13685
14043
  * @beta
13686
14044
  * @remarks
@@ -13756,14 +14114,115 @@ declare class SYS_FileSystem {
13756
14114
  * @param fileName - 文件名称
13757
14115
  */
13758
14116
  saveFile(fileData: File | Blob, fileName?: string): Promise<void>;
13759
- /* Excluded from this release type: readFileFromFileSystem */
13760
- /* Excluded from this release type: saveFileToFileSystem */
13761
- /* Excluded from this release type: listFilesOfFileSystem */
13762
- /* Excluded from this release type: deleteFileInFileSystem */
13763
- /* Excluded from this release type: getEdaPath */
13764
- /* Excluded from this release type: getDocumentsPath */
13765
- /* Excluded from this release type: getLibrariesPaths */
13766
- /* 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>>;
13767
14226
  }
13768
14227
 
13769
14228
  /**
@@ -14238,7 +14697,7 @@ declare class SYS_ShortcutKey {
14238
14697
  }
14239
14698
 
14240
14699
  /**
14241
- * 系统 / 存储类
14700
+ * 系统 / 存���类
14242
14701
  *
14243
14702
  * @public
14244
14703
  * @remarks 可以进行扩展的用户配置存储、浏览器本地存储的操作接口
@@ -14632,7 +15091,7 @@ declare type TPCB_LayersOfLine = TPCB_LayersOfCopper | TPCB_LayersOfCustom | EPC
14632
15091
  declare type TPCB_LayersOfObject = EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.DOCUMENT;
14633
15092
 
14634
15093
  /**
14635
- * 焊盘所属层
15094
+ * 焊盘所���层
14636
15095
  *
14637
15096
  * @public
14638
15097
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.136",
3
+ "version": "0.1.137",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [