@jlceda/pro-api-types 0.1.77 → 0.1.78

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 +83 -11
  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;
@@ -3693,7 +3694,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
3693
3694
  private manufacturer?;
3694
3695
  /** Component 属性:制造商编号 */
3695
3696
  private manufacturerId?;
3696
- /** Component ���性:供应商 */
3697
+ /** Component 属性:供应商 */
3697
3698
  private supplier?;
3698
3699
  /** Component 属性:供应商编号 */
3699
3700
  private supplierId?;
@@ -3960,7 +3961,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
3960
3961
  private height;
3961
3962
  /** 圆角半径 */
3962
3963
  private cornerRadius;
3963
- /** 旋��角度 */
3964
+ /** 旋转角度 */
3964
3965
  private rotation;
3965
3966
  /** 边框颜色 */
3966
3967
  private color;
@@ -4620,7 +4621,7 @@ declare class LIB_Device {
4620
4621
  */
4621
4622
  getByLcscIds<T extends boolean>(lcscIds: string, libraryUuid?: string, allowMultiMatch?: T): Promise<T extends true ? ILIB_DeviceSearchItem | undefined : Array<ILIB_DeviceSearchItem>>;
4622
4623
  /**
4623
- * ���用立创 C 编号批量获取器件
4624
+ * 使用立创 C 编号批量获取器件
4624
4625
  *
4625
4626
  * @beta
4626
4627
  * @remarks
@@ -5113,7 +5114,7 @@ declare class PCB_Drc {
5113
5114
  * @param ruleConfiguration - 设计规则配置
5114
5115
  * @param configurationName - 配置名称
5115
5116
  * @param allowOverwrite - 是否允许覆写同名设计规则配置,`false` 则将在遇到同名设计规则配置时返回 `false`,请注意可能的数据丢失风险
5116
- * @returns 保���是否成功
5117
+ * @returns 保存是否成功
5117
5118
  */
5118
5119
  saveRuleConfiguration(ruleConfiguration: {
5119
5120
  [key: string]: any;
@@ -5585,7 +5586,7 @@ declare class PCB_Layer {
5585
5586
  * PCB & 封装 / 生产资料类
5586
5587
  *
5587
5588
  * @public
5588
- * @remarks 获取当前 PCB 的生产资料文件
5589
+ * @remarks 获取当前 PCB 的生产资料文件及快捷下单
5589
5590
  */
5590
5591
  declare class PCB_ManufactureData {
5591
5592
  /**
@@ -5682,7 +5683,7 @@ declare class PCB_ManufactureData {
5682
5683
  */
5683
5684
  getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
5684
5685
  /**
5685
- * 获取 DXF 文件
5686
+ * 获取 DXF ���件
5686
5687
  *
5687
5688
  * @beta
5688
5689
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
@@ -5737,6 +5738,10 @@ declare class PCB_ManufactureData {
5737
5738
  * @returns PCB 信息文件
5738
5739
  */
5739
5740
  getPcbInfoFile(fileName?: string): Promise<File | undefined>;
5741
+ /* Excluded from this release type: placeComponentsOrder */
5742
+ /* Excluded from this release type: placeSmtComponentsOrder */
5743
+ /* Excluded from this release type: placePcbOrder */
5744
+ /* Excluded from this release type: place3DShellOrder */
5740
5745
  }
5741
5746
 
5742
5747
  /**
@@ -6744,7 +6749,7 @@ declare class SCH_Event {
6744
6749
  * 原理图 & 符号 / 生产资料类
6745
6750
  *
6746
6751
  * @public
6747
- * @remarks 获取当前原理图图页的生产资料文件
6752
+ * @remarks 获取当前原理图图页的生产资料文件及快捷下单
6748
6753
  */
6749
6754
  declare class SCH_ManufactureData {
6750
6755
  /**
@@ -6767,6 +6772,8 @@ declare class SCH_ManufactureData {
6767
6772
  * @returns 网表文件数据
6768
6773
  */
6769
6774
  getNetlistFile(fileName?: string, netlistType?: ENetlistType): Promise<File | undefined>;
6775
+ /* Excluded from this release type: placeComponentsOrder */
6776
+ /* Excluded from this release type: placeSmtComponentsOrder */
6770
6777
  }
6771
6778
 
6772
6779
  /**
@@ -7439,7 +7446,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
7439
7446
  * 获取矩形
7440
7447
  *
7441
7448
  * @public
7442
- * @param primitiveIds - 矩形的��元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7449
+ * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7443
7450
  * @returns 矩形图元对象
7444
7451
  */
7445
7452
  get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
@@ -7704,6 +7711,71 @@ declare class SYS_ClientUrl {
7704
7711
  }, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
7705
7712
  }
7706
7713
 
7714
+ /**
7715
+ * 系统 / 运行环境类
7716
+ *
7717
+ * @public
7718
+ * @remarks 获取嘉立创 EDA 专业版运行环境参数
7719
+ */
7720
+ declare class SYS_Environment {
7721
+ /**
7722
+ * 是否处于浏览器环境
7723
+ *
7724
+ * @public
7725
+ * @returns 是否处于浏览器环境
7726
+ */
7727
+ isWeb(): boolean;
7728
+ /**
7729
+ * 是否处于客户端环境
7730
+ *
7731
+ * @public
7732
+ * @returns 是否处于客户端环境
7733
+ */
7734
+ isClient(): boolean;
7735
+ /**
7736
+ * 是否为 EasyEDA Pro 版本
7737
+ *
7738
+ * @public
7739
+ * @returns 是否为 EasyEDA Pro 版本
7740
+ */
7741
+ isEasyEDAProEdition(): boolean;
7742
+ /**
7743
+ * 是否为嘉立创EDA 专业版本
7744
+ *
7745
+ * @public
7746
+ * @returns 是否为嘉立创EDA 专业版本
7747
+ */
7748
+ isJLCEDAProEdition(): boolean;
7749
+ /**
7750
+ * 是否为私有化部署版本
7751
+ *
7752
+ * @public
7753
+ * @returns 是否为私有化部署版本
7754
+ */
7755
+ isProPrivateEdition(): boolean;
7756
+ /**
7757
+ * 是否为在线模式
7758
+ *
7759
+ * @public
7760
+ * @returns 是否为在线模式
7761
+ */
7762
+ isOnlineMode(): boolean;
7763
+ /**
7764
+ * 是否为半离线模式
7765
+ *
7766
+ * @public
7767
+ * @returns 是否为半离线模式
7768
+ */
7769
+ isHalfOfflineMode(): boolean;
7770
+ /**
7771
+ * 是否为全离线模式
7772
+ *
7773
+ * @public
7774
+ * @returns 是否为全离线模式
7775
+ */
7776
+ isOfflineMode(): boolean;
7777
+ }
7778
+
7707
7779
  /**
7708
7780
  * 系统 / 文件管理类
7709
7781
  *
@@ -8102,7 +8174,7 @@ declare class SYS_PanelControl {
8102
8174
  * 打开左侧面板
8103
8175
  *
8104
8176
  * @public
8105
- * @param tab - 标签页,如若不指定则不切换标签页
8177
+ * @param tab - 标签页,���若不指定则不切换标签页
8106
8178
  */
8107
8179
  openLeftPanel(tab?: ESYS_LeftPanelTab): void;
8108
8180
  /**
@@ -8524,7 +8596,7 @@ declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerTyp
8524
8596
  *
8525
8597
  * @public
8526
8598
  * @remarks
8527
- * 单多边形为首尾重合的一条不间断的线所描述的区域,如果首尾不重合将会自动重合。
8599
+ * 单多边形为首尾重合的一条不间断的线所描述的区域��如果首尾不重合将会自动重合。
8528
8600
  *
8529
8601
  * 单多边形的数据格式举例:
8530
8602
  *
@@ -8605,7 +8677,7 @@ declare type TPCB_PolygonSourceArray = Array<'L' | 'ARC' | 'CARC' | 'C' | 'R' |
8605
8677
  * @remarks
8606
8678
  * 尺寸标注坐标集存在以下三种 {@link EPCB_PrimitiveDimensionType | 尺寸标注类型}:
8607
8679
  *
8608
- * ① 半���标注
8680
+ * ① 半径标注
8609
8681
  *
8610
8682
  * `[x1, y1, x2, y2, x3, y3]`
8611
8683
  *
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.78",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [