@jlceda/pro-api-types 0.1.93 → 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 +36 -26
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -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
  *
@@ -4635,7 +4643,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
4635
4643
  */
4636
4644
  getState_ViaType(): EPCB_PrimitiveViaType;
4637
4645
  /**
4638
- * 获取属性状态:盲埋孔设计规则项名��
4646
+ * 获取属性状态:盲埋孔设计规则项名称
4639
4647
  *
4640
4648
  * @public
4641
4649
  * @returns 盲埋孔设计规则项名称
@@ -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,14 +6714,14 @@ declare class PCB_Document {
6704
6714
  *
6705
6715
  * @public
6706
6716
  * @remarks
6707
- * 嘉立创 EDA 专业版前端显示的坐标均为画布原点;
6717
+ * 嘉立��� EDA 专业版前端显示的坐标均为画布原点;
6708
6718
  *
6709
6719
  * 嘉立创 EDA 专业版 API 使用的均为数据原点;
6710
6720
  *
6711
6721
  * 如果返回的数据为 `{ canvasOriginOffsetX: 100, canvasOriginOffsetY: 200 }`,
6712
6722
  * 则代表画布原点在数据原点的向右 100 单位且向上 200 单位的位置;
6713
6723
  *
6714
- * 此处的单位为数据层面单位,在跨度上等同于画布���面的 mil
6724
+ * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
6715
6725
  * @returns 画布原点相对于数据原点的偏移坐标
6716
6726
  */
6717
6727
  getCanvasOrigin(): Promise<{
@@ -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
  */
@@ -8207,7 +8217,7 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
8207
8217
  * @beta
8208
8218
  * @param primitiveId - 图元 ID
8209
8219
  * @param property - 修改参数
8210
- * @returns 折线图元���象
8220
+ * @returns 折线图元对象
8211
8221
  */
8212
8222
  modify(primitiveId: string | IPCB_PrimitivePolyline, property: {
8213
8223
  net?: string;
@@ -9591,7 +9601,7 @@ declare class SYS_Environment {
9591
9601
  */
9592
9602
  isClient(): boolean;
9593
9603
  /**
9594
- * 是否为 EasyEDA Pro 版��
9604
+ * 是否为 EasyEDA Pro 版本
9595
9605
  *
9596
9606
  * @public
9597
9607
  * @returns 是否为 EasyEDA Pro 版本
@@ -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 - 主要按钮标题
@@ -10163,7 +10173,7 @@ declare class SYS_Storage {
10163
10173
  private extensionUuid?;
10164
10174
  /* Excluded from this release type: __constructor */
10165
10175
  /**
10166
- * 获��扩展所有用户配置
10176
+ * 获取扩展所有用户配置
10167
10177
  *
10168
10178
  * @public
10169
10179
  * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
@@ -10566,7 +10576,7 @@ declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerTyp
10566
10576
  *
10567
10577
  * `['CIRCLE', 100, 200, 5]`
10568
10578
  *
10569
- * ��多边形的数据由以下几种模式组合而成:
10579
+ * 单多边形的数据由以下几种模式组合而成:
10570
10580
  *
10571
10581
  * ① L 直线模式
10572
10582
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [