@jlceda/pro-api-types 0.1.69 → 0.1.70
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 +25 -7
- 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 - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
|
|
@@ -785,7 +785,9 @@ declare class EDA {
|
|
|
785
785
|
sys_Unit: SYS_Unit;
|
|
786
786
|
sys_WebSocket: SYS_WebSocket;
|
|
787
787
|
/* Excluded from this release type: extensionUuid */
|
|
788
|
+
/* Excluded from this release type: allowExternalInteractions */
|
|
788
789
|
/* Excluded from this release type: __constructor */
|
|
790
|
+
/* Excluded from this release type: reassignInstantiatedObjectsBeforeAllowExternalInteractionsChange */
|
|
789
791
|
}
|
|
790
792
|
|
|
791
793
|
/**
|
|
@@ -2552,7 +2554,7 @@ declare class IPCB_PrimitiveDimension implements IPCB_Primitive {
|
|
|
2552
2554
|
* @returns
|
|
2553
2555
|
*/
|
|
2554
2556
|
getState_PrimitiveId(): string;
|
|
2555
|
-
/** @alpha 所有的 setState_*
|
|
2557
|
+
/** @alpha 所有的 setState_* 方法都需要对��据进行基本的格式校验 */
|
|
2556
2558
|
/**
|
|
2557
2559
|
* 设置属性状态:尺寸标注类型
|
|
2558
2560
|
*
|
|
@@ -2860,7 +2862,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
2860
2862
|
*/
|
|
2861
2863
|
toSync(): IPCB_PrimitiveLine;
|
|
2862
2864
|
/**
|
|
2863
|
-
*
|
|
2865
|
+
* 查询图元是否为异步图��
|
|
2864
2866
|
*/
|
|
2865
2867
|
isAsync(): boolean;
|
|
2866
2868
|
/**
|
|
@@ -3002,7 +3004,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3002
3004
|
*/
|
|
3003
3005
|
setState_Pad(pad: TPCB_PrimitivePadShape): IPCB_PrimitivePad;
|
|
3004
3006
|
/**
|
|
3005
|
-
*
|
|
3007
|
+
* 设置属性状态:网络
|
|
3006
3008
|
*
|
|
3007
3009
|
* @beta
|
|
3008
3010
|
* @remarks 本接口仅在 PCB 编辑器可用,空字符串与 `undefined` 均被视为空网络
|
|
@@ -7241,7 +7243,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
7241
7243
|
* 修改引脚
|
|
7242
7244
|
*
|
|
7243
7245
|
* @beta
|
|
7244
|
-
* @param primitiveId -
|
|
7246
|
+
* @param primitiveId - 图��� ID
|
|
7245
7247
|
* @param x - 坐标 X
|
|
7246
7248
|
* @param y - 坐标 Y
|
|
7247
7249
|
* @param pinNumber - 引脚编号
|
|
@@ -7635,6 +7637,9 @@ declare class SCH_Utils {
|
|
|
7635
7637
|
* @remarks 向外部服务器发起安全的 cURL 请求
|
|
7636
7638
|
*/
|
|
7637
7639
|
declare class SYS_ClientUrl {
|
|
7640
|
+
/** 是否允许外部交互 */
|
|
7641
|
+
private allowExternalInteractions?;
|
|
7642
|
+
/* Excluded from this release type: __constructor */
|
|
7638
7643
|
/**
|
|
7639
7644
|
* 发起即时请求
|
|
7640
7645
|
*
|
|
@@ -7642,7 +7647,9 @@ declare class SYS_ClientUrl {
|
|
|
7642
7647
|
* @remarks
|
|
7643
7648
|
* 请注意,需要在被请求的站点上允许跨源资源共享(CORS),否则接口将始终返回错误结果。
|
|
7644
7649
|
*
|
|
7645
|
-
* 更多信息,请查阅 {@link https://developer.mozilla.org/docs/Web/HTTP/CORS | 跨源资源共享 (CORS) - MDN}
|
|
7650
|
+
* 更多信息,请查阅 {@link https://developer.mozilla.org/docs/Web/HTTP/CORS | 跨源资源共享 (CORS) - MDN}。
|
|
7651
|
+
*
|
|
7652
|
+
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
7646
7653
|
* @param url - 请求地址
|
|
7647
7654
|
* @param method - 请求方法
|
|
7648
7655
|
* @param data - 请求发送的数据,可以是直接数据或 {@link https://developer.mozilla.org/docs/Web/API/URLSearchParams | URLSearchParams} 对象,如果 method 为 `HEAD` 或 `GET`,本参数将被忽略
|
|
@@ -7771,6 +7778,9 @@ declare class SYS_FileManager {
|
|
|
7771
7778
|
* @public
|
|
7772
7779
|
*/
|
|
7773
7780
|
declare class SYS_FileSystem {
|
|
7781
|
+
/** 是否允许外部交互 */
|
|
7782
|
+
private allowExternalInteractions?;
|
|
7783
|
+
/* Excluded from this release type: __constructor */
|
|
7774
7784
|
/**
|
|
7775
7785
|
* 打开读入文件窗口
|
|
7776
7786
|
*
|
|
@@ -8306,12 +8316,18 @@ declare class SYS_Unit {
|
|
|
8306
8316
|
declare class SYS_WebSocket {
|
|
8307
8317
|
/** 扩展 UUID */
|
|
8308
8318
|
private extensionUuid?;
|
|
8319
|
+
/** 是否允许外部交互 */
|
|
8320
|
+
private allowExternalInteractions?;
|
|
8309
8321
|
/* Excluded from this release type: __constructor */
|
|
8310
8322
|
/**
|
|
8311
8323
|
* 注册 WebSocket 连接
|
|
8312
8324
|
*
|
|
8313
8325
|
* @public
|
|
8314
|
-
* @remarks
|
|
8326
|
+
* @remarks
|
|
8327
|
+
* 可以用来执行前检测 WebSocket 连接是否正常,但需要注意 **不要尝试相同 ID 不同参数的连接**,这会造成混乱:
|
|
8328
|
+
* 如果存在指定 ID 且处于活跃状态中的 WebSocket 连接,那么其余参数的变更将不会被应用
|
|
8329
|
+
*
|
|
8330
|
+
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
8315
8331
|
* @param id - 自定义 WebSocket ID
|
|
8316
8332
|
* @param serviceUri - WebSocket 服务地址
|
|
8317
8333
|
* @param receiveMessageCallFn - 接收到消息时的回调函数
|
|
@@ -8323,6 +8339,7 @@ declare class SYS_WebSocket {
|
|
|
8323
8339
|
* 向 WebSocket 服务器发送数据
|
|
8324
8340
|
*
|
|
8325
8341
|
* @public
|
|
8342
|
+
* @remarks 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
8326
8343
|
* @param id - 自定义的 WebSocket ID
|
|
8327
8344
|
* @param data - 发送的数据
|
|
8328
8345
|
* @param extensionUuid - 扩展 UUID,一般不需要指定,仅当需要操作其它扩展建立的 WebSocket 连接时才需要指定为其它扩展的 UUID
|
|
@@ -8332,6 +8349,7 @@ declare class SYS_WebSocket {
|
|
|
8332
8349
|
* 关闭 WebSocket 连接
|
|
8333
8350
|
*
|
|
8334
8351
|
* @public
|
|
8352
|
+
* @remarks 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
8335
8353
|
* @param id - 自定义的 WebSocket ID
|
|
8336
8354
|
* @param code - 数字状态码,对应 {@link https://developer.mozilla.org/docs/Web/API/CloseEvent/code | WebSocket.CloseEvent} 内允许的状态码
|
|
8337
8355
|
* @param reason - 一个人类可读的字符串,解释连接关闭的原因
|