@jlceda/pro-api-types 0.1.111 → 0.1.120

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 +2482 -491
  2. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -1,11 +1,3 @@
1
- declare interface BusNetGroupCreateOptions {
2
- net: string;
3
- line: Array<number> | Array<Array<number>>;
4
- color: string | null;
5
- lineWidth: number | null;
6
- lineType: number | null;
7
- }
8
-
9
1
  /**
10
2
  * 文档树 / 板子管理类
11
3
  *
@@ -418,7 +410,7 @@ declare class DMT_Project {
418
410
  *
419
411
  * @beta
420
412
  * @param projectFriendlyName - 工程友好名称
421
- * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生��
413
+ * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
422
414
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
423
415
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
424
416
  * @param description - 工程描述
@@ -772,6 +764,7 @@ declare class EDA {
772
764
  sch_PrimitiveBus: SCH_PrimitiveBus;
773
765
  sch_PrimitiveCircle: SCH_PrimitiveCircle;
774
766
  sch_PrimitiveComponent: SCH_PrimitiveComponent;
767
+ sch_PrimitiveComponent3: SCH_PrimitiveComponent3;
775
768
  sch_PrimitivePin: SCH_PrimitivePin;
776
769
  sch_PrimitivePolygon: SCH_PrimitivePolygon;
777
770
  sch_PrimitiveRectangle: SCH_PrimitiveRectangle;
@@ -792,10 +785,12 @@ declare class EDA {
792
785
  sys_Message: SYS_Message;
793
786
  sys_MessageBox: SYS_MessageBox;
794
787
  sys_PanelControl: SYS_PanelControl;
788
+ sys_Setting: SYS_Setting;
795
789
  sys_ShortcutKey: SYS_ShortcutKey;
796
790
  sys_Storage: SYS_Storage;
797
791
  sys_Timer: SYS_Timer;
798
792
  sys_ToastMessage: SYS_ToastMessage;
793
+ sys_Tool: SYS_Tool;
799
794
  sys_Unit: SYS_Unit;
800
795
  sys_WebSocket: SYS_WebSocket;
801
796
  sys_Window: SYS_Window;
@@ -1186,7 +1181,7 @@ declare enum EPCB_LayerId {
1186
1181
  CUSTOM_28 = 98,
1187
1182
  /** 自定义层 29 */
1188
1183
  CUSTOM_29 = 99,
1189
- /** ���定义层 30 */
1184
+ /** 自定义层 30 */
1190
1185
  CUSTOM_30 = 100,
1191
1186
  /** 夹层(介电基板)1 */
1192
1187
  SUBSTRATE_1 = 101,
@@ -1468,6 +1463,68 @@ declare enum ESCH_PrimitiveComponentType {
1468
1463
  NET_LABEL = "netlabel"
1469
1464
  }
1470
1465
 
1466
+ /**
1467
+ * 器件类型
1468
+ *
1469
+ * @public
1470
+ */
1471
+ declare enum ESCH_PrimitiveComponentType_2 {
1472
+ /** 元件 */
1473
+ COMPONENT = "part",
1474
+ /** 图纸 */
1475
+ DRAWING = "Drawing",
1476
+ /** 网络标识 */
1477
+ NET_FLAG = "netflag",
1478
+ /** 网络端口 */
1479
+ NET_PORT = "netport",
1480
+ /** 无电气标识 */
1481
+ NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
1482
+ /** 短接标识 */
1483
+ SHORT_CIRCUIT_FLAG = "short_symbol",
1484
+ /** 网络标签 */
1485
+ NET_LABEL = "netlabel"
1486
+ }
1487
+
1488
+ /**
1489
+ * 填充样式
1490
+ *
1491
+ * @public
1492
+ */
1493
+ declare enum ESCH_PrimitiveFillStyle {
1494
+ /** 无 */
1495
+ NONE = "None",
1496
+ /** 实心 */
1497
+ SOLID = "Solid",
1498
+ /** 网格 */
1499
+ GRID = "Grid",
1500
+ /** 横线 */
1501
+ HORIZONTAL_LINE = "Horizontal Line",
1502
+ /** 竖线 */
1503
+ VERTICAL_LINE = "Vertical Line",
1504
+ /** 菱形网格 */
1505
+ RHOMBIC_GRID = "Rhombic Grid",
1506
+ /** 左斜线 */
1507
+ LEFT_SLASH_LINE = "Left Slash Line",
1508
+ /** 右斜线 */
1509
+ RIGHT_SLASH_LINE = "Right Slash Line"
1510
+ }
1511
+
1512
+ /**
1513
+ * 线型
1514
+ *
1515
+ * @public
1516
+ */
1517
+ declare enum ESCH_PrimitiveLineType {
1518
+ /** 实线 */
1519
+ SOLID = 0,
1520
+ /** 短划线 */
1521
+ DASHED = 1,
1522
+ /** 点线 */
1523
+ DOTTED = 2,
1524
+ /** 点划线 */
1525
+ DOT_DASHED = 3
1526
+ }
1527
+
1471
1528
  /**
1472
1529
  * 引脚形状
1473
1530
  *
@@ -1918,7 +1975,7 @@ declare interface IDMT_ProjectItem extends IDMT_BriefProjectItem {
1918
1975
  description?: string;
1919
1976
  /** 工程内文档数据 */
1920
1977
  data: Array<IDMT_BoardItem | IDMT_SchematicItem | IDMT_PcbItem | IDMT_PanelItem>;
1921
- /** 工��协作模式 */
1978
+ /** 工程协作模式 */
1922
1979
  collaborationMode?: EDMT_ProjectCollaborationMode;
1923
1980
  }
1924
1981
 
@@ -2113,12 +2170,36 @@ declare interface ILIB_ClassificationIndex {
2113
2170
  * @public
2114
2171
  */
2115
2172
  declare interface ILIB_DeviceAssociationItem {
2116
- /** 符号类型 */
2173
+ /**
2174
+ * 符号类型
2175
+ *
2176
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.symbol | symbol} 替代
2177
+ */
2117
2178
  symbolType: ELIB_SymbolType;
2118
- /** 符号 UUID */
2179
+ /**
2180
+ * 符号 UUID
2181
+ *
2182
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.symbol | symbol} 替代
2183
+ */
2119
2184
  symbolUuid: string;
2120
- /** 封装 UUID */
2121
- footprintUuid?: string;
2185
+ /** 符号 */
2186
+ symbol: {
2187
+ type: ELIB_SymbolType;
2188
+ uuid: string;
2189
+ libraryUuid: string;
2190
+ };
2191
+ /**
2192
+ * 封装 UUID
2193
+ *
2194
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.footprint | footprint} 替代
2195
+ */
2196
+ footprintUuid: string;
2197
+ /** 封装 */
2198
+ footprint?: {
2199
+ uuid: string;
2200
+ libraryUuid: string;
2201
+ };
2202
+ images?: Array<string>;
2122
2203
  }
2123
2204
 
2124
2205
  /**
@@ -2145,8 +2226,10 @@ declare interface ILIB_DeviceExtendPropertyItem {
2145
2226
  supplier?: string;
2146
2227
  /** 供应商编号 */
2147
2228
  supplierId?: string;
2148
- /** 其它 */
2149
- [key: string]: boolean | number | string | undefined;
2229
+ /** 其它参数 */
2230
+ otherProperty?: {
2231
+ [key: string]: boolean | number | string | undefined;
2232
+ };
2150
2233
  }
2151
2234
 
2152
2235
  /**
@@ -2215,18 +2298,60 @@ declare interface ILIB_DeviceSearchItem {
2215
2298
  ordinal: number;
2216
2299
  /** 器件名称 */
2217
2300
  name: string;
2218
- /** 关联符号名称 */
2301
+ /**
2302
+ * 关联符号名称
2303
+ *
2304
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.symbol | symbol} 替代
2305
+ */
2219
2306
  symbolName: string;
2220
- /** 关联符号 UUID */
2307
+ /**
2308
+ * 关联符号 UUID
2309
+ *
2310
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.symbol | symbol} 替代
2311
+ */
2221
2312
  symbolUuid: string;
2222
- /** 关联封装名称 */
2313
+ /** 关联符号 */
2314
+ symbol: {
2315
+ name: string;
2316
+ uuid: string;
2317
+ libraryUuid: string;
2318
+ };
2319
+ /**
2320
+ * 关联封装名称
2321
+ *
2322
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.footprint | footprint} 替代
2323
+ */
2223
2324
  footprintName?: string;
2224
- /** 关联封装 UUID */
2225
- footprintUuid?: string;
2226
- /** 关联 3D 模型名称 */
2325
+ /**
2326
+ * 关联封装 UUID
2327
+ *
2328
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.footprint | footprint} 替代
2329
+ */
2330
+ footprintUuid: string;
2331
+ /** 关联封装 */
2332
+ footprint?: {
2333
+ name: string;
2334
+ uuid: string;
2335
+ libraryUuid: string;
2336
+ };
2337
+ /**
2338
+ * 关联 3D 模型名称
2339
+ *
2340
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.model3D | model3D} 替代
2341
+ */
2227
2342
  model3DName?: string;
2228
- /** 关联 3D 模型 UUID */
2229
- model3DUuid?: string;
2343
+ /**
2344
+ * 关联 3D 模型 UUID
2345
+ *
2346
+ * @deprecated 请使用 {@link ILIB_DeviceSearchItem.model3D | model3D} 替代
2347
+ */
2348
+ model3DUuid: string;
2349
+ /** 关联 3D 模型 */
2350
+ model3D?: {
2351
+ name: string;
2352
+ uuid: string;
2353
+ libraryUuid: string;
2354
+ };
2230
2355
  /** 关联图片 UUID */
2231
2356
  imageUuid?: string;
2232
2357
  /** 描述 */
@@ -2434,7 +2559,7 @@ declare class IPCB_ComplexPolygon {
2434
2559
  */
2435
2560
  getSource(): TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>;
2436
2561
  /**
2437
- * 获��复杂多边形数据
2562
+ * 获取复杂多边形数据
2438
2563
  *
2439
2564
  * @public
2440
2565
  * @remarks 强制返回复杂多边形格式数据,即使它仅包含单一的单多边形
@@ -2469,7 +2594,12 @@ declare interface IPCB_EqualLengthNetGroupItem {
2469
2594
  /** 网络名称数组 */
2470
2595
  nets: Array<string>;
2471
2596
  /** 等长网络组颜色 */
2472
- color: string | null;
2597
+ color: {
2598
+ r: number;
2599
+ g: number;
2600
+ b: number;
2601
+ alpha: number;
2602
+ } | null;
2473
2603
  }
2474
2604
 
2475
2605
  /**
@@ -2501,7 +2631,12 @@ declare interface IPCB_NetClassItem {
2501
2631
  /** 网络名称数组 */
2502
2632
  nets: Array<string>;
2503
2633
  /** 网络类颜色 */
2504
- color: string | null;
2634
+ color: {
2635
+ r: number;
2636
+ g: number;
2637
+ b: number;
2638
+ alpha: number;
2639
+ } | null;
2505
2640
  }
2506
2641
 
2507
2642
  /**
@@ -2513,7 +2648,12 @@ declare interface IPCB_NetInfo {
2513
2648
  /** 网络名称 */
2514
2649
  net: string;
2515
2650
  /** 颜色 */
2516
- color: string | null;
2651
+ color: {
2652
+ r: number;
2653
+ g: number;
2654
+ b: number;
2655
+ alpha: number;
2656
+ } | null;
2517
2657
  /** 长度 */
2518
2658
  length: number;
2519
2659
  }
@@ -2597,6 +2737,7 @@ declare interface IPCB_PrimitiveAPI {
2597
2737
  * 圆弧线图元
2598
2738
  *
2599
2739
  * @public
2740
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
2600
2741
  */
2601
2742
  declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2602
2743
  /** 异步 */
@@ -2838,9 +2979,18 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2838
2979
  * 获取整段导线
2839
2980
  *
2840
2981
  * @beta
2982
+ * @param includeVias - 是否包含导线两端的过孔
2841
2983
  * @returns 整段导线内的所有直线和圆弧线
2842
2984
  */
2843
- getEntireTrack(): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
2985
+ getEntireTrack(includeVias: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
2986
+ /**
2987
+ * 获取整段导线
2988
+ *
2989
+ * @beta
2990
+ * @param includeVias - 是否包含导线两端的过孔
2991
+ * @returns 整段导线内的所有直线、圆弧线,以及两端连接的过孔(如果有)
2992
+ */
2993
+ getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
2844
2994
  }
2845
2995
 
2846
2996
  /**
@@ -3231,6 +3381,8 @@ declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
3231
3381
  * @returns 器件焊盘图元对象
3232
3382
  */
3233
3383
  done(): Promise<IPCB_PrimitiveComponentPad>;
3384
+ /* Excluded from this release type: getConnectedPrimitives */
3385
+ getConnectedPrimitives(onlyCentreConnection: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill>>;
3234
3386
  }
3235
3387
 
3236
3388
  /**
@@ -3722,7 +3874,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3722
3874
  * @public
3723
3875
  * @returns 是否锁定
3724
3876
  */
3725
- getState_PrimitiveLock(): boolean | undefined;
3877
+ getState_PrimitiveLock(): boolean;
3726
3878
  /**
3727
3879
  * 设置属性状态:BBox 左上点坐标 X
3728
3880
  *
@@ -3730,7 +3882,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3730
3882
  * @param x - BBox 左上点坐标 X
3731
3883
  * @returns 图像图元对象
3732
3884
  */
3733
- setState_X(x: number | undefined): IPCB_PrimitiveImage;
3885
+ setState_X(x: number): IPCB_PrimitiveImage;
3734
3886
  /**
3735
3887
  * 设置属性状态:BBox 左上点坐标 Y
3736
3888
  *
@@ -3738,7 +3890,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3738
3890
  * @param y - BBox 左上点坐标 Y
3739
3891
  * @returns 图像图元对象
3740
3892
  */
3741
- setState_Y(y: number | undefined): IPCB_PrimitiveImage;
3893
+ setState_Y(y: number): IPCB_PrimitiveImage;
3742
3894
  /**
3743
3895
  * 设置属性状态:层
3744
3896
  *
@@ -3746,7 +3898,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3746
3898
  * @param layer - 层
3747
3899
  * @returns 图像图元对象
3748
3900
  */
3749
- setState_Layer(layer: TPCB_LayersOfImage | undefined): IPCB_PrimitiveImage;
3901
+ setState_Layer(layer: TPCB_LayersOfImage): IPCB_PrimitiveImage;
3750
3902
  /**
3751
3903
  * 设置属性状态:宽
3752
3904
  *
@@ -3754,7 +3906,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3754
3906
  * @param width - 宽
3755
3907
  * @returns 图像图元对象
3756
3908
  */
3757
- setState_Width(width: number | undefined): IPCB_PrimitiveImage;
3909
+ setState_Width(width: number): IPCB_PrimitiveImage;
3758
3910
  /**
3759
3911
  * 设置属性状态:高
3760
3912
  *
@@ -3762,7 +3914,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3762
3914
  * @param height - 高
3763
3915
  * @returns 图像图元对象
3764
3916
  */
3765
- setState_Height(height: number | undefined): IPCB_PrimitiveImage;
3917
+ setState_Height(height: number): IPCB_PrimitiveImage;
3766
3918
  /**
3767
3919
  * 设置属性状态:旋转角度
3768
3920
  *
@@ -3770,7 +3922,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3770
3922
  * @param rotation - 旋转角度
3771
3923
  * @returns 图像图元对象
3772
3924
  */
3773
- setState_Rotation(rotation: number | undefined): IPCB_PrimitiveImage;
3925
+ setState_Rotation(rotation: number): IPCB_PrimitiveImage;
3774
3926
  /**
3775
3927
  * 设置属性状态:是否水平镜像
3776
3928
  *
@@ -3778,7 +3930,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3778
3930
  * @param horizonMirror - 是否水平镜像
3779
3931
  * @returns 图像图元对象
3780
3932
  */
3781
- setState_HorizonMirror(horizonMirror: boolean | undefined): IPCB_PrimitiveImage;
3933
+ setState_HorizonMirror(horizonMirror: boolean): IPCB_PrimitiveImage;
3782
3934
  /**
3783
3935
  * 设置属性状态:是否锁定
3784
3936
  *
@@ -3786,7 +3938,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3786
3938
  * @param primitiveLock - 是否锁定
3787
3939
  * @returns 图像图元对象
3788
3940
  */
3789
- setState_PrimitiveLock(primitiveLock: boolean | undefined): IPCB_PrimitiveImage;
3941
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveImage;
3790
3942
  /**
3791
3943
  * 将图元转换为异步图元
3792
3944
  *
@@ -3829,6 +3981,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3829
3981
  * 直线图元
3830
3982
  *
3831
3983
  * @public
3984
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
3832
3985
  */
3833
3986
  declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3834
3987
  /** 异步 */
@@ -4036,9 +4189,18 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
4036
4189
  * 获取整段导线
4037
4190
  *
4038
4191
  * @beta
4192
+ * @param includeVias - 是否包含导线两端的过孔
4039
4193
  * @returns 整段导线内的所有直线和圆弧线
4040
4194
  */
4041
- getEntireTrack(): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
4195
+ getEntireTrack(includeVias: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
4196
+ /**
4197
+ * 获取整段导线
4198
+ *
4199
+ * @beta
4200
+ * @param includeVias - 是否包含导线两端的过孔
4201
+ * @returns 整段导线内的所有直线、圆弧线,以及两端连接的过孔(如果有)
4202
+ */
4203
+ getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
4042
4204
  }
4043
4205
 
4044
4206
  /**
@@ -4065,7 +4227,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4065
4227
  private width;
4066
4228
  /** 高 */
4067
4229
  private height;
4068
- /** 旋���角度 */
4230
+ /** 旋转角度 */
4069
4231
  private rotation;
4070
4232
  /** 是否水平镜像 */
4071
4233
  private mirror;
@@ -4123,42 +4285,42 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4123
4285
  * @public
4124
4286
  * @returns 宽
4125
4287
  */
4126
- getState_Width(): number | undefined;
4288
+ getState_Width(): number;
4127
4289
  /**
4128
4290
  * 获取属性状态:高
4129
4291
  *
4130
4292
  * @public
4131
4293
  * @returns 高
4132
4294
  */
4133
- getState_Height(): number | undefined;
4295
+ getState_Height(): number;
4134
4296
  /**
4135
4297
  * 获取属性状态:旋转角度
4136
4298
  *
4137
4299
  * @public
4138
4300
  * @returns 旋转角度
4139
4301
  */
4140
- getState_Rotation(): number | undefined;
4302
+ getState_Rotation(): number;
4141
4303
  /**
4142
4304
  * 获取属性状态:是否水平镜像
4143
4305
  *
4144
4306
  * @public
4145
4307
  * @returns 是否水平镜像
4146
4308
  */
4147
- getState_Mirror(): boolean | undefined;
4309
+ getState_Mirror(): boolean;
4148
4310
  /**
4149
4311
  * 获取属性状态:文件名
4150
4312
  *
4151
4313
  * @public
4152
4314
  * @returns 文件名
4153
4315
  */
4154
- getState_FileName(): string | undefined;
4316
+ getState_FileName(): string;
4155
4317
  /**
4156
4318
  * 获取属性状态:是否锁定
4157
4319
  *
4158
4320
  * @public
4159
4321
  * @returns 是否锁定
4160
4322
  */
4161
- getState_PrimitiveLock(): boolean | undefined;
4323
+ getState_PrimitiveLock(): boolean;
4162
4324
  /**
4163
4325
  * 设置属性状态:层
4164
4326
  *
@@ -4166,7 +4328,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4166
4328
  * @param layer - 层
4167
4329
  * @returns 二进制内嵌对象图元对象
4168
4330
  */
4169
- setState_Layer(layer: TPCB_LayersOfObject | undefined): IPCB_PrimitiveObject;
4331
+ setState_Layer(layer: TPCB_LayersOfObject): IPCB_PrimitiveObject;
4170
4332
  /**
4171
4333
  * 设置属性状态:左上点 X
4172
4334
  *
@@ -4174,7 +4336,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4174
4336
  * @param topLeftX - 左上点 X
4175
4337
  * @returns 二进制内嵌对象图元对象
4176
4338
  */
4177
- setState_TopLeftX(topLeftX: number | undefined): IPCB_PrimitiveObject;
4339
+ setState_TopLeftX(topLeftX: number): IPCB_PrimitiveObject;
4178
4340
  /**
4179
4341
  * 设置属性状态:左上点 Y
4180
4342
  *
@@ -4182,7 +4344,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4182
4344
  * @param topLeftY - 左上点 Y
4183
4345
  * @returns 二进制内嵌对象图元对象
4184
4346
  */
4185
- setState_TopLeftY(topLeftY: number | undefined): IPCB_PrimitiveObject;
4347
+ setState_TopLeftY(topLeftY: number): IPCB_PrimitiveObject;
4186
4348
  /**
4187
4349
  * 设置属性状态:二进制数据
4188
4350
  *
@@ -4198,7 +4360,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4198
4360
  * @param width - 宽
4199
4361
  * @returns 二进制内嵌对象图元对象
4200
4362
  */
4201
- setState_Width(width: number | undefined): IPCB_PrimitiveObject;
4363
+ setState_Width(width: number): IPCB_PrimitiveObject;
4202
4364
  /**
4203
4365
  * 设置属性状态:高
4204
4366
  *
@@ -4206,7 +4368,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4206
4368
  * @param height - 高
4207
4369
  * @returns 二进制内嵌对象图元对象
4208
4370
  */
4209
- setState_Height(height: number | undefined): IPCB_PrimitiveObject;
4371
+ setState_Height(height: number): IPCB_PrimitiveObject;
4210
4372
  /**
4211
4373
  * 设置属性状态:旋转角度
4212
4374
  *
@@ -4214,7 +4376,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4214
4376
  * @param rotation - 旋转角度
4215
4377
  * @returns 二进制内嵌对象图元对象
4216
4378
  */
4217
- setState_Rotation(rotation: number | undefined): IPCB_PrimitiveObject;
4379
+ setState_Rotation(rotation: number): IPCB_PrimitiveObject;
4218
4380
  /**
4219
4381
  * 设置属性状态:是否水平镜像
4220
4382
  *
@@ -4222,7 +4384,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4222
4384
  * @param mirror - 是否水平镜像
4223
4385
  * @returns 二进制内嵌对象图元对象
4224
4386
  */
4225
- setState_Mirror(mirror: boolean | undefined): IPCB_PrimitiveObject;
4387
+ setState_Mirror(mirror: boolean): IPCB_PrimitiveObject;
4226
4388
  /**
4227
4389
  * 设置属性状态:文件名
4228
4390
  *
@@ -4230,7 +4392,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4230
4392
  * @param fileName - 文件名
4231
4393
  * @returns 二进制内嵌对象图元对象
4232
4394
  */
4233
- setState_FileName(fileName: string | undefined): IPCB_PrimitiveObject;
4395
+ setState_FileName(fileName: string): IPCB_PrimitiveObject;
4234
4396
  /**
4235
4397
  * 设置属性状态:是否锁定
4236
4398
  *
@@ -4238,7 +4400,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4238
4400
  * @param primitiveLock - 是否锁定
4239
4401
  * @returns 二进制内嵌对象图元对象
4240
4402
  */
4241
- setState_PrimitiveLock(primitiveLock: boolean | undefined): IPCB_PrimitiveObject;
4403
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveObject;
4242
4404
  /**
4243
4405
  * 将图元转换为异步图元
4244
4406
  *
@@ -4513,7 +4675,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4513
4675
  */
4514
4676
  setState_Rotation(rotation: number): IPCB_PrimitivePad;
4515
4677
  /**
4516
- * 设置属性状��:焊盘外形
4678
+ * 设置属性状态:焊盘外形
4517
4679
  *
4518
4680
  * @beta
4519
4681
  * @remarks
@@ -4638,7 +4800,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4638
4800
  */
4639
4801
  toAsync(): IPCB_PrimitivePad;
4640
4802
  /**
4641
- * ���图元转换为同步图元
4803
+ * 将图元转换为同步图元
4642
4804
  *
4643
4805
  * @public
4644
4806
  * @returns 焊盘图元对象
@@ -5605,69 +5767,206 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
5605
5767
  /** 线型 */
5606
5768
  private lineType;
5607
5769
  /* Excluded from this release type: __constructor */
5770
+ /* Excluded from this release type: create */
5608
5771
  /**
5609
- * 在原理图画布中创建图元
5772
+ * 获取属性状态:图元类型
5610
5773
  *
5611
- * @beta
5612
- * @returns 圆弧图元对象
5774
+ * @public
5775
+ * @returns 图元类型
5613
5776
  */
5614
- create(): Promise<ISCH_PrimitiveArc>;
5615
5777
  getState_PrimitiveType(): ESCH_PrimitiveType;
5778
+ /**
5779
+ * 获取属性状态:图元 ID
5780
+ *
5781
+ * @public
5782
+ * @returns 图元 ID
5783
+ */
5616
5784
  getState_PrimitiveId(): string;
5617
- getState_StartY(): number;
5785
+ /**
5786
+ * 获取属性状态:起始点 X
5787
+ *
5788
+ * @public
5789
+ * @returns 起始点 X
5790
+ */
5618
5791
  getState_StartX(): number;
5792
+ /**
5793
+ * 获取属性状态:起始点 Y
5794
+ *
5795
+ * @public
5796
+ * @returns 起始点 Y
5797
+ */
5798
+ getState_StartY(): number;
5799
+ /**
5800
+ * 获取属性状态:参考点 X
5801
+ *
5802
+ * @public
5803
+ * @returns 参考点 X
5804
+ */
5619
5805
  getState_ReferenceX(): number;
5806
+ /**
5807
+ * 获取属性状态:参考点 Y
5808
+ *
5809
+ * @public
5810
+ * @returns 参考点 Y
5811
+ */
5620
5812
  getState_ReferenceY(): number;
5813
+ /**
5814
+ * 获取属性状态:终止点 X
5815
+ *
5816
+ * @public
5817
+ * @returns 终止点 X
5818
+ */
5621
5819
  getState_EndX(): number;
5820
+ /**
5821
+ * 获取属性状态:终止点 Y
5822
+ *
5823
+ * @public
5824
+ * @returns 终止点 Y
5825
+ */
5622
5826
  getState_EndY(): number;
5827
+ /**
5828
+ * 获取属性状态:颜色
5829
+ *
5830
+ * @public
5831
+ * @returns 颜色
5832
+ */
5623
5833
  getState_Color(): string | null;
5834
+ /**
5835
+ * 获取属性状态:填充颜色
5836
+ *
5837
+ * @public
5838
+ * @returns 填充颜色
5839
+ */
5624
5840
  getState_FillColor(): string | null;
5841
+ /**
5842
+ * 获取属性状态:线宽
5843
+ *
5844
+ * @public
5845
+ * @returns 线宽
5846
+ */
5625
5847
  getState_LineWidth(): number | null;
5626
- getState_LineType(): number | null;
5627
- /** @beta 数据校验 */
5848
+ /**
5849
+ * 获取属性状态:线型
5850
+ *
5851
+ * @public
5852
+ * @returns 线型
5853
+ */
5854
+ getState_LineType(): ESCH_PrimitiveLineType | null;
5855
+ /**
5856
+ * 设置属性状态:起始点 X
5857
+ *
5858
+ * @beta
5859
+ * @param startX - 起始点 X
5860
+ * @returns 圆弧图元对象
5861
+ */
5628
5862
  setState_StartX(startX: number): ISCH_PrimitiveArc;
5629
- /** @beta 数据校验 */
5863
+ /**
5864
+ * 设置属性状态:起始点 Y
5865
+ *
5866
+ * @beta
5867
+ * @param startY - 起始点 Y
5868
+ * @returns 圆弧图元对象
5869
+ */
5630
5870
  setState_StartY(startY: number): ISCH_PrimitiveArc;
5631
- /** @beta 数据校验 */
5871
+ /**
5872
+ * 设置属性状态:参考点 X
5873
+ *
5874
+ * @beta
5875
+ * @param referenceX - 参考点 X
5876
+ * @returns 圆弧图元对象
5877
+ */
5632
5878
  setState_ReferenceX(referenceX: number): ISCH_PrimitiveArc;
5633
- /** @beta 数据校验 */
5879
+ /**
5880
+ * 设置属性状态:参考点 Y
5881
+ *
5882
+ * @beta
5883
+ * @param referenceY - 参考点 Y
5884
+ * @returns 圆弧图元对象
5885
+ */
5634
5886
  setState_ReferenceY(referenceY: number): ISCH_PrimitiveArc;
5635
- /** @beta 数据校验 */
5887
+ /**
5888
+ * 设置属性状态:终止点 X
5889
+ *
5890
+ * @beta
5891
+ * @param endX - 终止点 X
5892
+ * @returns 圆弧图元对象
5893
+ */
5636
5894
  setState_EndX(endX: number): ISCH_PrimitiveArc;
5637
- /** @beta 数据校验 */
5895
+ /**
5896
+ * 设置属性状态:终止点 Y
5897
+ *
5898
+ * @beta
5899
+ * @param endY - 终止点 Y
5900
+ * @returns 圆弧图元对象
5901
+ */
5638
5902
  setState_EndY(endY: number): ISCH_PrimitiveArc;
5639
- /** @beta 数据校验 */
5903
+ /**
5904
+ * 设置属性状态:颜色
5905
+ *
5906
+ * @beta
5907
+ * @param color - 颜色
5908
+ * @returns 圆弧图元对象
5909
+ */
5640
5910
  setState_Color(color: string | null): ISCH_PrimitiveArc;
5641
- /** @beta 数据校验 */
5911
+ /**
5912
+ * 设置属性状态:填充颜色
5913
+ *
5914
+ * @beta
5915
+ * @param fillColor - 填充颜色
5916
+ * @returns 圆弧图元对象
5917
+ */
5642
5918
  setState_FillColor(fillColor: string | null): ISCH_PrimitiveArc;
5643
- /** @beta 数据校验 */
5919
+ /**
5920
+ * 设置属性状态:线宽
5921
+ *
5922
+ * @beta
5923
+ * @param lineWidth - 线宽
5924
+ * @returns 圆弧图元对象
5925
+ */
5644
5926
  setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveArc;
5645
- /** @beta 数据校验 */
5646
- setState_LineType(lineType: number | null): ISCH_PrimitiveArc;
5927
+ /**
5928
+ * 设置属性状态:线型
5929
+ *
5930
+ * @beta
5931
+ * @param lineType - 线型
5932
+ * @returns 圆弧图元对象
5933
+ */
5934
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveArc;
5647
5935
  /**
5648
5936
  * 将图元转换为异步图元
5937
+ *
5938
+ * @public
5939
+ * @returns 圆弧图元对象
5649
5940
  */
5650
5941
  toAsync(): ISCH_PrimitiveArc;
5651
5942
  /**
5652
5943
  * 将图元转换为同步图元
5944
+ *
5945
+ * @public
5946
+ * @returns 圆弧图元对象
5653
5947
  */
5654
5948
  toSync(): ISCH_PrimitiveArc;
5655
5949
  /**
5656
5950
  * 查询图元是否为异步图元
5951
+ *
5952
+ * @public
5953
+ * @returns 是否为异步图元
5657
5954
  */
5658
5955
  isAsync(): boolean;
5659
5956
  /**
5660
5957
  * 将异步图元重置为当前画布状态
5661
5958
  *
5662
5959
  * @beta
5960
+ * @returns 圆弧图元对象
5663
5961
  */
5664
5962
  reset(): Promise<ISCH_PrimitiveArc>;
5665
5963
  /**
5666
5964
  * 将对图元的更改应用到画布
5667
5965
  *
5668
5966
  * @beta
5967
+ * @returns 圆弧图元对象
5669
5968
  */
5670
- done(): ISCH_PrimitiveArc;
5969
+ done(): Promise<ISCH_PrimitiveArc>;
5671
5970
  }
5672
5971
 
5673
5972
  /**
@@ -5693,54 +5992,125 @@ declare class ISCH_PrimitiveBus implements ISCH_Primitive {
5693
5992
  /** 线型 */
5694
5993
  private lineType;
5695
5994
  /* Excluded from this release type: __constructor */
5995
+ /* Excluded from this release type: create */
5696
5996
  /**
5697
- * 在原理图画布中创建图元
5997
+ * 获取属性状态:图元类型
5698
5998
  *
5699
- * @beta
5700
- * @returns 总线图元对象
5999
+ * @public
6000
+ * @returns 图元类型
5701
6001
  */
5702
- create(): ISCH_PrimitiveBus;
5703
6002
  getState_PrimitiveType(): ESCH_PrimitiveType;
5704
- getState_PrimitiveId(): string;
5705
- getState_BusName(): BusNetGroupCreateOptions['net'];
5706
- getState_Line(): BusNetGroupCreateOptions['line'];
5707
- getState_Color(): BusNetGroupCreateOptions['color'];
5708
- getState_LineWidth(): BusNetGroupCreateOptions['lineWidth'];
5709
- getState_LineType(): BusNetGroupCreateOptions['lineType'];
5710
- /** @beta 数据校验 */
5711
- setState_BusName(busName: BusNetGroupCreateOptions['net']): ISCH_PrimitiveBus;
5712
- /** @beta 数据校验 */
5713
- setState_Line(line: BusNetGroupCreateOptions['line']): ISCH_PrimitiveBus;
5714
- /** @beta 数据校验 */
5715
- setState_Color(color: BusNetGroupCreateOptions['color']): ISCH_PrimitiveBus;
5716
- /** @beta 数据校验 */
5717
- setState_LineWidth(lineWidth: BusNetGroupCreateOptions['lineWidth']): ISCH_PrimitiveBus;
5718
- /** @beta 数据校验 */
5719
- setState_LineType(lineType: BusNetGroupCreateOptions['lineType']): ISCH_PrimitiveBus;
5720
6003
  /**
5721
- * 将图元转换为异步图元
6004
+ * 获取属性状态:图元 ID
6005
+ *
6006
+ * @public
6007
+ * @returns 图元 ID
5722
6008
  */
5723
- toAsync(): ISCH_PrimitiveBus;
6009
+ getState_PrimitiveId(): string;
5724
6010
  /**
5725
- * 将图元转换为同步图元
6011
+ * 获取属性状态:总线名称
6012
+ *
6013
+ * @public
6014
+ * @returns 总线名称
5726
6015
  */
5727
- toSync(): ISCH_PrimitiveBus;
6016
+ getState_BusName(): string;
5728
6017
  /**
5729
- * 查询图元是否为异步图元
6018
+ * 获取属性状态:多段线坐标组
6019
+ *
6020
+ * @public
6021
+ * @returns 多段线坐标组
5730
6022
  */
5731
- isAsync(): boolean;
6023
+ getState_Line(): Array<number> | Array<Array<number>>;
5732
6024
  /**
5733
- * 将异步图元重置为当前画布状态
6025
+ * 获取属性状态:总线颜色
6026
+ *
6027
+ * @public
6028
+ * @returns 总线颜色
6029
+ */
6030
+ getState_Color(): string | null;
6031
+ /**
6032
+ * 获取属性状态:线宽
6033
+ *
6034
+ * @public
6035
+ * @returns 线宽
6036
+ */
6037
+ getState_LineWidth(): number | null;
6038
+ /**
6039
+ * 获取属性状态:线型
6040
+ *
6041
+ * @public
6042
+ * @returns 线型
6043
+ */
6044
+ getState_LineType(): ESCH_PrimitiveLineType | null;
6045
+ /**
6046
+ * 设置属性状态:总线名称
6047
+ *
6048
+ * @beta
6049
+ * @param busName - 总线名称
6050
+ * @returns 总线图元对象
6051
+ */
6052
+ setState_BusName(busName: string): ISCH_PrimitiveBus;
6053
+ /**
6054
+ * 设置属性状态:多段线坐标组
6055
+ *
6056
+ * @beta
6057
+ * @param line - 多段线坐标组
6058
+ * @returns 总线图元对象
6059
+ */
6060
+ setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveBus;
6061
+ /**
6062
+ * 设置属性状态:总线颜色
6063
+ *
6064
+ * @beta
6065
+ * @param color - 总线颜色
6066
+ * @returns 总线图元对象
6067
+ */
6068
+ setState_Color(color: string | null): ISCH_PrimitiveBus;
6069
+ /**
6070
+ * 设置属性状态:线宽
6071
+ *
6072
+ * @beta
6073
+ * @param lineWidth - 线宽
6074
+ * @returns 总线图元对象
6075
+ */
6076
+ setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveBus;
6077
+ /**
6078
+ * 设置属性状态:线型
5734
6079
  *
5735
6080
  * @beta
6081
+ * @param lineType - 线型
6082
+ * @returns 总线图元对象
6083
+ */
6084
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveBus;
6085
+ /**
6086
+ * 将图元转��为异步图元
6087
+ *
6088
+ * @public
6089
+ * @returns 总线图元对象
6090
+ */
6091
+ toAsync(): ISCH_PrimitiveBus;
6092
+ /**
6093
+ * 将图元转换为同步图元
6094
+ *
6095
+ * @public
6096
+ * @returns 总线图元对象
6097
+ */
6098
+ toSync(): ISCH_PrimitiveBus;
6099
+ /**
6100
+ * 查询图元是否为异步图元
6101
+ *
6102
+ * @public
6103
+ * @returns 是否为异步图元
5736
6104
  */
5737
- reset(): ISCH_PrimitiveBus;
6105
+ isAsync(): boolean;
6106
+ /* Excluded from this release type: reset */
5738
6107
  /**
5739
6108
  * 将对图元的更改应用到画布
5740
6109
  *
5741
6110
  * @beta
6111
+ * @returns 总线图元对象
5742
6112
  */
5743
- done(): ISCH_PrimitiveBus;
6113
+ done(): Promise<ISCH_PrimitiveBus>;
5744
6114
  }
5745
6115
 
5746
6116
  /**
@@ -5769,59 +6139,177 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
5769
6139
  private lineWidth;
5770
6140
  /** 线型 */
5771
6141
  private lineType;
6142
+ /** 填充样式 */
6143
+ private fillStyle;
5772
6144
  /* Excluded from this release type: __constructor */
6145
+ /* Excluded from this release type: create */
5773
6146
  /**
5774
- * 在原理图画布中创建图元
6147
+ * 获取属性状态:图元类型
5775
6148
  *
5776
- * @beta
5777
- * @returns 圆图元对象
6149
+ * @public
6150
+ * @returns 图元类型
5778
6151
  */
5779
- create(): Promise<ISCH_PrimitiveCircle>;
5780
6152
  getState_PrimitiveType(): ESCH_PrimitiveType;
6153
+ /**
6154
+ * 获取属性状态:图元 ID
6155
+ *
6156
+ * @public
6157
+ * @returns 图元 ID
6158
+ */
5781
6159
  getState_PrimitiveId(): string;
6160
+ /**
6161
+ * 获取属性状态:圆心 X
6162
+ *
6163
+ * @public
6164
+ * @returns 圆心 X
6165
+ */
5782
6166
  getState_CenterX(): number;
6167
+ /**
6168
+ * 获取属性状态:圆心 Y
6169
+ *
6170
+ * @public
6171
+ * @returns 圆心 Y
6172
+ */
5783
6173
  getState_CenterY(): number;
6174
+ /**
6175
+ * 获取属性状态:半径
6176
+ *
6177
+ * @public
6178
+ * @returns 半径
6179
+ */
5784
6180
  getState_Radius(): number;
6181
+ /**
6182
+ * 获取属性状态:颜色
6183
+ *
6184
+ * @public
6185
+ * @returns 颜色
6186
+ */
5785
6187
  getState_Color(): string | null;
6188
+ /**
6189
+ * 获取属性状态:填充颜色
6190
+ *
6191
+ * @public
6192
+ * @returns 填充颜色
6193
+ */
5786
6194
  getState_FillColor(): string | null;
6195
+ /**
6196
+ * 获取属性状态:线宽
6197
+ *
6198
+ * @public
6199
+ * @returns 线宽
6200
+ */
5787
6201
  getState_LineWidth(): number | null;
5788
- getState_LineType(): number | null;
5789
- /** @beta 数据校验 */
6202
+ /**
6203
+ * 获取属性状态:线型
6204
+ *
6205
+ * @public
6206
+ * @returns 线型
6207
+ */
6208
+ getState_LineType(): ESCH_PrimitiveLineType | null;
6209
+ /**
6210
+ * 获取属性状态:填充样式
6211
+ *
6212
+ * @public
6213
+ * @returns 填充样式
6214
+ */
6215
+ getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
6216
+ /**
6217
+ * 设置属性状态:圆心 X
6218
+ *
6219
+ * @beta
6220
+ * @param centerX - 圆心 X
6221
+ * @returns 圆图元对象
6222
+ */
5790
6223
  setState_CenterX(centerX: number): ISCH_PrimitiveCircle;
5791
- /** @beta 数据校验 */
6224
+ /**
6225
+ * 设置属性状态:圆心 Y
6226
+ *
6227
+ * @beta
6228
+ * @param centerY - 圆心 Y
6229
+ * @returns 圆图元对象
6230
+ */
5792
6231
  setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
5793
- /** @beta 数据校验 */
6232
+ /**
6233
+ * 设置属性状态:半径
6234
+ *
6235
+ * @beta
6236
+ * @param radius - 半径
6237
+ * @returns 圆图元对象
6238
+ */
5794
6239
  setState_Radius(radius: number): ISCH_PrimitiveCircle;
5795
- /** @beta 数据校验 */
6240
+ /**
6241
+ * 设置属性状态:颜色
6242
+ *
6243
+ * @beta
6244
+ * @param color - 颜色
6245
+ * @returns 圆图元对象
6246
+ */
5796
6247
  setState_Color(color: string | null): ISCH_PrimitiveCircle;
5797
- /** @beta 数据校验 */
6248
+ /**
6249
+ * 设置属性状态:填充颜色
6250
+ *
6251
+ * @beta
6252
+ * @param fillColor - 填充颜色
6253
+ * @returns 圆图元对象
6254
+ */
5798
6255
  setState_FillColor(fillColor: string | null): ISCH_PrimitiveCircle;
5799
- /** @beta 数据校验 */
6256
+ /**
6257
+ * 设置属性状态:线宽
6258
+ *
6259
+ * @beta
6260
+ * @param lineWidth - 线宽
6261
+ * @returns 圆图元对象
6262
+ */
5800
6263
  setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveCircle;
5801
- /** @beta 数据校验 */
5802
- setState_LineType(lineType: number | null): ISCH_PrimitiveCircle;
6264
+ /**
6265
+ * 设置属性状态:线型
6266
+ *
6267
+ * @beta
6268
+ * @param lineType - 线型
6269
+ * @returns 圆图元对象
6270
+ */
6271
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveCircle;
6272
+ /**
6273
+ * 设置属性状态:填充样式
6274
+ *
6275
+ * @beta
6276
+ * @param fillStyle - 填充样式
6277
+ * @returns 圆图元对象
6278
+ */
6279
+ setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveCircle;
5803
6280
  /**
5804
6281
  * 将图元转换为异步图元
6282
+ *
6283
+ * @public
6284
+ * @returns 圆图元对象
5805
6285
  */
5806
6286
  toAsync(): ISCH_PrimitiveCircle;
5807
6287
  /**
5808
6288
  * 将图元转换为同步图元
6289
+ *
6290
+ * @public
6291
+ * @returns 圆图元对象
5809
6292
  */
5810
6293
  toSync(): ISCH_PrimitiveCircle;
5811
6294
  /**
5812
6295
  * 查询图元是否为异步图元
6296
+ *
6297
+ * @public
6298
+ * @returns 是否为异步图元
5813
6299
  */
5814
6300
  isAsync(): boolean;
5815
6301
  /**
5816
6302
  * 将异步图元重置为当前画布状态
5817
6303
  *
5818
6304
  * @beta
6305
+ * @returns 圆图元对象
5819
6306
  */
5820
6307
  reset(): Promise<ISCH_PrimitiveCircle>;
5821
6308
  /**
5822
6309
  * 将对图元的更改应用到画布
5823
6310
  *
5824
6311
  * @beta
6312
+ * @returns 圆图元对象
5825
6313
  */
5826
6314
  done(): ISCH_PrimitiveCircle;
5827
6315
  }
@@ -6208,95 +6696,605 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
6208
6696
  }
6209
6697
 
6210
6698
  /**
6211
- * 器件引脚图元
6212
- *
6213
- * @public
6214
- * @remarks
6215
- * 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
6216
- *
6217
- * 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
6218
- * 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
6219
- */
6220
- declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
6221
- /** 图元类型 */
6222
- protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
6223
- /* Excluded from this release type: __constructor */
6224
- /* Excluded from this release type: create */
6225
- /* Excluded from this release type: setState_X */
6226
- /* Excluded from this release type: setState_Y */
6227
- /* Excluded from this release type: setState_PinName */
6228
- /* Excluded from this release type: setState_Rotation */
6229
- /* Excluded from this release type: setState_PinLength */
6230
- /* Excluded from this release type: setState_PinColor */
6231
- /* Excluded from this release type: setState_PinShape */
6232
- /* Excluded from this release type: setState_PinType */
6233
- /* Excluded from this release type: reset */
6234
- /* Excluded from this release type: done */
6235
- }
6236
-
6237
- /**
6238
- * 引脚图元
6699
+ * 器件图元
6239
6700
  *
6240
6701
  * @public
6241
- * @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
6242
6702
  */
6243
- declare class ISCH_PrimitivePin implements ISCH_Primitive {
6703
+ declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
6244
6704
  /** 异步 */
6245
- protected async: boolean;
6705
+ private async;
6246
6706
  /** 图元类型 */
6247
- protected readonly primitiveType: ESCH_PrimitiveType;
6707
+ private readonly primitiveType;
6708
+ /** 器件类型 */
6709
+ private componentType;
6248
6710
  /** 图元 ID */
6249
- protected primitiveId?: string;
6711
+ private primitiveId?;
6712
+ /** 关联库器件 */
6713
+ private component;
6250
6714
  /** 坐标 X */
6251
- protected x: number;
6715
+ private x;
6252
6716
  /** 坐标 Y */
6253
- protected y: number;
6254
- /** 引脚编号 */
6255
- protected pinNumber: string;
6256
- /** 引脚名称 */
6257
- protected pinName: string;
6717
+ private y;
6718
+ /** 子图块名称 */
6719
+ private partId?;
6258
6720
  /** 旋转角度 */
6259
- protected rotation: number;
6260
- /** 引脚长度 */
6261
- protected pinLength: number;
6262
- /** 引脚颜色 */
6263
- protected pinColor: string | null;
6264
- /** 引脚形状 */
6265
- protected pinShape: string;
6266
- /** 引脚类型 */
6267
- protected pinType: ESCH_PrimitivePinType;
6268
- /** 其它参数 */
6269
- private otherProperty?;
6270
- /* Excluded from this release type: __constructor */
6271
- /* Excluded from this release type: create */
6272
- getState_PrimitiveType(): ESCH_PrimitiveType;
6273
- getState_PrimitiveId(): string;
6274
- getState_X(): number;
6275
- getState_Y(): number;
6276
- getState_PinNumber(): string;
6277
- getState_PinName(): string;
6278
- getState_Rotation(): number;
6279
- getState_PinLength(): number;
6280
- getState_PinColor(): string | null;
6281
- getState_PinShape(): string;
6282
- getState_pinType(): ESCH_PrimitivePinType;
6283
- /**
6284
- * 获取属性状态:其它参数
6285
- *
6286
- * @public
6287
- * @returns 其它参数
6288
- */
6289
- getState_OtherProperty(): {
6290
- [key: string]: string | number | boolean;
6291
- } | undefined;
6292
- setState_X(x: number): ISCH_PrimitivePin;
6293
- setState_Y(y: number): ISCH_PrimitivePin;
6721
+ private rotation;
6722
+ /** 是否镜像 */
6723
+ private mirror;
6724
+ /** Component 属性:是否加入 BOM */
6725
+ private addIntoBom?;
6726
+ /** Component 属性:是否转到 PCB */
6727
+ private addIntoPcb?;
6728
+ /** NetPort 和 NetFlag 属性:网络名称 */
6729
+ private net?;
6730
+ /** 关联库符号 UUID */
6731
+ private symbol?;
6732
+ /** 关联库封装 UUID */
6733
+ private footprint?;
6734
+ /** Component 属性:位号 */
6735
+ private designator?;
6736
+ /** Component 属性:名称 */
6737
+ private name?;
6738
+ /** Component 属性:唯一 ID */
6739
+ private uniqueId?;
6740
+ /** Component 属性:制造商 */
6741
+ private manufacturer?;
6742
+ /** Component 属性:制造商编号 */
6743
+ private manufacturerId?;
6744
+ /** Component 属性:供应商 */
6745
+ private supplier?;
6746
+ /** Component 属性:供应商编号 */
6747
+ private supplierId?;
6748
+ /** 其它参数 */
6749
+ private otherProperty?;
6750
+ /* Excluded from this release type: __constructor */
6751
+ /* Excluded from this release type: create */
6752
+ /**
6753
+ * 获取属性状态:图元类型
6754
+ *
6755
+ * @public
6756
+ * @returns 图元类型
6757
+ */
6758
+ getState_PrimitiveType(): ESCH_PrimitiveType;
6759
+ /**
6760
+ * 获取属性状态:器件类型
6761
+ *
6762
+ * @public
6763
+ * @returns 器件类型
6764
+ */
6765
+ getState_ComponentType(): ESCH_PrimitiveComponentType_2;
6766
+ /**
6767
+ * 获取属性状态:图元 ID
6768
+ *
6769
+ * @public
6770
+ * @returns 图元 ID
6771
+ */
6772
+ getState_PrimitiveId(): string;
6773
+ /**
6774
+ * 获取属性状态:关联库器件
6775
+ *
6776
+ * @public
6777
+ * @returns 关联库器件
6778
+ */
6779
+ getState_Component(): {
6780
+ libraryUuid: string;
6781
+ uuid: string;
6782
+ };
6783
+ /**
6784
+ * 获取属性状态:坐标 X
6785
+ *
6786
+ * @public
6787
+ * @returns 坐标 X
6788
+ */
6789
+ getState_X(): number;
6790
+ /**
6791
+ * 获取属性状态:坐标 Y
6792
+ *
6793
+ * @public
6794
+ * @returns 坐标 Y
6795
+ */
6796
+ getState_Y(): number;
6797
+ /**
6798
+ * 获取属性状态:子图块名称
6799
+ *
6800
+ * @public
6801
+ * @returns 子图块名称
6802
+ */
6803
+ getState_SubPartName(): string | undefined;
6804
+ /**
6805
+ * 获取属性状态:旋转角度
6806
+ *
6807
+ * @public
6808
+ * @returns 旋转角度
6809
+ */
6810
+ getState_Rotation(): number;
6811
+ /**
6812
+ * 获取属性状态:是否镜像
6813
+ *
6814
+ * @public
6815
+ * @returns 是否镜像
6816
+ */
6817
+ getState_Mirror(): boolean;
6818
+ /**
6819
+ * 获取属性状态:是否加入 BOM
6820
+ *
6821
+ * @public
6822
+ * @returns 是否加入 BOM
6823
+ */
6824
+ getState_AddIntoBom(): boolean | undefined;
6825
+ /**
6826
+ * 获取属性状态:是否转到 PCB
6827
+ *
6828
+ * @public
6829
+ * @returns 是否转到 PCB
6830
+ */
6831
+ getState_AddIntoPcb(): boolean | undefined;
6832
+ /**
6833
+ * 获取属性状态:网络名称
6834
+ *
6835
+ * @public
6836
+ * @returns 网络名称
6837
+ */
6838
+ getState_Net(): string | undefined;
6839
+ /**
6840
+ * 获取属性状态:关联库符号
6841
+ *
6842
+ * @public
6843
+ * @returns 关联库符号
6844
+ */
6845
+ getState_Symbol(): {
6846
+ libraryUuid: string;
6847
+ uuid: string;
6848
+ } | undefined;
6849
+ /**
6850
+ * 获取属性状态:关联库封装
6851
+ *
6852
+ * @public
6853
+ * @returns 关联库封装
6854
+ */
6855
+ getState_Footprint(): {
6856
+ libraryUuid: string;
6857
+ uuid: string;
6858
+ } | undefined;
6859
+ /**
6860
+ * 获取属性状态:位号
6861
+ *
6862
+ * @public
6863
+ * @returns 位号
6864
+ */
6865
+ getState_Designator(): string | undefined;
6866
+ /**
6867
+ * 获取属性状态:名称
6868
+ *
6869
+ * @public
6870
+ * @returns 名称
6871
+ */
6872
+ getState_Name(): string | undefined;
6873
+ /**
6874
+ * 获取属性状态:唯一 ID
6875
+ *
6876
+ * @public
6877
+ * @returns 唯一 ID
6878
+ */
6879
+ getState_UniqueId(): string | undefined;
6880
+ /**
6881
+ * 获取属性状态:制造商
6882
+ *
6883
+ * @public
6884
+ * @returns 制造商
6885
+ */
6886
+ getState_Manufacturer(): string | undefined;
6887
+ /**
6888
+ * 获取属性状态:制造商编号
6889
+ *
6890
+ * @public
6891
+ * @returns 制造商编号
6892
+ */
6893
+ getState_ManufacturerId(): string | undefined;
6894
+ /**
6895
+ * 获取属性状态:供应商
6896
+ *
6897
+ * @public
6898
+ * @returns 供应商
6899
+ */
6900
+ getState_Supplier(): string | undefined;
6901
+ /**
6902
+ * 获取属性状态:供应商编号
6903
+ *
6904
+ * @public
6905
+ * @returns 供应商编号
6906
+ */
6907
+ getState_SupplierId(): string | undefined;
6908
+ /**
6909
+ * 获取属性状态:其它参数
6910
+ *
6911
+ * @public
6912
+ * @returns 其它参数
6913
+ */
6914
+ getState_OtherProperty(): {
6915
+ [key: string]: string | number | boolean;
6916
+ } | undefined;
6917
+ /**
6918
+ * 设置属性状态:坐标 X
6919
+ *
6920
+ * @beta
6921
+ * @param x - 坐标 X
6922
+ * @returns 器件图元对象
6923
+ */
6924
+ setState_X(x: number): ISCH_PrimitiveComponent_2;
6925
+ /**
6926
+ * 设置属性状态:坐标 Y
6927
+ *
6928
+ * @beta
6929
+ * @param y - 坐标 Y
6930
+ * @returns 器件图元对象
6931
+ */
6932
+ setState_Y(y: number): ISCH_PrimitiveComponent_2;
6933
+ /**
6934
+ * 设置属性状态:旋转角度
6935
+ *
6936
+ * @beta
6937
+ * @param rotation - 旋转角度
6938
+ * @returns 器件图元对象
6939
+ */
6940
+ setState_Rotation(rotation: number): ISCH_PrimitiveComponent_2;
6941
+ /**
6942
+ * 设置属性状态:是否镜像
6943
+ *
6944
+ * @beta
6945
+ * @param mirror - 是否镜像
6946
+ * @returns 器件图元对象
6947
+ */
6948
+ setState_Mirror(mirror: boolean): ISCH_PrimitiveComponent_2;
6949
+ /**
6950
+ * 设置属性状态:是否加入 BOM
6951
+ *
6952
+ * @beta
6953
+ * @param addIntoBom - 是否加入 BOM
6954
+ * @returns 器件图元对象
6955
+ */
6956
+ setState_AddIntoBom(addIntoBom: boolean | undefined): ISCH_PrimitiveComponent_2;
6957
+ /**
6958
+ * 设置属性状态:是否转到 PCB
6959
+ *
6960
+ * @beta
6961
+ * @param addIntoPcb - 是否转到 PCB
6962
+ * @returns 器件图元对象
6963
+ */
6964
+ setState_AddIntoPcb(addIntoPcb: boolean | undefined): ISCH_PrimitiveComponent_2;
6965
+ /**
6966
+ * 设置属性状态:网络名称
6967
+ *
6968
+ * @beta
6969
+ * @param net - 网络名称
6970
+ * @returns 器件图元对象
6971
+ */
6972
+ setState_Net(net: string | undefined): ISCH_PrimitiveComponent_2;
6973
+ /**
6974
+ * 设置属性状态:位号
6975
+ *
6976
+ * @beta
6977
+ * @param designator - 位号
6978
+ * @returns 器件图元对象
6979
+ */
6980
+ setState_Designator(designator: string | undefined): ISCH_PrimitiveComponent_2;
6981
+ /**
6982
+ * 设置属性状态:名称
6983
+ *
6984
+ * @beta
6985
+ * @param name - 名称
6986
+ * @returns 器件图元对象
6987
+ */
6988
+ setState_Name(name: string | undefined): ISCH_PrimitiveComponent_2;
6989
+ /**
6990
+ * 设置属性状态:唯一 ID
6991
+ *
6992
+ * @beta
6993
+ * @param uniqueId - 唯一 ID
6994
+ * @returns 器件图元对象
6995
+ */
6996
+ setState_UniqueId(uniqueId: string | undefined): ISCH_PrimitiveComponent_2;
6997
+ /**
6998
+ * 设置属性状态:制造商
6999
+ *
7000
+ * @beta
7001
+ * @param manufacturer - 制造商
7002
+ * @returns 器件图元对象
7003
+ */
7004
+ setState_Manufacturer(manufacturer: string | undefined): ISCH_PrimitiveComponent_2;
7005
+ /**
7006
+ * 设置属性状态:制造商编号
7007
+ *
7008
+ * @beta
7009
+ * @param manufacturerId - 制造商编号
7010
+ * @returns 器件图元对象
7011
+ */
7012
+ setState_ManufacturerId(manufacturerId: string | undefined): ISCH_PrimitiveComponent_2;
7013
+ /**
7014
+ * 设置属性状态:供应商
7015
+ *
7016
+ * @beta
7017
+ * @param supplier - 供应商
7018
+ * @returns 器件图元对象
7019
+ */
7020
+ setState_Supplier(supplier: string | undefined): ISCH_PrimitiveComponent_2;
7021
+ /**
7022
+ * 设置属性状态:供应商编号
7023
+ *
7024
+ * @beta
7025
+ * @param supplierId - 供应商编号
7026
+ * @returns 器件图元对象
7027
+ */
7028
+ setState_SupplierId(supplierId: string | undefined): ISCH_PrimitiveComponent_2;
7029
+ /**
7030
+ * 设置属性状态:其它参数
7031
+ *
7032
+ * @beta
7033
+ * @param otherProperty - 其它参数
7034
+ * @returns 器件图元对象
7035
+ */
7036
+ setState_OtherProperty(otherProperty: {
7037
+ [key: string]: string | number | boolean;
7038
+ }): ISCH_PrimitiveComponent_2;
7039
+ /**
7040
+ * 将图元转换为异步图元
7041
+ *
7042
+ * @public
7043
+ * @returns 圆弧线图元对象
7044
+ */
7045
+ toAsync(): ISCH_PrimitiveComponent_2;
7046
+ /**
7047
+ * 将图元转换为同步图元
7048
+ *
7049
+ * @public
7050
+ * @returns 圆弧线图元对象
7051
+ */
7052
+ toSync(): ISCH_PrimitiveComponent_2;
7053
+ /**
7054
+ * 查询图元是否为异步图元
7055
+ *
7056
+ * @public
7057
+ * @returns 是否为异步图元
7058
+ */
7059
+ isAsync(): boolean;
7060
+ /**
7061
+ * 将异步图元重置为当前画布状态
7062
+ *
7063
+ * @beta
7064
+ * @returns 器件图元对象
7065
+ */
7066
+ reset(): Promise<ISCH_PrimitiveComponent_2>;
7067
+ /**
7068
+ * 将对图元的更改应用到画布
7069
+ *
7070
+ * @beta
7071
+ * @returns 器件图元对象
7072
+ */
7073
+ done(): Promise<ISCH_PrimitiveComponent_2>;
7074
+ /* Excluded from this release type: getAllPins */
7075
+ /* Excluded from this release type: setState_Component */
7076
+ /* Excluded from this release type: setState_SubPartName */
7077
+ }
7078
+
7079
+ /**
7080
+ * 器件引脚图元
7081
+ *
7082
+ * @public
7083
+ * @remarks
7084
+ * 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
7085
+ *
7086
+ * 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
7087
+ * 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
7088
+ */
7089
+ declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
7090
+ /** 图元类型 */
7091
+ protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
7092
+ /* Excluded from this release type: __constructor */
7093
+ /* Excluded from this release type: create */
7094
+ /* Excluded from this release type: setState_X */
7095
+ /* Excluded from this release type: setState_Y */
7096
+ /* Excluded from this release type: setState_PinName */
7097
+ /* Excluded from this release type: setState_Rotation */
7098
+ /* Excluded from this release type: setState_PinLength */
7099
+ /* Excluded from this release type: setState_PinColor */
7100
+ /* Excluded from this release type: setState_PinShape */
7101
+ /* Excluded from this release type: setState_PinType */
7102
+ /* Excluded from this release type: reset */
7103
+ /* Excluded from this release type: done */
7104
+ }
7105
+
7106
+ /**
7107
+ * 引脚图元
7108
+ *
7109
+ * @public
7110
+ * @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
7111
+ */
7112
+ declare class ISCH_PrimitivePin implements ISCH_Primitive {
7113
+ /** 异步 */
7114
+ protected async: boolean;
7115
+ /** 图元类型 */
7116
+ protected readonly primitiveType: ESCH_PrimitiveType;
7117
+ /** 图元 ID */
7118
+ protected primitiveId?: string;
7119
+ /** 坐标 X */
7120
+ protected x: number;
7121
+ /** 坐标 Y */
7122
+ protected y: number;
7123
+ /** 引脚编号 */
7124
+ protected pinNumber: string;
7125
+ /** 引脚名称 */
7126
+ protected pinName: string;
7127
+ /** 旋转角度 */
7128
+ protected rotation: number;
7129
+ /** 引脚长度 */
7130
+ protected pinLength: number;
7131
+ /** 引脚颜色 */
7132
+ protected pinColor: string | null;
7133
+ /** 引脚形状 */
7134
+ protected pinShape: ESCH_PrimitivePinShape;
7135
+ /** 引脚类型 */
7136
+ protected pinType: ESCH_PrimitivePinType;
7137
+ /** 其它参数 */
7138
+ private otherProperty?;
7139
+ /* Excluded from this release type: __constructor */
7140
+ /* Excluded from this release type: create */
7141
+ /**
7142
+ * 获取属性状态:图元类型
7143
+ *
7144
+ * @public
7145
+ * @returns 图元类型
7146
+ */
7147
+ getState_PrimitiveType(): ESCH_PrimitiveType;
7148
+ /**
7149
+ * 获取属性状态:图元 ID
7150
+ *
7151
+ * @public
7152
+ * @returns 图元 ID
7153
+ */
7154
+ getState_PrimitiveId(): string;
7155
+ /**
7156
+ * 获取属性状态:坐标 X
7157
+ *
7158
+ * @public
7159
+ * @returns 坐标 X
7160
+ */
7161
+ getState_X(): number;
7162
+ /**
7163
+ * 获取属性状态:坐标 Y
7164
+ *
7165
+ * @public
7166
+ * @returns 坐标 Y
7167
+ */
7168
+ getState_Y(): number;
7169
+ /**
7170
+ * 获取属性状态:引脚编号
7171
+ *
7172
+ * @public
7173
+ * @returns 引脚编号
7174
+ */
7175
+ getState_PinNumber(): string;
7176
+ /**
7177
+ * 获取属性状态:引脚名称
7178
+ *
7179
+ * @public
7180
+ * @returns 引脚名称
7181
+ */
7182
+ getState_PinName(): string;
7183
+ /**
7184
+ * 获取属性状态:旋转角度
7185
+ *
7186
+ * @public
7187
+ * @returns 旋转角度
7188
+ */
7189
+ getState_Rotation(): number;
7190
+ /**
7191
+ * 获取属性状态:引脚长度
7192
+ *
7193
+ * @public
7194
+ * @returns 引脚长度
7195
+ */
7196
+ getState_PinLength(): number;
7197
+ /**
7198
+ * 获取属性状态:引脚颜色
7199
+ *
7200
+ * @public
7201
+ * @returns 引脚颜色
7202
+ */
7203
+ getState_PinColor(): string | null;
7204
+ /**
7205
+ * 获取属性状态:引脚形状
7206
+ *
7207
+ * @public
7208
+ * @returns 引脚形状
7209
+ */
7210
+ getState_PinShape(): ESCH_PrimitivePinShape;
7211
+ /**
7212
+ * 获取属性状态:引脚类型
7213
+ *
7214
+ * @public
7215
+ * @returns 引脚类型
7216
+ */
7217
+ getState_pinType(): ESCH_PrimitivePinType;
7218
+ /**
7219
+ * 获取属性状态:其它参数
7220
+ *
7221
+ * @public
7222
+ * @returns 其它参数
7223
+ */
7224
+ getState_OtherProperty(): {
7225
+ [key: string]: string | number | boolean;
7226
+ } | undefined;
7227
+ /**
7228
+ * 设置属性状态:坐标 X
7229
+ *
7230
+ * @beta
7231
+ * @param x - 坐标 X
7232
+ * @returns 引脚图元对象
7233
+ */
7234
+ setState_X(x: number): ISCH_PrimitivePin;
7235
+ /**
7236
+ * 设置属性状态:坐标 Y
7237
+ *
7238
+ * @beta
7239
+ * @param y - 坐标 Y
7240
+ * @returns 引脚图元对象
7241
+ */
7242
+ setState_Y(y: number): ISCH_PrimitivePin;
7243
+ /**
7244
+ * 设置属性状态:引脚编号
7245
+ *
7246
+ * @beta
7247
+ * @param pinNumber - 引脚编号
7248
+ * @returns 引脚图元对象
7249
+ */
6294
7250
  setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
7251
+ /**
7252
+ * 设置属性状态:引脚名称
7253
+ *
7254
+ * @beta
7255
+ * @param pinName - 引脚名称
7256
+ * @returns 引脚图元对象
7257
+ */
6295
7258
  setState_PinName(pinName: string): ISCH_PrimitivePin;
7259
+ /**
7260
+ * 设置属性状态:旋转角度
7261
+ *
7262
+ * @beta
7263
+ * @param rotation - 旋转角度
7264
+ * @returns 引脚图元对象
7265
+ */
6296
7266
  setState_Rotation(rotation: number): ISCH_PrimitivePin;
7267
+ /**
7268
+ * 设置属性状态:引脚长度
7269
+ *
7270
+ * @beta
7271
+ * @param pinLength - 引脚长度
7272
+ * @returns 引脚图元对象
7273
+ */
6297
7274
  setState_PinLength(pinLength: number): ISCH_PrimitivePin;
7275
+ /**
7276
+ * 设置属性状态:引脚颜色
7277
+ *
7278
+ * @beta
7279
+ * @param pinColor - 引脚颜色
7280
+ * @returns 引脚图元对象
7281
+ */
6298
7282
  setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
6299
- setState_PinShape(pinShape: string): ISCH_PrimitivePin;
7283
+ /**
7284
+ * 设置属性状态:引脚形状
7285
+ *
7286
+ * @beta
7287
+ * @param pinShape - 引脚形状
7288
+ * @returns 引脚图元对象
7289
+ */
7290
+ setState_PinShape(pinShape: ESCH_PrimitivePinShape): ISCH_PrimitivePin;
7291
+ /**
7292
+ * 设置属性状态:引脚类型
7293
+ *
7294
+ * @beta
7295
+ * @param pinType - 引脚类型
7296
+ * @returns 引脚图元对象
7297
+ */
6300
7298
  setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
6301
7299
  /**
6302
7300
  * 设置属性状态:其它参数
@@ -6310,94 +7308,187 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
6310
7308
  }): ISCH_PrimitivePin;
6311
7309
  /**
6312
7310
  * 将图元转换为异步图元
7311
+ *
7312
+ * @public
7313
+ * @returns 引脚图元对象
6313
7314
  */
6314
7315
  toAsync(): ISCH_PrimitivePin;
6315
7316
  /**
6316
7317
  * 将图元转换为同步图元
7318
+ *
7319
+ * @public
7320
+ * @returns 引脚图元对象
6317
7321
  */
6318
7322
  toSync(): ISCH_PrimitivePin;
6319
7323
  /**
6320
- * 查询图元是否为异步图元
7324
+ * 查询图元是否为异步图元
7325
+ *
7326
+ * @public
7327
+ * @returns 是否为异步图元
7328
+ */
7329
+ isAsync(): boolean;
7330
+ /**
7331
+ * 将异步图元重置为当前画布状态
7332
+ *
7333
+ * @beta
7334
+ * @returns 引脚图元对象
7335
+ */
7336
+ reset(): Promise<ISCH_PrimitivePin>;
7337
+ /**
7338
+ * 将对图元的更改应用到画布
7339
+ *
7340
+ * @beta
7341
+ * @returns 引脚图元对象
7342
+ */
7343
+ done(): Promise<ISCH_PrimitivePin>;
7344
+ }
7345
+
7346
+ /**
7347
+ * 多边形(折线)图元
7348
+ *
7349
+ * @public
7350
+ */
7351
+ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
7352
+ /** 异步 */
7353
+ private async;
7354
+ /** 图元类型 */
7355
+ private readonly primitiveType;
7356
+ /** 图元 ID */
7357
+ private primitiveId?;
7358
+ /** 坐标组 */
7359
+ private line;
7360
+ /** 颜色 */
7361
+ private color;
7362
+ /** 填充颜色 */
7363
+ private fillColor;
7364
+ /** 线宽 */
7365
+ private lineWidth;
7366
+ /** 线型 */
7367
+ private lineType;
7368
+ /* Excluded from this release type: __constructor */
7369
+ /* Excluded from this release type: create */
7370
+ /**
7371
+ * 获取属性状态:图元类型
7372
+ *
7373
+ * @public
7374
+ * @returns 图元类型
7375
+ */
7376
+ getState_PrimitiveType(): ESCH_PrimitiveType;
7377
+ /**
7378
+ * 获取属性状态:图元 ID
7379
+ *
7380
+ * @public
7381
+ * @returns 图元 ID
7382
+ */
7383
+ getState_PrimitiveId(): string;
7384
+ /**
7385
+ * 获取属性状态:坐标组
7386
+ *
7387
+ * @public
7388
+ * @returns 坐标组
7389
+ */
7390
+ getState_Line(): Array<number>;
7391
+ /**
7392
+ * 获取属性状态:颜色
7393
+ *
7394
+ * @public
7395
+ * @returns 颜色
7396
+ */
7397
+ getState_Color(): string | null;
7398
+ /**
7399
+ * 获取属性状态:填充颜色
7400
+ *
7401
+ * @public
7402
+ * @returns 填充颜色
7403
+ */
7404
+ getState_FillColor(): string | null;
7405
+ /**
7406
+ * 获取属性状态:线宽
7407
+ *
7408
+ * @public
7409
+ * @returns 线宽
7410
+ */
7411
+ getState_LineWidth(): number | null;
7412
+ /**
7413
+ * 获取属性状态:线型
7414
+ *
7415
+ * @public
7416
+ * @returns 线型
6321
7417
  */
6322
- isAsync(): boolean;
7418
+ getState_LineType(): ESCH_PrimitiveLineType | null;
6323
7419
  /**
6324
- * 将异步图元重置为当前画布状态
7420
+ * 设置属性状态:坐标组
6325
7421
  *
6326
7422
  * @beta
7423
+ * @param line - 坐标组
7424
+ * @returns 多边形图元对象
6327
7425
  */
6328
- reset(): Promise<ISCH_PrimitivePin>;
7426
+ setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
6329
7427
  /**
6330
- * 将对图元的更改应用到画布
7428
+ * 设置属性状态:颜色
6331
7429
  *
6332
7430
  * @beta
7431
+ * @param color - 颜色
7432
+ * @returns 多边形图元对象
6333
7433
  */
6334
- done(): Promise<ISCH_PrimitivePin>;
6335
- }
6336
-
6337
- /**
6338
- * 多边形图元
6339
- *
6340
- * @public
6341
- */
6342
- declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
6343
- /** 异步 */
6344
- private async;
6345
- /** 图元类型 */
6346
- private readonly primitiveType;
6347
- /** 图元 ID */
6348
- private primitiveId;
6349
- /** 坐标组 */
6350
- private line;
6351
- /** 颜色 */
6352
- private color;
6353
- /** 填充颜色 */
6354
- private fillColor;
6355
- /** 线宽 */
6356
- private lineWidth;
6357
- /** 线型 */
6358
- private lineType;
6359
- /* Excluded from this release type: __constructor */
7434
+ setState_Color(color: string | null): ISCH_PrimitivePolygon;
6360
7435
  /**
6361
- * 在原理图画布中创建图元
7436
+ * 设置属性状态:填充颜色
6362
7437
  *
7438
+ * @beta
7439
+ * @param fillColor - 填充颜色
6363
7440
  * @returns 多边形图元对象
6364
7441
  */
6365
- create(): Promise<ISCH_PrimitivePolygon>;
6366
- getState_PrimitiveType(): ESCH_PrimitiveType;
6367
- getState_PrimitiveId(): string;
6368
- getState_Line(): Number[];
6369
- getState_Color(): string | null;
6370
- getState_FillColor(): string | null;
6371
- getState_LineWidth(): number | null;
6372
- getState_LineType(): number | null;
6373
- /** 数据校验 */
6374
- setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
6375
- /** 数据校验 */
6376
- setState_Color(color: string | null): ISCH_PrimitivePolygon;
6377
- /** 数据校验 */
6378
7442
  setState_FillColor(fillColor: string | null): ISCH_PrimitivePolygon;
6379
- /** 数据校验 */
7443
+ /**
7444
+ * 设置属性状态:线宽
7445
+ *
7446
+ * @beta
7447
+ * @param lineWidth - 线宽
7448
+ * @returns 多边形图元对象
7449
+ */
6380
7450
  setState_LineWidth(lineWidth: number | null): ISCH_PrimitivePolygon;
6381
- /** 数据校验 */
6382
- setState_LineType(lineType: number | null): ISCH_PrimitivePolygon;
7451
+ /**
7452
+ * 设置属性状态:线型
7453
+ *
7454
+ * @beta
7455
+ * @param lineType - 线型
7456
+ * @returns 多边形图元对象
7457
+ */
7458
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitivePolygon;
6383
7459
  /**
6384
7460
  * 将图元转换为异步图元
7461
+ *
7462
+ * @public
7463
+ * @returns 多边形图元对象
6385
7464
  */
6386
7465
  toAsync(): ISCH_PrimitivePolygon;
6387
7466
  /**
6388
7467
  * 将图元转换为同步图元
7468
+ *
7469
+ * @public
7470
+ * @returns 多边形图元对象
6389
7471
  */
6390
7472
  toSync(): ISCH_PrimitivePolygon;
6391
7473
  /**
6392
7474
  * 查询图元是否为异步图元
7475
+ *
7476
+ * @public
7477
+ * @returns 是否为异步图元
6393
7478
  */
6394
7479
  isAsync(): boolean;
6395
7480
  /**
6396
7481
  * 将异步图元重置为当前画布状态
7482
+ *
7483
+ * @beta
7484
+ * @returns 多边形图元对象
6397
7485
  */
6398
7486
  reset(): Promise<ISCH_PrimitivePolygon>;
6399
7487
  /**
6400
7488
  * 将对图元的更改应用到画布
7489
+ *
7490
+ * @beta
7491
+ * @returns 多边形图元对象
6401
7492
  */
6402
7493
  done(): ISCH_PrimitivePolygon;
6403
7494
  }
@@ -6434,53 +7525,222 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
6434
7525
  private lineWidth;
6435
7526
  /** 线型 */
6436
7527
  private lineType;
7528
+ /** 填充样式 */
7529
+ private fillStyle;
6437
7530
  /* Excluded from this release type: __constructor */
7531
+ /* Excluded from this release type: create */
6438
7532
  /**
6439
- * 在原理图画布中创建图元
7533
+ * 获取属性状态:图元类型
6440
7534
  *
6441
- * @returns 矩形图元对象
7535
+ * @public
7536
+ * @returns 图元类型
6442
7537
  */
6443
- create(): Promise<ISCH_PrimitiveRectangle>;
6444
7538
  getState_PrimitiveType(): ESCH_PrimitiveType;
7539
+ /**
7540
+ * 获取属性状态:图元 ID
7541
+ *
7542
+ * @public
7543
+ * @returns 图元 ID
7544
+ */
6445
7545
  getState_PrimitiveId(): string;
7546
+ /**
7547
+ * 获取属性状态:左上点 X
7548
+ *
7549
+ * @public
7550
+ * @returns 左上点 X
7551
+ */
6446
7552
  getState_TopLeftX(): number;
7553
+ /**
7554
+ * 获取属性状态:左上点 Y
7555
+ *
7556
+ * @public
7557
+ * @returns 左上点 Y
7558
+ */
6447
7559
  getState_TopLeftY(): number;
7560
+ /**
7561
+ * 获取属性状态:宽
7562
+ *
7563
+ * @public
7564
+ * @returns 宽
7565
+ */
6448
7566
  getState_Width(): number;
7567
+ /**
7568
+ * 获取属性状态:高
7569
+ *
7570
+ * @public
7571
+ * @returns 高
7572
+ */
6449
7573
  getState_Height(): number;
7574
+ /**
7575
+ * 获取属性状态:圆角半径
7576
+ *
7577
+ * @public
7578
+ * @returns 圆角半径
7579
+ */
6450
7580
  getState_CornerRadius(): number;
7581
+ /**
7582
+ * 获取属性状态:旋转角度
7583
+ *
7584
+ * @public
7585
+ * @returns 旋转角度
7586
+ */
6451
7587
  getState_Rotation(): number;
6452
- getState_Color(): null | string;
6453
- getState_FillColor(): null | string;
6454
- getState_LineWidth(): null | number;
6455
- getState_LineType(): null | number;
7588
+ /**
7589
+ * 获取属性状态:边框颜色
7590
+ *
7591
+ * @public
7592
+ * @returns 边框颜色
7593
+ */
7594
+ getState_Color(): string | null;
7595
+ /**
7596
+ * 获取属性状态:填充颜色
7597
+ *
7598
+ * @public
7599
+ * @returns 填充颜色
7600
+ */
7601
+ getState_FillColor(): string | null;
7602
+ /**
7603
+ * 获取属性状态:线宽
7604
+ *
7605
+ * @public
7606
+ * @returns 线宽
7607
+ */
7608
+ getState_LineWidth(): number | null;
7609
+ /**
7610
+ * 获取属性状态:线型
7611
+ *
7612
+ * @public
7613
+ * @returns 线型
7614
+ */
7615
+ getState_LineType(): ESCH_PrimitiveLineType | null;
7616
+ /**
7617
+ * 获取属性状态:填充样式
7618
+ *
7619
+ * @public
7620
+ * @returns 填充样式
7621
+ */
7622
+ getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
7623
+ /**
7624
+ * 设置属性状态:左上点 X
7625
+ *
7626
+ * @beta
7627
+ * @param topLeftX - 左上点 X
7628
+ * @returns 矩形图元对象
7629
+ */
6456
7630
  setState_TopLeftX(topLeftX: number): ISCH_PrimitiveRectangle;
7631
+ /**
7632
+ * 设置属性状态:左上点 Y
7633
+ *
7634
+ * @beta
7635
+ * @param topLeftY - 左上点 Y
7636
+ * @returns 矩形图元对象
7637
+ */
6457
7638
  setState_TopLeftY(topLeftY: number): ISCH_PrimitiveRectangle;
7639
+ /**
7640
+ * 设置属性状态:宽
7641
+ *
7642
+ * @beta
7643
+ * @param width - 宽
7644
+ * @returns 矩形图元对象
7645
+ */
6458
7646
  setState_Width(width: number): ISCH_PrimitiveRectangle;
7647
+ /**
7648
+ * 设置属性状态:高
7649
+ *
7650
+ * @beta
7651
+ * @param height - 高
7652
+ * @returns 矩形图元对象
7653
+ */
6459
7654
  setState_Height(height: number): ISCH_PrimitiveRectangle;
7655
+ /**
7656
+ * 设置属性状态:圆角半径
7657
+ *
7658
+ * @beta
7659
+ * @param cornerRadius - 圆角半径
7660
+ * @returns 矩形图元对象
7661
+ */
6460
7662
  setState_CornerRadius(cornerRadius: number): ISCH_PrimitiveRectangle;
7663
+ /**
7664
+ * 设置属性状态:旋转角度
7665
+ *
7666
+ * @beta
7667
+ * @param rotation - 旋转角度
7668
+ * @returns 矩形图元对象
7669
+ */
6461
7670
  setState_Rotation(rotation: number): ISCH_PrimitiveRectangle;
7671
+ /**
7672
+ * 设置属性状态:边框颜色
7673
+ *
7674
+ * @beta
7675
+ * @param color - 边框颜色
7676
+ * @returns 矩形图元对象
7677
+ */
6462
7678
  setState_Color(color: string | null): ISCH_PrimitiveRectangle;
7679
+ /**
7680
+ * 设置属性状态:填充颜色
7681
+ *
7682
+ * @beta
7683
+ * @param fillColor - 填充颜色
7684
+ * @returns 矩形图元对象
7685
+ */
6463
7686
  setState_FillColor(fillColor: string | null): ISCH_PrimitiveRectangle;
7687
+ /**
7688
+ * 设置属性状态:线宽
7689
+ *
7690
+ * @beta
7691
+ * @param lineWidth - 线宽
7692
+ * @returns 矩形图元对象
7693
+ */
6464
7694
  setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveRectangle;
6465
- setState_LineType(lineType: number | null): ISCH_PrimitiveRectangle;
7695
+ /**
7696
+ * 设置属性状态:线型
7697
+ *
7698
+ * @beta
7699
+ * @param lineType - 线型
7700
+ * @returns 矩形图元对象
7701
+ */
7702
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveRectangle;
7703
+ /**
7704
+ * 设置属性状态:填充样式
7705
+ *
7706
+ * @beta
7707
+ * @param fillStyle - 填充样式
7708
+ * @returns 矩形图元对象
7709
+ */
7710
+ setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveRectangle;
6466
7711
  /**
6467
7712
  * 将图元转换为异步图元
7713
+ *
7714
+ * @public
7715
+ * @returns 矩形图元对象
6468
7716
  */
6469
7717
  toAsync(): ISCH_PrimitiveRectangle;
6470
7718
  /**
6471
7719
  * 将图元转换为同步图元
7720
+ *
7721
+ * @public
7722
+ * @returns 矩形图元对象
6472
7723
  */
6473
7724
  toSync(): ISCH_PrimitiveRectangle;
6474
7725
  /**
6475
7726
  * 查询图元是否为异步图元
7727
+ *
7728
+ * @public
7729
+ * @returns 是否为异步图元
6476
7730
  */
6477
7731
  isAsync(): boolean;
6478
7732
  /**
6479
7733
  * 将异步图元重置为当前画布状态
7734
+ *
7735
+ * @beta
7736
+ * @returns 矩形图元对象
6480
7737
  */
6481
7738
  reset(): Promise<ISCH_PrimitiveRectangle>;
6482
7739
  /**
6483
7740
  * 将对图元的更改应用到画布
7741
+ *
7742
+ * @beta
7743
+ * @returns 矩形图元对象
6484
7744
  */
6485
7745
  done(): ISCH_PrimitiveRectangle;
6486
7746
  }
@@ -6520,72 +7780,221 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
6520
7780
  /** 对齐模式 */
6521
7781
  private alignMode;
6522
7782
  /* Excluded from this release type: __constructor */
7783
+ /* Excluded from this release type: create */
7784
+ /**
7785
+ * 获取属性状态:图元类型
7786
+ *
7787
+ * @public
7788
+ * @returns 图元类型
7789
+ */
7790
+ getState_PrimitiveType(): ESCH_PrimitiveType;
7791
+ /**
7792
+ * 获取属性状态:图元 ID
7793
+ *
7794
+ * @public
7795
+ * @returns 图元 ID
7796
+ */
7797
+ getState_PrimitiveId(): string;
7798
+ /**
7799
+ * 获取属性状态:坐标 X
7800
+ *
7801
+ * @public
7802
+ * @returns 坐标 X
7803
+ */
7804
+ getState_X(): number;
7805
+ /**
7806
+ * 获取属性状态:坐标 Y
7807
+ *
7808
+ * @public
7809
+ * @returns 坐标 Y
7810
+ */
7811
+ getState_Y(): number;
7812
+ /**
7813
+ * 获取属性状态:文本内容
7814
+ *
7815
+ * @public
7816
+ * @returns 文本内容
7817
+ */
7818
+ getState_Content(): string;
6523
7819
  /**
6524
- * 在原理图画布中创建图元
7820
+ * 获取属性状态:旋转角度
6525
7821
  *
6526
- * @beta
6527
- * @returns 文本图元对象
7822
+ * @public
7823
+ * @returns 旋转角度
6528
7824
  */
6529
- create(): Promise<ISCH_PrimitiveText>;
6530
- getState_PrimitiveType(): ESCH_PrimitiveType;
6531
- getState_PrimitiveId(): string;
6532
- getState_X(): number;
6533
- getState_Y(): number;
6534
- getState_Content(): string;
6535
7825
  getState_Rotation(): number;
7826
+ /**
7827
+ * 获取属性状态:文本颜色
7828
+ *
7829
+ * @public
7830
+ * @returns 文本颜色
7831
+ */
6536
7832
  getState_TextColor(): string | null;
7833
+ /**
7834
+ * 获取属性状态:字体名称
7835
+ *
7836
+ * @public
7837
+ * @returns 字体名称
7838
+ */
6537
7839
  getState_FontName(): string | null;
7840
+ /**
7841
+ * 获取属性状态:字体大小
7842
+ *
7843
+ * @public
7844
+ * @returns 字体大小
7845
+ */
6538
7846
  getState_FontSize(): number | null;
7847
+ /**
7848
+ * 获取属性状态:是否加粗
7849
+ *
7850
+ * @public
7851
+ * @returns 是否加粗
7852
+ */
6539
7853
  getState_Bold(): boolean;
7854
+ /**
7855
+ * 获取属性状态:是否斜体
7856
+ *
7857
+ * @public
7858
+ * @returns 是否斜体
7859
+ */
6540
7860
  getState_Italic(): boolean;
7861
+ /**
7862
+ * 获取属性状态:是否加下划线
7863
+ *
7864
+ * @public
7865
+ * @returns 是否加下划线
7866
+ */
6541
7867
  getState_UnderLine(): boolean;
7868
+ /**
7869
+ * 获取属性状态:对齐模式
7870
+ *
7871
+ * @public
7872
+ * @returns 对齐模式
7873
+ */
6542
7874
  getState_AlignMode(): number;
6543
- /** @beta 数据校验 */
7875
+ /**
7876
+ * 设置属性状态:坐标 X
7877
+ *
7878
+ * @beta
7879
+ * @param x - 坐标 X
7880
+ * @returns 文本图元对象
7881
+ */
6544
7882
  setState_X(x: number): ISCH_PrimitiveText;
6545
- /** @beta 数据校验 */
7883
+ /**
7884
+ * 设置属性状态:坐标 Y
7885
+ *
7886
+ * @beta
7887
+ * @param y - 坐标 Y
7888
+ * @returns 文本图元对象
7889
+ */
6546
7890
  setState_Y(y: number): ISCH_PrimitiveText;
6547
- /** @beta 数据校验 */
7891
+ /**
7892
+ * 设置属性状态:文本内容
7893
+ *
7894
+ * @beta
7895
+ * @param content - 文本内容
7896
+ * @returns 文本图元对象
7897
+ */
6548
7898
  setState_Content(content: string): ISCH_PrimitiveText;
6549
- /** @beta 数据校验 */
7899
+ /**
7900
+ * 设置属性状态:旋转角度
7901
+ *
7902
+ * @beta
7903
+ * @param rotation - 旋转角度
7904
+ * @returns 文本图元对象
7905
+ */
6550
7906
  setState_Rotation(rotation: number): ISCH_PrimitiveText;
6551
- /** @beta 数据校验 */
7907
+ /**
7908
+ * 设置属性状态:文本颜色
7909
+ *
7910
+ * @beta
7911
+ * @param textColor - 文本颜色
7912
+ * @returns 文本图元对象
7913
+ */
6552
7914
  setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
6553
- /** @beta 数据校验 */
7915
+ /**
7916
+ * 设置属性状态:字体名称
7917
+ *
7918
+ * @beta
7919
+ * @param fontName - 字体名称
7920
+ * @returns 文本图元对象
7921
+ */
6554
7922
  setState_FontName(fontName: string | null): ISCH_PrimitiveText;
6555
- /** @beta 数据校验 */
7923
+ /**
7924
+ * 设置属性状态:字体大小
7925
+ *
7926
+ * @beta
7927
+ * @param fontSize - 字体大小
7928
+ * @returns 文本图元对象
7929
+ */
6556
7930
  setState_FontSize(fontSize: number | null): ISCH_PrimitiveText;
6557
- /** @beta 数据校验 */
7931
+ /**
7932
+ * 设置属性状态:是否加粗
7933
+ *
7934
+ * @beta
7935
+ * @param bold - 是否加粗
7936
+ * @returns 文本图元对象
7937
+ */
6558
7938
  setState_Bold(bold: boolean): ISCH_PrimitiveText;
6559
- /** @beta 数据校验 */
7939
+ /**
7940
+ * 设置属性状态:是否斜体
7941
+ *
7942
+ * @beta
7943
+ * @param italic - 是否斜体
7944
+ * @returns 文本图元对象
7945
+ */
6560
7946
  setState_Italic(italic: boolean): ISCH_PrimitiveText;
6561
- /** @beta 数据校验 */
7947
+ /**
7948
+ * 设置属性状态:是否加下划线
7949
+ *
7950
+ * @beta
7951
+ * @param underLine - 是否加下划线
7952
+ * @returns 文本图元对象
7953
+ */
6562
7954
  setState_UnderLine(underLine: boolean): ISCH_PrimitiveText;
6563
- /** @beta 数据校验 */
7955
+ /**
7956
+ * 设置属性状态:对齐模式
7957
+ *
7958
+ * @beta
7959
+ * @param alignMode - 对齐模式
7960
+ * @returns 文本图元对象
7961
+ */
6564
7962
  setState_AlignMode(alignMode: number): ISCH_PrimitiveText;
6565
7963
  /**
6566
7964
  * 将图元转换为异步图元
7965
+ *
7966
+ * @public
7967
+ * @returns 文本图元对象
6567
7968
  */
6568
7969
  toAsync(): ISCH_PrimitiveText;
6569
7970
  /**
6570
7971
  * 将图元转换为同步图元
7972
+ *
7973
+ * @public
7974
+ * @returns 文本图元对象
6571
7975
  */
6572
7976
  toSync(): ISCH_PrimitiveText;
6573
7977
  /**
6574
7978
  * 查询图元是否为异步图元
7979
+ *
7980
+ * @public
7981
+ * @returns 是否为异步图元
6575
7982
  */
6576
7983
  isAsync(): boolean;
6577
7984
  /**
6578
7985
  * 将异步图元重置为当前画布状态
6579
7986
  *
6580
7987
  * @beta
7988
+ * @returns 文本图元对象
6581
7989
  */
6582
- reset(): ISCH_PrimitiveText;
7990
+ reset(): Promise<ISCH_PrimitiveText>;
6583
7991
  /**
6584
7992
  * 将对图元的更改应用到画布
6585
7993
  *
6586
7994
  * @beta
7995
+ * @returns 文本图元对象
6587
7996
  */
6588
- done(): ISCH_PrimitiveText;
7997
+ done(): Promise<ISCH_PrimitiveText>;
6589
7998
  }
6590
7999
 
6591
8000
  /**
@@ -6611,49 +8020,125 @@ declare class ISCH_PrimitiveWire implements ISCH_Primitive {
6611
8020
  /** 线型 */
6612
8021
  private lineType;
6613
8022
  /* Excluded from this release type: __constructor */
8023
+ /* Excluded from this release type: create */
6614
8024
  /**
6615
- * 在原理图画布中创建图元
8025
+ * 获取属性状态:图元类型
6616
8026
  *
6617
- * @beta
6618
- * @returns 导线图元对象
8027
+ * @public
8028
+ * @returns 图元类型
6619
8029
  */
6620
- create(): ISCH_PrimitiveWire;
6621
8030
  getState_PrimitiveType(): ESCH_PrimitiveType;
8031
+ /**
8032
+ * 获取属性状态:图元 ID
8033
+ *
8034
+ * @public
8035
+ * @returns 图元 ID
8036
+ */
6622
8037
  getState_PrimitiveId(): string;
6623
- getState_Line(): WireNetGroupCreateOptions['line'];
6624
- getState_Net(): WireNetGroupCreateOptions['net'];
6625
- getState_Color(): WireNetGroupCreateOptions['color'];
6626
- getState_LineWidth(): WireNetGroupCreateOptions['lineWidth'];
6627
- getState_LineType(): WireNetGroupCreateOptions['lineType'];
6628
- setState_Line(line: WireNetGroupCreateOptions['line']): ISCH_PrimitiveWire;
6629
- setState_Net(net: WireNetGroupCreateOptions['net']): ISCH_PrimitiveWire;
6630
- setState_Color(color: WireNetGroupCreateOptions['color']): ISCH_PrimitiveWire;
6631
- setState_LineWidth(lineWidth: WireNetGroupCreateOptions['lineWidth']): ISCH_PrimitiveWire;
6632
- setState_LineType(lineType: number | null): ISCH_PrimitiveWire;
8038
+ /**
8039
+ * 获取属性状态:多段线坐标组
8040
+ *
8041
+ * @public
8042
+ * @returns 多段线坐标组
8043
+ */
8044
+ getState_Line(): Array<number> | Array<Array<number>>;
8045
+ /**
8046
+ * 获取属性状态:网络名称
8047
+ *
8048
+ * @public
8049
+ * @returns 网络名称
8050
+ */
8051
+ getState_Net(): string;
8052
+ /**
8053
+ * 获取属性状态:总线颜色
8054
+ *
8055
+ * @public
8056
+ * @returns 总线颜色
8057
+ */
8058
+ getState_Color(): string | null;
8059
+ /**
8060
+ * 获取属性状态:线宽
8061
+ *
8062
+ * @public
8063
+ * @returns 线宽
8064
+ */
8065
+ getState_LineWidth(): number | null;
8066
+ /**
8067
+ * 获取属性状态:线型
8068
+ *
8069
+ * @public
8070
+ * @returns 线型
8071
+ */
8072
+ getState_LineType(): ESCH_PrimitiveLineType | null;
8073
+ /**
8074
+ * 设置属性状态:多段线坐标组
8075
+ *
8076
+ * @beta
8077
+ * @param line - 多段线坐标组
8078
+ * @returns 导线图元对象
8079
+ */
8080
+ setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveWire;
8081
+ /**
8082
+ * 设置属性状态:网络名称
8083
+ *
8084
+ * @beta
8085
+ * @param net - 网络名称
8086
+ * @returns 导线图元对象
8087
+ */
8088
+ setState_Net(net: string): ISCH_PrimitiveWire;
8089
+ /**
8090
+ * 设置属性状态:导线颜色
8091
+ *
8092
+ * @beta
8093
+ * @param color - 导线颜色
8094
+ * @returns 导线图元对象
8095
+ */
8096
+ setState_Color(color: string | null): ISCH_PrimitiveWire;
8097
+ /**
8098
+ * 设置属性状态:线宽
8099
+ *
8100
+ * @beta
8101
+ * @param lineWidth - 线宽
8102
+ * @returns 导线图元对象
8103
+ */
8104
+ setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveWire;
8105
+ /**
8106
+ * 设置属性状态:线型
8107
+ *
8108
+ * @beta
8109
+ * @param lineType - 线型
8110
+ * @returns 导线图元对象
8111
+ */
8112
+ setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveWire;
6633
8113
  /**
6634
8114
  * 将图元转换为异步图元
8115
+ *
8116
+ * @public
8117
+ * @returns 导线图元对象
6635
8118
  */
6636
8119
  toAsync(): ISCH_PrimitiveWire;
6637
8120
  /**
6638
8121
  * 将图元转换为同步图元
8122
+ *
8123
+ * @public
8124
+ * @returns 导线图元对象
6639
8125
  */
6640
8126
  toSync(): ISCH_PrimitiveWire;
6641
8127
  /**
6642
8128
  * 查询图元是否为异步图元
6643
- */
6644
- isAsync(): boolean;
6645
- /**
6646
- * 将异步图元重置为当前画布状态
6647
8129
  *
6648
- * @beta
8130
+ * @public
8131
+ * @returns 是否为异步图元
6649
8132
  */
6650
- reset(): ISCH_PrimitiveWire;
8133
+ isAsync(): boolean;
8134
+ /* Excluded from this release type: reset */
6651
8135
  /**
6652
8136
  * 将对图元的更改应用到画布
6653
8137
  *
6654
8138
  * @beta
8139
+ * @returns 导线图元对象
6655
8140
  */
6656
- done(): ISCH_PrimitiveWire;
8141
+ done(): Promise<ISCH_PrimitiveWire>;
6657
8142
  }
6658
8143
 
6659
8144
  /**
@@ -6722,6 +8207,13 @@ declare interface ISYS_WindowEventListenerRemovableObject {
6722
8207
  };
6723
8208
  }
6724
8209
 
8210
+ declare interface ITableColum {
8211
+ property: string;
8212
+ title?: string;
8213
+ sort?: null | 'asc' | 'desc';
8214
+ group?: null | 'Yes' | 'No';
8215
+ }
8216
+
6725
8217
  /**
6726
8218
  * 综合库 / 3D 模型类
6727
8219
  *
@@ -6907,7 +8399,7 @@ declare class LIB_Classification {
6907
8399
  */
6908
8400
  createPrimary(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationName: string): Promise<ILIB_ClassificationIndex | undefined>;
6909
8401
  /**
6910
- * 创建二级分类
8402
+ * 创建二��分类
6911
8403
  *
6912
8404
  * @beta
6913
8405
  * @param libraryUuid - 库 UUID
@@ -7004,7 +8496,7 @@ declare class LIB_Device {
7004
8496
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7005
8497
  * @param deviceName - 器件名称
7006
8498
  * @param classification - 分类
7007
- * @param association - 关联符号、封装、图像,指定 `symbolType` 则创建新符号,无需新建符号则无需指定 `symbolType`,但请注意,如若不新建符号也不指定符号的 UUID 将无法创建器件
8499
+ * @param association - 关联符号、封装、图像,指定 `symbolType` 则创建新符号,无需新建符号则无需指定 `symbolType`,但请注意,如若不新建符号也不指定符号的关联信息将无法创建器件
7008
8500
  * @param description - 描述
7009
8501
  * @param property - 其它参数,仅 `designator`、`addIntoBom`、`addIntoPcb` 存在默认值
7010
8502
  * @returns 器件 UUID
@@ -7012,14 +8504,27 @@ declare class LIB_Device {
7012
8504
  create(libraryUuid: string, deviceName: string, classification?: ILIB_ClassificationIndex, association?: {
7013
8505
  symbolType?: ELIB_SymbolType;
7014
8506
  symbolUuid?: string;
8507
+ symbol?: {
8508
+ uuid: string;
8509
+ libraryUuid: string;
8510
+ };
7015
8511
  footprintUuid?: string;
8512
+ footprint?: {
8513
+ uuid: string;
8514
+ libraryUuid: string;
8515
+ };
8516
+ model3D?: {
8517
+ uuid: string;
8518
+ libraryUuid: string;
8519
+ };
8520
+ imageData?: File | Blob;
7016
8521
  }, description?: string, property?: ILIB_DeviceExtendPropertyItem): Promise<string | undefined>;
7017
8522
  /**
7018
8523
  * 删除器件
7019
8524
  *
7020
8525
  * @beta
7021
- * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7022
8526
  * @param deviceUuid - 器件 UUID
8527
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7023
8528
  * @returns 操作是否成功
7024
8529
  */
7025
8530
  delete(deviceUuid: string, libraryUuid: string): Promise<boolean>;
@@ -7039,8 +8544,20 @@ declare class LIB_Device {
7039
8544
  */
7040
8545
  modify(deviceUuid: string, libraryUuid: string, deviceName?: string, classification?: ILIB_ClassificationIndex | null, association?: {
7041
8546
  symbolUuid?: string;
8547
+ symbol?: {
8548
+ uuid: string;
8549
+ libraryUuid: string;
8550
+ };
7042
8551
  footprintUuid?: string | null;
7043
- imageData?: Blob | null;
8552
+ footprint?: {
8553
+ uuid: string;
8554
+ libraryUuid: string;
8555
+ } | null;
8556
+ model3D?: {
8557
+ uuid: string;
8558
+ libraryUuid: string;
8559
+ } | null;
8560
+ imageData?: File | Blob | null;
7044
8561
  }, description?: string | null, property?: {
7045
8562
  name?: string | null;
7046
8563
  designator?: string;
@@ -7051,7 +8568,9 @@ declare class LIB_Device {
7051
8568
  manufacturerId?: string | null;
7052
8569
  supplier?: string | null;
7053
8570
  supplierId?: string | null;
7054
- [key: string]: boolean | number | string | undefined | null;
8571
+ otherProperty?: {
8572
+ [key: string]: boolean | number | string | undefined | null;
8573
+ };
7055
8574
  }): Promise<boolean>;
7056
8575
  /**
7057
8576
  * 获取器件的所有属性
@@ -7100,7 +8619,7 @@ declare class LIB_Device {
7100
8619
  * 私有化部署环境暂无法使用本接口
7101
8620
  * @param lcscIds - 立创 C 编号
7102
8621
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
7103
- * @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个���果
8622
+ * @param allowMultiMatch - 是否允许单个立创 C 编号匹配多个结果
7104
8623
  * @returns 搜索到的器件属性
7105
8624
  */
7106
8625
  getByLcscIds<T extends boolean>(lcscIds: string, libraryUuid?: string, allowMultiMatch?: T): Promise<T extends true ? ILIB_DeviceSearchItem | undefined : Array<ILIB_DeviceSearchItem>>;
@@ -7621,12 +9140,23 @@ declare class PCB_Drc {
7621
9140
  /**
7622
9141
  * 检查 DRC
7623
9142
  *
7624
- * @public
7625
- * @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否则返回 `true`
9143
+ * @beta
9144
+ * @param strict - 是否严格检查,当前 PCB 统一为严格检查模式
7626
9145
  * @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
7627
- * @returns DRC 检查是否无错误
9146
+ * @param includeVerboseError - 是否在返回值中包含详细错误信息,如若为 `true`,则返回值将始终为数组
9147
+ * @returns DRC 检查是否通过
7628
9148
  */
7629
- check(strict?: boolean, userInterface?: boolean): Promise<boolean>;
9149
+ check(strict: boolean, userInterface: boolean, includeVerboseError: false): Promise<boolean>;
9150
+ /**
9151
+ * 检查 DRC
9152
+ *
9153
+ * @beta
9154
+ * @param strict - 是否严格检查,当前 PCB 统一为严格检查模式
9155
+ * @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
9156
+ * @param includeVerboseError - 是否在返回值中包含详细错误信息,如若为 `true`,则返回值将始终为数组
9157
+ * @returns DRC 检查的详细结果
9158
+ */
9159
+ check(strict: boolean, userInterface: boolean, includeVerboseError: true): Promise<Array<any>>;
7630
9160
  /**
7631
9161
  * 获取当前设计规则配置名称
7632
9162
  *
@@ -7780,7 +9310,7 @@ declare class PCB_Drc {
7780
9310
  * @param color - 网络类颜色
7781
9311
  * @returns 操作是否成功
7782
9312
  */
7783
- createNetClass(netClassName: string, nets: Array<string>, color?: string | null): Promise<boolean>;
9313
+ createNetClass(netClassName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
7784
9314
  /**
7785
9315
  * 删除网络类
7786
9316
  *
@@ -7884,7 +9414,7 @@ declare class PCB_Drc {
7884
9414
  * @param color - 等长网络组颜色
7885
9415
  * @returns 操作是否成功
7886
9416
  */
7887
- createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color?: string | null): Promise<boolean>;
9417
+ createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
7888
9418
  /**
7889
9419
  * 删除等长网络组
7890
9420
  *
@@ -7934,6 +9464,10 @@ declare class PCB_Drc {
7934
9464
  * @param padPairGroupName - 焊盘对组名称
7935
9465
  * @param padPairs - 焊盘对数组
7936
9466
  * @returns 操作是否成功
9467
+ * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
9468
+ * await eda.pcb_Drc.createPadPairGroup('test',[['e0','e1']]) // 游离焊盘-游离焊盘
9469
+ * await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','R1:2'],['R2:1','R2:2']]) // 器件焊盘 - 器件焊盘
9470
+ * await eda.pcb_Drc.createPadPairGroup('test',[['R1:1','e0'],['R1:2','e1']]) // 器件焊盘 - 游离焊盘
7937
9471
  */
7938
9472
  createPadPairGroup(padPairGroupName: string, padPairs: Array<[string, string]>): Promise<boolean>;
7939
9473
  /**
@@ -7960,6 +9494,10 @@ declare class PCB_Drc {
7960
9494
  * @param padPairGroupName - 焊盘对组名称
7961
9495
  * @param padPair - 焊盘对
7962
9496
  * @returns 操作是否成功
9497
+ * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
9498
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
9499
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
9500
+ * await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','e1']) // 器件焊盘 - 游离焊盘
7963
9501
  */
7964
9502
  addPadPairToPadPairGroup(padPairGroupName: string, padPair: [string, string] | Array<[string, string]>): Promise<boolean>;
7965
9503
  /**
@@ -7969,6 +9507,10 @@ declare class PCB_Drc {
7969
9507
  * @param padPairGroupName - 焊盘对组名称
7970
9508
  * @param padPair - 焊盘对
7971
9509
  * @returns 操作是否成功
9510
+ * @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
9511
+ * await eda.pcb_Drc.removePadPairFromPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
9512
+ * await eda.pcb_Drc.removePadPairFromPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
9513
+ * await eda.pcb_Drc.removePadPairFromPadPairGroup('test',['R1:2','e1']) // 器件焊盘 - 游离焊盘
7972
9514
  */
7973
9515
  removePadPairFromPadPairGroup(padPairGroupName: string, padPair: [string, string] | Array<[string, string]>): Promise<boolean>;
7974
9516
  /**
@@ -8050,7 +9592,7 @@ declare class PCB_Layer {
8050
9592
  * 将层设置为不可见
8051
9593
  *
8052
9594
  * @beta
8053
- * @param layer - 层,如若不指定任何层则默认为所有层
9595
+ * @param layer - ���,如若不指定任何层则默认为所有层
8054
9596
  * @param setOtherLayerVisible - 是否将其它层设置为可见
8055
9597
  * @returns 操作是否成功
8056
9598
  */
@@ -8169,7 +9711,7 @@ declare class PCB_ManufactureData {
8169
9711
  * @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
8170
9712
  * @param unit - 单位
8171
9713
  * @param digitalFormat - 数字格式
8172
- * @param drilledHole - 钻孔
9714
+ * @param other - 其它
8173
9715
  * @param layers - 导出层,默认则按照嘉立创生产需求导出
8174
9716
  * @param objects - 导出对象,默认则按照嘉立创生产需求导出
8175
9717
  * @returns PCB 制版文件数据
@@ -8177,14 +9719,15 @@ declare class PCB_ManufactureData {
8177
9719
  getGerberFile(fileName?: string, colorSilkscreen?: boolean, unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH, digitalFormat?: {
8178
9720
  integerNumber: number;
8179
9721
  decimalNumber: number;
8180
- }, drilledHole?: {
8181
- metallizedDrilledHoles: boolean;
8182
- nonMetallizedDrilledHoles: boolean;
8183
- drillChart: boolean;
9722
+ }, other?: {
9723
+ metallicDrillingInformation: boolean;
9724
+ nonMetallicDrillingInformation: boolean;
9725
+ drillTable: boolean;
9726
+ flyingProbeTestingFile: boolean;
8184
9727
  }, layers?: Array<{
8185
9728
  layerId: number;
8186
- mirror: boolean;
8187
- }>, objects?: Array<string>): Promise<File | undefined>;
9729
+ isMirror: boolean;
9730
+ }>, objects?: Array<'Pad' | 'Via' | 'Track' | 'Text' | 'Image' | 'Dimension' | 'BoardOutline' | 'BoardCutout' | 'CopperFilled' | 'SolidRegion' | 'FPCStiffener' | 'Line' | 'PlaneZone' | 'ComponentProperty' | 'ComponentSilkscreen' | 'TearDrop'>): Promise<File | undefined>;
8188
9731
  /**
8189
9732
  * 获取 3D 模型文件
8190
9733
  *
@@ -8230,6 +9773,10 @@ declare class PCB_ManufactureData {
8230
9773
  * @returns 飞针测试文件数据
8231
9774
  */
8232
9775
  getFlyingProbeTestFile(fileName?: string): Promise<File | undefined>;
9776
+ /* Excluded from this release type: getBomTemplates */
9777
+ /* Excluded from this release type: uploadBomTemplateFile */
9778
+ /* Excluded from this release type: getBomTemplateFile */
9779
+ /* Excluded from this release type: deleteBomTemplate */
8233
9780
  /**
8234
9781
  * 获取 BOM 文件
8235
9782
  *
@@ -8237,9 +9784,17 @@ declare class PCB_ManufactureData {
8237
9784
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
8238
9785
  * @param fileName - 文件名
8239
9786
  * @param fileType - 文件类型
9787
+ * @param template - 模板名称
9788
+ * @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
9789
+ * @param statistics - 统计,包含所有需要启用的统计项的名称
9790
+ * @param property - 属性,包含所有需要启用的属性的名称
9791
+ * @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
8240
9792
  * @returns BOM 文件数据
8241
9793
  */
8242
- getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv'): Promise<File | undefined>;
9794
+ getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
9795
+ property: string;
9796
+ includeValue: boolean | string;
9797
+ }>, statistics?: Array<string>, property?: Array<string>, columns?: ITableColum[]): Promise<File | undefined>;
8243
9798
  /**
8244
9799
  * 获取测试点报告文件
8245
9800
  *
@@ -8524,7 +10079,9 @@ declare class PCB_MathPolygon {
8524
10079
  */
8525
10080
  splitPolygon(...complexPolygons: Array<IPCB_ComplexPolygon>): Array<IPCB_Polygon>;
8526
10081
  /* Excluded from this release type: calculateWidth */
10082
+ calculateBBoxWidth(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
8527
10083
  /* Excluded from this release type: calculateHeight */
10084
+ calculateBBoxHeight(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
8528
10085
  /**
8529
10086
  * 将图像转换为复杂多边形对象
8530
10087
  *
@@ -8859,6 +10416,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
8859
10416
  */
8860
10417
  getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<IPCB_PrimitiveComponentPad> | undefined>;
8861
10418
  /* Excluded from this release type: placeComponentWithMouse */
10419
+ /* Excluded from this release type: getAllPropertyNames */
8862
10420
  }
8863
10421
 
8864
10422
  /**
@@ -9000,7 +10558,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
9000
10558
  * @beta
9001
10559
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
9002
10560
  * @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9003
- * @returns 填充图元对象,空��组表示获取失败
10561
+ * @returns 填充图元对象,空数组表示获取失败
9004
10562
  */
9005
10563
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
9006
10564
  /**
@@ -9548,7 +11106,7 @@ declare class PCB_PrimitivePour implements IPCB_PrimitiveAPI {
9548
11106
  */
9549
11107
  getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfCopper, primitiveLock?: boolean): Promise<Array<string>>;
9550
11108
  /**
9551
- * 获取所有填充
11109
+ * 获取所有覆铜边框图元
9552
11110
  *
9553
11111
  * @beta
9554
11112
  * @param net - 网络名称
@@ -9572,7 +11130,7 @@ declare class PCB_PrimitiveRegion implements IPCB_PrimitiveAPI {
9572
11130
  * @param layer - 层
9573
11131
  * @param complexPolygon - 复杂多边形对象
9574
11132
  * @param ruleType - 区域规则类型
9575
- * @param reginName - 区域名称
11133
+ * @param regionName - 区域名称
9576
11134
  * @param lineWidth - 线宽
9577
11135
  * @param primitiveLock - 是否锁定
9578
11136
  * @returns 区域图元对象
@@ -10008,7 +11566,7 @@ declare class SCH_Primitive {
10008
11566
  getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
10009
11567
  /* Excluded from this release type: getPrimitivesByPrimitiveId */
10010
11568
  /**
10011
- * 获取图元的 BBox
11569
+ * 获取图��的 BBox
10012
11570
  *
10013
11571
  * @beta
10014
11572
  * @param primitiveIds - 图元 ID 数组或图元对象数组
@@ -10041,10 +11599,10 @@ declare class SCH_PrimitiveArc implements ISCH_PrimitiveAPI {
10041
11599
  * @param color - 颜色,`null` 表示默认
10042
11600
  * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10043
11601
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10044
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
11602
+ * @param lineType - 线型,`null` 表示默认
10045
11603
  * @returns 圆弧图元对象
10046
11604
  */
10047
- create(startX: number, startY: number, referenceX: number, referenceY: number, endX: number, endY: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveArc | undefined>;
11605
+ create(startX: number, startY: number, referenceX: number, referenceY: number, endX: number, endY: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveArc | undefined>;
10048
11606
  /**
10049
11607
  * 删除圆弧
10050
11608
  *
@@ -10058,27 +11616,37 @@ declare class SCH_PrimitiveArc implements ISCH_PrimitiveAPI {
10058
11616
  *
10059
11617
  * @beta
10060
11618
  * @param primitiveId - 图元 ID
10061
- * @param startX - 起始点 X
10062
- * @param startY - 起始点 Y
10063
- * @param referenceX - 参考点 X
10064
- * @param referenceY - 参考点 Y
10065
- * @param endX - 终止点 X
10066
- * @param endY - 终止点 Y
10067
- * @param color - 颜色,`null` 表示默认
10068
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10069
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10070
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
11619
+ * @param property - 修改参数
10071
11620
  * @returns 圆弧图元对象
10072
11621
  */
10073
- modify(primitiveId: string | ISCH_PrimitiveArc, startX?: number, startY?: number, referenceX?: number, referenceY?: number, endX?: number, endY?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveArc | undefined>;
11622
+ modify(primitiveId: string | ISCH_PrimitiveArc, property: {
11623
+ startX?: number;
11624
+ startY?: number;
11625
+ referenceX?: number;
11626
+ referenceY?: number;
11627
+ endX?: number;
11628
+ endY?: number;
11629
+ color?: string | null;
11630
+ fillColor?: string | null;
11631
+ lineWidth?: number | null;
11632
+ lineType?: ESCH_PrimitiveLineType | null;
11633
+ }): Promise<ISCH_PrimitiveArc | undefined>;
11634
+ /**
11635
+ * 获取圆弧
11636
+ *
11637
+ * @beta
11638
+ * @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11639
+ * @returns 圆弧图元对象,`undefined` 表示获取失败
11640
+ */
11641
+ get(primitiveIds: string): Promise<ISCH_PrimitiveArc | undefined>;
10074
11642
  /**
10075
11643
  * 获取圆弧
10076
11644
  *
10077
11645
  * @beta
11646
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
10078
11647
  * @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10079
- * @returns 圆弧图元对象
11648
+ * @returns 圆弧图元对象,空数组表示获取失败
10080
11649
  */
10081
- get(primitiveIds: string): Promise<ISCH_PrimitiveArc | undefined>;
10082
11650
  get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveArc>>;
10083
11651
  /**
10084
11652
  * 获取所有圆弧的图元 ID
@@ -10110,10 +11678,10 @@ declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
10110
11678
  * @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线,如若多段线彼此无任何连接则创建将会失败
10111
11679
  * @param color - 总线颜色,`null` 表示默认
10112
11680
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10113
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
11681
+ * @param lineType - 线型,`null` 表示默认
10114
11682
  * @returns 总线图元对象
10115
11683
  */
10116
- create(busName: BusNetGroupCreateOptions['net'], line: BusNetGroupCreateOptions['line'], color?: BusNetGroupCreateOptions['color'], lineWidth?: BusNetGroupCreateOptions['lineWidth'], lineType?: BusNetGroupCreateOptions['lineType']): ISCH_PrimitiveBus | undefined;
11684
+ create(busName: string, line: Array<number> | Array<Array<number>>, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveBus | undefined>;
10117
11685
  /**
10118
11686
  * 删除总线
10119
11687
  *
@@ -10121,43 +11689,53 @@ declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
10121
11689
  * @param primitiveIds - 总线的图元 ID 或总线图元对象
10122
11690
  * @returns 删除操作是否成功
10123
11691
  */
10124
- delete(primitiveIds: string | ISCH_PrimitiveBus | Array<string> | Array<ISCH_PrimitiveBus>): boolean;
11692
+ delete(primitiveIds: string | ISCH_PrimitiveBus | Array<string> | Array<ISCH_PrimitiveBus>): Promise<boolean>;
10125
11693
  /**
10126
11694
  * 修改总线
10127
11695
  *
10128
11696
  * @beta
10129
11697
  * @param primitiveId - 总线的图元 ID 或总线图元对象
10130
- * @param busName - 总线名称
10131
- * @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
10132
- * @param color - 总线颜色,`null` 表示默认
10133
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10134
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
11698
+ * @param property - 修改参数
10135
11699
  * @returns 总线图元对象
10136
11700
  */
10137
- modify(primitiveId: string | ISCH_PrimitiveBus, busName?: BusNetGroupCreateOptions['net'], line?: BusNetGroupCreateOptions['line'], color?: BusNetGroupCreateOptions['color'], lineWidth?: BusNetGroupCreateOptions['lineWidth'], lineType?: BusNetGroupCreateOptions['lineType']): ISCH_PrimitiveBus | undefined;
11701
+ modify(primitiveId: string | ISCH_PrimitiveBus, property: {
11702
+ busName?: string;
11703
+ line?: Array<number> | Array<Array<number>>;
11704
+ color?: string | null;
11705
+ lineWidth?: number | null;
11706
+ lineType?: ESCH_PrimitiveLineType | null;
11707
+ }): Promise<ISCH_PrimitiveBus | undefined>;
10138
11708
  /**
10139
11709
  * 获取总线
10140
11710
  *
10141
11711
  * @beta
10142
11712
  * @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10143
- * @returns 总线图元对象
11713
+ * @returns 总线图元对象,`undefined` 表示获取失败
10144
11714
  */
10145
- get(primitiveIds: string): ISCH_PrimitiveBus | undefined;
10146
- get(primitiveIds: Array<string>): Array<ISCH_PrimitiveBus>;
11715
+ get(primitiveIds: string): Promise<ISCH_PrimitiveBus | undefined>;
11716
+ /**
11717
+ * 获取总线
11718
+ *
11719
+ * @beta
11720
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
11721
+ * @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11722
+ * @returns 总线图元对象,空数组表示获取失败
11723
+ */
11724
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveBus>>;
10147
11725
  /**
10148
11726
  * 获取所有总线的图元 ID
10149
11727
  *
10150
11728
  * @beta
10151
11729
  * @returns 总线的图元 ID 数组
10152
11730
  */
10153
- getAllPrimitiveId(): Array<string>;
11731
+ getAllPrimitiveId(): Promise<Array<string>>;
10154
11732
  /**
10155
11733
  * 获取所有总线
10156
11734
  *
10157
11735
  * @beta
10158
11736
  * @returns 总线图元对象数组
10159
11737
  */
10160
- getAll(): Array<ISCH_PrimitiveBus>;
11738
+ getAll(): Promise<Array<ISCH_PrimitiveBus>>;
10161
11739
  }
10162
11740
 
10163
11741
  /**
@@ -10167,65 +11745,336 @@ declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
10167
11745
  */
10168
11746
  declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
10169
11747
  /**
10170
- * 创建圆
11748
+ * 创建圆
11749
+ *
11750
+ * @beta
11751
+ * @param centerX - 圆心 X
11752
+ * @param centerY - 圆心 Y
11753
+ * @param radius - 半径
11754
+ * @param color - 颜色,`null` 表示默认
11755
+ * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
11756
+ * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
11757
+ * @param lineType - 线型,`null` 表示默认
11758
+ * @param fillStyle - 填充样式,`null` 表示默认
11759
+ * @returns 圆图元对象
11760
+ */
11761
+ create(centerX: number, centerY: number, radius: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null, fillStyle?: ESCH_PrimitiveFillStyle | null): Promise<ISCH_PrimitiveCircle>;
11762
+ /**
11763
+ * 删除圆
11764
+ *
11765
+ * @beta
11766
+ * @param primitiveIds - 圆的图元 ID 或圆图元对象
11767
+ * @returns 删除操作是否成功
11768
+ */
11769
+ delete(primitiveIds: string | ISCH_PrimitiveCircle | Array<string> | Array<ISCH_PrimitiveCircle>): Promise<boolean>;
11770
+ /**
11771
+ * 修改圆
11772
+ *
11773
+ * @beta
11774
+ * @param primitiveId - 图元 ID
11775
+ * @param property - 修改参数
11776
+ * @returns 圆图元对象
11777
+ */
11778
+ modify(primitiveId: string | ISCH_PrimitiveCircle, property: {
11779
+ centerX?: number;
11780
+ centerY?: number;
11781
+ radius?: number;
11782
+ color?: string | null;
11783
+ fillColor?: string | null;
11784
+ lineWidth?: number | null;
11785
+ lineType?: ESCH_PrimitiveLineType | null;
11786
+ fillStyle?: ESCH_PrimitiveFillStyle | null;
11787
+ }): Promise<ISCH_PrimitiveCircle | undefined>;
11788
+ /**
11789
+ * 获取圆
11790
+ *
11791
+ * @beta
11792
+ * @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11793
+ * @returns 圆图元对象,`undefined` 表示获取失败
11794
+ */
11795
+ get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
11796
+ /**
11797
+ * 获取圆
11798
+ *
11799
+ * @beta
11800
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
11801
+ * @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11802
+ * @returns 圆图元对象,空数组表示获取失败
11803
+ */
11804
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
11805
+ /**
11806
+ * 获取所有圆的图元 ID
11807
+ *
11808
+ * @beta
11809
+ * @returns 圆的图元 ID 数组
11810
+ */
11811
+ getAllPrimitiveId(): Promise<Array<string>>;
11812
+ /**
11813
+ * 获取所有圆
11814
+ *
11815
+ * @beta
11816
+ * @returns 圆图元对象数组
11817
+ */
11818
+ getAll(): Promise<Array<ISCH_PrimitiveCircle>>;
11819
+ }
11820
+
11821
+ /**
11822
+ * 原理图 & 符号 / 器件图元类
11823
+ *
11824
+ * @public
11825
+ */
11826
+ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
11827
+ private netFlagComponentUuid_Power;
11828
+ private netFlagComponentUuid_Ground;
11829
+ private netFlagComponentUuid_AnalogGround;
11830
+ private netFlagComponentUuid_ProtectGround;
11831
+ private netPortComponentUuid_IN;
11832
+ private netPortComponentUuid_OUT;
11833
+ private netPortComponentUuid_BI;
11834
+ private shortCircuitFlagComponentUuid;
11835
+ private defaultLibraryUuid;
11836
+ /* Excluded from this release type: __constructor */
11837
+ /**
11838
+ * 设置在扩展 API 中 Power 网络标识关联的器件 UUID
11839
+ *
11840
+ * @beta
11841
+ * @param component - 关联库器件
11842
+ * @returns 操作是否成功
11843
+ */
11844
+ setNetFlagComponentUuid_Power(component: {
11845
+ libraryUuid: string;
11846
+ uuid: string;
11847
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11848
+ /**
11849
+ * 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
11850
+ *
11851
+ * @beta
11852
+ * @param component - 关联库器件
11853
+ * @returns 操作是否成功
11854
+ */
11855
+ setNetFlagComponentUuid_Ground(component: {
11856
+ libraryUuid: string;
11857
+ uuid: string;
11858
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11859
+ /**
11860
+ * 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
11861
+ *
11862
+ * @beta
11863
+ * @param component - 关联库器件
11864
+ * @returns 操作是否成功
11865
+ */
11866
+ setNetFlagComponentUuid_AnalogGround(component: {
11867
+ libraryUuid: string;
11868
+ uuid: string;
11869
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11870
+ /**
11871
+ * 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
11872
+ *
11873
+ * @beta
11874
+ * @param component - 关联库器件
11875
+ * @returns 操作是否成功
11876
+ */
11877
+ setNetFlagComponentUuid_ProtectGround(component: {
11878
+ libraryUuid: string;
11879
+ uuid: string;
11880
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11881
+ /**
11882
+ * 设置在扩展 API 中 IN 网络端口关联的器件 UUID
11883
+ *
11884
+ * @beta
11885
+ * @param component - 关联库器件
11886
+ * @returns 操作是否成功
11887
+ */
11888
+ setNetPortComponentUuid_IN(component: {
11889
+ libraryUuid: string;
11890
+ uuid: string;
11891
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11892
+ /**
11893
+ * 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
11894
+ *
11895
+ * @beta
11896
+ * @param component - 关联库器件
11897
+ * @returns 操作是否成功
11898
+ */
11899
+ setNetPortComponentUuid_OUT(component: {
11900
+ libraryUuid: string;
11901
+ uuid: string;
11902
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11903
+ /**
11904
+ * 设置在扩展 API 中 BI 网络端口关联的器件 UUID
11905
+ *
11906
+ * @beta
11907
+ * @param component - 关联库器件
11908
+ * @returns 操作是否成功
11909
+ */
11910
+ setNetPortComponentUuid_BI(component: {
11911
+ libraryUuid: string;
11912
+ uuid: string;
11913
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
11914
+ /**
11915
+ * 创建器件
11916
+ *
11917
+ * @beta
11918
+ * @param component - 关联库器件
11919
+ * @param subPartName - 子图块名称
11920
+ * @param x - 坐标 X
11921
+ * @param y - 坐标 Y
11922
+ * @param rotation - 旋转角度
11923
+ * @param mirror - 是否镜像
11924
+ * @param addIntoBom - 是否加入 BOM
11925
+ * @param addIntoPcb - 是否转到 PCB
11926
+ * @returns 器件图元对象
11927
+ */
11928
+ create(component: {
11929
+ libraryUuid: string;
11930
+ uuid: string;
11931
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
11932
+ /**
11933
+ * 创建网络标识
11934
+ *
11935
+ * @beta
11936
+ * @param identification - 标识类型
11937
+ * @param net - 网络名称
11938
+ * @param x - 坐标 X
11939
+ * @param y - 坐标 Y
11940
+ * @param rotation - 旋转角度
11941
+ * @param mirror - 是否镜像
11942
+ * @returns 器件图元对象
11943
+ */
11944
+ createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
11945
+ /**
11946
+ * 创建网络端口
11947
+ *
11948
+ * @beta
11949
+ * @param direction - 端口方向
11950
+ * @param net - 网络名称
11951
+ * @param x - 坐标 X
11952
+ * @param y - 坐��� Y
11953
+ * @param rotation - 旋转角度
11954
+ * @param mirror - 是否镜像
11955
+ * @returns 器件图元对象
11956
+ */
11957
+ createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
11958
+ /**
11959
+ * 创建短接标识
11960
+ *
11961
+ * @beta
11962
+ * @param x - 坐标 X
11963
+ * @param y - 坐标 Y
11964
+ * @param rotation - 旋转角度
11965
+ * @param mirror - 是否镜像
11966
+ * @returns 器件图元对象
11967
+ */
11968
+ createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
11969
+ /**
11970
+ * 删除器件
11971
+ *
11972
+ * @beta
11973
+ * @param primitiveIds - 器件的图元 ID 或器件图元对象
11974
+ * @returns 删除操作是否成功
11975
+ */
11976
+ delete(primitiveIds: string | ISCH_PrimitiveComponent | Array<string> | Array<ISCH_PrimitiveComponent>): Promise<boolean>;
11977
+ /**
11978
+ * 修改器件
11979
+ *
11980
+ * @beta
11981
+ * @remarks 仅当器件类型为 {@link ESCH_PrimitiveComponentType.COMPONENT | COMPONENT} 时允许使用该方法进行修改
11982
+ * @param primitiveId - 图元 ID
11983
+ * @param x - 坐标 X
11984
+ * @param y - 坐标 Y
11985
+ * @param rotation - 旋转角度
11986
+ * @param mirror - 是否镜像
11987
+ * @param libraryPath - 库路径,默认为系统库
11988
+ * @param addIntoBom - 是否加入 BOM
11989
+ * @param addIntoPcb - 是否转到 PCB
11990
+ * @param designator - 位号
11991
+ * @param name - 名称,`null` 表示留空
11992
+ * @param uniqueId - 唯一 ID,`null` 表示留空
11993
+ * @param manufacturer - 制造商,`null` 表示留空
11994
+ * @param manufacturerId - 制造商编号,`null` 表示留空
11995
+ * @param supplier - 供应商,`null` 表示留空
11996
+ * @param supplierId - 供应商编号,`null` 表示留空
11997
+ * @returns 器件图元对象
11998
+ */
11999
+ modify(primitiveId: string | ISCH_PrimitiveComponent, property: {
12000
+ x?: number;
12001
+ y?: number;
12002
+ rotation?: number;
12003
+ mirror?: boolean;
12004
+ addIntoBom?: boolean;
12005
+ addIntoPcb?: boolean;
12006
+ designator?: string | null;
12007
+ name?: string | null;
12008
+ uniqueId?: string | null;
12009
+ manufacturer?: string | null;
12010
+ manufacturerId?: string | null;
12011
+ supplier?: string | null;
12012
+ supplierId?: string | null;
12013
+ otherProperty?: {
12014
+ [key: string]: string | number | boolean;
12015
+ };
12016
+ }): Promise<ISCH_PrimitiveComponent | undefined>;
12017
+ /**
12018
+ * 获取器件
10171
12019
  *
10172
12020
  * @beta
10173
- * @param centerX - 圆心 X
10174
- * @param centerY - 圆心 Y
10175
- * @param radius - 半径
10176
- * @param color - 颜色,`null` 表示默认
10177
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10178
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10179
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
10180
- * @returns 圆图元对象
12021
+ * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12022
+ * @returns 器件图元对象,`undefined` 表示获取失败
10181
12023
  */
10182
- create(centerX: number, centerY: number, radius: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveCircle>;
12024
+ get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
10183
12025
  /**
10184
- * 删除圆
12026
+ * 获取器件
10185
12027
  *
10186
12028
  * @beta
10187
- * @param primitiveIds - 圆的图元 ID 或圆图元对象
10188
- * @returns 删除操作是否成功
12029
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
12030
+ * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12031
+ * @returns 器件图元对象,空数组表示获取失败
10189
12032
  */
10190
- delete(primitiveIds: string | ISCH_PrimitiveCircle | Array<string> | Array<ISCH_PrimitiveCircle>): Promise<boolean>;
12033
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
10191
12034
  /**
10192
- * 修改圆
12035
+ * 获取所有器件的图元 ID
10193
12036
  *
10194
12037
  * @beta
10195
- * @param primitiveId - 图元 ID
10196
- * @param centerX - 圆心 X
10197
- * @param centerY - 圆心 Y
10198
- * @param radius - 半径
10199
- * @param color - 颜色,`null` 表示默认
10200
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10201
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10202
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
10203
- * @returns 圆图元对象
12038
+ * @param componentType - 器件类型
12039
+ * @param allSchematicPages - 是否获取所有原理图图页的器件
12040
+ * @returns 器件的图元 ID 数组
10204
12041
  */
10205
- modify(primitiveId: string | ISCH_PrimitiveCircle, centerX?: number, centerY?: number, radius?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveCircle | undefined>;
12042
+ getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
10206
12043
  /**
10207
- * 获取圆
12044
+ * 获取所有器件
10208
12045
  *
10209
12046
  * @beta
10210
- * @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10211
- * @returns 圆图元对象
12047
+ * @param componentType - 器件类型
12048
+ * @param allSchematicPages - 是否获取所有原理图图页的器件
12049
+ * @returns 器件图元对象数组
10212
12050
  */
10213
- get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
10214
- get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
12051
+ getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
10215
12052
  /**
10216
- * 获取所有圆的图元 ID
12053
+ * 获取器件关联的所有引脚
10217
12054
  *
10218
12055
  * @beta
10219
- * @returns 圆的图元 ID 数组
12056
+ * @param primitiveId - 器件图元 ID
12057
+ * @returns 器件引脚图元数组
10220
12058
  */
10221
- getAllPrimitiveId(): Promise<Array<string>>;
12059
+ getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
10222
12060
  /**
10223
- * 获取所有圆
12061
+ * 使用鼠标放置器件
10224
12062
  *
10225
12063
  * @beta
10226
- * @returns 圆图元对象数组
12064
+ * @remarks
12065
+ * 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
12066
+ *
12067
+ * 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到鼠标,本接口将立即返回 `true` 的结果
12068
+ * @param component - 关联库器件
12069
+ * @returns 是否找到器件
10227
12070
  */
10228
- getAll(): Promise<Array<ISCH_PrimitiveCircle>>;
12071
+ placeComponentWithMouse(component: {
12072
+ libraryUuid: string;
12073
+ uuid: string;
12074
+ } | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
12075
+ /* Excluded from this release type: getAllPropertyNames */
12076
+ /* Excluded from this release type: getComponentDetail */
12077
+ /* Excluded from this release type: checkComponentType */
10229
12078
  }
10230
12079
 
10231
12080
  /**
@@ -10233,7 +12082,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
10233
12082
  *
10234
12083
  * @public
10235
12084
  */
10236
- declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
12085
+ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
10237
12086
  private netFlagComponentUuid_Power;
10238
12087
  private netFlagComponentUuid_Ground;
10239
12088
  private netFlagComponentUuid_AnalogGround;
@@ -10254,7 +12103,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10254
12103
  setNetFlagComponentUuid_Power(component: {
10255
12104
  libraryUuid: string;
10256
12105
  uuid: string;
10257
- } | ILIB_DeviceItem): Promise<boolean>;
12106
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10258
12107
  /**
10259
12108
  * 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
10260
12109
  *
@@ -10265,7 +12114,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10265
12114
  setNetFlagComponentUuid_Ground(component: {
10266
12115
  libraryUuid: string;
10267
12116
  uuid: string;
10268
- } | ILIB_DeviceItem): Promise<boolean>;
12117
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10269
12118
  /**
10270
12119
  * 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
10271
12120
  *
@@ -10276,7 +12125,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10276
12125
  setNetFlagComponentUuid_AnalogGround(component: {
10277
12126
  libraryUuid: string;
10278
12127
  uuid: string;
10279
- } | ILIB_DeviceItem): Promise<boolean>;
12128
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10280
12129
  /**
10281
12130
  * 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
10282
12131
  *
@@ -10287,7 +12136,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10287
12136
  setNetFlagComponentUuid_ProtectGround(component: {
10288
12137
  libraryUuid: string;
10289
12138
  uuid: string;
10290
- } | ILIB_DeviceItem): Promise<boolean>;
12139
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10291
12140
  /**
10292
12141
  * 设置在扩展 API 中 IN 网络端口关联的器件 UUID
10293
12142
  *
@@ -10298,7 +12147,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10298
12147
  setNetPortComponentUuid_IN(component: {
10299
12148
  libraryUuid: string;
10300
12149
  uuid: string;
10301
- } | ILIB_DeviceItem): Promise<boolean>;
12150
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10302
12151
  /**
10303
12152
  * 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
10304
12153
  *
@@ -10309,7 +12158,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10309
12158
  setNetPortComponentUuid_OUT(component: {
10310
12159
  libraryUuid: string;
10311
12160
  uuid: string;
10312
- } | ILIB_DeviceItem): Promise<boolean>;
12161
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10313
12162
  /**
10314
12163
  * 设置在扩展 API 中 BI 网络端口关联的器件 UUID
10315
12164
  *
@@ -10320,7 +12169,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10320
12169
  setNetPortComponentUuid_BI(component: {
10321
12170
  libraryUuid: string;
10322
12171
  uuid: string;
10323
- } | ILIB_DeviceItem): Promise<boolean>;
12172
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
10324
12173
  /**
10325
12174
  * 创建器件
10326
12175
  *
@@ -10338,7 +12187,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10338
12187
  create(component: {
10339
12188
  libraryUuid: string;
10340
12189
  uuid: string;
10341
- } | ILIB_DeviceItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
12190
+ } | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10342
12191
  /**
10343
12192
  * 创建网络标识
10344
12193
  *
@@ -10351,7 +12200,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10351
12200
  * @param mirror - 是否镜像
10352
12201
  * @returns 器件图元对象
10353
12202
  */
10354
- createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
12203
+ createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10355
12204
  /**
10356
12205
  * 创建网络端口
10357
12206
  *
@@ -10364,7 +12213,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10364
12213
  * @param mirror - 是否镜像
10365
12214
  * @returns 器件图元对象
10366
12215
  */
10367
- createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
12216
+ createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10368
12217
  /**
10369
12218
  * 创建短接标识
10370
12219
  *
@@ -10375,7 +12224,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10375
12224
  * @param mirror - 是否镜像
10376
12225
  * @returns 器件图元对象
10377
12226
  */
10378
- createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
12227
+ createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10379
12228
  /**
10380
12229
  * 删除器件
10381
12230
  *
@@ -10383,7 +12232,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10383
12232
  * @param primitiveIds - 器件的图元 ID 或器件图元对象
10384
12233
  * @returns 删除操作是否成功
10385
12234
  */
10386
- delete(primitiveIds: string | ISCH_PrimitiveComponent | Array<string> | Array<ISCH_PrimitiveComponent>): Promise<boolean>;
12235
+ delete(primitiveIds: string | ISCH_PrimitiveComponent_2 | Array<string> | Array<ISCH_PrimitiveComponent_2>): Promise<boolean>;
10387
12236
  /**
10388
12237
  * 修改器件
10389
12238
  *
@@ -10402,11 +12251,11 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10402
12251
  * @param uniqueId - 唯一 ID,`null` 表示留空
10403
12252
  * @param manufacturer - 制造商,`null` 表示留空
10404
12253
  * @param manufacturerId - 制造商编号,`null` 表示留空
10405
- * @param supplier - 供应���,`null` 表示留空
12254
+ * @param supplier - 供应商,`null` 表示留空
10406
12255
  * @param supplierId - 供应商编号,`null` 表示留空
10407
12256
  * @returns 器件图元对象
10408
12257
  */
10409
- modify(primitiveId: string | ISCH_PrimitiveComponent, property: {
12258
+ modify(primitiveId: string | ISCH_PrimitiveComponent_2, property: {
10410
12259
  x?: number;
10411
12260
  y?: number;
10412
12261
  rotation?: number;
@@ -10423,7 +12272,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10423
12272
  otherProperty?: {
10424
12273
  [key: string]: string | number | boolean;
10425
12274
  };
10426
- }): Promise<ISCH_PrimitiveComponent | undefined>;
12275
+ }): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10427
12276
  /**
10428
12277
  * 获取器件
10429
12278
  *
@@ -10431,7 +12280,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10431
12280
  * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10432
12281
  * @returns 器件图元对象,`undefined` 表示获取失败
10433
12282
  */
10434
- get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
12283
+ get(primitiveIds: string): Promise<ISCH_PrimitiveComponent_2 | undefined>;
10435
12284
  /**
10436
12285
  * 获取器件
10437
12286
  *
@@ -10440,7 +12289,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10440
12289
  * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10441
12290
  * @returns 器件图元对象,空数组表示获取失败
10442
12291
  */
10443
- get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
12292
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent_2>>;
10444
12293
  /**
10445
12294
  * 获取所有器件的图元 ID
10446
12295
  *
@@ -10458,9 +12307,31 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
10458
12307
  * @param allSchematicPages - 是否获取所有原理图图页的器件
10459
12308
  * @returns 器件图元对象数组
10460
12309
  */
10461
- getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
10462
- /* Excluded from this release type: getAllPinsByPrimitiveId */
10463
- /* Excluded from this release type: placeComponentWithMouse */
12310
+ getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent_2>>;
12311
+ /**
12312
+ * 获取器件关联的所有引脚
12313
+ *
12314
+ * @beta
12315
+ * @param primitiveId - 器件图元 ID
12316
+ * @returns 器件引脚图元数组
12317
+ */
12318
+ getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
12319
+ /**
12320
+ * 使用鼠标放置器件
12321
+ *
12322
+ * @beta
12323
+ * @remarks
12324
+ * 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
12325
+ *
12326
+ * 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到��标,本接口将立即返回 `true` 的结果
12327
+ * @param component - 关联库器件
12328
+ * @returns 是否找到器件
12329
+ */
12330
+ placeComponentWithMouse(component: {
12331
+ libraryUuid: string;
12332
+ uuid: string;
12333
+ } | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
12334
+ /* Excluded from this release type: getAllPropertyNames */
10464
12335
  /* Excluded from this release type: getComponentDetail */
10465
12336
  /* Excluded from this release type: checkComponentType */
10466
12337
  }
@@ -10487,7 +12358,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
10487
12358
  * @param pinType - 引脚类型
10488
12359
  * @returns 引脚图元对象
10489
12360
  */
10490
- create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
12361
+ create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: ESCH_PrimitivePinShape, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
10491
12362
  /**
10492
12363
  * 删除引脚
10493
12364
  *
@@ -10501,26 +12372,36 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
10501
12372
  *
10502
12373
  * @beta
10503
12374
  * @param primitiveId - 图元 ID
10504
- * @param x - 坐标 X
10505
- * @param y - 坐标 Y
10506
- * @param pinNumber - 引脚编号
10507
- * @param pinName - 引脚名称
10508
- * @param rotation - 旋转角度,可选 `0` `90` `180` `270`
10509
- * @param pinLength - 引脚长度
10510
- * @param pinColor - 引脚颜色,`null` 表示默认
10511
- * @param pinShape - 引脚形状
10512
- * @param pinType - 引脚类型
12375
+ * @param property - 修改参数
10513
12376
  * @returns 引脚图元对象
10514
12377
  */
10515
- modify(primitiveId: string | ISCH_PrimitivePin, x?: number, y?: number, pinNumber?: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
12378
+ modify(primitiveId: string | ISCH_PrimitivePin, property: {
12379
+ x?: number;
12380
+ y?: number;
12381
+ pinNumber?: string;
12382
+ pinName?: string;
12383
+ rotation?: number;
12384
+ pinLength?: number;
12385
+ pinColor?: string | null;
12386
+ pinShape?: ESCH_PrimitivePinShape;
12387
+ pinType?: ESCH_PrimitivePinType;
12388
+ }): Promise<ISCH_PrimitivePin | undefined>;
10516
12389
  /**
10517
12390
  * 获取引脚
10518
12391
  *
10519
12392
  * @beta
10520
12393
  * @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10521
- * @returns 引脚图元对象
12394
+ * @returns 引脚图元对象,`undefined` 表示获取失败
10522
12395
  */
10523
12396
  get(primitiveIds: string): Promise<ISCH_PrimitivePin | undefined>;
12397
+ /**
12398
+ * 获取引脚
12399
+ *
12400
+ * @beta
12401
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
12402
+ * @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12403
+ * @returns 引脚图元对象,空数组表示获取失败
12404
+ */
10524
12405
  get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePin>>;
10525
12406
  /**
10526
12407
  * 获取所有引脚的图元 ID
@@ -10539,7 +12420,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
10539
12420
  }
10540
12421
 
10541
12422
  /**
10542
- * 原理图 & 符号 / 多边形图元类
12423
+ * 原理图 & 符号 / 多边形(折线)图元类
10543
12424
  *
10544
12425
  * @public
10545
12426
  */
@@ -10552,10 +12433,10 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
10552
12433
  * @param color - 颜色,`null` 表示默认
10553
12434
  * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10554
12435
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10555
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12436
+ * @param lineType - 线型,`null` 表示默认
10556
12437
  * @returns 多边形图元对象
10557
12438
  */
10558
- create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitivePolygon | undefined>;
12439
+ create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitivePolygon | undefined>;
10559
12440
  /**
10560
12441
  * 删除多边形
10561
12442
  *
@@ -10569,22 +12450,32 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
10569
12450
  *
10570
12451
  * @beta
10571
12452
  * @param primitiveId - 图元 ID
10572
- * @param line - 坐标组,连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
10573
- * @param color - 颜色,`null` 表示默认
10574
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10575
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10576
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12453
+ * @param property - 修改参数
10577
12454
  * @returns 多边形图元对象
10578
12455
  */
10579
- modify(primitiveId: string | ISCH_PrimitivePolygon, line?: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitivePolygon | undefined>;
12456
+ modify(primitiveId: string | ISCH_PrimitivePolygon, property: {
12457
+ line?: Array<number>;
12458
+ color?: string | null;
12459
+ fillColor?: string | null;
12460
+ lineWidth?: number | null;
12461
+ lineType?: ESCH_PrimitiveLineType | null;
12462
+ }): Promise<ISCH_PrimitivePolygon | undefined>;
10580
12463
  /**
10581
12464
  * 获取多边形
10582
12465
  *
10583
12466
  * @beta
10584
12467
  * @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10585
- * @returns 多边形图元对象
12468
+ * @returns 多边形图元对象,`undefined` 表示获取失败
10586
12469
  */
10587
12470
  get(primitiveIds: string): Promise<ISCH_PrimitivePolygon | undefined>;
12471
+ /**
12472
+ * 获取多边形
12473
+ *
12474
+ * @beta
12475
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
12476
+ * @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12477
+ * @returns 多边形图元对象,空数组表示获取失败
12478
+ */
10588
12479
  get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePolygon>>;
10589
12480
  /**
10590
12481
  * 获取所有多边形的图元 ID
@@ -10621,10 +12512,11 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
10621
12512
  * @param color - 颜色,`null` 表示默认
10622
12513
  * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10623
12514
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10624
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12515
+ * @param lineType - 线型,`null` 表示默认
12516
+ * @param fillStyle - 填充样式,`null` 表示默认
10625
12517
  * @returns 矩形图元对象
10626
12518
  */
10627
- create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveRectangle | undefined>;
12519
+ create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null, fillStyle?: ESCH_PrimitiveFillStyle | null): Promise<ISCH_PrimitiveRectangle | undefined>;
10628
12520
  /**
10629
12521
  * 删除矩形
10630
12522
  *
@@ -10636,29 +12528,40 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
10636
12528
  /**
10637
12529
  * 修改矩形
10638
12530
  *
10639
- * @public
12531
+ * @beta
10640
12532
  * @param primitiveId - 图元 ID
10641
- * @param topLeftX - 左上点 X
10642
- * @param topLeftY - 左上点 Y
10643
- * @param width - 宽
10644
- * @param height - 高
10645
- * @param cornerRadius - 圆角半径
10646
- * @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
10647
- * @param color - 颜色,`null` 表示默认
10648
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
10649
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10650
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12533
+ * @param property - 修改参数
10651
12534
  * @returns 矩形图元对象
10652
12535
  */
10653
- modify(primitiveId: string | ISCH_PrimitiveRectangle, topLeftX?: number, topLeftY?: number, width?: number, height?: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: number | null): Promise<ISCH_PrimitiveRectangle | undefined>;
12536
+ modify(primitiveId: string | ISCH_PrimitiveRectangle, property: {
12537
+ topLeftX?: number;
12538
+ topLeftY?: number;
12539
+ width?: number;
12540
+ height?: number;
12541
+ cornerRadius?: number;
12542
+ rotation?: number;
12543
+ color?: string | null;
12544
+ fillColor?: string | null;
12545
+ lineWidth?: number | null;
12546
+ lineType?: ESCH_PrimitiveLineType | null;
12547
+ fillStyle?: ESCH_PrimitiveFillStyle | null;
12548
+ }): Promise<ISCH_PrimitiveRectangle | undefined>;
10654
12549
  /**
10655
12550
  * 获取矩形
10656
12551
  *
10657
- * @public
12552
+ * @beta
10658
12553
  * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10659
- * @returns 矩形图元对象
12554
+ * @returns 矩形图元对象,`undefined` 表示获取失败
10660
12555
  */
10661
12556
  get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
12557
+ /**
12558
+ * 获取矩形
12559
+ *
12560
+ * @beta
12561
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
12562
+ * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12563
+ * @returns 矩形图元对象,空数组表示获取失败
12564
+ */
10662
12565
  get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveRectangle>>;
10663
12566
  /**
10664
12567
  * 获取所有矩形的图元 ID
@@ -10699,7 +12602,7 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
10699
12602
  * @param alignMode - 对齐模式,`0` 左顶,`1` 中顶,`2` 右顶,`3` 左中,`4` 中中,`5` 右中,`6` 左底,`7` 中底,`8` 右底
10700
12603
  * @returns 文本图元对象
10701
12604
  */
10702
- create(x: number, y: number, content: string, rotation?: number, textColor?: string | null, fontName?: string | null, fontSize?: number | null, bold?: boolean, italic?: boolean, underLine?: boolean, alignMode?: number): ISCH_PrimitiveText | undefined;
12605
+ create(x: number, y: number, content: string, rotation?: number, textColor?: string | null, fontName?: string | null, fontSize?: number | null, bold?: boolean, italic?: boolean, underLine?: boolean, alignMode?: number): Promise<ISCH_PrimitiveText | undefined>;
10703
12606
  /**
10704
12607
  * 删除文本
10705
12608
  *
@@ -10707,49 +12610,59 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
10707
12610
  * @param primitiveIds - 文本的图元 ID 或文本图元对象
10708
12611
  * @returns 删除操作是否成功
10709
12612
  */
10710
- delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): boolean;
12613
+ delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): Promise<boolean>;
10711
12614
  /**
10712
12615
  * 修改文本
10713
12616
  *
10714
12617
  * @beta
10715
12618
  * @param primitiveId - 图元 ID
10716
- * @param x - 坐标 X
10717
- * @param y - 坐标 Y
10718
- * @param content - 文本内容
10719
- * @param rotation - 旋转角度,可选 `0` `90` `180` `270`
10720
- * @param textColor - 文本颜色,`null` 表示默认
10721
- * @param fontName - 字体名称,`null` 表示默认
10722
- * @param fontSize - 字体大小,`null` 表示默认
10723
- * @param bold - 是否加粗
10724
- * @param italic - 是否斜体
10725
- * @param underLine - 是否加下划线
10726
- * @param alignMode - 对齐模式,`0` 左顶,`1` 中顶,`2` 右顶,`3` 左中,`4` 中中,`5` 右中,`6` 左底,`7` 中底,`8` 右底
12619
+ * @param property - 修改参数
10727
12620
  * @returns 文本图元对象
10728
12621
  */
10729
- modify(primitiveId: string | ISCH_PrimitiveText, x?: number, y?: number, content?: string, rotation?: number, textColor?: string | null, fontName?: string | null, fontSize?: number | null, bold?: boolean, italic?: boolean, underLine?: boolean, alignMode?: number): ISCH_PrimitiveText | undefined;
12622
+ modify(primitiveId: string | ISCH_PrimitiveText, property: {
12623
+ x?: number;
12624
+ y?: number;
12625
+ content?: string;
12626
+ rotation?: number;
12627
+ textColor?: string | null;
12628
+ fontName?: string | null;
12629
+ fontSize?: number | null;
12630
+ bold?: boolean;
12631
+ italic?: boolean;
12632
+ underLine?: boolean;
12633
+ alignMode?: number;
12634
+ }): Promise<ISCH_PrimitiveText | undefined>;
12635
+ /**
12636
+ * 获取文本
12637
+ *
12638
+ * @beta
12639
+ * @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12640
+ * @returns 文本图元对象,`undefined` 表示获取失败
12641
+ */
12642
+ get(primitiveIds: string): Promise<ISCH_PrimitiveText | undefined>;
10730
12643
  /**
10731
12644
  * 获取文本
10732
12645
  *
10733
12646
  * @beta
12647
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
10734
12648
  * @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10735
- * @returns 文本图元对象
12649
+ * @returns 文本图元对象,空数组表示获取失败
10736
12650
  */
10737
- get(primitiveIds: string): ISCH_PrimitiveText | undefined;
10738
- get(primitiveIds: Array<string>): Array<ISCH_PrimitiveText>;
12651
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveText>>;
10739
12652
  /**
10740
12653
  * 获取所有文本的图元 ID
10741
12654
  *
10742
12655
  * @beta
10743
12656
  * @returns 文本的图元 ID 数组
10744
12657
  */
10745
- getAllPrimitiveId(): Array<string>;
12658
+ getAllPrimitiveId(): Promise<Array<string>>;
10746
12659
  /**
10747
12660
  * 获取所有文本
10748
12661
  *
10749
12662
  * @beta
10750
12663
  * @returns 文本图元对象数组
10751
12664
  */
10752
- getAll(): Array<ISCH_PrimitiveText>;
12665
+ getAll(): Promise<Array<ISCH_PrimitiveText>>;
10753
12666
  }
10754
12667
 
10755
12668
  /**
@@ -10773,10 +12686,10 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
10773
12686
  * 2. 如若其他图元指定了网络,则创建失败
10774
12687
  * @param color - 导线颜色,`null` 表示默认
10775
12688
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10776
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12689
+ * @param lineType - 线型,`null` 表示默认
10777
12690
  * @returns 导线图元对象
10778
12691
  */
10779
- create(line: WireNetGroupCreateOptions['line'], net?: WireNetGroupCreateOptions['net'], color?: WireNetGroupCreateOptions['color'], lineWidth?: WireNetGroupCreateOptions['lineWidth'], lineType?: WireNetGroupCreateOptions['lineType']): ISCH_PrimitiveWire | undefined;
12692
+ create(line: Array<number> | Array<Array<number>>, net?: string, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveWire | undefined>;
10780
12693
  /**
10781
12694
  * 删除导线
10782
12695
  *
@@ -10784,29 +12697,39 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
10784
12697
  * @param primitiveIds - 导线的图元 ID 或导线图元对象
10785
12698
  * @returns 删除操作是否成功
10786
12699
  */
10787
- delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): boolean;
12700
+ delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): Promise<boolean>;
10788
12701
  /**
10789
12702
  * 修改导线
10790
12703
  *
10791
12704
  * @beta
10792
12705
  * @param primitiveId - 导线的图元 ID 或导线图元对象
10793
- * @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
10794
- * @param net - 网络名称
10795
- * @param color - 导线颜色,`null` 表示默认
10796
- * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
10797
- * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
12706
+ * @param property - 修改参数
10798
12707
  * @returns 导线图元对象
10799
12708
  */
10800
- modify(primitiveId: string | ISCH_PrimitiveWire, line?: WireNetGroupCreateOptions['line'], net?: WireNetGroupCreateOptions['net'], color?: WireNetGroupCreateOptions['color'], lineWidth?: WireNetGroupCreateOptions['lineWidth'], lineType?: WireNetGroupCreateOptions['lineType']): ISCH_PrimitiveWire | undefined;
12709
+ modify(primitiveId: string | ISCH_PrimitiveWire, property: {
12710
+ line?: Array<number> | Array<Array<number>>;
12711
+ net?: string;
12712
+ color?: string | null;
12713
+ lineWidth?: number | null;
12714
+ lineType?: ESCH_PrimitiveLineType | null;
12715
+ }): Promise<ISCH_PrimitiveWire | undefined>;
10801
12716
  /**
10802
12717
  * 获取导线
10803
12718
  *
10804
12719
  * @beta
10805
12720
  * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10806
- * @returns 导线图元对象
12721
+ * @returns 导线图元对象,`undefined` 表示获取失败
12722
+ */
12723
+ get(primitiveIds: string): Promise<ISCH_PrimitiveWire | undefined>;
12724
+ /**
12725
+ * 获取导线
12726
+ *
12727
+ * @beta
12728
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
12729
+ * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12730
+ * @returns 导线图元对象,空数组表示获取失败
10807
12731
  */
10808
- get(primitiveIds: string): ISCH_PrimitiveWire | undefined;
10809
- get(primitiveIds: Array<string>): Array<ISCH_PrimitiveWire>;
12732
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
10810
12733
  /**
10811
12734
  * 获取所有导线的图元 ID
10812
12735
  *
@@ -10814,7 +12737,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
10814
12737
  * @param net - 网络名称
10815
12738
  * @returns 导线的图元 ID 数组
10816
12739
  */
10817
- getAllPrimitiveId(net?: string | Array<string>): Array<string>;
12740
+ getAllPrimitiveId(net?: string | Array<string>): Promise<Array<string>>;
10818
12741
  /**
10819
12742
  * 获取所有导线
10820
12743
  *
@@ -10822,7 +12745,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
10822
12745
  * @param net - 网络名称
10823
12746
  * @returns 导线图元对象数组
10824
12747
  */
10825
- getAll(net?: string | Array<string>): Array<ISCH_PrimitiveWire>;
12748
+ getAll(net?: string | Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
10826
12749
  }
10827
12750
 
10828
12751
  /**
@@ -10971,7 +12894,7 @@ declare class SYS_Dialog {
10971
12894
  * @param title - 弹出窗口标题
10972
12895
  * @param mainButtonTitle - 主要按钮标题
10973
12896
  * @param buttonTitle - 主要按钮标题
10974
- * @param callbackFn - 回调函数,如需调用扩展内的函数,请在函数名前加上扩展的唯一 ID,以西文句号 `.` 分隔
12897
+ * @param callbackFn - 回调函数
10975
12898
  */
10976
12899
  showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
10977
12900
  /* Excluded from this release type: showInputDialog */
@@ -11042,6 +12965,20 @@ declare class SYS_Environment {
11042
12965
  * @returns 是否为全离线模式
11043
12966
  */
11044
12967
  isOfflineMode(): boolean;
12968
+ /**
12969
+ * 获取编辑器当前版本
12970
+ *
12971
+ * @public
12972
+ * @returns 编辑器当前版本
12973
+ */
12974
+ getEditorCurrentVersion(): string;
12975
+ /**
12976
+ * 获取编辑器编译日期
12977
+ *
12978
+ * @public
12979
+ * @returns 编辑器编译日期
12980
+ */
12981
+ getEditorCompliedDate(): string;
11045
12982
  }
11046
12983
 
11047
12984
  /**
@@ -11054,7 +12991,10 @@ declare class SYS_FileManager {
11054
12991
  * 获取工程文件
11055
12992
  *
11056
12993
  * @public
11057
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
12994
+ * @remarks
12995
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
12996
+ *
12997
+ * 注意:本接口需要启用 **工程管理 \> 下载工程** 权限,没有权限调用将始终 `throw Error`
11058
12998
  * @param fileName - 文件名
11059
12999
  * @param password - 加密密码
11060
13000
  * @returns 工程文件数据,`undefined` 表示当前未打开工程或数据获取失败
@@ -11064,7 +13004,10 @@ declare class SYS_FileManager {
11064
13004
  * 获取文档文件
11065
13005
  *
11066
13006
  * @public
11067
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13007
+ * @remarks
13008
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13009
+ *
13010
+ * 注意:本接口需要启用 **工程设计图 \> 文件导出** 权限,没有权限调用将始终 `throw Error`
11068
13011
  * @param fileName - 文件名
11069
13012
  * @param password - 加密密码
11070
13013
  * @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
@@ -11099,7 +13042,10 @@ declare class SYS_FileManager {
11099
13042
  * 使用工程 UUID 获取工程文件
11100
13043
  *
11101
13044
  * @public
11102
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13045
+ * @remarks
13046
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13047
+ *
13048
+ * 注意:本接口需要启用 **工程管理 \> 下载工程** 权限,没有权限调用将始终 `throw Error`
11103
13049
  * @param projectUuid - 工程 UUID
11104
13050
  * @param fileName - 文件名
11105
13051
  * @param password - 加密密码
@@ -11110,7 +13056,10 @@ declare class SYS_FileManager {
11110
13056
  * 使用器件 UUID 获取器件文件
11111
13057
  *
11112
13058
  * @public
11113
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13059
+ * @remarks
13060
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13061
+ *
13062
+ * 注意:本接口需要启用 **团队库 \> 下载库** 权限,没有权限调用将始终 `throw Error`
11114
13063
  * @param deviceUuid - 器件 UUID 或器件 UUID 列表
11115
13064
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
11116
13065
  * @returns 器件文件数据,`undefined` 表示数据获取失败
@@ -11121,7 +13070,10 @@ declare class SYS_FileManager {
11121
13070
  * 使用封装 UUID 获取封装文件
11122
13071
  *
11123
13072
  * @beta
11124
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13073
+ * @remarks
13074
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13075
+ *
13076
+ * 注意:本接口需要启用 **团队库 \> 下载库** 权限,没有权限调用将始终 `throw Error`
11125
13077
  * @param footprintUuid - 封装 UUID 或封装 UUID 列表
11126
13078
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
11127
13079
  * @returns 封装文件数据,`undefined` 表示数据获取失败
@@ -11131,7 +13083,10 @@ declare class SYS_FileManager {
11131
13083
  * 使用复用模块 UUID 获取复用模块文件
11132
13084
  *
11133
13085
  * @beta
11134
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13086
+ * @remarks
13087
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13088
+ *
13089
+ * 注意:本接口需要启用 **团队模块 \> 下载模块** 权限,没有权限调用将始终 `throw Error`
11135
13090
  * @param cbbUuid - 复用模块 UUID
11136
13091
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
11137
13092
  * @param fileName - 复用模块名
@@ -11139,7 +13094,19 @@ declare class SYS_FileManager {
11139
13094
  * @returns 复用模块文件数据,`undefined` 表示数据获取失败
11140
13095
  */
11141
13096
  getCbbFileByCbbUuid(cbbUuid: string, libraryUuid?: string, cbbName?: string, password?: string): Promise<File | undefined>;
11142
- /* Excluded from this release type: getPanelLibraryFileByPanelLibraryUuid */
13097
+ /**
13098
+ * 使用面板库 UUID 获取面板库文件
13099
+ *
13100
+ * @beta
13101
+ * @remarks
13102
+ * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
13103
+ *
13104
+ * 注意:本接口需要启用 **团队库 \> 下载库** 权限,没有权限调用将始终 `throw Error`
13105
+ * @param panelLibraryUuid - 面板库 UUID 或面板库 UUID 列表
13106
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
13107
+ * @returns 面板库文件数据,`undefined` 表示数据获取失败
13108
+ */
13109
+ getPanelLibraryFileByPanelLibraryUuid(panelLibraryUuid: string | Array<string>, libraryUuid?: string): Promise<File | undefined>;
11143
13110
  }
11144
13111
 
11145
13112
  /**
@@ -11151,6 +13118,14 @@ declare class SYS_FileSystem {
11151
13118
  /** 扩展 UUID */
11152
13119
  private extensionUuid?;
11153
13120
  /* Excluded from this release type: __constructor */
13121
+ /**
13122
+ * 获取扩展内的文件
13123
+ *
13124
+ * @public
13125
+ * @param uri - 文件路径
13126
+ * @returns File 格式文件
13127
+ */
13128
+ getExtensionFile(uri: string): Promise<File | undefined>;
11154
13129
  /**
11155
13130
  * 打开读入文件窗口
11156
13131
  *
@@ -11546,7 +13521,7 @@ declare class SYS_PanelControl {
11546
13521
  */
11547
13522
  openRightPanel(tab?: ESYS_RightPanelTab): void;
11548
13523
  /**
11549
- * 关闭���侧面板
13524
+ * 关闭右侧面板
11550
13525
  *
11551
13526
  * @public
11552
13527
  */
@@ -11594,6 +13569,21 @@ declare class SYS_PanelControl {
11594
13569
  isBottomPanelLocked(): Promise<boolean>;
11595
13570
  }
11596
13571
 
13572
+ /**
13573
+ * 系统 / 设置类
13574
+ *
13575
+ * @public
13576
+ */
13577
+ declare class SYS_Setting {
13578
+ /**
13579
+ * 全局恢复默认设置
13580
+ *
13581
+ * @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
13582
+ * @returns 操作是否成功
13583
+ */
13584
+ restoreDefault(): Promise<boolean>;
13585
+ }
13586
+
11597
13587
  /**
11598
13588
  * 系统 / 快捷键类
11599
13589
  *
@@ -11787,6 +13777,15 @@ declare class SYS_ToastMessage {
11787
13777
  showMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
11788
13778
  }
11789
13779
 
13780
+ /**
13781
+ * 系统 / 工具类
13782
+ *
13783
+ * @public
13784
+ */
13785
+ declare class SYS_Tool {
13786
+ /* Excluded from this release type: netlistComparison */
13787
+ }
13788
+
11790
13789
  /**
11791
13790
  * 系统 / 单位类
11792
13791
  *
@@ -12266,12 +14265,4 @@ declare type TPCB_PrimitiveSpecialPadShape = Array<[number, number, TPCB_Primiti
12266
14265
  */
12267
14266
  declare type TShortcutKeys = Array<'SHIFT' | 'LEFT_SHIFT' | 'RIGHT_SHIFT' | 'FN' | 'ALT' | 'LEFT_ALT' | 'RIGHT_ALT' | 'CONTROL' | 'LEFT_CONTROL' | 'RIGHT_CONTROL' | 'COMMAND' | 'WIN' | 'OPTION' | 'SUPER' | 'TAB' | 'SPACE' | 'UP' | 'DOWN' | 'LEFT' | 'RIGHT' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'F13' | 'F14' | 'F15' | 'F16' | 'F17' | 'F18' | 'F19' | 'F20' | '`' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0' | '-' | '=' | 'Q' | 'W' | 'E' | 'R' | 'T' | 'Y' | 'U' | 'I' | 'O' | 'P' | '[' | ']' | 'A' | 'S' | 'D' | 'F' | 'G' | 'H' | 'J' | 'K' | 'L' | ';' | "'" | '\\' | 'Z' | 'X' | 'C' | 'V' | 'B' | 'N' | 'M' | ',' | '.' | '/'>;
12268
14267
 
12269
- declare interface WireNetGroupCreateOptions {
12270
- line: Array<number> | Array<Array<number>>;
12271
- net: string;
12272
- color: string | null;
12273
- lineWidth: number | null;
12274
- lineType: number | null;
12275
- }
12276
-
12277
14268