@jlceda/pro-api-types 0.1.136 → 0.1.138

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 +480 -19
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -255,6 +255,8 @@ declare class DMT_EditorControl {
255
255
  * @remarks 指示标记外形数据中,原理图、符号画布坐标单位跨度为 0.01inch,PCB、封装画布坐标单位跨度为 mil
256
256
  * @param markers - 指示标记外形对象数组
257
257
  * @param color - 指示标记颜色
258
+ * @param lineWidth - 线宽
259
+ * @param zoom - 是否定位并缩放
258
260
  * @param tabId - 标签页 ID,如若未传入,则为最后输入焦点的画布
259
261
  * @returns 指示标记生成是否成功,`false` 表示画布不支持该操作或 `tabId` 不存在
260
262
  */
@@ -263,7 +265,7 @@ declare class DMT_EditorControl {
263
265
  g: number;
264
266
  b: number;
265
267
  alpha: number;
266
- }, tabId?: string): Promise<boolean>;
268
+ }, lineWidth?: number, zoom?: boolean, tabId?: string): Promise<boolean>;
267
269
  /**
268
270
  * 移除指示标记
269
271
  *
@@ -655,7 +657,7 @@ declare class DMT_Schematic {
655
657
  * 获取原理图图页的详细属性
656
658
  *
657
659
  * @beta
658
- * @param schematicPageUuid - ��理图图页 UUID
660
+ * @param schematicPageUuid - 原理图图页 UUID
659
661
  * @returns 原理图图页的详细属性,如若为 `undefined` 则获取失败
660
662
  */
661
663
  getSchematicPageInfo(schematicPageUuid: string): Promise<IDMT_SchematicPageItem | undefined>;
@@ -729,7 +731,7 @@ declare class DMT_Schematic {
729
731
  * 文档树 / 选择控制类
730
732
  *
731
733
  * @public
732
- * @remarks 在文档树内进行选择焦点的查询、控制
734
+ * @remarks 在文档树内进��选择焦点的查询、控制
733
735
  */
734
736
  declare class DMT_SelectControl {
735
737
  /**
@@ -837,6 +839,7 @@ declare class EDA {
837
839
  pcb_Net: PCB_Net;
838
840
  pcb_Primitive: PCB_Primitive;
839
841
  pcb_PrimitiveArc: PCB_PrimitiveArc;
842
+ pcb_PrimitiveAttribute: PCB_PrimitiveAttribute;
840
843
  pcb_PrimitiveComponent: PCB_PrimitiveComponent;
841
844
  pcb_PrimitiveDimension: PCB_PrimitiveDimension;
842
845
  pcb_PrimitiveFill: PCB_PrimitiveFill;
@@ -1549,7 +1552,9 @@ declare enum EPCB_PrimitiveType {
1549
1552
  /** 覆铜填充 */
1550
1553
  POURED = "Poured",
1551
1554
  /** 文本 */
1552
- STRING = "String"
1555
+ STRING = "String",
1556
+ /** 属性 */
1557
+ ATTRIBUTE = "Attribute"
1553
1558
  }
1554
1559
 
1555
1560
  /**
@@ -1721,7 +1726,13 @@ declare enum ESCH_PrimitiveType {
1721
1726
  /** 文本 */
1722
1727
  TEXT = "Text",
1723
1728
  /** 导线 */
1724
- WIRE = "Wire"
1729
+ WIRE = "Wire",
1730
+ /** 二进制内嵌对象 */
1731
+ OBJECT = "Object",
1732
+ /** 三阶贝塞尔线条 */
1733
+ BEZIER = "Bezier",
1734
+ /** 椭圆 */
1735
+ ELLIPSE = "Ellipse"
1725
1736
  }
1726
1737
 
1727
1738
  /**
@@ -3187,6 +3198,340 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
3187
3198
  getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
3188
3199
  }
3189
3200
 
3201
+ /**
3202
+ * 属性图元
3203
+ *
3204
+ * @public
3205
+ */
3206
+ declare class IPCB_PrimitiveAttribute implements IPCB_Primitive {
3207
+ /** 异步 */
3208
+ private async;
3209
+ /** 图元类型 */
3210
+ private readonly primitiveType;
3211
+ /** 图元 ID */
3212
+ private primitiveId;
3213
+ /** 关联的父图元 ID */
3214
+ private parentPrimitiveId;
3215
+ /** 层 */
3216
+ private layer;
3217
+ /** 坐标 X */
3218
+ private x;
3219
+ /** 坐标 Y */
3220
+ private y;
3221
+ /** Key */
3222
+ private key;
3223
+ /** Value */
3224
+ private value;
3225
+ /** Key 是否可见 */
3226
+ private keyVisible;
3227
+ /** Value 是否可见 */
3228
+ private valueVisible;
3229
+ /** 字体 */
3230
+ private fontFamily;
3231
+ /** 字号 */
3232
+ private fontSize;
3233
+ /** 线宽 */
3234
+ private lineWidth;
3235
+ /** 对齐模式 */
3236
+ private alignMode;
3237
+ /** 旋转角度 */
3238
+ private rotation;
3239
+ /** 是否反相 */
3240
+ private reverse;
3241
+ /** 反相扩展 */
3242
+ private expansion;
3243
+ /** 是否镜像 */
3244
+ private mirror;
3245
+ /** 是否锁定 */
3246
+ private primitiveLock;
3247
+ 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);
3248
+ /* Excluded from this release type: create */
3249
+ /**
3250
+ * 获取属性状态:图元类型
3251
+ *
3252
+ * @public
3253
+ * @returns 图元类型
3254
+ */
3255
+ getState_PrimitiveType(): EPCB_PrimitiveType;
3256
+ /**
3257
+ * 获取属性状态:图元 ID
3258
+ *
3259
+ * @public
3260
+ * @returns 图元 ID
3261
+ */
3262
+ getState_PrimitiveId(): string;
3263
+ /**
3264
+ * 获取属性状态:关联的父图元 ID
3265
+ *
3266
+ * @public
3267
+ * @returns 关联的父图元 ID
3268
+ */
3269
+ getState_ParentPrimitiveId(): string;
3270
+ /**
3271
+ * 获取属性状态:层
3272
+ *
3273
+ * @public
3274
+ * @returns 层
3275
+ */
3276
+ getState_Layer(): TPCB_LayersOfImage;
3277
+ /**
3278
+ * 获取属性状态:坐标 X
3279
+ *
3280
+ * @public
3281
+ * @returns 坐标 X
3282
+ */
3283
+ getState_X(): number | null;
3284
+ /**
3285
+ * 获取属性状态:坐标 Y
3286
+ *
3287
+ * @public
3288
+ * @returns 坐标 Y
3289
+ */
3290
+ getState_Y(): number | null;
3291
+ /**
3292
+ * 获取属性状态:Key
3293
+ *
3294
+ * @public
3295
+ * @returns Key
3296
+ */
3297
+ getState_Key(): string;
3298
+ /**
3299
+ * 获取属性状态:Value
3300
+ *
3301
+ * @public
3302
+ * @returns Value
3303
+ */
3304
+ getState_Value(): string;
3305
+ /**
3306
+ * 获取属性状态:Key 是否可见
3307
+ *
3308
+ * @public
3309
+ * @returns Key 是否可见
3310
+ */
3311
+ getState_KeyVisible(): boolean;
3312
+ /**
3313
+ * 获取属性状态:Value 是否可见
3314
+ *
3315
+ * @public
3316
+ * @returns Value 是否可见
3317
+ */
3318
+ getState_ValueVisible(): boolean;
3319
+ /**
3320
+ * 获取属性状态:字体
3321
+ *
3322
+ * @public
3323
+ * @returns 字体
3324
+ */
3325
+ getState_FontFamily(): string;
3326
+ /**
3327
+ * 获取属性状态:字号
3328
+ *
3329
+ * @public
3330
+ * @returns 字号
3331
+ */
3332
+ getState_FontSize(): number;
3333
+ /**
3334
+ * 获取属性状态:线宽
3335
+ *
3336
+ * @public
3337
+ * @returns 线宽
3338
+ */
3339
+ getState_LineWidth(): number;
3340
+ /**
3341
+ * 获取属性状态:对齐模式
3342
+ *
3343
+ * @public
3344
+ * @returns 对齐模式
3345
+ */
3346
+ getState_AlignMode(): EPCB_PrimitiveStringAlignMode;
3347
+ /**
3348
+ * 获取属性状态:旋转角度
3349
+ *
3350
+ * @public
3351
+ * @returns 旋转角度
3352
+ */
3353
+ getState_Rotation(): number;
3354
+ /**
3355
+ * 获取属性状态:是否反相
3356
+ *
3357
+ * @public
3358
+ * @returns 是否反相
3359
+ */
3360
+ getState_Reverse(): boolean;
3361
+ /**
3362
+ * 获取属性状态:反相扩展
3363
+ *
3364
+ * @public
3365
+ * @returns 反相扩展
3366
+ */
3367
+ getState_Expansion(): number;
3368
+ /**
3369
+ * 获取属性状态:是否镜像
3370
+ *
3371
+ * @public
3372
+ * @returns 是否镜像
3373
+ */
3374
+ getState_Mirror(): boolean;
3375
+ /**
3376
+ * 获取属性状态:是否锁定
3377
+ *
3378
+ * @public
3379
+ * @returns 是否锁定
3380
+ */
3381
+ getState_PrimitiveLock(): boolean;
3382
+ /**
3383
+ * 设置属性状态:层
3384
+ *
3385
+ * @beta
3386
+ * @param layer - 层
3387
+ * @returns 属性图元对象
3388
+ */
3389
+ setState_Layer(layer: TPCB_LayersOfImage): IPCB_PrimitiveAttribute;
3390
+ /**
3391
+ * 设置属性状态:坐标 X
3392
+ *
3393
+ * @beta
3394
+ * @param x - 坐标 X
3395
+ * @returns 属性图元对象
3396
+ */
3397
+ setState_X(x: number): IPCB_PrimitiveAttribute;
3398
+ /**
3399
+ * 设置属性状态:坐标 Y
3400
+ *
3401
+ * @beta
3402
+ * @param y - 坐标 Y
3403
+ * @returns 属性图元对象
3404
+ */
3405
+ setState_Y(y: number): IPCB_PrimitiveAttribute;
3406
+ /**
3407
+ * 设置属性状态:Key
3408
+ *
3409
+ * @beta
3410
+ * @param key - Key
3411
+ * @returns 属性图元对象
3412
+ */
3413
+ setState_Key(key: string): IPCB_PrimitiveAttribute;
3414
+ /**
3415
+ * 设置属性状态:Value
3416
+ *
3417
+ * @beta
3418
+ * @param value - Value
3419
+ * @returns 属性图元对象
3420
+ */
3421
+ setState_Value(value: string): IPCB_PrimitiveAttribute;
3422
+ /**
3423
+ * 设置属性状态:Key 是否可见
3424
+ *
3425
+ * @beta
3426
+ * @param keyVisible - Key 是否可见
3427
+ * @returns 属性图元对象
3428
+ */
3429
+ setState_KeyVisible(keyVisible: boolean): IPCB_PrimitiveAttribute;
3430
+ /**
3431
+ * 设置属性状态:Value 是否可见
3432
+ *
3433
+ * @beta
3434
+ * @param valueVisible - Value 是否可见
3435
+ * @returns 属性图元对象
3436
+ */
3437
+ setState_ValueVisible(valueVisible: boolean): IPCB_PrimitiveAttribute;
3438
+ /**
3439
+ * 设置属性状态:字体
3440
+ *
3441
+ * @beta
3442
+ * @param fontFamily - 字体
3443
+ * @returns 属性图元对象
3444
+ */
3445
+ setState_FontFamily(fontFamily: string): IPCB_PrimitiveAttribute;
3446
+ /**
3447
+ * 设置属性状态:字号
3448
+ *
3449
+ * @beta
3450
+ * @param fontSize - 字号
3451
+ * @returns 属性图元对象
3452
+ */
3453
+ setState_FontSize(fontSize: number): IPCB_PrimitiveAttribute;
3454
+ /**
3455
+ * 设置属性状态:线宽
3456
+ *
3457
+ * @beta
3458
+ * @param lineWidth - 线宽
3459
+ * @returns 属性图元对象
3460
+ */
3461
+ setState_LineWidth(lineWidth: number): IPCB_PrimitiveAttribute;
3462
+ /**
3463
+ * 设置属性状态:对齐模式
3464
+ *
3465
+ * @beta
3466
+ * @param alignMode - 对齐模式
3467
+ * @returns 属性图元对象
3468
+ */
3469
+ setState_AlignMode(alignMode: EPCB_PrimitiveStringAlignMode): IPCB_PrimitiveAttribute;
3470
+ /**
3471
+ * 设置属性状态:旋转角度
3472
+ *
3473
+ * @beta
3474
+ * @param rotation - 旋转角度
3475
+ * @returns 属性图元对象
3476
+ */
3477
+ setState_Rotation(rotation: number): IPCB_PrimitiveAttribute;
3478
+ /**
3479
+ * 设置属性状态:是否反相
3480
+ *
3481
+ * @beta
3482
+ * @param reverse - 是否反相
3483
+ * @returns 属性图元对象
3484
+ */
3485
+ setState_Reverse(reverse: boolean): IPCB_PrimitiveAttribute;
3486
+ /**
3487
+ * 设置属性状态:反相扩展
3488
+ *
3489
+ * @beta
3490
+ * @param expansion - 反相扩展
3491
+ * @returns 属性图元对象
3492
+ */
3493
+ setState_Expansion(expansion: number): IPCB_PrimitiveAttribute;
3494
+ /**
3495
+ * 设置属性状态:是否镜像
3496
+ *
3497
+ * @beta
3498
+ * @param mirror - 是否��像
3499
+ * @returns 属性图元对象
3500
+ */
3501
+ setState_Mirror(mirror: boolean): IPCB_PrimitiveAttribute;
3502
+ /**
3503
+ * 设置属性状态:是否锁定
3504
+ *
3505
+ * @beta
3506
+ * @param primitiveLock - 是否锁定
3507
+ * @returns 属性图元对象
3508
+ */
3509
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveAttribute;
3510
+ /**
3511
+ * 将图元转换为异步图元
3512
+ *
3513
+ * @public
3514
+ * @returns 属性图元对象
3515
+ */
3516
+ toAsync(): IPCB_PrimitiveAttribute;
3517
+ /**
3518
+ * 将图元转换为同步图元
3519
+ *
3520
+ * @public
3521
+ * @returns 属性图元对象
3522
+ */
3523
+ toSync(): IPCB_PrimitiveAttribute;
3524
+ /**
3525
+ * 查询图元是否为异步图元
3526
+ *
3527
+ * @public
3528
+ * @returns 是否为异步图元
3529
+ */
3530
+ isAsync(): boolean;
3531
+ /* Excluded from this release type: reset */
3532
+ /* Excluded from this release type: done */
3533
+ }
3534
+
3190
3535
  /**
3191
3536
  * 器件图元
3192
3537
  *
@@ -5428,7 +5773,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
5428
5773
  * @returns 覆铜边框图元对象
5429
5774
  */
5430
5775
  done(): Promise<IPCB_PrimitivePour>;
5431
- /* Excluded from this release type: getCopperRegion */
5776
+ /* Excluded from this release type: getCopperRegions */
5432
5777
  /* Excluded from this release type: rebuildCopperRegion */
5433
5778
  /**
5434
5779
  * 转换到:填充图元(默认是填充区域)
@@ -6178,7 +6523,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
6178
6523
  *
6179
6524
  * @beta
6180
6525
  * @param designRuleBlindViaName - 盲埋孔设计规则项名称
6181
- * @returns 过孔���元对象
6526
+ * @returns 过孔图元对象
6182
6527
  */
6183
6528
  setState_DesignRuleBlindViaName(designRuleBlindViaName: string | null): IPCB_PrimitiveVia;
6184
6529
  /**
@@ -6833,7 +7178,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
6833
7178
  */
6834
7179
  toSync(): ISCH_PrimitiveCircle;
6835
7180
  /**
6836
- * 查询���元是否为异步图元
7181
+ * 查询图元是否为异步图元
6837
7182
  *
6838
7183
  * @public
6839
7184
  * @returns 是否为异步图元
@@ -10880,6 +11225,21 @@ declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
10880
11225
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveArc>>;
10881
11226
  }
10882
11227
 
11228
+ /**
11229
+ * PCB & 封装 / 属性图元类
11230
+ *
11231
+ * @public
11232
+ */
11233
+ declare class PCB_PrimitiveAttribute implements IPCB_PrimitiveAPI {
11234
+ /* Excluded from this release type: create */
11235
+ /* Excluded from this release type: delete */
11236
+ /* Excluded from this release type: modify */
11237
+ /* Excluded from this release type: get */
11238
+ /* Excluded from this release type: get */
11239
+ /* Excluded from this release type: getAllPrimitiveId */
11240
+ /* Excluded from this release type: getAll */
11241
+ }
11242
+
10883
11243
  /**
10884
11244
  * PCB & 封装 / 器件图元类
10885
11245
  *
@@ -11172,7 +11532,7 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
11172
11532
  * @remarks 如需创建彩色丝印图像,请使用 {@link PCB_PrimitiveObject | 二进制内嵌对象图元类}
11173
11533
  * @param x - BBox 左上点坐标 X
11174
11534
  * @param y - BBox 左上点坐标 Y
11175
- * @param complexPolygon - 图像源数据(复杂多边形),可以使用 {@link PCB_MathPolygon.convertImageToComplexPolygon} 方法将图像文件转换为复杂多边形数据
11535
+ * @param complexPolygon - 图像源数据(复杂多边形),可以使用 {@link PCB_MathPolygon.convertImageToComplexPolygon} 方法��图像文件转换为复杂多边形数据
11176
11536
  * @param layer - 层
11177
11537
  * @param width - 宽
11178
11538
  * @param height - 高
@@ -12395,7 +12755,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
12395
12755
  *
12396
12756
  * @beta
12397
12757
  * @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12398
- * @returns 圆图元对象,`undefined` 表示获取失败
12758
+ * @returns 圆图���对象,`undefined` 表示获取失败
12399
12759
  */
12400
12760
  get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
12401
12761
  /**
@@ -13680,7 +14040,7 @@ declare class SYS_FileManager {
13680
14040
  getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
13681
14041
  /* Excluded from this release type: getSymbolFileBySymbolUuid */
13682
14042
  /**
13683
- * 使用封装 UUID 获取封���文件
14043
+ * 使用封装 UUID 获取封装文件
13684
14044
  *
13685
14045
  * @beta
13686
14046
  * @remarks
@@ -13756,14 +14116,115 @@ declare class SYS_FileSystem {
13756
14116
  * @param fileName - 文件名称
13757
14117
  */
13758
14118
  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 */
14119
+ /**
14120
+ * 从文件系统读取文件
14121
+ *
14122
+ * @beta
14123
+ * @remarks
14124
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14125
+ *
14126
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14127
+ * @param uri - 文件资源定位符,需要包含完整的文件名称的绝对路径
14128
+ * @returns File 格式文件
14129
+ */
14130
+ readFileFromFileSystem(uri: string): Promise<File | undefined>;
14131
+ /**
14132
+ * 向文件系统写入文件
14133
+ *
14134
+ * @beta
14135
+ * @remarks
14136
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14137
+ *
14138
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14139
+ * @param uri - 文件资源定位符
14140
+ *
14141
+ * 如若结尾为斜杠 `/`(Windows 为反斜杠 `\`),则识别为文件夹;
14142
+ *
14143
+ * 如若结尾非斜杠,则识别为完整文件名,此时 `fileName` 参数将被忽略
14144
+ * @param fileData - 文件数据
14145
+ * @param fileName - 文件名称
14146
+ * @param force - 强制写入(文件存在则覆盖文件)
14147
+ * @returns 写入操作是否成功,如若不允许覆盖但文件已存在将返回 `false` 的结果
14148
+ */
14149
+ saveFileToFileSystem(uri: string, fileData: File | Blob, fileName?: string, force?: boolean): Promise<boolean>;
14150
+ /**
14151
+ * 查看文件系统路径下的文件列表
14152
+ *
14153
+ * @beta
14154
+ * @remarks
14155
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14156
+ *
14157
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14158
+ * @param folderPath - 目录路径
14159
+ * @param recursive - 是否递归获取所有子文件
14160
+ * @returns 当前目录下的文件列表
14161
+ */
14162
+ listFilesOfFileSystem(folderPath: string, recursive?: boolean): Promise<Array<ISYS_FileSystemFileList>>;
14163
+ /**
14164
+ * 删除文件系统内的文件
14165
+ *
14166
+ * @beta
14167
+ * @remarks
14168
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14169
+ *
14170
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14171
+ * @param uri - 文件资源定位符
14172
+ *
14173
+ * 如若结尾为斜杠 `/`(Windows 为反斜杠 `\`),则识别为文件夹;
14174
+ *
14175
+ * 如若结尾非斜杠,则识别为完整文件名,此时 `fileName` 参数将被忽略
14176
+ * @param force - 强制删除文件夹(当欲删除的是文件夹且文件夹内有文件时,是否强制删除该文件夹)
14177
+ * @returns 删除操作是否成功
14178
+ */
14179
+ deleteFileInFileSystem(uri: string, force?: boolean): Promise<boolean>;
14180
+ /**
14181
+ * 获取 EDA 文档目录路径
14182
+ *
14183
+ * @beta
14184
+ * @remarks
14185
+ * 返回的路径中,结尾不包含斜杠 `/`(或反斜杠 `\`)
14186
+ *
14187
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14188
+ *
14189
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14190
+ * @returns EDA 文档目录路径
14191
+ */
14192
+ getEdaPath(): Promise<string>;
14193
+ /**
14194
+ * 获取文档目录路径
14195
+ *
14196
+ * @beta
14197
+ * @remarks
14198
+ * 返回的路径中,结尾不包含斜杠 `/`(或反斜杠 `\`)
14199
+ *
14200
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14201
+ *
14202
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14203
+ * @returns 文档目录路径
14204
+ */
14205
+ getDocumentsPath(): Promise<string>;
14206
+ /**
14207
+ * 获取库目录路径
14208
+ *
14209
+ * @beta
14210
+ * @remarks
14211
+ * 注意 1:本接口仅全离线客户端有效,在浏览器环境内调用将始终 `throw Error`
14212
+ *
14213
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14214
+ * @returns 库目录路径数组
14215
+ */
14216
+ getLibrariesPaths(): Promise<Array<string>>;
14217
+ /**
14218
+ * 获取工程目录路径
14219
+ *
14220
+ * @beta
14221
+ * @remarks
14222
+ * 注意 1:本接口仅离线客户端有效,在浏览器环境内调用将始终 `throw Error`
14223
+ *
14224
+ * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14225
+ * @returns 工程目录路径数组
14226
+ */
14227
+ getProjectsPaths(): Promise<Array<string>>;
13767
14228
  }
13768
14229
 
13769
14230
  /**
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.138",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [