@jlceda/pro-api-types 0.1.129 → 0.1.130
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 +15 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ declare class DMT_EditorControl {
|
|
|
86
86
|
*
|
|
87
87
|
* @beta
|
|
88
88
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
89
|
-
* @param libraryType -
|
|
89
|
+
* @param libraryType - ���类型,支持符号和封装
|
|
90
90
|
* @param uuid - 符号、封装 UUID
|
|
91
91
|
* @param splitScreenId - 分屏 ID,即 {@link DMT_EditorControl.getSplitScreenTree} 方法获取到的 {@link IDMT_EditorSplitScreenItem.id}
|
|
92
92
|
* @returns 标签页 ID,如若为 `undefined`,则打开文档失败
|
|
@@ -760,7 +760,7 @@ declare class DMT_Workspace {
|
|
|
760
760
|
* 获取所有工作区的详细属性
|
|
761
761
|
*
|
|
762
762
|
* @public
|
|
763
|
-
* @returns
|
|
763
|
+
* @returns 所有工作区的详细属性
|
|
764
764
|
*/
|
|
765
765
|
getAllWorkspacesInfo(): Promise<Array<IDMT_WorkspaceItem>>;
|
|
766
766
|
/**
|
|
@@ -4643,7 +4643,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4643
4643
|
*/
|
|
4644
4644
|
getState_PrimitiveType(): EPCB_PrimitiveType;
|
|
4645
4645
|
/**
|
|
4646
|
-
*
|
|
4646
|
+
* 获取属性状态���图元 ID
|
|
4647
4647
|
*
|
|
4648
4648
|
* @public
|
|
4649
4649
|
* @returns 图元 ID
|
|
@@ -5401,7 +5401,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
|
|
5403
5403
|
/**
|
|
5404
|
-
*
|
|
5404
|
+
* 区域图元
|
|
5405
5405
|
*
|
|
5406
5406
|
* @public
|
|
5407
5407
|
*/
|
|
@@ -8886,7 +8886,7 @@ declare class LIB_Footprint {
|
|
|
8886
8886
|
*/
|
|
8887
8887
|
declare class LIB_LibrariesList {
|
|
8888
8888
|
/**
|
|
8889
|
-
*
|
|
8889
|
+
* 获取系统库的 UUID
|
|
8890
8890
|
*
|
|
8891
8891
|
* @beta
|
|
8892
8892
|
* @returns 系统库的 UUID
|
|
@@ -10169,7 +10169,7 @@ declare class PCB_ManufactureData {
|
|
|
10169
10169
|
* 如若启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
|
|
10170
10170
|
* 即 `ignoreWarning` 参数将被忽略;
|
|
10171
10171
|
*
|
|
10172
|
-
* 如若禁用,则在调用后不会有任何 EDA
|
|
10172
|
+
* 如若禁用,则在调用后不会有任何 EDA 内部弹窗,程序执行���默检查,
|
|
10173
10173
|
* 如若达成下单条件,将返回 `true` 并在新标签页打开下单页面
|
|
10174
10174
|
* @param ignoreWarning - 在非交互式检查时忽略警告
|
|
10175
10175
|
*
|
|
@@ -10556,7 +10556,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
10556
10556
|
*
|
|
10557
10557
|
* @beta
|
|
10558
10558
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
10559
|
-
* @param primitiveIds - 器件的图元 ID
|
|
10559
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组��如若为数组,则返回的也是数组
|
|
10560
10560
|
* @returns 器件图元对象,空数组表示获取失败
|
|
10561
10561
|
*/
|
|
10562
10562
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveComponent>>;
|
|
@@ -10965,7 +10965,7 @@ declare class PCB_PrimitiveObject implements IPCB_PrimitiveAPI {
|
|
|
10965
10965
|
* @beta
|
|
10966
10966
|
* @param primitiveId - 图元 ID
|
|
10967
10967
|
* @param property - 修改参数
|
|
10968
|
-
* @returns
|
|
10968
|
+
* @returns 二进制��嵌对象图元对象,`undefined` 表示修改失败
|
|
10969
10969
|
*/
|
|
10970
10970
|
modify(primitiveId: string | IPCB_PrimitiveObject, property: {
|
|
10971
10971
|
layer?: TPCB_LayersOfObject;
|
|
@@ -12210,7 +12210,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
12210
12210
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12211
12211
|
* @returns 器件的图元 ID 数组
|
|
12212
12212
|
*/
|
|
12213
|
-
getAllPrimitiveId(componentType?:
|
|
12213
|
+
getAllPrimitiveId(componentType?: ESCH_PrimitiveComponentType, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
12214
12214
|
/**
|
|
12215
12215
|
* 获取所有器件
|
|
12216
12216
|
*
|
|
@@ -12219,7 +12219,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
12219
12219
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12220
12220
|
* @returns 器件图元对象数组
|
|
12221
12221
|
*/
|
|
12222
|
-
getAll(componentType?:
|
|
12222
|
+
getAll(componentType?: ESCH_PrimitiveComponentType, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
12223
12223
|
/**
|
|
12224
12224
|
* 获取器件关联的所有引脚
|
|
12225
12225
|
*
|
|
@@ -12469,7 +12469,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
12469
12469
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12470
12470
|
* @returns 器件的图元 ID 数组
|
|
12471
12471
|
*/
|
|
12472
|
-
getAllPrimitiveId(componentType?:
|
|
12472
|
+
getAllPrimitiveId(componentType?: ESCH_PrimitiveComponentType_2, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
12473
12473
|
/**
|
|
12474
12474
|
* 获取所有器件
|
|
12475
12475
|
*
|
|
@@ -12478,7 +12478,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
12478
12478
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12479
12479
|
* @returns 器件图元对象数组
|
|
12480
12480
|
*/
|
|
12481
|
-
getAll(componentType?:
|
|
12481
|
+
getAll(componentType?: ESCH_PrimitiveComponentType_2, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent_2>>;
|
|
12482
12482
|
/**
|
|
12483
12483
|
* 获取器件关联的所有引脚
|
|
12484
12484
|
*
|
|
@@ -12847,7 +12847,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
12847
12847
|
*
|
|
12848
12848
|
* @beta
|
|
12849
12849
|
* @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线,如若多段线彼此无任何连接则创建将会失败
|
|
12850
|
-
* @param net -
|
|
12850
|
+
* @param net - 网络名称,如若未指定,则���循:
|
|
12851
12851
|
* 1. 没有坐标落在任何图元上,则默认为空网络;
|
|
12852
12852
|
* 2. 有一个坐标点在某个网络的图元上,则跟随该图元的网络;
|
|
12853
12853
|
* 3. 有多个坐标点在多个不同网络的图元上,则创建失败
|
|
@@ -13944,7 +13944,7 @@ declare class SYS_ToastMessage {
|
|
|
13944
13944
|
* @param messageType - 消息类型
|
|
13945
13945
|
* @param timer - 自动关闭倒计时秒数,`0` 为不自动关闭
|
|
13946
13946
|
* @param bottomPanel - 展开底部信息面板
|
|
13947
|
-
* @param buttonTitle -
|
|
13947
|
+
* @param buttonTitle - 回调按钮标题
|
|
13948
13948
|
* @param buttonCallbackFn - 回调函数内容,字符串形式,会被自动解析并执行
|
|
13949
13949
|
*/
|
|
13950
13950
|
showMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
|
|
@@ -14408,7 +14408,7 @@ declare type TPCB_PrimitivePadHole = [EPCB_PrimitivePadHoleType, number, number]
|
|
|
14408
14408
|
*
|
|
14409
14409
|
* - `{number}` `diameter` - 直径
|
|
14410
14410
|
*
|
|
14411
|
-
* - `{number}` `numberOfSides` -
|
|
14411
|
+
* - `{number}` `numberOfSides` - 边数(> 2)
|
|
14412
14412
|
*
|
|
14413
14413
|
* ④ 折线复杂多边形
|
|
14414
14414
|
*
|