@jlceda/pro-api-types 0.1.163 → 0.1.165

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 +28 -18
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1032,6 +1032,18 @@ declare enum EImportOptionType {
1032
1032
  ImportDocumentExtractLibraries = "ImportDocumentExtractLibraries"
1033
1033
  }
1034
1034
 
1035
+ /**
1036
+ * 层状态
1037
+ */
1038
+ declare enum ELayerStatus {
1039
+ /** 不使用 */
1040
+ NOTUSED = 0,
1041
+ /** 使用并展示 */
1042
+ SHOW = 1,
1043
+ /** 使用但不展示 */
1044
+ HIDDEN = 2
1045
+ }
1046
+
1035
1047
  /**
1036
1048
  * 嘉立创贴片库类别
1037
1049
  *
@@ -2840,7 +2852,7 @@ declare interface IPCB_DifferentialPairItem {
2840
2852
  * @public
2841
2853
  */
2842
2854
  declare interface IPCB_EqualLengthNetGroupItem {
2843
- /** 等长网络组名称 */
2855
+ /** 等长网络组名�� */
2844
2856
  name: string;
2845
2857
  /** 网络名称数组 */
2846
2858
  nets: Array<string>;
@@ -2873,10 +2885,8 @@ declare interface IPCB_LayerItem {
2873
2885
  inactiveColor: string;
2874
2886
  /** 非激活透明度(%) */
2875
2887
  inactiveTransparency: number;
2876
- /** 是否展示 */
2877
- show: boolean;
2878
- /** 是否启用 */
2879
- use: boolean;
2888
+ /** 层状态 */
2889
+ layerStatus: ELayerStatus;
2880
2890
  /** 是否锁定 */
2881
2891
  locked: boolean;
2882
2892
  }
@@ -3505,7 +3515,7 @@ declare class IPCB_PrimitiveAttribute implements IPCB_Primitive {
3505
3515
  *
3506
3516
  * @beta
3507
3517
  * @param fontSize - 字号
3508
- * @returns 属��图元对象
3518
+ * @returns 属性图元对象
3509
3519
  */
3510
3520
  setState_FontSize(fontSize: number): IPCB_PrimitiveAttribute;
3511
3521
  /**
@@ -4788,7 +4798,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
4788
4798
  * 获取整段导线
4789
4799
  *
4790
4800
  * @beta
4791
- * @param includeVias - 是否���含导线两端的过孔
4801
+ * @param includeVias - 是否包含导线两端的过孔
4792
4802
  * @returns 整段导线内的所有直线和圆弧线
4793
4803
  */
4794
4804
  getEntireTrack(includeVias: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
@@ -7954,7 +7964,7 @@ declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
7954
7964
  *
7955
7965
  * @beta
7956
7966
  * @param manufacturerId - 制造商编号
7957
- * @returns 器件图��对象
7967
+ * @returns 器件图元对象
7958
7968
  */
7959
7969
  setState_ManufacturerId(manufacturerId: string | undefined): ISCH_PrimitiveComponent_2;
7960
7970
  /**
@@ -11147,7 +11157,7 @@ declare class PCB_Primitive {
11147
11157
  *
11148
11158
  * @beta
11149
11159
  * @param primitiveIds - 图元 ID 数组或图元对象数组
11150
- * @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
11160
+ * @returns 图元的 BBox,如若图元不存在或没��� BBox,将会返回 `undefined` 的结果
11151
11161
  */
11152
11162
  getPrimitivesBBox(primitiveIds: Array<string | IPCB_Primitive>): Promise<{
11153
11163
  minX: number;
@@ -11562,7 +11572,7 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
11562
11572
  * @param rotation - 旋转角度
11563
11573
  * @param horizonMirror - 是否水平镜像
11564
11574
  * @param primitiveLock - 是否锁定
11565
- * @returns 图像图��对象
11575
+ * @returns 图像图元对象
11566
11576
  */
11567
11577
  create(x: number, y: number, complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | IPCB_ComplexPolygon, layer: TPCB_LayersOfImage, width?: number, height?: number, rotation?: number, horizonMirror?: boolean, primitiveLock?: boolean): Promise<IPCB_PrimitiveImage | undefined>;
11568
11578
  /**
@@ -11960,8 +11970,8 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
11960
11970
  * 获取折线
11961
11971
  *
11962
11972
  * @beta
11963
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
11964
- * @param primitiveIds - 折线的图元 ID,可以为字符串或字符串数组,如若��数组,则返回的也是数组
11973
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,��可能返回少于传入的图元 ID 数量的图元对象
11974
+ * @param primitiveIds - 折线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11965
11975
  * @returns 折线图元对象,空数组表示获取失败
11966
11976
  */
11967
11977
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePolyline>>;
@@ -12394,7 +12404,7 @@ declare class SCH_Drc {
12394
12404
  * 检查 DRC
12395
12405
  *
12396
12406
  * @public
12397
- * @remarks 如若检查结果存在 **错误** 或以上级别,将会始终呼出底部 DRC 窗口,无视 `userInterface` 参数
12407
+ * @remarks 如若检查结果存在 **错误** 或以上级别,将会始终呼��底部 DRC 窗口,无视 `userInterface` 参数
12398
12408
  * @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否则返回 `true`
12399
12409
  * @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
12400
12410
  * @returns DRC 检查是否无错误
@@ -13928,9 +13938,9 @@ declare class SYS_Dialog {
13928
13938
  *
13929
13939
  * @beta
13930
13940
  * @param options -
13931
- * 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
13941
+ * 选项列表,可以为字���串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
13932
13942
  *
13933
- * 如若为字符串数组,则选项的值��选项的展示内容将保持一致;
13943
+ * 如若为字符串数组,则选项的值和选项的展示内容将保持一致;
13934
13944
  *
13935
13945
  * 如若为对象数组,则 `value` 表示选项的值,`displayContent` 表示选项的展示内容
13936
13946
  * @param beforeContent - 选择框上方文字
@@ -14270,8 +14280,8 @@ declare class SYS_FileSystem {
14270
14280
  *
14271
14281
  * 如若结尾为斜杠 `/`(Windows 为反斜杠 `\`),则识别为文件夹;
14272
14282
  *
14273
- * 如若结尾非斜杠,则识别为完整文件名,此时 `fileName` 参数将被忽略
14274
- * @param force - 强制删除文件夹(当欲删除的是文件夹且文件夹内有文件时,是否强制删除该���件夹)
14283
+ * 如若结尾非斜杠,则识别为完整文件名,此�� `fileName` 参数将被忽略
14284
+ * @param force - 强制删除文件夹(当欲删除的是文件夹且文件夹内有文件时,是否强制删除该文件夹)
14275
14285
  * @returns 删除操作是否成功
14276
14286
  */
14277
14287
  deleteFileInFileSystem(uri: string, force?: boolean): Promise<boolean>;
@@ -14766,7 +14776,7 @@ declare class SYS_Setting {
14766
14776
  * 全局恢复默认设置
14767
14777
  *
14768
14778
  * @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
14769
- * @returns 操作是否成功
14779
+ * @returns 操作是否��功
14770
14780
  */
14771
14781
  restoreDefault(): Promise<boolean>;
14772
14782
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.163",
3
+ "version": "0.1.165",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [