@jlceda/pro-api-types 0.1.131 → 0.1.132
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 +33 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -248,8 +248,31 @@ declare class DMT_EditorControl {
|
|
|
248
248
|
top: number;
|
|
249
249
|
bottom: number;
|
|
250
250
|
} | false>;
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
/**
|
|
252
|
+
* 生成指示标记
|
|
253
|
+
*
|
|
254
|
+
* @beta
|
|
255
|
+
* @remarks 指示标记外形数据中,原理图、符号画布坐标单位跨度为 0.01inch,PCB、封装画布坐标单位跨度为 mil
|
|
256
|
+
* @param markers - 指示标记外形对象数组
|
|
257
|
+
* @param color - 指示标记颜色
|
|
258
|
+
* @param tabId - 标签页 ID,如若未传入,则为最后输入焦点的画布
|
|
259
|
+
* @returns 指示标记生成是否成功,`false` 表示画布不支持该操作或 `tabId` 不存在
|
|
260
|
+
*/
|
|
261
|
+
generateIndicatorMarkers(markers: Array<IDMT_IndicatorMarkerShape>, color?: {
|
|
262
|
+
r: number;
|
|
263
|
+
g: number;
|
|
264
|
+
b: number;
|
|
265
|
+
alpha: number;
|
|
266
|
+
}, tabId?: string): Promise<boolean>;
|
|
267
|
+
/**
|
|
268
|
+
* 移除指示标记
|
|
269
|
+
*
|
|
270
|
+
* @beta
|
|
271
|
+
* @remarks 本接口会移除所有已生成的指示标记
|
|
272
|
+
* @param tabId - 标签页 ID,如若未传入,则为最后输入焦点的画布
|
|
273
|
+
* @returns 指示标记移除是否成功,`false` 表示画布不支持该操作或 `tabId` 不存在
|
|
274
|
+
*/
|
|
275
|
+
removeIndicatorMarkers(tabId?: string): Promise<boolean>;
|
|
253
276
|
}
|
|
254
277
|
|
|
255
278
|
/**
|
|
@@ -456,7 +479,7 @@ declare class DMT_Pcb {
|
|
|
456
479
|
* 删除 PCB
|
|
457
480
|
*
|
|
458
481
|
* @public
|
|
459
|
-
* @remarks 如若 PCB 已关联复用模块(在工程库内存在同名的复用模块符号),则删除 PCB
|
|
482
|
+
* @remarks 如若 PCB 已关联复用模块(在工程库内存在同名的复用模块符号),则删除 PCB 时将同步删除关联的原��图和复用模块符号,复用模块符号不可删除则跳过
|
|
460
483
|
* @param pcbUuid - PCB UUID
|
|
461
484
|
* @returns 操作是否成功
|
|
462
485
|
*/
|
|
@@ -1839,7 +1862,7 @@ declare enum ESYS_ShortcutKeyEffectiveEditorScene {
|
|
|
1839
1862
|
EDITOR = 1,
|
|
1840
1863
|
/** 画布选中 */
|
|
1841
1864
|
SELECT_CANVAS = 2,
|
|
1842
|
-
/**
|
|
1865
|
+
/** 画布未选中 */
|
|
1843
1866
|
NOT_SELECT_CANVAS = 3,
|
|
1844
1867
|
/** 画布绘制 */
|
|
1845
1868
|
DRAW = 4,
|
|
@@ -3007,7 +3030,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
|
3007
3030
|
*/
|
|
3008
3031
|
getState_PrimitiveLock(): boolean;
|
|
3009
3032
|
/**
|
|
3010
|
-
*
|
|
3033
|
+
* 设置属性��态:网络名称
|
|
3011
3034
|
*
|
|
3012
3035
|
* @beta
|
|
3013
3036
|
* @param net - 网络名称
|
|
@@ -7456,7 +7479,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
7456
7479
|
* 获取属性状态:引脚类型
|
|
7457
7480
|
*
|
|
7458
7481
|
* @public
|
|
7459
|
-
* @returns
|
|
7482
|
+
* @returns 引脚类型
|
|
7460
7483
|
*/
|
|
7461
7484
|
getState_pinType(): ESCH_PrimitivePinType;
|
|
7462
7485
|
/**
|
|
@@ -8242,7 +8265,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
8242
8265
|
}
|
|
8243
8266
|
|
|
8244
8267
|
/**
|
|
8245
|
-
*
|
|
8268
|
+
* 导��图元
|
|
8246
8269
|
*
|
|
8247
8270
|
* @public
|
|
8248
8271
|
*/
|
|
@@ -10270,7 +10293,7 @@ declare class PCB_ManufactureData {
|
|
|
10270
10293
|
* 如若启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
|
|
10271
10294
|
* 即 `ignoreWarning` 参数将被忽略;
|
|
10272
10295
|
*
|
|
10273
|
-
*
|
|
10296
|
+
* 如若���用,则在调用后不会有任何 EDA 内部弹窗,程序执行静默检查,
|
|
10274
10297
|
* 如若达成下单条件,将返回 `true` 并在新标签页打开下单页面
|
|
10275
10298
|
* @param ignoreWarning - 在非交互式检查时忽略警告
|
|
10276
10299
|
*
|
|
@@ -11741,7 +11764,7 @@ declare class SCH_Event {
|
|
|
11741
11764
|
* 原理图 & 符号 / 生产资料类
|
|
11742
11765
|
*
|
|
11743
11766
|
* @public
|
|
11744
|
-
* @remarks
|
|
11767
|
+
* @remarks 获取当前原理图图页的生产资料文件及快捷下单
|
|
11745
11768
|
*/
|
|
11746
11769
|
declare class SCH_ManufactureData {
|
|
11747
11770
|
/**
|
|
@@ -13305,7 +13328,7 @@ declare class SYS_FileManager {
|
|
|
13305
13328
|
* 注意:本接口需要启用 **工程设计图 \> 文件导出** 权限,没有权限调用将始终 `throw Error`
|
|
13306
13329
|
* @param fileName - 文件名
|
|
13307
13330
|
* @param password - 加密密码
|
|
13308
|
-
* @returns 文档文件数据,`undefined`
|
|
13331
|
+
* @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
|
|
13309
13332
|
*/
|
|
13310
13333
|
getDocumentFile(fileName?: string, password?: string): Promise<File | undefined>;
|
|
13311
13334
|
/**
|