@jlceda/pro-api-types 0.1.60 → 0.1.62
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.en.md +25 -0
- package/README.md +7 -7
- package/index.d.ts +13 -9
- package/package.json +2 -2
package/README.en.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[简体中文](./README.md) | [English](#)
|
|
2
|
+
|
|
3
|
+
# pro-api-types
|
|
4
|
+
|
|
5
|
+
JLCEDA & EasyEDA Pro Edition Extension API Interface Type Definition
|
|
6
|
+
|
|
7
|
+
<img src="https://easyeda-docs.coding.net/badges/eda-sdk/job/4639863/build.svg" alt="Build Status" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/v/%40jlceda%2Fpro-api-types" alt="NPM Version" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/unpacked-size/%40jlceda%2Fpro-api-types" alt="NPM Unpacked Size" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types" alt="NPM License" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/d18m/%40jlceda%2Fpro-api-types" alt="NPM Downloads" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" />
|
|
8
|
+
|
|
9
|
+
## How to Use
|
|
10
|
+
|
|
11
|
+
It is recommended to use [pro-api-sdk](https://github.com/jlceda/pro-api-sdk) for extension development, this definition file is pre-configured within the SDK.
|
|
12
|
+
|
|
13
|
+
1. 安装类型定义
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
npm install --save-dev @jlceda/pro-api-types
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Add `./node_modules/@jlceda/pro-api-types/` into `tsconfig.include`
|
|
20
|
+
|
|
21
|
+
## Open Source License
|
|
22
|
+
|
|
23
|
+
<a href="https://choosealicense.com/licenses/apache-2.0/" style="vertical-align: inherit;" target="_blank"><img src="https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types" alt="NPM License" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /></a>
|
|
24
|
+
|
|
25
|
+
This typedef uses the [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) open source license, and you may only use the **嘉立创EDA**, **EasyEDA** trademark information in the **Functional Description** and **Title of Open Source Release** sections of the extension packages developed by the [pro-api-sdk](https://github.com/jlceda/pro-api-sdk) toolset, and the **Title of Open Source Release** section. **Functional Description Section** and **Title Section** of the Open Source Release for extension packages developed by the toolset.
|
package/README.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
[简体中文](#) | [English](./README.en.md)
|
|
2
|
+
|
|
1
3
|
# pro-api-types
|
|
2
4
|
|
|
3
5
|
嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-

|
|
7
|
+
<img src="https://easyeda-docs.coding.net/badges/eda-sdk/job/4639863/build.svg" alt="Build Status" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/v/%40jlceda%2Fpro-api-types" alt="NPM Version" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/unpacked-size/%40jlceda%2Fpro-api-types" alt="NPM Unpacked Size" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types" alt="NPM License" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /> <img src="https://img.shields.io/npm/d18m/%40jlceda%2Fpro-api-types" alt="NPM Downloads" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" />
|
|
10
8
|
|
|
11
9
|
## 使用
|
|
12
10
|
|
|
13
|
-
建议使用 [pro-api-sdk](https://
|
|
11
|
+
建议使用 [pro-api-sdk](https://gitee.com/jlceda/pro-api-sdk) 进行扩展开发,本定义文件已在 SDK 内预配。
|
|
14
12
|
|
|
15
13
|
1. 安装类型定义
|
|
16
14
|
|
|
@@ -22,4 +20,6 @@
|
|
|
22
20
|
|
|
23
21
|
## 开源许可
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
<a href="https://choosealicense.com/licenses/apache-2.0/" style="vertical-align: inherit;" target="_blank"><img src="https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types" alt="NPM License" class="not-medium-zoom-image" style="display: inline; vertical-align: inherit;" /></a>
|
|
24
|
+
|
|
25
|
+
本类型定义使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 开源许可协议,你仅可以将 **嘉立创EDA**、**EasyEDA** 商标信息用于依托于 [pro-api-sdk](https://gitee.com/jlceda/pro-api-sdk) 工具组开发的扩展包的 **功能描述部分** 和 **开源发布的标题部分**。
|
package/index.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ declare class DMT_Folder {
|
|
|
195
195
|
* @param teamUuid - 团队 UUID
|
|
196
196
|
* @param parentFolderUuid - 父文件夹 UUID,如若不指定,则为根文件夹
|
|
197
197
|
* @param description - 文件夹描述
|
|
198
|
-
* @returns
|
|
198
|
+
* @returns 文件�� UUID,如若为 `undefined` 则创建失败
|
|
199
199
|
*/
|
|
200
200
|
createFolder(folderName: string, teamUuid: string, parentFolderUuid?: string, description?: string): Promise<string | undefined>;
|
|
201
201
|
/**
|
|
@@ -412,7 +412,7 @@ declare class DMT_Project {
|
|
|
412
412
|
*
|
|
413
413
|
* @beta
|
|
414
414
|
* @param projectFriendlyName - 工程友好名称
|
|
415
|
-
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线
|
|
415
|
+
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
|
|
416
416
|
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
|
|
417
417
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
418
418
|
* @param description - 工程描述
|
|
@@ -2860,7 +2860,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
2860
2860
|
*/
|
|
2861
2861
|
toSync(): IPCB_PrimitiveLine;
|
|
2862
2862
|
/**
|
|
2863
|
-
*
|
|
2863
|
+
* 查询图���是否为异步图元
|
|
2864
2864
|
*/
|
|
2865
2865
|
isAsync(): boolean;
|
|
2866
2866
|
/**
|
|
@@ -3401,7 +3401,7 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
|
|
|
3401
3401
|
* 在原理图画布中创建图元
|
|
3402
3402
|
*
|
|
3403
3403
|
* @beta
|
|
3404
|
-
* @returns
|
|
3404
|
+
* @returns 圆弧图元��象
|
|
3405
3405
|
*/
|
|
3406
3406
|
create(): Promise<ISCH_PrimitiveArc>;
|
|
3407
3407
|
getState_PrimitiveType(): string;
|
|
@@ -4223,7 +4223,7 @@ declare class LIB_3DModel {
|
|
|
4223
4223
|
* @beta
|
|
4224
4224
|
* @param modelUuid - 3D 模型 UUID
|
|
4225
4225
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
4226
|
-
* @returns
|
|
4226
|
+
* @returns ���作是否成功
|
|
4227
4227
|
*/
|
|
4228
4228
|
delete(modelUuid: string, libraryUuid: string): Promise<boolean>;
|
|
4229
4229
|
/**
|
|
@@ -4784,7 +4784,7 @@ declare class LIB_PanelLibrary {
|
|
|
4784
4784
|
*
|
|
4785
4785
|
* @beta
|
|
4786
4786
|
* @param key - 搜索关键字
|
|
4787
|
-
* @param libraryUuid - 库 UUID
|
|
4787
|
+
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
4788
4788
|
* @param classification - 分类,默认为全部
|
|
4789
4789
|
* @param itemsOfPage - 一页搜索结果的数量
|
|
4790
4790
|
* @param page - 页数
|
|
@@ -5224,7 +5224,7 @@ declare class PCB_Drc {
|
|
|
5224
5224
|
* 创建差分对
|
|
5225
5225
|
*
|
|
5226
5226
|
* @beta
|
|
5227
|
-
* @param differentialPairName -
|
|
5227
|
+
* @param differentialPairName - 差分对名��
|
|
5228
5228
|
* @param positiveNet - 正网络名称
|
|
5229
5229
|
* @param negativeNet - 负网络名称
|
|
5230
5230
|
* @returns 操作是否成功
|
|
@@ -7307,7 +7307,7 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
7307
7307
|
* 获取多边形
|
|
7308
7308
|
*
|
|
7309
7309
|
* @beta
|
|
7310
|
-
* @param primitiveIds -
|
|
7310
|
+
* @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
7311
7311
|
* @returns 多边形图元对象
|
|
7312
7312
|
*/
|
|
7313
7313
|
get(primitiveIds: string): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
@@ -7631,6 +7631,7 @@ declare class SYS_ClientUrl {
|
|
|
7631
7631
|
* @param data - 请求发送的数据,可以是直接数据或 {@link https://developer.mozilla.org/docs/Web/API/URLSearchParams | URLSearchParams} 对象,如果 method 为 `HEAD` 或 `GET`,本参数将被忽略
|
|
7632
7632
|
* @param options - 请求参数
|
|
7633
7633
|
* @param succeedCallFn - 请求成功后回调的函数
|
|
7634
|
+
* @returns Fetch 的返回结果
|
|
7634
7635
|
*/
|
|
7635
7636
|
request(url: string, method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH', data?: string | Blob | FormData | URLSearchParams, options?: {
|
|
7636
7637
|
headers?: {
|
|
@@ -7670,7 +7671,7 @@ declare class SYS_FileManager {
|
|
|
7670
7671
|
* 获取文档源码
|
|
7671
7672
|
*
|
|
7672
7673
|
* @beta
|
|
7673
|
-
* @returns
|
|
7674
|
+
* @returns 文档源码数据���`undefined` 表示当前未打开文档或数据获取失败
|
|
7674
7675
|
*/
|
|
7675
7676
|
getDocumentSource(): Promise<string | undefined>;
|
|
7676
7677
|
/**
|
|
@@ -8172,6 +8173,7 @@ declare class SYS_Timer {
|
|
|
8172
8173
|
* @param timeout - 定时时间,单位 ms
|
|
8173
8174
|
* @param callFn - 定时调用函数
|
|
8174
8175
|
* @param argument - 传给定时调用函数的参数
|
|
8176
|
+
* @returns 定时器是否设置成功
|
|
8175
8177
|
*/
|
|
8176
8178
|
setIntervalTimer(id: string, timeout: number, callFn: (argument: any) => void, argument?: any): boolean;
|
|
8177
8179
|
/**
|
|
@@ -8179,6 +8181,7 @@ declare class SYS_Timer {
|
|
|
8179
8181
|
*
|
|
8180
8182
|
* @public
|
|
8181
8183
|
* @param id - 定时器 ID
|
|
8184
|
+
* @returns 定时器是否清除成功
|
|
8182
8185
|
*/
|
|
8183
8186
|
clearIntervalTimer(id: string): boolean;
|
|
8184
8187
|
/**
|
|
@@ -8188,6 +8191,7 @@ declare class SYS_Timer {
|
|
|
8188
8191
|
* @param timeout - 定时时间,单位 ms
|
|
8189
8192
|
* @param callFn - 定时调用函数
|
|
8190
8193
|
* @param argument - 传给定时调用函数的参数
|
|
8194
|
+
* @returns 定时器是否设置成功
|
|
8191
8195
|
*/
|
|
8192
8196
|
setTimeoutTimer(timeout: number, callFn: (argument: any) => void, argument?: any): boolean;
|
|
8193
8197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jlceda/pro-api-types",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"eslint-plugin-tsdoc": "^0.3.0",
|
|
31
31
|
"fast-text-encoding": "^1.0.6",
|
|
32
32
|
"fs-extra": "^11.2.0",
|
|
33
|
-
"husky": "^9.1.
|
|
33
|
+
"husky": "^9.1.3",
|
|
34
34
|
"lint-staged": "^15.2.7",
|
|
35
35
|
"prettier": "^3.3.3",
|
|
36
36
|
"ts-node": "^10.9.2",
|