@jlceda/pro-api-types 0.1.61 → 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 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;" />&nbsp;<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;" />&nbsp;<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;" />&nbsp;<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;" />&nbsp;<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
- [![Build Status](https://easyeda-docs.coding.net/badges/eda-sdk/job/4639863/build.svg)](https://easyeda-docs.coding.net/p/eda-sdk/ci/job)
6
- ![NPM Version](https://img.shields.io/npm/v/%40jlceda%2Fpro-api-types)
7
- ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40jlceda%2Fpro-api-types)
8
- ![NPM License](https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types)
9
- ![NPM Downloads](https://img.shields.io/npm/d18m/%40jlceda%2Fpro-api-types)
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;" />&nbsp;<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;" />&nbsp;<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;" />&nbsp;<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;" />&nbsp;<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://github.com/jlceda/pro-api-sdk) 进行扩展开发,本定义文件已在 SDK 内预配。
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
- 本类型定义使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 开源许可协议,你仅可以将 **嘉立创EDA**、**EasyEDA** 商标信息用于依托于 [pro-api-sdk](https://github.com/jlceda/pro-api-sdk) 工具组开发的扩展包的 **功能描述部分** **开源发布的标题部分**。
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 文件夹 UUID,如若为 `undefined` 则创建失败
198
+ * @returns 文件�� UUID,如若为 `undefined` 则创建失败
199
199
  */
200
200
  createFolder(folderName: string, teamUuid: string, parentFolderUuid?: string, description?: string): Promise<string | undefined>;
201
201
  /**
@@ -686,7 +686,7 @@ declare class DMT_Team {
686
686
  */
687
687
  declare class DMT_Workspace {
688
688
  /**
689
- * 获取所有工作区的详���属性
689
+ * 获取所有工作区的详细属性
690
690
  *
691
691
  * @public
692
692
  * @returns 所有工作区的详细属性
@@ -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
  /**
@@ -3121,7 +3121,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
3121
3121
  */
3122
3122
  toSync(): IPCB_PrimitivePad;
3123
3123
  /**
3124
- * 查询图元���否为异步图元
3124
+ * 查询图元是否为异步图元
3125
3125
  *
3126
3126
  * @public
3127
3127
  * @returns 是否为异步图元
@@ -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
  /**
@@ -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 操作是否成功
@@ -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 文档源码数据,`undefined` 表示当前未打开文��或数据获取失败
7674
+ * @returns 文档源码数据���`undefined` 表示当前未打开文档或数据获取失败
7674
7675
  */
7675
7676
  getDocumentSource(): Promise<string | undefined>;
7676
7677
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [