@jlceda/pro-api-types 0.1.78 → 0.1.79

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 +92 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -781,6 +781,7 @@ declare class EDA {
781
781
  sys_MessageBox: SYS_MessageBox;
782
782
  sys_PanelControl: SYS_PanelControl;
783
783
  sys_ShortcutKey: SYS_ShortcutKey;
784
+ sys_Storage: SYS_Storage;
784
785
  sys_Timer: SYS_Timer;
785
786
  sys_ToastMessage: SYS_ToastMessage;
786
787
  sys_Unit: SYS_Unit;
@@ -2714,7 +2715,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
2714
2715
  create(): Promise<IPCB_PrimitiveImage>;
2715
2716
  /** @alpha 定义 getState_* 函数 × 11 */
2716
2717
  /**
2717
- * 获取对象的图元 ID
2718
+ * 获取对象���图元 ID
2718
2719
  *
2719
2720
  * @returns
2720
2721
  */
@@ -3692,7 +3693,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
3692
3693
  private uniqueId?;
3693
3694
  /** Component 属性:制造商 */
3694
3695
  private manufacturer?;
3695
- /** Component 属性:制造商编号 */
3696
+ /** Component 属性���制造商编号 */
3696
3697
  private manufacturerId?;
3697
3698
  /** Component 属性:供应商 */
3698
3699
  private supplier?;
@@ -5683,7 +5684,7 @@ declare class PCB_ManufactureData {
5683
5684
  */
5684
5685
  getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
5685
5686
  /**
5686
- * 获取 DXF ���件
5687
+ * 获取 DXF 文件
5687
5688
  *
5688
5689
  * @beta
5689
5690
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
@@ -6107,7 +6108,7 @@ declare class PCB_PrimitiveDimension implements IPCB_PrimitiveAPI {
6107
6108
  * @param lineWidth - 线宽
6108
6109
  * @param precision - 精度,取值范围 `0`-`4`
6109
6110
  * @param primitiveLock - 是否锁定
6110
- * @returns 尺寸标注图元对象
6111
+ * @returns 尺寸标注图��对象
6111
6112
  */
6112
6113
  modify(primitiveId: string | IPCB_PrimitiveDimension, property: {
6113
6114
  dimensionType?: EPCB_PrimitiveDimensionType;
@@ -7719,7 +7720,7 @@ declare class SYS_ClientUrl {
7719
7720
  */
7720
7721
  declare class SYS_Environment {
7721
7722
  /**
7722
- * 是否处于浏览器环境
7723
+ * 是否处���浏览器环境
7723
7724
  *
7724
7725
  * @public
7725
7726
  * @returns 是否处于浏览器环境
@@ -7848,16 +7849,7 @@ declare class SYS_FileManager {
7848
7849
  * @returns 器件文件数据,`undefined` 表示数据获取失败
7849
7850
  */
7850
7851
  getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
7851
- /**
7852
- * 使用符号 UUID 获取符号文件
7853
- *
7854
- * @beta
7855
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7856
- * @param symbolUuid - 符号 UUID 或符号 UUID 列表
7857
- * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7858
- * @returns 符号文件数据,`undefined` 表示数据获取失败
7859
- */
7860
- getSymbolFileBySymbolUuid(symbolUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
7852
+ /* Excluded from this release type: getSymbolFileBySymbolUuid */
7861
7853
  /**
7862
7854
  * 使用封装 UUID 获取封装文件
7863
7855
  *
@@ -7981,6 +7973,7 @@ declare class SYS_I18n {
7981
7973
  * 刷新当前语言环境
7982
7974
  *
7983
7975
  * @public
7976
+ * @remarks 使扩展内部语言环境与 EDA 当前语言环境同步
7984
7977
  */
7985
7978
  flushCurrentLanguage(): Promise<void>;
7986
7979
  /**
@@ -8002,8 +7995,10 @@ declare class SYS_I18n {
8002
7995
  * 导入多语言
8003
7996
  *
8004
7997
  * @public
7998
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8005
7999
  * @param language - 语言
8006
8000
  * @param source - 欲导入的多语言数据对象
8001
+ * @returns 导入是否成功
8007
8002
  */
8008
8003
  importMultilingual(language: string, source: ISYS_LanguageKeyValuePairs): boolean;
8009
8004
  /**
@@ -8013,6 +8008,7 @@ declare class SYS_I18n {
8013
8008
  * @param namespace - 命名空间
8014
8009
  * @param language - 语言
8015
8010
  * @param source - 欲导入的多语言数据对象
8011
+ * @returns 导入是否成功
8016
8012
  */
8017
8013
  importMultilingualLanguage(namespace: string, language: string, source: ISYS_LanguageKeyValuePairs): boolean;
8018
8014
  /**
@@ -8021,6 +8017,7 @@ declare class SYS_I18n {
8021
8017
  * @public
8022
8018
  * @param namespace - 命名空间
8023
8019
  * @param source - 欲导入的多语言数据对象
8020
+ * @returns 导入是否成功
8024
8021
  */
8025
8022
  importMultilingualNamespace(namespace: string, source: ISYS_MultilingualLanguagesData): boolean;
8026
8023
  }
@@ -8174,7 +8171,7 @@ declare class SYS_PanelControl {
8174
8171
  * 打开左侧面板
8175
8172
  *
8176
8173
  * @public
8177
- * @param tab - 标签页,���若不指定则不切换标签页
8174
+ * @param tab - 标签页,如若不指定则不切换标签页
8178
8175
  */
8179
8176
  openLeftPanel(tab?: ESYS_LeftPanelTab): void;
8180
8177
  /**
@@ -8293,6 +8290,84 @@ declare class SYS_ShortcutKey {
8293
8290
  }>>;
8294
8291
  }
8295
8292
 
8293
+ /**
8294
+ * 系统 / 存储类
8295
+ *
8296
+ * @public
8297
+ * @remarks 可以进行扩展的用户配置存储、浏览器本地存储的操作接口
8298
+ */
8299
+ declare class SYS_Storage {
8300
+ /** 扩展 UUID */
8301
+ private extensionUuid?;
8302
+ /* Excluded from this release type: __constructor */
8303
+ /**
8304
+ * 获取扩展所有用户配置
8305
+ *
8306
+ * @public
8307
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8308
+ * @returns 扩展所有用户配置信息
8309
+ */
8310
+ getExtensionAllUserConfigs(): {
8311
+ [key: string]: any;
8312
+ };
8313
+ /**
8314
+ * 设置扩展所有用户配置
8315
+ *
8316
+ * @public
8317
+ * @remarks
8318
+ * 此举会覆盖当前扩展的所有用户配置信息,请谨慎操作
8319
+ *
8320
+ * 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8321
+ * @param configs - 扩展所有用户配置
8322
+ * @returns 操作是否成功
8323
+ */
8324
+ setExtensionAllUserConfigs(configs: {
8325
+ [key: string]: any;
8326
+ }): Promise<boolean>;
8327
+ /**
8328
+ * 清除扩展所有用户配置
8329
+ *
8330
+ * @public
8331
+ * @remarks
8332
+ * 此举会删除当前扩展的所有用户配置信息,请谨慎操作
8333
+ *
8334
+ * 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8335
+ * @returns 操作是否成功
8336
+ */
8337
+ clearExtensionAllUserConfigs(): Promise<boolean>;
8338
+ /**
8339
+ * 获取扩展用户配置
8340
+ *
8341
+ * @public
8342
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8343
+ * @param key - 配置项
8344
+ * @returns 配置项对应的值,不存在将返回 `undefined`
8345
+ */
8346
+ getExtensionUserConfig(key: string): any | undefined;
8347
+ /**
8348
+ * 设置扩展用户配置
8349
+ *
8350
+ * @public
8351
+ * @remarks
8352
+ * 新建扩展用户配置也使用本接口,在设置时如果不存在将会自动新建
8353
+ *
8354
+ * 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8355
+ * @param key - 配置项
8356
+ * @param value - 值
8357
+ * @returns 操作是否成功
8358
+ */
8359
+ setExtensionUserConfig(key: string, value: any): Promise<boolean>;
8360
+ /**
8361
+ * 删除扩展用户配置
8362
+ *
8363
+ * @public
8364
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
8365
+ * @param key - 配置项
8366
+ * @returns 操作是否成功
8367
+ */
8368
+ deleteExtensionUserConfig(key: string): Promise<boolean>;
8369
+ }
8370
+
8296
8371
  /**
8297
8372
  * 系统 / 定时器类
8298
8373
  *
@@ -8596,7 +8671,7 @@ declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerTyp
8596
8671
  *
8597
8672
  * @public
8598
8673
  * @remarks
8599
- * 单多边形为首尾重合的一条不间断的线所描述的区域��如果首尾不重合将会自动重合。
8674
+ * 单多边形为首尾重合的一条不间断的线所描述的区域,如果首尾不重合将会自动重合。
8600
8675
  *
8601
8676
  * 单多边形的数据格式举例:
8602
8677
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [