@jlceda/pro-api-types 0.1.77 → 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 +168 -21
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -770,6 +770,7 @@ declare class EDA {
770
770
  sch_SelectControl: SCH_SelectControl;
771
771
  sch_Utils: SCH_Utils;
772
772
  sys_ClientUrl: SYS_ClientUrl;
773
+ sys_Environment: SYS_Environment;
773
774
  sys_FileManager: SYS_FileManager;
774
775
  sys_FileSystem: SYS_FileSystem;
775
776
  sys_FontManager: SYS_FontManager;
@@ -780,6 +781,7 @@ declare class EDA {
780
781
  sys_MessageBox: SYS_MessageBox;
781
782
  sys_PanelControl: SYS_PanelControl;
782
783
  sys_ShortcutKey: SYS_ShortcutKey;
784
+ sys_Storage: SYS_Storage;
783
785
  sys_Timer: SYS_Timer;
784
786
  sys_ToastMessage: SYS_ToastMessage;
785
787
  sys_Unit: SYS_Unit;
@@ -2713,7 +2715,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
2713
2715
  create(): Promise<IPCB_PrimitiveImage>;
2714
2716
  /** @alpha 定义 getState_* 函数 × 11 */
2715
2717
  /**
2716
- * 获取对象的图元 ID
2718
+ * 获取对象���图元 ID
2717
2719
  *
2718
2720
  * @returns
2719
2721
  */
@@ -3691,9 +3693,9 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
3691
3693
  private uniqueId?;
3692
3694
  /** Component 属性:制造商 */
3693
3695
  private manufacturer?;
3694
- /** Component 属性:制造商编号 */
3696
+ /** Component 属性���制造商编号 */
3695
3697
  private manufacturerId?;
3696
- /** Component ���性:供应商 */
3698
+ /** Component 属性:供应商 */
3697
3699
  private supplier?;
3698
3700
  /** Component 属性:供应商编号 */
3699
3701
  private supplierId?;
@@ -3960,7 +3962,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
3960
3962
  private height;
3961
3963
  /** 圆角半径 */
3962
3964
  private cornerRadius;
3963
- /** 旋��角度 */
3965
+ /** 旋转角度 */
3964
3966
  private rotation;
3965
3967
  /** 边框颜色 */
3966
3968
  private color;
@@ -4620,7 +4622,7 @@ declare class LIB_Device {
4620
4622
  */
4621
4623
  getByLcscIds<T extends boolean>(lcscIds: string, libraryUuid?: string, allowMultiMatch?: T): Promise<T extends true ? ILIB_DeviceSearchItem | undefined : Array<ILIB_DeviceSearchItem>>;
4622
4624
  /**
4623
- * ���用立创 C 编号批量获取器件
4625
+ * 使用立创 C 编号批量获取器件
4624
4626
  *
4625
4627
  * @beta
4626
4628
  * @remarks
@@ -5113,7 +5115,7 @@ declare class PCB_Drc {
5113
5115
  * @param ruleConfiguration - 设计规则配置
5114
5116
  * @param configurationName - 配置名称
5115
5117
  * @param allowOverwrite - 是否允许覆写同名设计规则配置,`false` 则将在遇到同名设计规则配置时返回 `false`,请注意可能的数据丢失风险
5116
- * @returns 保���是否成功
5118
+ * @returns 保存是否成功
5117
5119
  */
5118
5120
  saveRuleConfiguration(ruleConfiguration: {
5119
5121
  [key: string]: any;
@@ -5585,7 +5587,7 @@ declare class PCB_Layer {
5585
5587
  * PCB & 封装 / 生产资料类
5586
5588
  *
5587
5589
  * @public
5588
- * @remarks 获取当前 PCB 的生产资料文件
5590
+ * @remarks 获取当前 PCB 的生产资料文件及快捷下单
5589
5591
  */
5590
5592
  declare class PCB_ManufactureData {
5591
5593
  /**
@@ -5737,6 +5739,10 @@ declare class PCB_ManufactureData {
5737
5739
  * @returns PCB 信息文件
5738
5740
  */
5739
5741
  getPcbInfoFile(fileName?: string): Promise<File | undefined>;
5742
+ /* Excluded from this release type: placeComponentsOrder */
5743
+ /* Excluded from this release type: placeSmtComponentsOrder */
5744
+ /* Excluded from this release type: placePcbOrder */
5745
+ /* Excluded from this release type: place3DShellOrder */
5740
5746
  }
5741
5747
 
5742
5748
  /**
@@ -6102,7 +6108,7 @@ declare class PCB_PrimitiveDimension implements IPCB_PrimitiveAPI {
6102
6108
  * @param lineWidth - 线宽
6103
6109
  * @param precision - 精度,取值范围 `0`-`4`
6104
6110
  * @param primitiveLock - 是否锁定
6105
- * @returns 尺寸标注图元对象
6111
+ * @returns 尺寸标注图��对象
6106
6112
  */
6107
6113
  modify(primitiveId: string | IPCB_PrimitiveDimension, property: {
6108
6114
  dimensionType?: EPCB_PrimitiveDimensionType;
@@ -6744,7 +6750,7 @@ declare class SCH_Event {
6744
6750
  * 原理图 & 符号 / 生产资料类
6745
6751
  *
6746
6752
  * @public
6747
- * @remarks 获取当前原理图图页的生产资料文件
6753
+ * @remarks 获取当前原理图图页的生产资料文件及快捷下单
6748
6754
  */
6749
6755
  declare class SCH_ManufactureData {
6750
6756
  /**
@@ -6767,6 +6773,8 @@ declare class SCH_ManufactureData {
6767
6773
  * @returns 网表文件数据
6768
6774
  */
6769
6775
  getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
6776
+ /* Excluded from this release type: placeComponentsOrder */
6777
+ /* Excluded from this release type: placeSmtComponentsOrder */
6770
6778
  }
6771
6779
 
6772
6780
  /**
@@ -7439,7 +7447,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
7439
7447
  * 获取矩形
7440
7448
  *
7441
7449
  * @public
7442
- * @param primitiveIds - 矩形的��元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7450
+ * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7443
7451
  * @returns 矩形图元对象
7444
7452
  */
7445
7453
  get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
@@ -7704,6 +7712,71 @@ declare class SYS_ClientUrl {
7704
7712
  }, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
7705
7713
  }
7706
7714
 
7715
+ /**
7716
+ * 系统 / 运行环境类
7717
+ *
7718
+ * @public
7719
+ * @remarks 获取嘉立创 EDA 专业版运行环境参数
7720
+ */
7721
+ declare class SYS_Environment {
7722
+ /**
7723
+ * 是否处���浏览器环境
7724
+ *
7725
+ * @public
7726
+ * @returns 是否处于浏览器环境
7727
+ */
7728
+ isWeb(): boolean;
7729
+ /**
7730
+ * 是否处于客户端环境
7731
+ *
7732
+ * @public
7733
+ * @returns 是否处于客户端环境
7734
+ */
7735
+ isClient(): boolean;
7736
+ /**
7737
+ * 是否为 EasyEDA Pro 版本
7738
+ *
7739
+ * @public
7740
+ * @returns 是否为 EasyEDA Pro 版本
7741
+ */
7742
+ isEasyEDAProEdition(): boolean;
7743
+ /**
7744
+ * 是否为嘉立创EDA 专业版本
7745
+ *
7746
+ * @public
7747
+ * @returns 是否为嘉立创EDA 专业版本
7748
+ */
7749
+ isJLCEDAProEdition(): boolean;
7750
+ /**
7751
+ * 是否为私有化部署版本
7752
+ *
7753
+ * @public
7754
+ * @returns 是否为私有化部署版本
7755
+ */
7756
+ isProPrivateEdition(): boolean;
7757
+ /**
7758
+ * 是否为在线模式
7759
+ *
7760
+ * @public
7761
+ * @returns 是否为在线模式
7762
+ */
7763
+ isOnlineMode(): boolean;
7764
+ /**
7765
+ * 是否为半离线模式
7766
+ *
7767
+ * @public
7768
+ * @returns 是否为半离线模式
7769
+ */
7770
+ isHalfOfflineMode(): boolean;
7771
+ /**
7772
+ * 是否为全离线模式
7773
+ *
7774
+ * @public
7775
+ * @returns 是否为全离线模式
7776
+ */
7777
+ isOfflineMode(): boolean;
7778
+ }
7779
+
7707
7780
  /**
7708
7781
  * 系统 / 文件管理类
7709
7782
  *
@@ -7776,16 +7849,7 @@ declare class SYS_FileManager {
7776
7849
  * @returns 器件文件数据,`undefined` 表示数据获取失败
7777
7850
  */
7778
7851
  getDeviceFileByDeviceUuid(deviceUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
7779
- /**
7780
- * 使用符号 UUID 获取符号文件
7781
- *
7782
- * @beta
7783
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7784
- * @param symbolUuid - 符号 UUID 或符号 UUID 列表
7785
- * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7786
- * @returns 符号文件数据,`undefined` 表示数据获取失败
7787
- */
7788
- getSymbolFileBySymbolUuid(symbolUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
7852
+ /* Excluded from this release type: getSymbolFileBySymbolUuid */
7789
7853
  /**
7790
7854
  * 使用封装 UUID 获取封装文件
7791
7855
  *
@@ -7909,6 +7973,7 @@ declare class SYS_I18n {
7909
7973
  * 刷新当前语言环境
7910
7974
  *
7911
7975
  * @public
7976
+ * @remarks 使扩展内部语言环境与 EDA 当前语言环境同步
7912
7977
  */
7913
7978
  flushCurrentLanguage(): Promise<void>;
7914
7979
  /**
@@ -7930,8 +7995,10 @@ declare class SYS_I18n {
7930
7995
  * 导入多语言
7931
7996
  *
7932
7997
  * @public
7998
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
7933
7999
  * @param language - 语言
7934
8000
  * @param source - 欲导入的多语言数据对象
8001
+ * @returns 导入是否成功
7935
8002
  */
7936
8003
  importMultilingual(language: string, source: ISYS_LanguageKeyValuePairs): boolean;
7937
8004
  /**
@@ -7941,6 +8008,7 @@ declare class SYS_I18n {
7941
8008
  * @param namespace - 命名空间
7942
8009
  * @param language - 语言
7943
8010
  * @param source - 欲导入的多语言数据对象
8011
+ * @returns 导入是否成功
7944
8012
  */
7945
8013
  importMultilingualLanguage(namespace: string, language: string, source: ISYS_LanguageKeyValuePairs): boolean;
7946
8014
  /**
@@ -7949,6 +8017,7 @@ declare class SYS_I18n {
7949
8017
  * @public
7950
8018
  * @param namespace - 命名空间
7951
8019
  * @param source - 欲导入的多语言数据对象
8020
+ * @returns 导入是否成功
7952
8021
  */
7953
8022
  importMultilingualNamespace(namespace: string, source: ISYS_MultilingualLanguagesData): boolean;
7954
8023
  }
@@ -8221,6 +8290,84 @@ declare class SYS_ShortcutKey {
8221
8290
  }>>;
8222
8291
  }
8223
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
+
8224
8371
  /**
8225
8372
  * 系统 / 定时器类
8226
8373
  *
@@ -8605,7 +8752,7 @@ declare type TPCB_PolygonSourceArray = Array<'L' | 'ARC' | 'CARC' | 'C' | 'R' |
8605
8752
  * @remarks
8606
8753
  * 尺寸标注坐标集存在以下三种 {@link EPCB_PrimitiveDimensionType | 尺寸标注类型}:
8607
8754
  *
8608
- * ① 半���标注
8755
+ * ① 半径标注
8609
8756
  *
8610
8757
  * `[x1, y1, x2, y2, x3, y3]`
8611
8758
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [