@jlceda/pro-api-types 0.1.151 → 0.1.153
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 +16 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -508,7 +508,7 @@ declare class DMT_Project {
|
|
|
508
508
|
*
|
|
509
509
|
* @beta
|
|
510
510
|
* @param projectFriendlyName - 工程友好名称
|
|
511
|
-
* @param projectName -
|
|
511
|
+
* @param projectName - 工程名称,不可重复,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
|
|
512
512
|
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
|
|
513
513
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
514
514
|
* @param description - 工程描述
|
|
@@ -731,7 +731,7 @@ declare class DMT_Schematic {
|
|
|
731
731
|
* 文档树 / 选择控制类
|
|
732
732
|
*
|
|
733
733
|
* @public
|
|
734
|
-
* @remarks
|
|
734
|
+
* @remarks 在文档树内进行选择���点的查询、控制
|
|
735
735
|
*/
|
|
736
736
|
declare class DMT_SelectControl {
|
|
737
737
|
/**
|
|
@@ -2852,7 +2852,7 @@ declare interface IPCB_LayerItem {
|
|
|
2852
2852
|
name: string;
|
|
2853
2853
|
/** 类型 */
|
|
2854
2854
|
type: EPCB_LayerType;
|
|
2855
|
-
/**
|
|
2855
|
+
/** 颜色(RGB HEX 格式) */
|
|
2856
2856
|
color: string;
|
|
2857
2857
|
/** 透明度(%) */
|
|
2858
2858
|
transparency: number;
|
|
@@ -2935,6 +2935,7 @@ declare class IPCB_Polygon {
|
|
|
2935
2935
|
* @returns 单多边形数据
|
|
2936
2936
|
*/
|
|
2937
2937
|
getSource(): TPCB_PolygonSourceArray;
|
|
2938
|
+
/* Excluded from this release type: getCenter */
|
|
2938
2939
|
/* Excluded from this release type: validateSource */
|
|
2939
2940
|
}
|
|
2940
2941
|
|
|
@@ -3939,7 +3940,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3939
3940
|
* @remarks
|
|
3940
3941
|
* 器件焊盘图元是一个特殊的图元,它指的是在 PCB 画布上关联到封装的焊盘
|
|
3941
3942
|
*
|
|
3942
|
-
* 你只能通过 {@link PCB_PrimitiveComponent.
|
|
3943
|
+
* 你只能通过 {@link PCB_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link IPCB_PrimitiveComponent.getAllPins | 器件图元的 getAllPads 方法} 获取到器件焊盘图元
|
|
3943
3944
|
*/
|
|
3944
3945
|
declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
|
|
3945
3946
|
/** 图元类型 */
|
|
@@ -5360,10 +5361,10 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
5360
5361
|
*/
|
|
5361
5362
|
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitivePad;
|
|
5362
5363
|
/**
|
|
5363
|
-
*
|
|
5364
|
+
* 将图元转换为���步图元
|
|
5364
5365
|
*
|
|
5365
5366
|
* @public
|
|
5366
|
-
* @returns
|
|
5367
|
+
* @returns 焊盘图元对象
|
|
5367
5368
|
*/
|
|
5368
5369
|
toAsync(): IPCB_PrimitivePad;
|
|
5369
5370
|
/**
|
|
@@ -11126,9 +11127,9 @@ declare class PCB_Net {
|
|
|
11126
11127
|
*
|
|
11127
11128
|
* @public
|
|
11128
11129
|
* @param type - 网表格式
|
|
11129
|
-
* @returns
|
|
11130
|
+
* @returns 网表数据
|
|
11130
11131
|
*/
|
|
11131
|
-
getNetlist(type?: ESYS_NetlistType): Promise<string
|
|
11132
|
+
getNetlist(type?: ESYS_NetlistType): Promise<string>;
|
|
11132
11133
|
/**
|
|
11133
11134
|
* 更新网表
|
|
11134
11135
|
*
|
|
@@ -11541,7 +11542,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
|
|
|
11541
11542
|
* 获取所有填充
|
|
11542
11543
|
*
|
|
11543
11544
|
* @beta
|
|
11544
|
-
* @param layer -
|
|
11545
|
+
* @param layer - 层
|
|
11545
11546
|
* @param net - 网络名称
|
|
11546
11547
|
* @param primitiveLock - 是否锁定
|
|
11547
11548
|
* @returns 填充图元对象数组
|
|
@@ -12371,7 +12372,7 @@ declare class PNL_Document {
|
|
|
12371
12372
|
*/
|
|
12372
12373
|
declare class SCH_Document {
|
|
12373
12374
|
/**
|
|
12374
|
-
* 从 PCB
|
|
12375
|
+
* 从 PCB 导入变更
|
|
12375
12376
|
*
|
|
12376
12377
|
* @public
|
|
12377
12378
|
* @returns 导入操作是否成功,导入失败或游离原理图返回 `false`
|
|
@@ -12531,9 +12532,9 @@ declare class SCH_Netlist {
|
|
|
12531
12532
|
*
|
|
12532
12533
|
* @public
|
|
12533
12534
|
* @param type - 网表格式
|
|
12534
|
-
* @returns
|
|
12535
|
+
* @returns 网表数据
|
|
12535
12536
|
*/
|
|
12536
|
-
getNetlist(type?: ESYS_NetlistType): Promise<string
|
|
12537
|
+
getNetlist(type?: ESYS_NetlistType): Promise<string>;
|
|
12537
12538
|
/**
|
|
12538
12539
|
* 更新网表
|
|
12539
12540
|
*
|
|
@@ -13917,7 +13918,7 @@ declare class SYS_Dialog {
|
|
|
13917
13918
|
* @param value - 输入框默认值
|
|
13918
13919
|
* @param otherProperty - 其它参数,可参考 {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#attributes | The HTML Input element}
|
|
13919
13920
|
* @param callbackFn - 回调函数
|
|
13920
|
-
* @returns 用户输入的值,始终为 `string`
|
|
13921
|
+
* @returns 用户输入的值,始终为 `string` 类型��除非用户点击了 **取消** 按钮
|
|
13921
13922
|
*/
|
|
13922
13923
|
showInputDialog(beforeContent?: string, afterContent?: string, title?: string, type?: 'color' | 'date' | 'datetime-local' | 'email' | 'mouth' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week', value?: string | number, otherProperty?: {
|
|
13923
13924
|
max?: number;
|
|
@@ -14461,9 +14462,9 @@ declare class SYS_IFrame {
|
|
|
14461
14462
|
*
|
|
14462
14463
|
* 本接口调用后将会打开一个 Dialog 窗口,该 Dialog 窗口的标题为 HTML 文件的 `<title>`,标题栏有关闭按钮;
|
|
14463
14464
|
*
|
|
14464
|
-
*
|
|
14465
|
+
* 正文部分为内联框架,`width` 和 `height` 均为正文部分内联框架的宽高;
|
|
14465
14466
|
*
|
|
14466
|
-
* 内联框架需要展示
|
|
14467
|
+
* 内联框架需要展示 `htmlFileName` 的内容,该 HTML 从扩展包内获取,并已在安装时被存储至 IndexedDB 中
|
|
14467
14468
|
*
|
|
14468
14469
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
14469
14470
|
* @param htmlFileName - 需要加载的 HTML 文件在扩展包内的路径
|