@jlceda/pro-api-types 0.1.57 → 0.1.59
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/README.md +2 -0
- package/index.d.ts +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义
|
|
4
4
|
|
|
5
|
+
[](https://easyeda-docs.coding.net/p/eda-sdk/ci/job)    
|
|
6
|
+
|
|
5
7
|
## 使用
|
|
6
8
|
|
|
7
9
|
建议使用 [pro-api-sdk](https://github.com/jlceda/pro-api-sdk) 进行扩展开发,本定义文件已在 SDK 内预配。
|
package/index.d.ts
CHANGED
|
@@ -770,7 +770,6 @@ declare class EDA {
|
|
|
770
770
|
sch_SelectControl: SCH_SelectControl;
|
|
771
771
|
sch_Utils: SCH_Utils;
|
|
772
772
|
sys_ClientUrl: SYS_ClientUrl;
|
|
773
|
-
sys_Command: SYS_Command;
|
|
774
773
|
sys_FileManager: SYS_FileManager;
|
|
775
774
|
sys_FileSystem: SYS_FileSystem;
|
|
776
775
|
sys_FontManager: SYS_FontManager;
|
|
@@ -3948,7 +3947,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
|
|
|
3948
3947
|
/**
|
|
3949
3948
|
* 在原理图画布中创建图元
|
|
3950
3949
|
*
|
|
3951
|
-
* @returns
|
|
3950
|
+
* @returns 矩形图元对象
|
|
3952
3951
|
*/
|
|
3953
3952
|
create(): Promise<ISCH_PrimitiveRectangle>;
|
|
3954
3953
|
getState_PrimitiveType(): string;
|
|
@@ -5228,7 +5227,7 @@ declare class PCB_Drc {
|
|
|
5228
5227
|
* @param differentialPairName - 差分对名称
|
|
5229
5228
|
* @param positiveNet - 正网络名称
|
|
5230
5229
|
* @param negativeNet - 负网络名称
|
|
5231
|
-
* @returns
|
|
5230
|
+
* @returns 操作是否成功
|
|
5232
5231
|
*/
|
|
5233
5232
|
createDifferentialPair(differentialPairName: string, positiveNet: string, negativeNet: string): Promise<boolean>;
|
|
5234
5233
|
/**
|
|
@@ -6191,7 +6190,7 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
|
|
|
6191
6190
|
*/
|
|
6192
6191
|
create(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveLine | undefined>;
|
|
6193
6192
|
/**
|
|
6194
|
-
*
|
|
6193
|
+
* 删除��线
|
|
6195
6194
|
*
|
|
6196
6195
|
* @beta
|
|
6197
6196
|
* @param primitiveIds - 导线的图元 ID 或导线图元对象
|
|
@@ -6641,7 +6640,7 @@ declare class SCH_Drc {
|
|
|
6641
6640
|
* 检查 DRC
|
|
6642
6641
|
*
|
|
6643
6642
|
* @public
|
|
6644
|
-
* @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false
|
|
6643
|
+
* @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否���返回 `true`
|
|
6645
6644
|
* @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
|
|
6646
6645
|
* @returns DRC 检查是否无错误
|
|
6647
6646
|
*/
|
|
@@ -7641,8 +7640,6 @@ declare class SYS_ClientUrl {
|
|
|
7641
7640
|
}, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
|
|
7642
7641
|
}
|
|
7643
7642
|
|
|
7644
|
-
/* Excluded from this release type: SYS_Command */
|
|
7645
|
-
|
|
7646
7643
|
/**
|
|
7647
7644
|
* 扩展 API 接口 / 系统 / 文件管理类
|
|
7648
7645
|
*
|
|
@@ -7769,10 +7766,11 @@ declare class SYS_FileSystem {
|
|
|
7769
7766
|
* @public
|
|
7770
7767
|
* @remarks 调用浏览器下载接口或 Electron 保存文件接口,将传入的文件流保存到本地
|
|
7771
7768
|
* @param fileData - 文件数据
|
|
7772
|
-
* @param fileName -
|
|
7769
|
+
* @param fileName - 文件名称
|
|
7773
7770
|
*/
|
|
7774
7771
|
saveFile(fileData: File | Blob, fileName?: string): Promise<void>;
|
|
7775
7772
|
/* Excluded from this release type: readFileFromFileSystem */
|
|
7773
|
+
/* Excluded from this release type: saveFileToFileSystem */
|
|
7776
7774
|
}
|
|
7777
7775
|
|
|
7778
7776
|
/**
|