@jlceda/pro-api-types 0.1.109 → 0.1.110
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 +31 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3569,7 +3569,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
|
|
|
3569
3569
|
*/
|
|
3570
3570
|
convertToPour(): Promise<IPCB_PrimitivePour>;
|
|
3571
3571
|
/**
|
|
3572
|
-
*
|
|
3572
|
+
* 转换到:区��图元(默认是禁止区域)
|
|
3573
3573
|
*
|
|
3574
3574
|
* @beta
|
|
3575
3575
|
* @returns 区域图元对象
|
|
@@ -5858,7 +5858,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5858
5858
|
*/
|
|
5859
5859
|
getState_ComponentType(): ESCH_PrimitiveComponentType;
|
|
5860
5860
|
/**
|
|
5861
|
-
*
|
|
5861
|
+
* 获取属性状态:���元 ID
|
|
5862
5862
|
*
|
|
5863
5863
|
* @public
|
|
5864
5864
|
* @returns 图元 ID
|
|
@@ -7124,7 +7124,16 @@ declare class LIB_Footprint {
|
|
|
7124
7124
|
* @returns 操作是否成功
|
|
7125
7125
|
*/
|
|
7126
7126
|
modify(footprintUuid: string, libraryUuid: string, footprintName?: string, classification?: ILIB_ClassificationIndex | null, description?: string | null): Promise<boolean>;
|
|
7127
|
-
|
|
7127
|
+
/**
|
|
7128
|
+
* 更新封装的文档源码
|
|
7129
|
+
*
|
|
7130
|
+
* @beta
|
|
7131
|
+
* @param footprintUuid - 封装 UUID
|
|
7132
|
+
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
7133
|
+
* @param documentSource - 文档源码
|
|
7134
|
+
* @returns 是否更新成功
|
|
7135
|
+
*/
|
|
7136
|
+
updateDocumentSource(footprintUuid: string, libraryUuid: string, documentSource: string): Promise<boolean | undefined>;
|
|
7128
7137
|
/**
|
|
7129
7138
|
* 获取封装的所有属性
|
|
7130
7139
|
*
|
|
@@ -7174,7 +7183,7 @@ declare class LIB_Footprint {
|
|
|
7174
7183
|
* 综合库 / 库列表类
|
|
7175
7184
|
*
|
|
7176
7185
|
* @public
|
|
7177
|
-
* @remarks
|
|
7186
|
+
* @remarks 此处所有接口都基于编辑器当前工作区环境,如需切换到其他工作区,请使用 {@link DMT_Workspace.toggleToWorkspace} 接口切换工作区
|
|
7178
7187
|
*/
|
|
7179
7188
|
declare class LIB_LibrariesList {
|
|
7180
7189
|
/**
|
|
@@ -7342,7 +7351,16 @@ declare class LIB_Symbol {
|
|
|
7342
7351
|
* @returns 操作是否成功
|
|
7343
7352
|
*/
|
|
7344
7353
|
modify(symbolUuid: string, libraryUuid: string, symbolName?: string, classification?: ILIB_ClassificationIndex | null, description?: string | null): Promise<boolean>;
|
|
7345
|
-
|
|
7354
|
+
/**
|
|
7355
|
+
* 更新符号的文档源码
|
|
7356
|
+
*
|
|
7357
|
+
* @beta
|
|
7358
|
+
* @param symbolUuid - 符号 UUID
|
|
7359
|
+
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
7360
|
+
* @param documentSource - 文档源码
|
|
7361
|
+
* @returns 是否更新成功
|
|
7362
|
+
*/
|
|
7363
|
+
updateDocumentSource(symbolUuid: string, libraryUuid: string, documentSource: string): Promise<boolean | undefined>;
|
|
7346
7364
|
/**
|
|
7347
7365
|
* 获取符号的所有属性
|
|
7348
7366
|
*
|
|
@@ -7365,7 +7383,7 @@ declare class LIB_Symbol {
|
|
|
7365
7383
|
*/
|
|
7366
7384
|
copy(symbolUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex, newSymbolName?: string): Promise<string | undefined>;
|
|
7367
7385
|
/**
|
|
7368
|
-
*
|
|
7386
|
+
* 搜索符号
|
|
7369
7387
|
*
|
|
7370
7388
|
* @beta
|
|
7371
7389
|
* @param key - 搜索关键字
|
|
@@ -7568,7 +7586,7 @@ declare class PCB_Drc {
|
|
|
7568
7586
|
* @public
|
|
7569
7587
|
* @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否则返回 `true`
|
|
7570
7588
|
* @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
|
|
7571
|
-
* @returns DRC
|
|
7589
|
+
* @returns DRC 检查是否无错误
|
|
7572
7590
|
*/
|
|
7573
7591
|
check(strict?: boolean, userInterface?: boolean): Promise<boolean>;
|
|
7574
7592
|
/**
|
|
@@ -7668,7 +7686,7 @@ declare class PCB_Drc {
|
|
|
7668
7686
|
* 覆写网络规则
|
|
7669
7687
|
*
|
|
7670
7688
|
* @beta
|
|
7671
|
-
* @remarks 将会覆写当前 PCB
|
|
7689
|
+
* @remarks 将会覆写当前 PCB 的所有网络规则,请注意数据丢失风险
|
|
7672
7690
|
* @param netRules - 网络规则
|
|
7673
7691
|
* @returns 覆写是否成功
|
|
7674
7692
|
*/
|
|
@@ -9100,7 +9118,7 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
|
|
|
9100
9118
|
* 获取直线
|
|
9101
9119
|
*
|
|
9102
9120
|
* @beta
|
|
9103
|
-
* @remarks
|
|
9121
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
9104
9122
|
* @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9105
9123
|
* @returns 直线图元对象,空数组表示获取失败
|
|
9106
9124
|
*/
|
|
@@ -9183,7 +9201,7 @@ declare class PCB_PrimitiveObject implements IPCB_PrimitiveAPI {
|
|
|
9183
9201
|
* 获取二进制内嵌对象
|
|
9184
9202
|
*
|
|
9185
9203
|
* @beta
|
|
9186
|
-
* @param primitiveIds - 二进制内嵌对象的图元 ID
|
|
9204
|
+
* @param primitiveIds - 二进制内嵌对象的图元 ID,��以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9187
9205
|
* @returns 二进制内嵌对象图元对象,`undefined` 表示获取失败
|
|
9188
9206
|
*/
|
|
9189
9207
|
get(primitiveIds: string): Promise<IPCB_PrimitiveObject | undefined>;
|
|
@@ -10024,7 +10042,7 @@ declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
|
|
|
10024
10042
|
*
|
|
10025
10043
|
* @beta
|
|
10026
10044
|
* @param busName - 总线名称
|
|
10027
|
-
* @param line -
|
|
10045
|
+
* @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线,如若多段线彼此无任何连接则创建将会失败
|
|
10028
10046
|
* @param color - 总线颜色,`null` 表示默认
|
|
10029
10047
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10030
10048
|
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
@@ -10978,7 +10996,7 @@ declare class SYS_FileManager {
|
|
|
10978
10996
|
*/
|
|
10979
10997
|
getProjectFile(fileName?: string, password?: string): Promise<File | undefined>;
|
|
10980
10998
|
/**
|
|
10981
|
-
*
|
|
10999
|
+
* ���取文档文件
|
|
10982
11000
|
*
|
|
10983
11001
|
* @public
|
|
10984
11002
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
@@ -11690,7 +11708,7 @@ declare class SYS_Timer {
|
|
|
11690
11708
|
*/
|
|
11691
11709
|
declare class SYS_ToastMessage {
|
|
11692
11710
|
/**
|
|
11693
|
-
*
|
|
11711
|
+
* 显示吐司消息
|
|
11694
11712
|
*
|
|
11695
11713
|
* @public
|
|
11696
11714
|
* @deprecated 请使用 {@link SYS_Message.showToastMessage} 方法替代
|