@jlceda/pro-api-types 0.1.68 → 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.
Files changed (2) hide show
  1. package/index.d.ts +26 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -595,7 +595,7 @@ declare class DMT_Schematic {
595
595
  */
596
596
  getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
597
597
  /**
598
- * 获取当前原��图图页的详细属性
598
+ * 获取当前原理图图页的详细属性
599
599
  *
600
600
  * @beta
601
601
  * @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
@@ -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` 均被视为空网络
@@ -5609,6 +5611,7 @@ declare class PCB_ManufactureData {
5609
5611
  * @returns 坐标文件数据
5610
5612
  */
5611
5613
  getPickAndPlaceFile(fileName?: string, fileType?: 'xlsx' | 'csv', unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.MIL): Promise<File | undefined>;
5614
+ /* Excluded from this release type: getFlyingProbeTestFile */
5612
5615
  /**
5613
5616
  * 获取 BOM 文件
5614
5617
  *
@@ -7240,7 +7243,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
7240
7243
  * 修改引脚
7241
7244
  *
7242
7245
  * @beta
7243
- * @param primitiveId - 图元 ID
7246
+ * @param primitiveId - 图��� ID
7244
7247
  * @param x - 坐标 X
7245
7248
  * @param y - 坐标 Y
7246
7249
  * @param pinNumber - 引脚编号
@@ -7634,6 +7637,9 @@ declare class SCH_Utils {
7634
7637
  * @remarks 向外部服务器发起安全的 cURL 请求
7635
7638
  */
7636
7639
  declare class SYS_ClientUrl {
7640
+ /** 是否允许外部交互 */
7641
+ private allowExternalInteractions?;
7642
+ /* Excluded from this release type: __constructor */
7637
7643
  /**
7638
7644
  * 发起即时请求
7639
7645
  *
@@ -7641,7 +7647,9 @@ declare class SYS_ClientUrl {
7641
7647
  * @remarks
7642
7648
  * 请注意,需要在被请求的站点上允许跨源资源共享(CORS),否则接口将始终返回错误结果。
7643
7649
  *
7644
- * 更多信息,请查阅 {@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`
7645
7653
  * @param url - 请求地址
7646
7654
  * @param method - 请求方法
7647
7655
  * @param data - 请求发送的数据,可以是直接数据或 {@link https://developer.mozilla.org/docs/Web/API/URLSearchParams | URLSearchParams} 对象,如果 method 为 `HEAD` 或 `GET`,本参数将被忽略
@@ -7770,6 +7778,9 @@ declare class SYS_FileManager {
7770
7778
  * @public
7771
7779
  */
7772
7780
  declare class SYS_FileSystem {
7781
+ /** 是否允许外部交互 */
7782
+ private allowExternalInteractions?;
7783
+ /* Excluded from this release type: __constructor */
7773
7784
  /**
7774
7785
  * 打开读入文件窗口
7775
7786
  *
@@ -8305,12 +8316,18 @@ declare class SYS_Unit {
8305
8316
  declare class SYS_WebSocket {
8306
8317
  /** 扩展 UUID */
8307
8318
  private extensionUuid?;
8319
+ /** 是否允许外部交互 */
8320
+ private allowExternalInteractions?;
8308
8321
  /* Excluded from this release type: __constructor */
8309
8322
  /**
8310
8323
  * 注册 WebSocket 连接
8311
8324
  *
8312
8325
  * @public
8313
- * @remarks 可以用来执行前检测 WebSocket 连接是否正常,但需要注意 **不要尝试相同 ID 不同参数的连接**,这会造成混乱:如果存在指定 ID 且处于活跃状态中的 WebSocket 连接,那么其余参数的变更将不会被应用
8326
+ * @remarks
8327
+ * 可以用来执行前检测 WebSocket 连接是否正常,但需要注意 **不要尝试相同 ID 不同参数的连接**,这会造成混乱:
8328
+ * 如果存在指定 ID 且处于活跃状态中的 WebSocket 连接,那么其余参数的变更将不会被应用
8329
+ *
8330
+ * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
8314
8331
  * @param id - 自定义 WebSocket ID
8315
8332
  * @param serviceUri - WebSocket 服务地址
8316
8333
  * @param receiveMessageCallFn - 接收到消息时的回调函数
@@ -8322,6 +8339,7 @@ declare class SYS_WebSocket {
8322
8339
  * 向 WebSocket 服务器发送数据
8323
8340
  *
8324
8341
  * @public
8342
+ * @remarks 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
8325
8343
  * @param id - 自定义的 WebSocket ID
8326
8344
  * @param data - 发送的数据
8327
8345
  * @param extensionUuid - 扩展 UUID,一般不需要指定,仅当需要操作其它扩展建立的 WebSocket 连接时才需要指定为其它扩展的 UUID
@@ -8331,6 +8349,7 @@ declare class SYS_WebSocket {
8331
8349
  * 关闭 WebSocket 连接
8332
8350
  *
8333
8351
  * @public
8352
+ * @remarks 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
8334
8353
  * @param id - 自定义的 WebSocket ID
8335
8354
  * @param code - 数字状态码,对应 {@link https://developer.mozilla.org/docs/Web/API/CloseEvent/code | WebSocket.CloseEvent} 内允许的状态码
8336
8355
  * @param reason - 一个人类可读的字符串,解释连接关闭的原因
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [