@jlceda/pro-api-types 0.1.172 → 0.1.174

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 +63 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1876,7 +1876,9 @@ declare enum ESYS_NetlistType {
1876
1876
  /** EasyEDA Pro Edition */
1877
1877
  EASYEDA_PRO = "EasyEDA",
1878
1878
  /** Altium Designer */
1879
- ALTIUM_DESIGNER = "Protel2"
1879
+ ALTIUM_DESIGNER = "Protel2",
1880
+ /** 数字化工业软件联盟 */
1881
+ DISA = "DISA"
1880
1882
  }
1881
1883
 
1882
1884
  /**
@@ -2096,6 +2098,8 @@ declare interface IDMT_EditorDocumentItem {
2096
2098
  documentType: EDMT_EditorDocumentType;
2097
2099
  /** 文档 UUID */
2098
2100
  uuid: string;
2101
+ /** 文档的标签页 ID */
2102
+ tabId: string;
2099
2103
  /** 文档所属工程 UUID */
2100
2104
  parentProjectUuid?: string;
2101
2105
  /** 库文档所属库 UUID */
@@ -3067,10 +3071,16 @@ declare interface ILIB_SymbolSearchItem {
3067
3071
  * @public
3068
3072
  */
3069
3073
  declare interface IPCB_BomPropertiesTableColumns {
3074
+ /** 属性 */
3070
3075
  property: string;
3076
+ /** 显示名称 */
3071
3077
  title?: string;
3078
+ /** 排序规则 */
3072
3079
  sort?: null | 'asc' | 'desc';
3080
+ /** 是否分组 */
3073
3081
  group?: null | 'Yes' | 'No';
3082
+ /** 排列权重(大权重优先在 BOM 的左侧) */
3083
+ orderWeight?: number;
3074
3084
  }
3075
3085
 
3076
3086
  /**
@@ -3480,7 +3490,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
3480
3490
  * 设置属性状态:是否锁定
3481
3491
  *
3482
3492
  * @beta
3483
- * @param primitiveLock - ��否锁定
3493
+ * @param primitiveLock - 是否锁定
3484
3494
  * @returns 圆弧线图元对象
3485
3495
  */
3486
3496
  setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveArc;
@@ -4127,7 +4137,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
4127
4137
  */
4128
4138
  setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveComponent;
4129
4139
  /**
4130
- * 设置属性状态:是否加入 BOM
4140
+ * 设置属性状��:是否加入 BOM
4131
4141
  *
4132
4142
  * @beta
4133
4143
  * @param addIntoBom - 是否加入 BOM
@@ -4138,7 +4148,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
4138
4148
  * 设置属性状态:位号
4139
4149
  *
4140
4150
  * @beta
4141
- * @param designator - 位��
4151
+ * @param designator - 位号
4142
4152
  * @returns 器件图元对象
4143
4153
  */
4144
4154
  setState_Designator(designator: string | undefined): IPCB_PrimitiveComponent;
@@ -5982,7 +5992,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
5982
5992
  */
5983
5993
  getState_PourFillMethod(): any;
5984
5994
  /**
5985
- * 获取属性状态:是否保留孤岛
5995
+ * 获取属性��态:是否保留孤岛
5986
5996
  *
5987
5997
  * @public
5988
5998
  * @returns 是否保留孤岛
@@ -6616,7 +6626,7 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
6616
6626
  */
6617
6627
  setState_Text(text: string): IPCB_PrimitiveString;
6618
6628
  /**
6619
- * 设置属性状态:字体
6629
+ * 设置���性状态:字体
6620
6630
  *
6621
6631
  * @beta
6622
6632
  * @param fontFamily - 字体
@@ -7927,7 +7937,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
7927
7937
  * 设置属性状态:其它参数
7928
7938
  *
7929
7939
  * @beta
7930
- * @param otherProperty - 其它参���
7940
+ * @param otherProperty - 其它参数
7931
7941
  * @returns 器件图元对象
7932
7942
  */
7933
7943
  setState_OtherProperty(otherProperty: {
@@ -8528,7 +8538,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
8528
8538
  * 设置属性状态:引脚编号
8529
8539
  *
8530
8540
  * @beta
8531
- * @param pinNumber - 引脚编���
8541
+ * @param pinNumber - 引脚编号
8532
8542
  * @returns 引脚图元对象
8533
8543
  */
8534
8544
  setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
@@ -9197,7 +9207,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
9197
9207
  */
9198
9208
  setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
9199
9209
  /**
9200
- * 设置属性状态:字体名称
9210
+ * 设置属��状态:字体名称
9201
9211
  *
9202
9212
  * @beta
9203
9213
  * @param fontName - 字体名称
@@ -9208,7 +9218,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
9208
9218
  * 设置属性状态:字体大小
9209
9219
  *
9210
9220
  * @beta
9211
- * @param fontSize - 字体��小
9221
+ * @param fontSize - 字体大小
9212
9222
  * @returns 文本图元对象
9213
9223
  */
9214
9224
  setState_FontSize(fontSize: number | null): ISCH_PrimitiveText;
@@ -9764,7 +9774,7 @@ declare class LIB_Cbb {
9764
9774
  * 在编辑器打开复用模块工程
9765
9775
  *
9766
9776
  * @beta
9767
- * @remarks 本操作将会在 EDA 前端打开模块工程,如若原先已打开其它工程且��未保存的变更,执行本操作将直接丢失所有未保存的数据
9777
+ * @remarks 本操作将会在 EDA 前端打开模块工程,如若原先已打开其它工程且有未保存的变更,执行本操作将直接丢失所有未保存的数据
9768
9778
  * @param cbbUuid - 复用模块 UUID
9769
9779
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
9770
9780
  */
@@ -10515,7 +10525,7 @@ declare class PCB_Document {
10515
10525
  * @remarks
10516
10526
  * 本接口在前端画布上定位到指定的区域,区域数据为相对于数据原点的偏移;
10517
10527
  *
10518
- * 例如:传入数据为 `{left: 0, right: 60, top: 100, bottom: -20}` =\> `navigateToRegion(0, 60, 100, -20)`,
10528
+ * 例如:���入数据为 `{left: 0, right: 60, top: 100, bottom: -20}` =\> `navigateToRegion(0, 60, 100, -20)`,
10519
10529
  * 则画布将会定位到以 `[30, 40]` 为中心的,`x` 轴方向长度为 `60`,`y` 轴方向长度为 `120` 的矩形范围;
10520
10530
  *
10521
10531
  * 本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
@@ -10925,7 +10935,7 @@ declare class PCB_Drc {
10925
10935
  * @param padPair - 焊盘对
10926
10936
  * @returns 操作是否成功
10927
10937
  * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
10928
- * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
10938
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离��盘
10929
10939
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
10930
10940
  * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','e1']) // 器件焊盘 - 游离焊盘
10931
10941
  */
@@ -13688,7 +13698,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
13688
13698
  * @param mirror - 是否镜像
13689
13699
  * @param addIntoBom - 是否加入 BOM
13690
13700
  * @param addIntoPcb - 是否转到 PCB
13691
- * @returns 器件图元对象
13701
+ * @returns 器件图���对象
13692
13702
  */
13693
13703
  create(component: {
13694
13704
  libraryUuid: string;
@@ -14066,7 +14076,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
14066
14076
  * 获取矩形
14067
14077
  *
14068
14078
  * @beta
14069
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
14079
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它���元的返回,即可能返回少于传入的图元 ID 数量的图元对象
14070
14080
  * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
14071
14081
  * @returns 矩形图元对象,空数组表示获取失败
14072
14082
  */
@@ -14553,6 +14563,27 @@ declare class SYS_Environment {
14553
14563
  * @returns 编辑器编译日期
14554
14564
  */
14555
14565
  getEditorCompliedDate(): string;
14566
+ /**
14567
+ * 获取用户信息
14568
+ *
14569
+ * @public
14570
+ * @returns 用户信息
14571
+ */
14572
+ getUserInfo(): {
14573
+ username?: string;
14574
+ nickname?: string;
14575
+ avatar?: string;
14576
+ uuid?: string;
14577
+ customerCode?: string;
14578
+ };
14579
+ /**
14580
+ * 设置环境:保持工程仅拥有一个板子
14581
+ *
14582
+ * @public
14583
+ * @remarks Board、Schematic、PCB 均保持唯一
14584
+ * @param status - 环境变量状态
14585
+ */
14586
+ setKeepProjectHasOnlyOneBoard(status?: boolean): Promise<void>;
14556
14587
  }
14557
14588
 
14558
14589
  /**
@@ -15245,7 +15276,7 @@ declare class SYS_Message {
15245
15276
  * 展示跟随鼠标的提示
15246
15277
  *
15247
15278
  * @beta
15248
- * @remarks 同一时间只能展示一条提示,如果展示新的提示,则之前的提示将被自动移除
15279
+ * @remarks 同一时间只能展示一条提示,如果展示���的提示,则之前的提示将被自动移除
15249
15280
  * @param tip - 提示内容
15250
15281
  * @param msTimeout - 展示时间,以毫秒(ms)为单位,如若不传入则持续展示,直到调用 {@link SYS_Message.removeFollowMouseTip | removeFollowMouseTip} 或被其它提示覆盖
15251
15282
  */
@@ -15787,7 +15818,7 @@ declare class SYS_Tool {
15787
15818
  * 网表对比
15788
15819
  *
15789
15820
  * @beta
15790
- * @param netlist1 - 网表 1,可以为当前工程内�� PCB 和原理图的 UUID、网表的文件数据
15821
+ * @param netlist1 - 网表 1,可以为当前工程内的 PCB 和原理图的 UUID、网表的文件数据
15791
15822
  * @param netlist2 - 网表 2,可以为当前工程内的 PCB 和原理图的 UUID、网表的文件数据
15792
15823
  * @returns 网表对比结果
15793
15824
  */
@@ -15975,6 +16006,21 @@ declare class SYS_Window {
15975
16006
  * @returns 当前主题
15976
16007
  */
15977
16008
  getCurrentTheme(): Promise<ESYS_Theme>;
16009
+ /**
16010
+ * 获取 URL 参数
16011
+ *
16012
+ * @public
16013
+ * @param key - 参数名
16014
+ * @returns 参数值
16015
+ */
16016
+ getUrlParam(key: string): string | null;
16017
+ /**
16018
+ * 获取 URL 锚点
16019
+ *
16020
+ * @public
16021
+ * @returns URL 锚点值
16022
+ */
16023
+ getUrlAnchor(): string;
15978
16024
  }
15979
16025
 
15980
16026
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [