@jlceda/pro-api-types 0.1.72 → 0.1.74
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 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -413,7 +413,7 @@ 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
419
|
* @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
@@ -807,7 +807,7 @@ declare enum EDMT_EditorDocumentType {
|
|
|
807
807
|
HOME = -1,
|
|
808
808
|
/** 空白页 */
|
|
809
809
|
BLANK = 0,
|
|
810
|
-
/**
|
|
810
|
+
/** 原理图图页 */
|
|
811
811
|
SCHEMATIC_PAGE = 1,
|
|
812
812
|
/** PCB */
|
|
813
813
|
PCB = 3,
|
|
@@ -1193,7 +1193,7 @@ declare enum EPCB_LayerType {
|
|
|
1193
1193
|
SILKSCREEN = 3,
|
|
1194
1194
|
/** 阻焊层 */
|
|
1195
1195
|
SOLDER_MASK = 4,
|
|
1196
|
-
/**
|
|
1196
|
+
/** 锡膏(助焊)层 */
|
|
1197
1197
|
PASTE_MASK = 5,
|
|
1198
1198
|
/** 装配层 */
|
|
1199
1199
|
ASSEMBLY = 6,
|
|
@@ -2862,7 +2862,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
2862
2862
|
*/
|
|
2863
2863
|
toSync(): IPCB_PrimitiveLine;
|
|
2864
2864
|
/**
|
|
2865
|
-
*
|
|
2865
|
+
* 查询图元是否为异步图��
|
|
2866
2866
|
*/
|
|
2867
2867
|
isAsync(): boolean;
|
|
2868
2868
|
/**
|
|
@@ -2997,7 +2997,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
2997
2997
|
* @remarks
|
|
2998
2998
|
* 设置焊盘外形时将会联动设置部分其它属性状态:
|
|
2999
2999
|
*
|
|
3000
|
-
* 1.
|
|
3000
|
+
* 1. 特殊焊盘外形属性将被清���
|
|
3001
3001
|
*
|
|
3002
3002
|
* @param pad - 焊盘外形
|
|
3003
3003
|
* @returns 焊盘图元对象
|
|
@@ -4989,7 +4989,7 @@ declare class PCB_Document {
|
|
|
4989
4989
|
* 嘉立创 EDA 专业版 API 使用的均为数据原点;
|
|
4990
4990
|
*
|
|
4991
4991
|
* 如果希望在 API 操作时前端画布坐标能与数据一致,
|
|
4992
|
-
*
|
|
4992
|
+
* 建议调用本方法并设置偏移量为零,
|
|
4993
4993
|
* 即 `setCanvasOrigin(0, 0)`;
|
|
4994
4994
|
*
|
|
4995
4995
|
* 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
|
|
@@ -5474,7 +5474,7 @@ declare class PCB_Layer {
|
|
|
5474
5474
|
* 设置层颜色配置
|
|
5475
5475
|
*
|
|
5476
5476
|
* @beta
|
|
5477
|
-
* @param colorConfiguration -
|
|
5477
|
+
* @param colorConfiguration - 颜色配置
|
|
5478
5478
|
* @returns 操作是否成功
|
|
5479
5479
|
*/
|
|
5480
5480
|
setLayerColorConfiguration(colorConfiguration: EPCB_LayerColorConfiguration): Promise<boolean>;
|
|
@@ -7142,7 +7142,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
7142
7142
|
* @param primitiveId - 图元 ID
|
|
7143
7143
|
* @param x - 坐标 X
|
|
7144
7144
|
* @param y - 坐标 Y
|
|
7145
|
-
* @param rotation -
|
|
7145
|
+
* @param rotation - 旋转角度,可��� `0` `90` `180` `270`
|
|
7146
7146
|
* @param mirror - 是否镜像
|
|
7147
7147
|
* @param libraryPath - 库路径,默认为系统库
|
|
7148
7148
|
* @param addIntoBom - 是否加入 BOM
|
|
@@ -7181,7 +7181,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
7181
7181
|
* @param componentType - 器件类型
|
|
7182
7182
|
* @returns 器件的图元 ID 数组
|
|
7183
7183
|
*/
|
|
7184
|
-
getAllPrimitiveId(componentType?: string): Promise<Array<string>>;
|
|
7184
|
+
getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
7185
7185
|
/**
|
|
7186
7186
|
* 获取所有器件
|
|
7187
7187
|
*
|
|
@@ -7189,7 +7189,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
7189
7189
|
* @param componentType - 器件类型
|
|
7190
7190
|
* @returns 器件图元对象数组
|
|
7191
7191
|
*/
|
|
7192
|
-
getAll(componentType?: string): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
7192
|
+
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
7193
7193
|
/**
|
|
7194
7194
|
* 到 pro-ui 获取器件的详细信息
|
|
7195
7195
|
*
|
|
@@ -7240,7 +7240,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
7240
7240
|
*/
|
|
7241
7241
|
delete(primitiveIds: string | ISCH_PrimitivePin | Array<string> | Array<ISCH_PrimitivePin>): Promise<boolean>;
|
|
7242
7242
|
/**
|
|
7243
|
-
*
|
|
7243
|
+
* 修改引���
|
|
7244
7244
|
*
|
|
7245
7245
|
* @beta
|
|
7246
7246
|
* @param primitiveId - 图元 ID
|
|
@@ -7596,7 +7596,7 @@ declare class SCH_SelectControl {
|
|
|
7596
7596
|
*/
|
|
7597
7597
|
getSelectedPrimitives(): Promise<Array<Object>>;
|
|
7598
7598
|
/**
|
|
7599
|
-
* 使用图元 ID
|
|
7599
|
+
* 使用图元 ID ���中图元
|
|
7600
7600
|
*
|
|
7601
7601
|
* @public
|
|
7602
7602
|
* @param primitiveIds - 图元 ID
|
|
@@ -7901,7 +7901,7 @@ declare class SYS_I18n {
|
|
|
7901
7901
|
* @public
|
|
7902
7902
|
* @param namespace - 命名空间
|
|
7903
7903
|
* @param language - 语言
|
|
7904
|
-
* @param source -
|
|
7904
|
+
* @param source - 欲导入的多语言数据对象
|
|
7905
7905
|
*/
|
|
7906
7906
|
importMultilingualLanguage(namespace: string, language: string, source: ISYS_LanguageKeyValuePairs): boolean;
|
|
7907
7907
|
/**
|
|
@@ -8445,7 +8445,7 @@ declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerTyp
|
|
|
8445
8445
|
*
|
|
8446
8446
|
* `['CIRCLE', 100, 200, 5]`
|
|
8447
8447
|
*
|
|
8448
|
-
*
|
|
8448
|
+
* 单多边形��数据由以下几种模式组合而成:
|
|
8449
8449
|
*
|
|
8450
8450
|
* ① L 直线模式
|
|
8451
8451
|
*
|