@jlceda/pro-api-types 0.1.86 → 0.1.88
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 +24 -19
- 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 - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
@@ -1187,7 +1187,7 @@ declare enum EPCB_LayerId {
|
|
|
1187
1187
|
SHELL_3D_TOP = 54,
|
|
1188
1188
|
/** 3D 外壳底层 */
|
|
1189
1189
|
SHELL_3D_BOTTOM = 55,
|
|
1190
|
-
/**
|
|
1190
|
+
/** 钻��图层 */
|
|
1191
1191
|
DRILL_DRAWING = 56
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
@@ -1410,7 +1410,8 @@ declare enum ESCH_PrimitiveComponentType {
|
|
|
1410
1410
|
/** 无电气标识 */
|
|
1411
1411
|
NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
|
|
1412
1412
|
/** 短接标识 */
|
|
1413
|
-
SHORT_CIRCUIT_FLAG = "short_symbol"
|
|
1413
|
+
SHORT_CIRCUIT_FLAG = "short_symbol",
|
|
1414
|
+
NET_LABEL = "netlabel"
|
|
1414
1415
|
}
|
|
1415
1416
|
|
|
1416
1417
|
/**
|
|
@@ -2104,7 +2105,7 @@ declare interface ILIB_DeviceSearchItem {
|
|
|
2104
2105
|
footprintName?: string;
|
|
2105
2106
|
/** 关联封装 UUID */
|
|
2106
2107
|
footprintUuid?: string;
|
|
2107
|
-
/** 关联 3D
|
|
2108
|
+
/** 关联 3D 模型名�� */
|
|
2108
2109
|
model3DName?: string;
|
|
2109
2110
|
/** 关联 3D 模型 UUID */
|
|
2110
2111
|
model3DUuid?: string;
|
|
@@ -2292,7 +2293,7 @@ declare interface ILIB_SymbolSearchItem {
|
|
|
2292
2293
|
*
|
|
2293
2294
|
* @public
|
|
2294
2295
|
* @remarks
|
|
2295
|
-
*
|
|
2296
|
+
* ���杂多边形可以包含多个单多边形,通过 {@link https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule | fill-rule} 将其组合,以实现多边形的布尔运算。
|
|
2296
2297
|
* 目前嘉立创 EDA 专业版固定使用 {@link https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule#nonzero | nonzero} 这个 fill-rule。
|
|
2297
2298
|
*/
|
|
2298
2299
|
declare class IPCB_ComplexPolygon {
|
|
@@ -2604,7 +2605,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
|
2604
2605
|
* 设置属性状态:终止位置 Y
|
|
2605
2606
|
*
|
|
2606
2607
|
* @beta
|
|
2607
|
-
* @param endY -
|
|
2608
|
+
* @param endY - 终止位置 Y
|
|
2608
2609
|
* @returns 圆弧线图元对象
|
|
2609
2610
|
*/
|
|
2610
2611
|
setState_EndY(endY: number): IPCB_PrimitiveArc;
|
|
@@ -3407,7 +3408,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3407
3408
|
*/
|
|
3408
3409
|
getState_Net(): string;
|
|
3409
3410
|
/**
|
|
3410
|
-
*
|
|
3411
|
+
* ��取属性状态:层
|
|
3411
3412
|
*
|
|
3412
3413
|
* @public
|
|
3413
3414
|
* @returns 层
|
|
@@ -3862,7 +3863,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3862
3863
|
* @beta
|
|
3863
3864
|
* @remarks 如若孔不存在,则属性将不会被修改
|
|
3864
3865
|
* @param metallization - 是否金属化孔壁
|
|
3865
|
-
* @returns
|
|
3866
|
+
* @returns 焊盘图元���象
|
|
3866
3867
|
*/
|
|
3867
3868
|
setState_Metallization(metallization: boolean): IPCB_PrimitivePad;
|
|
3868
3869
|
/**
|
|
@@ -4004,7 +4005,7 @@ declare class IPCB_PrimitivePolyline implements IPCB_Primitive {
|
|
|
4004
4005
|
*/
|
|
4005
4006
|
getState_PrimitiveId(): string;
|
|
4006
4007
|
/**
|
|
4007
|
-
*
|
|
4008
|
+
* 获取属性状态:网络���称
|
|
4008
4009
|
*
|
|
4009
4010
|
* @public
|
|
4010
4011
|
* @returns 网络名称
|
|
@@ -4637,7 +4638,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
4637
4638
|
*
|
|
4638
4639
|
* @beta
|
|
4639
4640
|
* @param x - 坐标 X
|
|
4640
|
-
* @returns
|
|
4641
|
+
* @returns ���孔图元对象
|
|
4641
4642
|
*/
|
|
4642
4643
|
setState_X(x: number): IPCB_PrimitiveVia;
|
|
4643
4644
|
/**
|
|
@@ -5670,7 +5671,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
5670
5671
|
private content;
|
|
5671
5672
|
/** 旋转角度 */
|
|
5672
5673
|
private rotation;
|
|
5673
|
-
/**
|
|
5674
|
+
/** 文本颜��� */
|
|
5674
5675
|
private textColor;
|
|
5675
5676
|
/** 字体名称 */
|
|
5676
5677
|
private fontName;
|
|
@@ -6241,7 +6242,9 @@ declare class LIB_Device {
|
|
|
6241
6242
|
* @remarks
|
|
6242
6243
|
* 默认情况下,如果在同一个库内匹配到多个相同 C 编号的器件,将只会返回第一个结果;
|
|
6243
6244
|
*
|
|
6244
|
-
* 如果希望返回多个结果,请将 `allowMultiMatch` 置为 `true
|
|
6245
|
+
* 如果希望返回多个结果,请将 `allowMultiMatch` 置为 `true`;
|
|
6246
|
+
*
|
|
6247
|
+
* 私有化部署环境暂无法使用本接口
|
|
6245
6248
|
* @param lcscIds - 立创 C 编号
|
|
6246
6249
|
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
6247
6250
|
* @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个结果
|
|
@@ -6255,7 +6258,9 @@ declare class LIB_Device {
|
|
|
6255
6258
|
* @remarks
|
|
6256
6259
|
* 默认情况下,如果在同一个库内匹配到多个相同 C 编号的器件,将只会返回第一个结果;
|
|
6257
6260
|
*
|
|
6258
|
-
* 如果希望返回多个结果,请将 `allowMultiMatch` 置为 `true
|
|
6261
|
+
* 如果希望返回多个结果,请将 `allowMultiMatch` 置为 `true`;
|
|
6262
|
+
*
|
|
6263
|
+
* 私有化部署环境暂无法使用本接口
|
|
6259
6264
|
* @param lcscIds - 立创 C 编号数组
|
|
6260
6265
|
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
6261
6266
|
* @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个结果
|
|
@@ -7180,7 +7185,7 @@ declare class PCB_Layer {
|
|
|
7180
7185
|
*
|
|
7181
7186
|
* @beta
|
|
7182
7187
|
* @remarks
|
|
7183
|
-
* 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板,将会新增 FPC
|
|
7188
|
+
* 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板,将会新增 FPC 补��层图层。
|
|
7184
7189
|
*
|
|
7185
7190
|
* 请注意:
|
|
7186
7191
|
*
|
|
@@ -7355,7 +7360,7 @@ declare class PCB_ManufactureData {
|
|
|
7355
7360
|
* @param otherData - 其它
|
|
7356
7361
|
* @param layers - 导出层,默认则按照嘉立创生产需求导出
|
|
7357
7362
|
* @param objects - 导出对象,默认则按照嘉立创生产需求导出
|
|
7358
|
-
* @returns ODB++
|
|
7363
|
+
* @returns ODB++ 文件数��
|
|
7359
7364
|
*/
|
|
7360
7365
|
getOpenDatabaseDoublePlusFile(fileName?: string, unit?: ESYS_Unit.INCH, otherData?: {
|
|
7361
7366
|
metallizedDrilledHoles?: boolean;
|
|
@@ -7576,7 +7581,7 @@ declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
|
|
|
7576
7581
|
* @param arcAngle - 圆弧角度
|
|
7577
7582
|
* @param lineWidth - 线宽
|
|
7578
7583
|
* @param interactiveMode - 交互模式
|
|
7579
|
-
* @param primitiveLock -
|
|
7584
|
+
* @param primitiveLock - ���否锁定
|
|
7580
7585
|
* @returns 圆弧线图元对象
|
|
7581
7586
|
*/
|
|
7582
7587
|
create(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, arcAngle: number, lineWidth?: number, interactiveMode?: EPCB_PrimitiveArcInteractiveMode, primitiveLock?: boolean): Promise<IPCB_PrimitiveArc | undefined>;
|
|
@@ -8814,7 +8819,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
8814
8819
|
*
|
|
8815
8820
|
* @beta
|
|
8816
8821
|
* @param component - 关联库器件
|
|
8817
|
-
* @returns
|
|
8822
|
+
* @returns 操作是否���功
|
|
8818
8823
|
*/
|
|
8819
8824
|
setNetFlagComponentUuid_Ground(component: {
|
|
8820
8825
|
libraryUuid: string;
|
|
@@ -9102,7 +9107,7 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
9102
9107
|
*
|
|
9103
9108
|
* @beta
|
|
9104
9109
|
* @param line - 坐标组,连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
|
|
9105
|
-
* @param color - 颜色,`null`
|
|
9110
|
+
* @param color - 颜色,`null` 表示���认
|
|
9106
9111
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
9107
9112
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
9108
9113
|
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
@@ -9355,7 +9360,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
9355
9360
|
* 获取导线
|
|
9356
9361
|
*
|
|
9357
9362
|
* @beta
|
|
9358
|
-
* @param primitiveIds - 导线的图元 ID
|
|
9363
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9359
9364
|
* @returns 导线图元对象
|
|
9360
9365
|
*/
|
|
9361
9366
|
get(primitiveIds: string): ISCH_PrimitiveWire | undefined;
|