@jlceda/pro-api-types 0.1.92 → 0.1.94

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 +33 -23
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -413,7 +413,7 @@ declare class DMT_Project {
413
413
  * @beta
414
414
  * @param projectFriendlyName - 工程友好名称
415
415
  * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
416
- * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定��队 UUID
416
+ * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
417
417
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
418
418
  * @param description - 工程描述
419
419
  * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
@@ -1375,7 +1375,7 @@ declare enum EPCB_PrimitiveRegionRuleType {
1375
1375
  declare enum EPCB_PrimitiveType {
1376
1376
  /** 圆弧线 */
1377
1377
  ARC = "Arc",
1378
- /** 器件 */
1378
+ /** 器�� */
1379
1379
  COMPONENT = "Component",
1380
1380
  /** 焊盘 */
1381
1381
  PAD = "Pad",
@@ -2448,6 +2448,8 @@ declare class IPCB_Polygon {
2448
2448
  * @public
2449
2449
  */
2450
2450
  declare interface IPCB_Primitive {
2451
+ getState_PrimitiveType: () => EPCB_PrimitiveType;
2452
+ getState_PrimitiveId: () => string;
2451
2453
  create: () => IPCB_Primitive | Promise<IPCB_Primitive>;
2452
2454
  toAsync: () => IPCB_Primitive;
2453
2455
  toSync: () => IPCB_Primitive;
@@ -2604,7 +2606,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2604
2606
  *
2605
2607
  * @beta
2606
2608
  * @param layer - 层
2607
- * @returns 圆弧线图��对象
2609
+ * @returns 圆弧线图元对象
2608
2610
  */
2609
2611
  setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveArc;
2610
2612
  /**
@@ -2764,6 +2766,12 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
2764
2766
  * @returns 器件图元对象
2765
2767
  */
2766
2768
  create(): Promise<IPCB_PrimitiveComponent>;
2769
+ /**
2770
+ * 获取对象的图元 ID
2771
+ *
2772
+ * @returns
2773
+ */
2774
+ getState_PrimitiveType(): EPCB_PrimitiveType;
2767
2775
  /**
2768
2776
  * 获取对象的图元 ID
2769
2777
  *
@@ -3870,7 +3878,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
3870
3878
  */
3871
3879
  setState_HoleOffsetX(holeOffsetX: number): IPCB_PrimitivePad;
3872
3880
  /**
3873
- * 设置属性状态:孔偏��� Y
3881
+ * 设置属性状态:孔偏移 Y
3874
3882
  *
3875
3883
  * @beta
3876
3884
  * @remarks 如若孔不存在,则属性将不会被修改
@@ -4770,6 +4778,8 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
4770
4778
  * @public
4771
4779
  */
4772
4780
  declare interface ISCH_Primitive {
4781
+ getState_PrimitiveType: () => ESCH_PrimitiveType;
4782
+ getState_PrimitiveId: () => string;
4773
4783
  create: () => ISCH_Primitive | Promise<ISCH_Primitive>;
4774
4784
  toAsync: () => ISCH_Primitive;
4775
4785
  toSync: () => ISCH_Primitive;
@@ -4835,7 +4845,7 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
4835
4845
  * @returns 圆弧图元对象
4836
4846
  */
4837
4847
  create(): Promise<ISCH_PrimitiveArc>;
4838
- getState_PrimitiveType(): string;
4848
+ getState_PrimitiveType(): ESCH_PrimitiveType;
4839
4849
  getState_PrimitiveId(): string;
4840
4850
  getState_StartY(): number;
4841
4851
  getState_StartX(): number;
@@ -4923,7 +4933,7 @@ declare class ISCH_PrimitiveBus implements ISCH_Primitive {
4923
4933
  * @returns 总线图元对象
4924
4934
  */
4925
4935
  create(): ISCH_PrimitiveBus;
4926
- getState_PrimitiveType(): string;
4936
+ getState_PrimitiveType(): ESCH_PrimitiveType;
4927
4937
  getState_PrimitiveId(): string;
4928
4938
  getState_BusName(): BusNetGroupCreateOptions['net'];
4929
4939
  getState_Line(): BusNetGroupCreateOptions['line'];
@@ -5000,7 +5010,7 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
5000
5010
  * @returns 圆图元对象
5001
5011
  */
5002
5012
  create(): Promise<ISCH_PrimitiveCircle>;
5003
- getState_PrimitiveType(): string;
5013
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5004
5014
  getState_PrimitiveId(): string;
5005
5015
  getState_CenterX(): number;
5006
5016
  getState_CenterY(): number;
@@ -5061,7 +5071,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5061
5071
  private readonly primitiveType;
5062
5072
  /** 器件类型 */
5063
5073
  private componentType;
5064
- /** ���元 ID */
5074
+ /** 图元 ID */
5065
5075
  private primitiveId?;
5066
5076
  /** 关联库器件 */
5067
5077
  private component;
@@ -5484,7 +5494,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
5484
5494
  * @returns 引脚图元对象
5485
5495
  */
5486
5496
  create(): Promise<ISCH_PrimitivePin>;
5487
- getState_PrimitiveType(): string;
5497
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5488
5498
  getState_PrimitiveId(): string;
5489
5499
  getState_X(): number;
5490
5500
  getState_Y(): number;
@@ -5559,13 +5569,13 @@ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
5559
5569
  * @returns 多边形图元对象
5560
5570
  */
5561
5571
  create(): Promise<ISCH_PrimitivePolygon>;
5562
- getState_primitiveType(): string;
5563
- getState_primitiveId(): string;
5564
- getState_line(): Number[];
5565
- getState_color(): string | null;
5566
- getState_fillColor(): string | null;
5567
- getState_lineWidth(): number | null;
5568
- getState_lineType(): number | null;
5572
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5573
+ getState_PrimitiveId(): string;
5574
+ getState_Line(): Number[];
5575
+ getState_Color(): string | null;
5576
+ getState_FillColor(): string | null;
5577
+ getState_LineWidth(): number | null;
5578
+ getState_LineType(): number | null;
5569
5579
  /** 数据校验 */
5570
5580
  setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
5571
5581
  /** 数据校验 */
@@ -5637,7 +5647,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
5637
5647
  * @returns 矩形图元对象
5638
5648
  */
5639
5649
  create(): Promise<ISCH_PrimitiveRectangle>;
5640
- getState_PrimitiveType(): string;
5650
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5641
5651
  getState_PrimitiveId(): string;
5642
5652
  getState_TopLeftX(): number;
5643
5653
  getState_TopLeftY(): number;
@@ -5723,7 +5733,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
5723
5733
  * @returns 文本图元对象
5724
5734
  */
5725
5735
  create(): Promise<ISCH_PrimitiveText>;
5726
- getState_PrimitiveType(): string;
5736
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5727
5737
  getState_PrimitiveId(): string;
5728
5738
  getState_X(): number;
5729
5739
  getState_Y(): number;
@@ -5814,7 +5824,7 @@ declare class ISCH_PrimitiveWire implements ISCH_Primitive {
5814
5824
  * @returns 导线图元对象
5815
5825
  */
5816
5826
  create(): ISCH_PrimitiveWire;
5817
- getState_PrimitiveType(): string;
5827
+ getState_PrimitiveType(): ESCH_PrimitiveType;
5818
5828
  getState_PrimitiveId(): string;
5819
5829
  getState_Line(): WireNetGroupCreateOptions['line'];
5820
5830
  getState_Net(): WireNetGroupCreateOptions['net'];
@@ -6704,7 +6714,7 @@ declare class PCB_Document {
6704
6714
  *
6705
6715
  * @public
6706
6716
  * @remarks
6707
- * 嘉立创 EDA 专业版前端显示的坐标均为画布原点;
6717
+ * 嘉立��� EDA 专业版前端显示的坐标均为画布原点;
6708
6718
  *
6709
6719
  * 嘉立创 EDA 专业版 API 使用的均为数据原点;
6710
6720
  *
@@ -7183,7 +7193,7 @@ declare class PCB_Layer {
7183
7193
  * 将层设置为不可见
7184
7194
  *
7185
7195
  * @beta
7186
- * @param layer - 层,如若不指定任何层则默认为所有层
7196
+ * @param layer - 层,如��不指定任何层则默认为所有层
7187
7197
  * @param setOtherLayerVisible - 是否将其它层设置为可见
7188
7198
  * @returns 操作是否成功
7189
7199
  */
@@ -7901,7 +7911,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
7901
7911
  }
7902
7912
 
7903
7913
  /**
7904
- * PCB & 封装 / 图像��元类
7914
+ * PCB & 封装 / 图像图元类
7905
7915
  *
7906
7916
  * @public
7907
7917
  */
@@ -10014,7 +10024,7 @@ declare class SYS_MessageBox {
10014
10024
  * @public
10015
10025
  * @deprecated 请使用 {@link SYS_Dialog.showConfirmationMessage} 替代
10016
10026
  * @remarks 显示一个拥有确认和取消按钮的确认框
10017
- * @param content - 消息文本,支持使用 `\n` 换行
10027
+ * @param content - 消息文本,支��使用 `\n` 换行
10018
10028
  * @param title - 确认框标题
10019
10029
  * @param mainButtonTitle - 主要按钮标题
10020
10030
  * @param buttonTitle - 主要按钮标题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [