@jlceda/pro-api-types 0.2.46 → 0.2.48
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 +79 -34
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ declare global {
|
|
|
228
228
|
* 分类索引
|
|
229
229
|
*
|
|
230
230
|
* @public
|
|
231
|
-
* @deprecated
|
|
231
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
232
232
|
* @remarks 本分类索引用于索引指定库内的分类,其中库 UUID 和库类型仅作针对于本索引的识别用途,防止将不同库内的索引互相引用从而引发错误
|
|
233
233
|
*/
|
|
234
234
|
interface ILIB_ClassificationIndex {
|
|
@@ -251,7 +251,7 @@ declare global {
|
|
|
251
251
|
* 创建一级分类
|
|
252
252
|
*
|
|
253
253
|
* @beta
|
|
254
|
-
* @deprecated
|
|
254
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
255
255
|
* @param libraryUuid - 库 UUID
|
|
256
256
|
* @param libraryType - 库类型
|
|
257
257
|
* @param primaryClassificationName - 一级分类名称
|
|
@@ -262,7 +262,7 @@ declare global {
|
|
|
262
262
|
* 创建二级分类
|
|
263
263
|
*
|
|
264
264
|
* @beta
|
|
265
|
-
* @deprecated
|
|
265
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
266
266
|
* @param libraryUuid - 库 UUID
|
|
267
267
|
* @param libraryType - 库类型
|
|
268
268
|
* @param primaryClassificationUuid - 一级分类 UUID
|
|
@@ -274,7 +274,7 @@ declare global {
|
|
|
274
274
|
* 获取指定名称的分类的分类索引
|
|
275
275
|
*
|
|
276
276
|
* @beta
|
|
277
|
-
* @deprecated
|
|
277
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
278
278
|
* @remarks 分类索引内包含分类的 UUID,具体可查阅 {@link ILIB_ClassificationIndex}
|
|
279
279
|
* @param libraryUuid - 库 UUID
|
|
280
280
|
* @param libraryType - 库类型
|
|
@@ -301,7 +301,7 @@ declare global {
|
|
|
301
301
|
* 获取指定索引的分类的名称
|
|
302
302
|
*
|
|
303
303
|
* @beta
|
|
304
|
-
* @deprecated
|
|
304
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
305
305
|
* @param classificationIndex - 分类索引
|
|
306
306
|
* @returns 两级分类的名称
|
|
307
307
|
*/
|
|
@@ -340,7 +340,7 @@ declare global {
|
|
|
340
340
|
* 删除指定索引的分类
|
|
341
341
|
*
|
|
342
342
|
* @beta
|
|
343
|
-
* @deprecated
|
|
343
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
344
344
|
* @param classificationIndex - 分类索引
|
|
345
345
|
* @returns 操作是否成功
|
|
346
346
|
*/
|
|
@@ -424,6 +424,15 @@ declare global {
|
|
|
424
424
|
/** 前次修改者 */
|
|
425
425
|
lastModifiedBy: string;
|
|
426
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* 可用于精确搜索的符号参数
|
|
429
|
+
*
|
|
430
|
+
* @public
|
|
431
|
+
*/
|
|
432
|
+
interface ILIB_SymbolPropertiesForSearch {
|
|
433
|
+
/** 符号名称 */
|
|
434
|
+
name?: string;
|
|
435
|
+
}
|
|
427
436
|
/**
|
|
428
437
|
* 综合库 / 符号类
|
|
429
438
|
*
|
|
@@ -508,6 +517,21 @@ declare global {
|
|
|
508
517
|
* @returns 搜索到的符号属性列表
|
|
509
518
|
*/
|
|
510
519
|
search(key: string, libraryUuid?: string, classification?: ILIB_ClassificationIndex | Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Promise<Array<ILIB_SymbolSearchItem>>;
|
|
520
|
+
/**
|
|
521
|
+
* 使用属性精确搜索符号
|
|
522
|
+
*
|
|
523
|
+
* @alpha
|
|
524
|
+
* @param properties - 属性
|
|
525
|
+
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
526
|
+
* @param classification - 分类,默认为全部
|
|
527
|
+
*
|
|
528
|
+
* ADD since EDA v4
|
|
529
|
+
* @param symbolType - 符号类型,默认为全部
|
|
530
|
+
* @param itemsOfPage - 一页搜索结果的数量
|
|
531
|
+
* @param page - 页数
|
|
532
|
+
* @returns 搜索到的符号属性的列表
|
|
533
|
+
*/
|
|
534
|
+
searchByProperties(properties: ILIB_SymbolPropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Array<ILIB_SymbolSearchItem>;
|
|
511
535
|
/**
|
|
512
536
|
* 在编辑器打开文档
|
|
513
537
|
*
|
|
@@ -945,7 +969,7 @@ declare global {
|
|
|
945
969
|
/** 标签页是否可关闭 */
|
|
946
970
|
isAbleDelete: boolean;
|
|
947
971
|
/**
|
|
948
|
-
*
|
|
972
|
+
* ��签页是否不使用 I18n 功能(内部功能)
|
|
949
973
|
*
|
|
950
974
|
* @internal
|
|
951
975
|
*/
|
|
@@ -1350,7 +1374,7 @@ declare global {
|
|
|
1350
1374
|
* 文档树 / 面板管理类
|
|
1351
1375
|
*
|
|
1352
1376
|
* @public
|
|
1353
|
-
* @remarks
|
|
1377
|
+
* @remarks 在当前打开的工程内进行面板管理的��关操作
|
|
1354
1378
|
*/
|
|
1355
1379
|
class DMT_Panel {
|
|
1356
1380
|
/**
|
|
@@ -2270,8 +2294,6 @@ declare global {
|
|
|
2270
2294
|
name?: string;
|
|
2271
2295
|
/** 值 */
|
|
2272
2296
|
value?: string;
|
|
2273
|
-
/** 描述 */
|
|
2274
|
-
description?: string;
|
|
2275
2297
|
/** 关联符号名称 */
|
|
2276
2298
|
symbolName?: string;
|
|
2277
2299
|
/** 关联封装名称 */
|
|
@@ -2412,17 +2434,17 @@ declare global {
|
|
|
2412
2434
|
* 使用属性精确搜索器件
|
|
2413
2435
|
*
|
|
2414
2436
|
* @alpha
|
|
2415
|
-
* @remarks
|
|
2416
|
-
* 注意:本接口仅全离线客户端有效,在浏览器环境内调用将始终 `throw Error`
|
|
2417
2437
|
* @param properties - 属性
|
|
2418
2438
|
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
2419
2439
|
* @param classification - 分类,默认为全部
|
|
2440
|
+
*
|
|
2441
|
+
* ADD since EDA v4
|
|
2420
2442
|
* @param symbolType - 符号类型,默认为全部
|
|
2421
2443
|
* @param itemsOfPage - 一页搜索结果的数量
|
|
2422
2444
|
* @param page - 页数
|
|
2423
2445
|
* @returns 搜索到的器件属性的列表
|
|
2424
2446
|
*/
|
|
2425
|
-
searchByProperties(properties: ILIB_DevicePropertiesForSearch, libraryUuid?: string, classification?:
|
|
2447
|
+
searchByProperties(properties: ILIB_DevicePropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Array<ILIB_DeviceSearchItem>;
|
|
2426
2448
|
/**
|
|
2427
2449
|
* 使用立创 C 编号获取器件
|
|
2428
2450
|
*
|
|
@@ -2501,6 +2523,15 @@ declare global {
|
|
|
2501
2523
|
/** 前次修改者 */
|
|
2502
2524
|
lastModifiedBy: string;
|
|
2503
2525
|
}
|
|
2526
|
+
/**
|
|
2527
|
+
* 可用于精确搜索的封装参数
|
|
2528
|
+
*
|
|
2529
|
+
* @public
|
|
2530
|
+
*/
|
|
2531
|
+
interface ILIB_FootprintPropertiesForSearch {
|
|
2532
|
+
/** 封装名称 */
|
|
2533
|
+
name?: string;
|
|
2534
|
+
}
|
|
2504
2535
|
/**
|
|
2505
2536
|
* 综合库 / 封装类
|
|
2506
2537
|
*
|
|
@@ -2583,6 +2614,20 @@ declare global {
|
|
|
2583
2614
|
* @returns 搜索到的封装属性列表
|
|
2584
2615
|
*/
|
|
2585
2616
|
search(key: string, libraryUuid?: string, classification?: ILIB_ClassificationIndex | Array<string>, itemsOfPage?: number, page?: number): Promise<Array<ILIB_FootprintSearchItem>>;
|
|
2617
|
+
/**
|
|
2618
|
+
* 使用属性精确搜索封装
|
|
2619
|
+
*
|
|
2620
|
+
* @alpha
|
|
2621
|
+
* @param properties - 属性
|
|
2622
|
+
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
2623
|
+
* @param classification - 分类,默认为全部
|
|
2624
|
+
*
|
|
2625
|
+
* ADD since EDA v4
|
|
2626
|
+
* @param itemsOfPage - 一页搜索结果的数量
|
|
2627
|
+
* @param page - 页数
|
|
2628
|
+
* @returns 搜索到的封装属性的列表
|
|
2629
|
+
*/
|
|
2630
|
+
searchByProperties(properties: ILIB_FootprintPropertiesForSearch, libraryUuid?: string, classification?: Array<string>, itemsOfPage?: number, page?: number): Array<ILIB_FootprintSearchItem>;
|
|
2586
2631
|
/**
|
|
2587
2632
|
* 在编辑器打开文档
|
|
2588
2633
|
*
|
|
@@ -2739,7 +2784,7 @@ declare global {
|
|
|
2739
2784
|
* 外部库分类索引
|
|
2740
2785
|
*
|
|
2741
2786
|
* @public
|
|
2742
|
-
* @deprecated
|
|
2787
|
+
* @deprecated since EDA v3.2; dropped EDA v3.3
|
|
2743
2788
|
* @remarks
|
|
2744
2789
|
* 支持外部库使用名称或 UUID 作为分类的唯一 ID 索引
|
|
2745
2790
|
*/
|
|
@@ -4808,7 +4853,7 @@ declare global {
|
|
|
4808
4853
|
*/
|
|
4809
4854
|
modifyDifferentialPairNegativeNet(differentialPairName: string, negativeNet: string): Promise<boolean>;
|
|
4810
4855
|
/**
|
|
4811
|
-
*
|
|
4856
|
+
* 获取所有差分对的详���属性
|
|
4812
4857
|
*
|
|
4813
4858
|
* @beta
|
|
4814
4859
|
* @remarks
|
|
@@ -4853,7 +4898,7 @@ declare global {
|
|
|
4853
4898
|
* @beta
|
|
4854
4899
|
* @param equalLengthNetGroupName - 等长网络组名称
|
|
4855
4900
|
* @param net - 网络名称
|
|
4856
|
-
* @returns
|
|
4901
|
+
* @returns 操作是否成功
|
|
4857
4902
|
*/
|
|
4858
4903
|
addNetToEqualLengthNetGroup(equalLengthNetGroupName: string, net: string | Array<string>): Promise<boolean>;
|
|
4859
4904
|
/**
|
|
@@ -7666,7 +7711,7 @@ declare global {
|
|
|
7666
7711
|
*
|
|
7667
7712
|
* @beta
|
|
7668
7713
|
* @param reverse - 是否反相
|
|
7669
|
-
* @returns
|
|
7714
|
+
* @returns 文本图元对象
|
|
7670
7715
|
*/
|
|
7671
7716
|
setState_Reverse(reverse: boolean): IPCB_PrimitiveString;
|
|
7672
7717
|
/**
|
|
@@ -8223,7 +8268,7 @@ declare global {
|
|
|
8223
8268
|
*/
|
|
8224
8269
|
get(primitiveIds: string): Promise<IPCB_PrimitivePoured | undefined>;
|
|
8225
8270
|
/**
|
|
8226
|
-
*
|
|
8271
|
+
* ���取覆铜填充
|
|
8227
8272
|
*
|
|
8228
8273
|
* @beta
|
|
8229
8274
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
@@ -8268,7 +8313,7 @@ declare global {
|
|
|
8268
8313
|
* 在 PCB 画布中创建图元
|
|
8269
8314
|
*
|
|
8270
8315
|
* @internal
|
|
8271
|
-
* @remarks
|
|
8316
|
+
* @remarks 覆铜填充图元不支持新建,本接口调用将不会有任何效果
|
|
8272
8317
|
* @returns 覆铜填充图元对象
|
|
8273
8318
|
*/
|
|
8274
8319
|
create(): IPCB_PrimitivePoured;
|
|
@@ -8751,7 +8796,7 @@ declare global {
|
|
|
8751
8796
|
* @param net - 网络名称
|
|
8752
8797
|
* @param layer - 层
|
|
8753
8798
|
* @param primitiveLock - 是否锁定
|
|
8754
|
-
* @returns 覆铜边框的图元 ID
|
|
8799
|
+
* @returns 覆铜边框的图元 ID 数��
|
|
8755
8800
|
*/
|
|
8756
8801
|
getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfCopper, primitiveLock?: boolean): Promise<Array<string>>;
|
|
8757
8802
|
/**
|
|
@@ -9877,7 +9922,7 @@ declare global {
|
|
|
9877
9922
|
*/
|
|
9878
9923
|
create(): Promise<IPCB_PrimitivePad>;
|
|
9879
9924
|
/**
|
|
9880
|
-
*
|
|
9925
|
+
* 获取属性��态:图元类型
|
|
9881
9926
|
*
|
|
9882
9927
|
* @public
|
|
9883
9928
|
* @returns 图元类型
|
|
@@ -10378,7 +10423,7 @@ declare global {
|
|
|
10378
10423
|
*
|
|
10379
10424
|
* @beta
|
|
10380
10425
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
10381
|
-
* @param primitiveIds -
|
|
10426
|
+
* @param primitiveIds - 器��的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10382
10427
|
* @returns 器件图元对象,空数组表示获取失败
|
|
10383
10428
|
*/
|
|
10384
10429
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveComponent>>;
|
|
@@ -10428,7 +10473,7 @@ declare global {
|
|
|
10428
10473
|
*
|
|
10429
10474
|
* @alpha
|
|
10430
10475
|
* @remarks
|
|
10431
|
-
*
|
|
10476
|
+
* ADD since API v0.2.26
|
|
10432
10477
|
*
|
|
10433
10478
|
* 本接口模拟前端点击放置按钮,指定的封装将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
10434
10479
|
*
|
|
@@ -13731,7 +13776,7 @@ declare global {
|
|
|
13731
13776
|
*/
|
|
13732
13777
|
setState_FontSize(fontSize: number | null): ISCH_PrimitiveAttribute;
|
|
13733
13778
|
/**
|
|
13734
|
-
*
|
|
13779
|
+
* ��置属性状态:是否加粗
|
|
13735
13780
|
*
|
|
13736
13781
|
* @beta
|
|
13737
13782
|
* @param bold - 是否加粗
|
|
@@ -14840,7 +14885,7 @@ declare global {
|
|
|
14840
14885
|
*/
|
|
14841
14886
|
setState_NoConnected(noConnected: boolean): ISCH_PrimitiveComponentPin;
|
|
14842
14887
|
/**
|
|
14843
|
-
*
|
|
14888
|
+
* 将异���图元重置为当前画布状态
|
|
14844
14889
|
*
|
|
14845
14890
|
* @internal
|
|
14846
14891
|
* @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
|
|
@@ -15930,7 +15975,7 @@ declare global {
|
|
|
15930
15975
|
*
|
|
15931
15976
|
* @alpha
|
|
15932
15977
|
* @remarks
|
|
15933
|
-
*
|
|
15978
|
+
* ADD since API v0.2.26
|
|
15934
15979
|
*
|
|
15935
15980
|
* 本接口模拟前端点击放置按钮,指定的符号将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
15936
15981
|
*
|
|
@@ -16501,6 +16546,7 @@ declare global {
|
|
|
16501
16546
|
* 创建二进制内嵌对象
|
|
16502
16547
|
*
|
|
16503
16548
|
* @beta
|
|
16549
|
+
* @param content - 对象内容
|
|
16504
16550
|
* @param startX - 起点坐标 X
|
|
16505
16551
|
* @param startY - 起点坐标 Y
|
|
16506
16552
|
* @param width - 宽
|
|
@@ -16508,7 +16554,6 @@ declare global {
|
|
|
16508
16554
|
* @param rotation - 旋转角度
|
|
16509
16555
|
* @param mirror - 是否镜像
|
|
16510
16556
|
* @param fileName - 文件名称
|
|
16511
|
-
* @param content - 对象内容
|
|
16512
16557
|
* @returns 二进制内嵌对象图元对象
|
|
16513
16558
|
*/
|
|
16514
16559
|
create(content: File | string, startX: number, startY: number, width?: number, height?: number, rotation?: number, mirror?: boolean, fileName?: string): Promise<ISCH_PrimitiveObject | undefined>;
|
|
@@ -17486,7 +17531,7 @@ declare global {
|
|
|
17486
17531
|
*/
|
|
17487
17532
|
getState_PrimitiveId(): string;
|
|
17488
17533
|
/**
|
|
17489
|
-
*
|
|
17534
|
+
* 获取属性状态:多���线坐标组
|
|
17490
17535
|
*
|
|
17491
17536
|
* @public
|
|
17492
17537
|
* @returns 多段线坐标组
|
|
@@ -18094,7 +18139,7 @@ declare global {
|
|
|
18094
18139
|
interface SortInfo {
|
|
18095
18140
|
/** 列key */
|
|
18096
18141
|
colKey: string;
|
|
18097
|
-
/**
|
|
18142
|
+
/** 排序字段 */
|
|
18098
18143
|
key: string | string[];
|
|
18099
18144
|
/** 排序状态 */
|
|
18100
18145
|
status: SortStatus;
|
|
@@ -19019,7 +19064,7 @@ declare global {
|
|
|
19019
19064
|
*/
|
|
19020
19065
|
isOfflineMode(): boolean;
|
|
19021
19066
|
/**
|
|
19022
|
-
*
|
|
19067
|
+
* 获取编辑器���前版本
|
|
19023
19068
|
*
|
|
19024
19069
|
* @public
|
|
19025
19070
|
* @returns 编辑器当前版本
|
|
@@ -19513,7 +19558,7 @@ declare global {
|
|
|
19513
19558
|
insertDividerAfter?: boolean;
|
|
19514
19559
|
/** 在指定 ID 的菜单项的前面插入当前菜单项 */
|
|
19515
19560
|
insertBefore?: string;
|
|
19516
|
-
/**
|
|
19561
|
+
/** 在插入时如若指定的菜单项前面存在分隔线,是否跨过该分隔线(即和 insertBefore 指定 ID 的菜单项之间是否可能存在分隔线,这和 insertDividerAfter 并不冲突,因为 insertDividerAfter 在菜单项插入完成后添加) */
|
|
19517
19562
|
crossDividerWhenInsert?: boolean;
|
|
19518
19563
|
}): Promise<string | undefined>;
|
|
19519
19564
|
/**
|
|
@@ -19531,7 +19576,7 @@ declare global {
|
|
|
19531
19576
|
*
|
|
19532
19577
|
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
19533
19578
|
*
|
|
19534
|
-
*
|
|
19579
|
+
* 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
|
|
19535
19580
|
* @param headerMenus - 顶部菜单数据
|
|
19536
19581
|
* @example
|
|
19537
19582
|
* headerMenus:
|
|
@@ -20544,7 +20589,7 @@ declare global {
|
|
|
20544
20589
|
* 获取扩展所有用户配置
|
|
20545
20590
|
*
|
|
20546
20591
|
* @public
|
|
20547
|
-
* @remarks
|
|
20592
|
+
* @remarks 注意:本接口仅扩展有效,在独立脚本环境��调用将始终 `throw Error`
|
|
20548
20593
|
* @returns 扩展所有用户配置信息
|
|
20549
20594
|
*/
|
|
20550
20595
|
getExtensionAllUserConfigs(): {
|
|
@@ -20589,7 +20634,7 @@ declare global {
|
|
|
20589
20634
|
*
|
|
20590
20635
|
* @public
|
|
20591
20636
|
* @remarks
|
|
20592
|
-
*
|
|
20637
|
+
* 新建扩展用户配置也使用本接口,在设置时如果不存在将会自动新建
|
|
20593
20638
|
*
|
|
20594
20639
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
20595
20640
|
* @param key - 配置项
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.
|
|
1
|
+
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.48", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }
|