@jlceda/pro-api-types 0.1.95 → 0.1.96
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 +26 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -413,10 +413,10 @@ declare class DMT_Project {
|
|
|
413
413
|
* @beta
|
|
414
414
|
* @param projectFriendlyName - 工程友好名称
|
|
415
415
|
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
|
|
416
|
-
* @param teamUuid - 团队 UUID
|
|
416
|
+
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定���队 UUID
|
|
417
417
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
418
418
|
* @param description - 工程描述
|
|
419
|
-
* @param collaborationMode -
|
|
419
|
+
* @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
420
420
|
* @returns 工程 UUID,如若为 `undefined` 则创建失败
|
|
421
421
|
*/
|
|
422
422
|
createProject(projectFriendlyName: string, projectName?: string, teamUuid?: string, folderUuid?: string, description?: string, collaborationMode?: EDMT_ProjectCollaborationMode): Promise<string | undefined>;
|
|
@@ -595,7 +595,7 @@ declare class DMT_Schematic {
|
|
|
595
595
|
*/
|
|
596
596
|
getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
598
|
+
* 获取当前原理图图页的详细属性
|
|
599
599
|
*
|
|
600
600
|
* @beta
|
|
601
601
|
* @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -813,7 +813,7 @@ declare const eda: EDA;
|
|
|
813
813
|
* @public
|
|
814
814
|
*/
|
|
815
815
|
declare enum EDMT_EditorDocumentType {
|
|
816
|
-
/**
|
|
816
|
+
/** 开始页 */
|
|
817
817
|
HOME = -1,
|
|
818
818
|
/** 空白页 */
|
|
819
819
|
BLANK = 0,
|
|
@@ -2419,7 +2419,7 @@ declare interface IPCB_PadPairGroupItem {
|
|
|
2419
2419
|
*/
|
|
2420
2420
|
declare interface IPCB_PadPairMinWireLengthItem {
|
|
2421
2421
|
/** 焊盘对数组 */
|
|
2422
|
-
|
|
2422
|
+
padPair: [string, string];
|
|
2423
2423
|
/** 最短导线长度 */
|
|
2424
2424
|
minWireLength: number;
|
|
2425
2425
|
}
|
|
@@ -3233,7 +3233,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3233
3233
|
* 获取属性状态:BBox 左上点坐标 X
|
|
3234
3234
|
*
|
|
3235
3235
|
* @public
|
|
3236
|
-
* @returns BBox
|
|
3236
|
+
* @returns BBox 左上���坐标 X
|
|
3237
3237
|
*/
|
|
3238
3238
|
getState_X(): number;
|
|
3239
3239
|
/**
|
|
@@ -3573,7 +3573,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3573
3573
|
*/
|
|
3574
3574
|
toSync(): IPCB_PrimitiveLine;
|
|
3575
3575
|
/**
|
|
3576
|
-
*
|
|
3576
|
+
* 查询图元是否为异步��元
|
|
3577
3577
|
*
|
|
3578
3578
|
* @public
|
|
3579
3579
|
* @returns 是否为异步图元
|
|
@@ -3872,7 +3872,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3872
3872
|
* 设置属性状态:孔偏移 X
|
|
3873
3873
|
*
|
|
3874
3874
|
* @beta
|
|
3875
|
-
* @remarks
|
|
3875
|
+
* @remarks 如若孔不存在,则属性���不会被修改
|
|
3876
3876
|
* @param holeOffsetX - 孔偏移 X
|
|
3877
3877
|
* @returns 焊盘图元对象
|
|
3878
3878
|
*/
|
|
@@ -4789,7 +4789,7 @@ declare interface ISCH_Primitive {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
|
|
4791
4791
|
/**
|
|
4792
|
-
*
|
|
4792
|
+
* 原理图图元接��
|
|
4793
4793
|
*
|
|
4794
4794
|
* @public
|
|
4795
4795
|
*/
|
|
@@ -5052,7 +5052,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
|
|
|
5052
5052
|
*/
|
|
5053
5053
|
reset(): Promise<ISCH_PrimitiveCircle>;
|
|
5054
5054
|
/**
|
|
5055
|
-
*
|
|
5055
|
+
* 将对图元的更改应用到画布
|
|
5056
5056
|
*
|
|
5057
5057
|
* @beta
|
|
5058
5058
|
*/
|
|
@@ -6714,7 +6714,7 @@ declare class PCB_Document {
|
|
|
6714
6714
|
*
|
|
6715
6715
|
* @public
|
|
6716
6716
|
* @remarks
|
|
6717
|
-
*
|
|
6717
|
+
* 嘉立创 EDA 专业版前端显示的坐标均为画布原点;
|
|
6718
6718
|
*
|
|
6719
6719
|
* 嘉立创 EDA 专业版 API 使用的均为数据原点;
|
|
6720
6720
|
*
|
|
@@ -7065,7 +7065,7 @@ declare class PCB_Drc {
|
|
|
7065
7065
|
* 从等长网络组中移除网络
|
|
7066
7066
|
*
|
|
7067
7067
|
* @beta
|
|
7068
|
-
* @param equalLengthNetGroupName -
|
|
7068
|
+
* @param equalLengthNetGroupName - 等长网��组名称
|
|
7069
7069
|
* @param net - 网络名称
|
|
7070
7070
|
* @returns 操作是否成功
|
|
7071
7071
|
*/
|
|
@@ -7306,7 +7306,7 @@ declare class PCB_ManufactureData {
|
|
|
7306
7306
|
* 获取 PCB 制版文件(Gerber)
|
|
7307
7307
|
*
|
|
7308
7308
|
* @beta
|
|
7309
|
-
* @remarks 可以使用 {@link SYS_FileSystem.saveFile}
|
|
7309
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文��系统
|
|
7310
7310
|
* @param fileName - 文件名
|
|
7311
7311
|
* @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
|
|
7312
7312
|
* @param unit - 单位
|
|
@@ -7389,7 +7389,7 @@ declare class PCB_ManufactureData {
|
|
|
7389
7389
|
* 获取网表文件(Netlist)
|
|
7390
7390
|
*
|
|
7391
7391
|
* @beta
|
|
7392
|
-
* @remarks 可以使用 {@link SYS_FileSystem.saveFile}
|
|
7392
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接���将文件导出到本地文件系统
|
|
7393
7393
|
* @param fileName - 文件名
|
|
7394
7394
|
* @param netlistType - 网表类型
|
|
7395
7395
|
* @returns 网表文件数据
|
|
@@ -7469,7 +7469,7 @@ declare class PCB_ManufactureData {
|
|
|
7469
7469
|
* @beta
|
|
7470
7470
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
7471
7471
|
* @deprecated 新版自动布局 JSON 文件正在开发中,之后将会取代本接口
|
|
7472
|
-
* @param fileName -
|
|
7472
|
+
* @param fileName - ���件名
|
|
7473
7473
|
* @returns 旧版自动布局 JSON 文件数据
|
|
7474
7474
|
*/
|
|
7475
7475
|
getOldAutoLayoutJsonFile(fileName?: string): Promise<File | undefined>;
|
|
@@ -8654,7 +8654,7 @@ declare class SCH_PrimitiveArc implements ISCH_PrimitiveAPI {
|
|
|
8654
8654
|
* 创建圆弧
|
|
8655
8655
|
*
|
|
8656
8656
|
* @beta
|
|
8657
|
-
* @param startX -
|
|
8657
|
+
* @param startX - 起始点 X
|
|
8658
8658
|
* @param startY - 起始点 Y
|
|
8659
8659
|
* @param referenceX - 参考点 X
|
|
8660
8660
|
* @param referenceY - 参考点 Y
|
|
@@ -9996,7 +9996,16 @@ declare class SYS_Log {
|
|
|
9996
9996
|
* @param types - 日志类型数组,可以在指定的日志类型内查找
|
|
9997
9997
|
* @returns 符合查找条件的日志条目数组
|
|
9998
9998
|
*/
|
|
9999
|
-
find(message: string
|
|
9999
|
+
find(message: string | Array<string | {
|
|
10000
|
+
text: string;
|
|
10001
|
+
attr?: {
|
|
10002
|
+
id?: string;
|
|
10003
|
+
path?: string;
|
|
10004
|
+
sheet?: string;
|
|
10005
|
+
pcbid?: string;
|
|
10006
|
+
type?: string;
|
|
10007
|
+
};
|
|
10008
|
+
}>, types?: ESYS_LogType | Array<ESYS_LogType>): Promise<Array<ISYS_LogLine>>;
|
|
10000
10009
|
}
|
|
10001
10010
|
|
|
10002
10011
|
/**
|