@jlceda/pro-api-types 0.1.85 → 0.1.86
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 +14 -26
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -416,7 +416,7 @@ declare class DMT_Project {
|
|
|
416
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 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -1749,7 +1749,7 @@ declare interface IDMT_EditorTabItem {
|
|
|
1749
1749
|
title: string;
|
|
1750
1750
|
/** 标签页 ID */
|
|
1751
1751
|
tabId: string;
|
|
1752
|
-
/**
|
|
1752
|
+
/** 标签页是否可拖动 */
|
|
1753
1753
|
draggable: boolean;
|
|
1754
1754
|
/** 标签页是否可关闭 */
|
|
1755
1755
|
isAbleDelete: boolean;
|
|
@@ -2292,7 +2292,7 @@ declare interface ILIB_SymbolSearchItem {
|
|
|
2292
2292
|
*
|
|
2293
2293
|
* @public
|
|
2294
2294
|
* @remarks
|
|
2295
|
-
*
|
|
2295
|
+
* 复杂多边形可以包含��个单多边形,通过 {@link https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule | fill-rule} 将其组合,以实现多边形的布尔运算。
|
|
2296
2296
|
* 目前嘉立创 EDA 专业版固定使用 {@link https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule#nonzero | nonzero} 这个 fill-rule。
|
|
2297
2297
|
*/
|
|
2298
2298
|
declare class IPCB_ComplexPolygon {
|
|
@@ -2604,7 +2604,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
|
2604
2604
|
* 设置属性状态:终止位置 Y
|
|
2605
2605
|
*
|
|
2606
2606
|
* @beta
|
|
2607
|
-
* @param endY -
|
|
2607
|
+
* @param endY - 终��位置 Y
|
|
2608
2608
|
* @returns 圆弧线图元对象
|
|
2609
2609
|
*/
|
|
2610
2610
|
setState_EndY(endY: number): IPCB_PrimitiveArc;
|
|
@@ -7158,7 +7158,7 @@ declare class PCB_Layer {
|
|
|
7158
7158
|
* @param numberOfLayers - 层数
|
|
7159
7159
|
* @returns 操作是否成功
|
|
7160
7160
|
*/
|
|
7161
|
-
setTheNumberOfCopperLayers(numberOfLayers:
|
|
7161
|
+
setTheNumberOfCopperLayers(numberOfLayers: 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32): Promise<boolean>;
|
|
7162
7162
|
/**
|
|
7163
7163
|
* 设置层颜色配置
|
|
7164
7164
|
*
|
|
@@ -7553,14 +7553,8 @@ declare class PCB_Net {
|
|
|
7553
7553
|
declare class PCB_Primitive {
|
|
7554
7554
|
/* Excluded from this release type: getPrimitiveTypeByPrimitiveId */
|
|
7555
7555
|
/* Excluded from this release type: getPrimitiveByPrimitiveId */
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
*
|
|
7559
|
-
* @public
|
|
7560
|
-
* @param ids - 图元 ID 数组
|
|
7561
|
-
* @returns 所有图元的所有属性
|
|
7562
|
-
*/
|
|
7563
|
-
getPrimitivesByPrimitiveId(ids: Array<string>): Promise<Array<IPCB_Primitive>>;
|
|
7556
|
+
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
7557
|
+
/* Excluded from this release type: getPrimitivesBBox */
|
|
7564
7558
|
}
|
|
7565
7559
|
|
|
7566
7560
|
/**
|
|
@@ -8578,14 +8572,8 @@ declare class SCH_Primitive {
|
|
|
8578
8572
|
* @returns 图元的所有属性
|
|
8579
8573
|
*/
|
|
8580
8574
|
getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
*
|
|
8584
|
-
* @public
|
|
8585
|
-
* @param ids - 图元 ID 数组
|
|
8586
|
-
* @returns 所有图元的所有属性
|
|
8587
|
-
*/
|
|
8588
|
-
getPrimitivesByPrimitiveId(ids: Array<string>): Promise<Array<ISCH_Primitive>>;
|
|
8575
|
+
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
8576
|
+
/* Excluded from this release type: getPrimitivesBBox */
|
|
8589
8577
|
}
|
|
8590
8578
|
|
|
8591
8579
|
/**
|
|
@@ -9113,7 +9101,7 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
9113
9101
|
* 创建多边形
|
|
9114
9102
|
*
|
|
9115
9103
|
* @beta
|
|
9116
|
-
* @param line -
|
|
9104
|
+
* @param line - 坐标组,连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
|
|
9117
9105
|
* @param color - 颜色,`null` 表示默认
|
|
9118
9106
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
9119
9107
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
@@ -9367,7 +9355,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
9367
9355
|
* 获取导线
|
|
9368
9356
|
*
|
|
9369
9357
|
* @beta
|
|
9370
|
-
* @param primitiveIds - 导线的图元 ID
|
|
9358
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数���,则返回的也是数组
|
|
9371
9359
|
* @returns 导线图元对象
|
|
9372
9360
|
*/
|
|
9373
9361
|
get(primitiveIds: string): ISCH_PrimitiveWire | undefined;
|
|
@@ -9476,7 +9464,7 @@ declare class SYS_ClientUrl {
|
|
|
9476
9464
|
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
9477
9465
|
* @param url - 请求地址
|
|
9478
9466
|
* @param method - 请求方法
|
|
9479
|
-
* @param data -
|
|
9467
|
+
* @param data - 请求发送的数据,可以是直接数据或 {@link https://developer.mozilla.org/docs/Web/API/URLSearchParams | URLSearchParams} 对象,如果 method 为 `HEAD` 或 `GET`,本参数将被忽略
|
|
9480
9468
|
* @param options - 请求参数
|
|
9481
9469
|
* @param succeedCallFn - 请求成功后回调的函数
|
|
9482
9470
|
* @returns Fetch 的返回结果
|
|
@@ -9601,7 +9589,7 @@ declare class SYS_FileManager {
|
|
|
9601
9589
|
* 修改文档源码
|
|
9602
9590
|
*
|
|
9603
9591
|
* @beta
|
|
9604
|
-
* @param source -
|
|
9592
|
+
* @param source - 文档源码
|
|
9605
9593
|
* @returns 是否修改成功,如果输入的文档源码格式错误,将返回 `false` 的结果
|
|
9606
9594
|
*/
|
|
9607
9595
|
setDocumentSource(source: string): Promise<boolean>;
|