@jlceda/pro-api-types 0.2.26 → 0.2.28

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 +347 -39
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -960,7 +960,7 @@ declare global {
960
960
  * @beta
961
961
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
962
962
  * @param libraryType - 库类型,支持符号和封装
963
- * @param uuid - 符号、��装 UUID
963
+ * @param uuid - 符号、封��� UUID
964
964
  * @param splitScreenId - 分屏 ID,即 {@link DMT_EditorControl.getSplitScreenTree} 方法获取到的 {@link IDMT_EditorSplitScreenItem.id}
965
965
  * @returns 标签页 ID,如若为 `undefined`,则打开文档失败
966
966
  */
@@ -1392,7 +1392,7 @@ declare global {
1392
1392
  * @beta
1393
1393
  * @param projectFriendlyName - 工程友好名称
1394
1394
  * @param projectName - 工程名称,不可重复,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
1395
- * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
1395
+ * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团�� UUID
1396
1396
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
1397
1397
  * @param description - 工程描述
1398
1398
  * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
@@ -2331,7 +2331,7 @@ declare global {
2331
2331
  *
2332
2332
  * @alpha
2333
2333
  * @remarks
2334
- * 注意:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
2334
+ * 注意:本接口仅全离线客户端有效,在浏览器环境内调用将始终 `throw Error`
2335
2335
  * @param properties - 属性
2336
2336
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
2337
2337
  * @param classification - 分类,默认为全部
@@ -3361,7 +3361,7 @@ declare global {
3361
3361
  * 即 `setCanvasOrigin(0, 0)`;
3362
3362
  *
3363
3363
  * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
3364
- * @param offsetX - 画布原点相对于数���原点的 X 坐标偏移
3364
+ * @param offsetX - 画布原点相对于数据原点的 X 坐标偏移
3365
3365
  * @param offsetY - 画布原点相对于数据原点的 Y 坐标偏移
3366
3366
  * @returns 操作是否成功
3367
3367
  */
@@ -5120,7 +5120,7 @@ declare global {
5120
5120
  * @beta
5121
5121
  * @param templateFile - BOM 模板文件
5122
5122
  * @param template - BOM 模板名称,如若为 `undefined` 则自动从 `templateFile` 中取值
5123
- * @returns BOM 模板名称
5123
+ * @returns BOM 模板��称
5124
5124
  * @example
5125
5125
  * ```javascript
5126
5126
  * // 从文件选择器读取模板文件
@@ -5440,6 +5440,15 @@ declare global {
5440
5440
  * ```
5441
5441
  */
5442
5442
  getAutoRouteJsonFile(fileName?: string): Promise<File | undefined>;
5443
+ /**
5444
+ * 获取 JRouter 专用自动布线文件(JSON)
5445
+ *
5446
+ * @beta
5447
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
5448
+ * @param fileName - 文件名
5449
+ * @returns 自动布线 JSON 文件数据
5450
+ */
5451
+ getAutoRouteJsonFileForJRouter(fileName?: string): Promise<File | undefined>;
5443
5452
  /**
5444
5453
  * 获取自动布局文件(JSON)
5445
5454
  *
@@ -5528,7 +5537,7 @@ declare global {
5528
5537
  * @remarks 本接口暂时只支持交互式检查,入参暂无作用,预留后续开发
5529
5538
  * @param interactive - 是否启用交互式检查
5530
5539
  *
5531
- * 如���启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
5540
+ * 如若启用,则会存在弹窗等待用户进行交互,且无法使用 `ignoreWarning` 参数忽略警告,
5532
5541
  * 即 `ignoreWarning` 参数将被忽略;
5533
5542
  *
5534
5543
  * 如若禁用,则在调用后不会有任何 EDA 内部弹窗,程序执行静默检查,
@@ -5980,7 +5989,7 @@ declare global {
5980
5989
  */
5981
5990
  unhighlightNet(net: string): Promise<boolean>;
5982
5991
  /**
5983
- * 取消高亮所有网络
5992
+ * 取消高亮所���网络
5984
5993
  *
5985
5994
  * @beta
5986
5995
  * @returns 操作是否成功
@@ -5998,7 +6007,7 @@ declare global {
5998
6007
  * 更新网表
5999
6008
  *
6000
6009
  * @public
6001
- * @param type - ��表格式
6010
+ * @param type - 网表格式
6002
6011
  * @param netlist - 网表数据
6003
6012
  */
6004
6013
  setNetlist(type: ESYS_NetlistType | undefined, netlist: string): Promise<boolean>;
@@ -7116,7 +7125,7 @@ declare global {
7116
7125
  * 获取文本
7117
7126
  *
7118
7127
  * @alpha
7119
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
7128
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图���对象
7120
7129
  * @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7121
7130
  * @returns 文本图元对象,空数组表示获取失败
7122
7131
  */
@@ -8873,7 +8882,7 @@ declare global {
8873
8882
  */
8874
8883
  getState_Polygon(): IPCB_Polygon;
8875
8884
  /**
8876
- * 获取属性状态:线宽
8885
+ * 获���属性状态:线宽
8877
8886
  *
8878
8887
  * @public
8879
8888
  * @returns 线宽
@@ -9965,7 +9974,7 @@ declare global {
9965
9974
  * 将异步图元重置为当前画布状态
9966
9975
  *
9967
9976
  * @internal
9968
- * @remarks 本器件焊盘图元属性不支持修改,本接口调用将不会有任何效果
9977
+ * @remarks 本器件焊盘图元属性不支持修��,本接口调用将不会有任何效果
9969
9978
  * @returns 器件焊盘图元对象
9970
9979
  */
9971
9980
  reset(): Promise<IPCB_PrimitiveComponentPad>;
@@ -11065,7 +11074,7 @@ declare global {
11065
11074
  */
11066
11075
  getState_X(): number;
11067
11076
  /**
11068
- * ��取属性状态:BBox 左上点坐标 Y
11077
+ * 获取属性状态:BBox 左上点坐标 Y
11069
11078
  *
11070
11079
  * @public
11071
11080
  * @returns BBox 左上点坐标 Y
@@ -13235,7 +13244,7 @@ declare global {
13235
13244
  */
13236
13245
  getState_PrimitiveType(): ESCH_PrimitiveType;
13237
13246
  /**
13238
- * 获取属性���态:图元 ID
13247
+ * 获取属性状态:图元 ID
13239
13248
  *
13240
13249
  * @public
13241
13250
  * @returns 图元 ID
@@ -14406,7 +14415,7 @@ declare global {
14406
14415
  *
14407
14416
  * @public
14408
14417
  * @remarks
14409
- * 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
14418
+ * 器件引脚图元是一个特殊���图元,它指的是在原理图画布上关联到符号的引脚
14410
14419
  *
14411
14420
  * 器件引脚图元仅可更改 `pinNumber`、`noConnected` 属性,其它所有属性均为只读,
14412
14421
  * 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
@@ -16156,6 +16165,301 @@ declare global {
16156
16165
  private setState_CbbSymbol;
16157
16166
  }
16158
16167
 
16168
+ /**
16169
+ * 原理图 & 符号 / 二进制内嵌对象图元类
16170
+ *
16171
+ * @public
16172
+ */
16173
+ class SCH_PrimitiveObject implements ISCH_PrimitiveAPI {
16174
+ /**
16175
+ * 创建二进制内嵌对象
16176
+ *
16177
+ * @alpha
16178
+ * @param startX - 起点坐标 X
16179
+ * @param startY - 起点坐标 Y
16180
+ * @param width - 宽
16181
+ * @param height - 高
16182
+ * @param rotation - 旋转角度
16183
+ * @param mirror - 是否镜像
16184
+ * @param fileName - 文件名称
16185
+ * @param content - 对象内容
16186
+ * @returns 二进制内嵌对象图元对象
16187
+ */
16188
+ create(content: File | string, startX: number, startY: number, width?: number, height?: number, rotation?: number, mirror?: boolean, fileName?: string): Promise<ISCH_PrimitiveObject | undefined>;
16189
+ /**
16190
+ * 删除二进制内嵌对象
16191
+ *
16192
+ * @alpha
16193
+ * @param primitiveIds - 二进制内嵌对象的图元 ID 或二进制内嵌对象图元对象
16194
+ * @returns 删除操作是否成功
16195
+ */
16196
+ delete(primitiveIds: string | ISCH_PrimitiveObject | Array<string> | Array<ISCH_PrimitiveObject>): Promise<boolean>;
16197
+ /**
16198
+ * 修改二进制内嵌对象
16199
+ *
16200
+ * @alpha
16201
+ * @param primitiveId - 图元 ID
16202
+ * @param property - 修改参数
16203
+ * @returns 二进制内嵌对象图元对象,`undefined` 表示修改失败
16204
+ */
16205
+ modify(primitiveId: string | ISCH_PrimitiveObject, property: {
16206
+ content?: File | string;
16207
+ startX?: number;
16208
+ startY?: number;
16209
+ width?: number;
16210
+ height?: number;
16211
+ rotation?: number;
16212
+ mirror?: boolean;
16213
+ fileName?: string;
16214
+ }): Promise<ISCH_PrimitiveObject | undefined>;
16215
+ /**
16216
+ * 获取二进制内嵌对象
16217
+ *
16218
+ * @alpha
16219
+ * @param primitiveIds - 二进制内嵌对象的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
16220
+ * @returns 二进制内嵌对象图元对象,`undefined` 表示获取失败
16221
+ */
16222
+ get(primitiveIds: string): Promise<ISCH_PrimitiveObject | undefined>;
16223
+ /**
16224
+ * 获取二进制内嵌对象
16225
+ *
16226
+ * @alpha
16227
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
16228
+ * @param primitiveIds - 二进制内嵌对象的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
16229
+ * @returns 二进制内嵌对象图元对象,空数组表示获取失败
16230
+ */
16231
+ get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveObject>>;
16232
+ /**
16233
+ * 获取所有二进制内嵌对象的图元 ID
16234
+ *
16235
+ * @alpha
16236
+ * @returns 二进制内嵌对象的图元 ID 数组
16237
+ */
16238
+ getAllPrimitiveId(): Promise<Array<string>>;
16239
+ /**
16240
+ * 获取所有二进制内嵌对象
16241
+ *
16242
+ * @alpha
16243
+ * @returns 二进制内嵌对象图元对象数组
16244
+ */
16245
+ getAll(): Promise<Array<ISCH_PrimitiveObject>>;
16246
+ }
16247
+ /**
16248
+ * 二进制内嵌对象图元
16249
+ *
16250
+ * @public
16251
+ */
16252
+ class ISCH_PrimitiveObject implements ISCH_Primitive {
16253
+ /** 异步 */
16254
+ private async;
16255
+ /** 图元类型 */
16256
+ private readonly primitiveType;
16257
+ /** 图元 ID */
16258
+ private primitiveId?;
16259
+ /** 对象内容 */
16260
+ private content;
16261
+ /** 起点坐标 X */
16262
+ private startX;
16263
+ /** 起点坐标 Y */
16264
+ private startY;
16265
+ /** 宽度 */
16266
+ private width;
16267
+ /** 高度 */
16268
+ private height;
16269
+ /** 旋转角度 */
16270
+ private rotation;
16271
+ /** 是否镜像 */
16272
+ private mirror;
16273
+ /** 文件名称 */
16274
+ private fileName;
16275
+ /** @internal */
16276
+ constructor(content: File | string, startX: number, startY: number, width?: number, height?: number, rotation?: number, mirror?: boolean, fileName?: string, primitiveId?: string);
16277
+ /**
16278
+ * 在原理图画布中创建图元
16279
+ *
16280
+ * @internal
16281
+ * @returns 二进制内嵌对象图元对象
16282
+ */
16283
+ create(): Promise<ISCH_PrimitiveObject>;
16284
+ /**
16285
+ * 将 File 对象转换为 base64 字符串
16286
+ *
16287
+ * @internal
16288
+ * @param file - File 对象
16289
+ * @returns base64 字符串
16290
+ */
16291
+ private fileToBase64;
16292
+ /**
16293
+ * 获取属性状态:图元类型
16294
+ *
16295
+ * @public
16296
+ * @returns 图元类型
16297
+ */
16298
+ getState_PrimitiveType(): ESCH_PrimitiveType;
16299
+ /**
16300
+ * 获取属性状态:图元 ID
16301
+ *
16302
+ * @public
16303
+ * @returns 图元 ID
16304
+ */
16305
+ getState_PrimitiveId(): string;
16306
+ /**
16307
+ * 获取属性状态:对象内容
16308
+ *
16309
+ * @public
16310
+ * @returns 对象内容
16311
+ */
16312
+ getState_Content(): File | string;
16313
+ /**
16314
+ * 获取属性状态:坐标 X
16315
+ *
16316
+ * @public
16317
+ * @returns 坐标 X
16318
+ */
16319
+ getState_StartX(): number;
16320
+ /**
16321
+ * 获取属性状态:坐标 Y
16322
+ *
16323
+ * @public
16324
+ * @returns 坐标 Y
16325
+ */
16326
+ getState_StartY(): number;
16327
+ /**
16328
+ * 获取属性状态:宽度
16329
+ *
16330
+ * @public
16331
+ * @returns 宽度
16332
+ */
16333
+ getState_Width(): number;
16334
+ /**
16335
+ * 获取属性状态:高度
16336
+ *
16337
+ * @public
16338
+ * @returns 高度
16339
+ */
16340
+ getState_Height(): number;
16341
+ /**
16342
+ * 获取属性状态:旋转角度
16343
+ *
16344
+ * @public
16345
+ * @returns 旋转角度
16346
+ */
16347
+ getState_Rotation(): number;
16348
+ /**
16349
+ * 获取属性状态:是否镜像
16350
+ *
16351
+ * @public
16352
+ * @returns 是否镜像
16353
+ */
16354
+ getState_Mirror(): boolean;
16355
+ /**
16356
+ * 获取属性状态:文件名称
16357
+ *
16358
+ * @public
16359
+ * @returns 文件名称
16360
+ */
16361
+ getState_FileName(): string;
16362
+ /**
16363
+ * 设置属性状态:对象内容
16364
+ *
16365
+ * @beta
16366
+ * @param content - 对象内容
16367
+ * @returns 二进制内嵌对象图元对象
16368
+ */
16369
+ setState_Content(content: File | string): ISCH_PrimitiveObject;
16370
+ /**
16371
+ * 设置属性状态:起点坐标 X
16372
+ *
16373
+ * @beta
16374
+ * @param startX - 起点坐标 X
16375
+ * @returns 二进制内嵌对象图元对象
16376
+ */
16377
+ setState_StartX(startX: number): ISCH_PrimitiveObject;
16378
+ /**
16379
+ * 设置属性状态:起点坐标 Y
16380
+ *
16381
+ * @beta
16382
+ * @param startY - 起点坐标 Y
16383
+ * @returns 二进制内嵌对象图元对象
16384
+ */
16385
+ setState_StartY(startY: number): ISCH_PrimitiveObject;
16386
+ /**
16387
+ * 设置属性状态:宽度
16388
+ *
16389
+ * @beta
16390
+ * @param width - 宽度
16391
+ * @returns 二进制内嵌对象图元对象
16392
+ */
16393
+ setState_Width(width: number): ISCH_PrimitiveObject;
16394
+ /**
16395
+ * 设置属性状态:高度
16396
+ *
16397
+ * @beta
16398
+ * @param height - 高度
16399
+ * @returns 二进制内嵌对象图元对象
16400
+ */
16401
+ setState_Height(height: number): ISCH_PrimitiveObject;
16402
+ /**
16403
+ * 设置属性状态:旋转角度
16404
+ *
16405
+ * @beta
16406
+ * @param rotation - 旋转角度
16407
+ * @returns 二进制内嵌对象图元对象
16408
+ */
16409
+ setState_Rotation(rotation: number): ISCH_PrimitiveObject;
16410
+ /**
16411
+ * 设置属性状态:是否镜像
16412
+ *
16413
+ * @beta
16414
+ * @param mirror - 是否镜像
16415
+ * @returns 二进制内嵌对象图元对象
16416
+ */
16417
+ setState_Mirror(mirror: boolean): ISCH_PrimitiveObject;
16418
+ /**
16419
+ * 设置属性状态:文件名称
16420
+ *
16421
+ * @beta
16422
+ * @param fileName - 文件名称
16423
+ * @returns 二进制内嵌对象图元对象
16424
+ */
16425
+ setState_FileName(fileName: string): ISCH_PrimitiveObject;
16426
+ /**
16427
+ * 将图元转换为异步图元
16428
+ *
16429
+ * @public
16430
+ * @returns 二进制内嵌对象图元对象
16431
+ */
16432
+ toAsync(): ISCH_PrimitiveObject;
16433
+ /**
16434
+ * 将图元转换为同步图元
16435
+ *
16436
+ * @public
16437
+ * @returns 二进制内嵌对象图元对象
16438
+ */
16439
+ toSync(): ISCH_PrimitiveObject;
16440
+ /**
16441
+ * 查询图元是否为异步图元
16442
+ *
16443
+ * @public
16444
+ * @returns 是否为异步图元
16445
+ */
16446
+ isAsync(): boolean;
16447
+ /**
16448
+ * 将异步图元重置为当前画布状态
16449
+ *
16450
+ * @alpha
16451
+ * @returns 二进制内嵌对象图元对象
16452
+ */
16453
+ reset(): Promise<ISCH_PrimitiveObject>;
16454
+ /**
16455
+ * 将对图元的更改应用到画布
16456
+ *
16457
+ * @alpha
16458
+ * @returns 二进制内嵌对象图元对象
16459
+ */
16460
+ done(): Promise<ISCH_PrimitiveObject>;
16461
+ }
16462
+
16159
16463
  /**
16160
16464
  * 原理图 & 符号 / 多边形(折线)图元类
16161
16465
  *
@@ -17169,13 +17473,13 @@ declare global {
17169
17473
 
17170
17474
  interface ButtonProps {
17171
17475
  text?: string;
17172
- disable?: boolean;
17476
+ disabled?: boolean;
17173
17477
  type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
17174
17478
  width?: number | 'responsive';
17175
17479
  icon?: IconProps;
17176
17480
  onClick?: () => void;
17177
17481
  }
17178
- function Button({ text, disable, type, width, icon, onClick, }: ButtonProps): react_jsx_runtime.JSX.Element;
17482
+ function Button({ text, disabled, type, width, icon, onClick, }: ButtonProps): react_jsx_runtime.JSX.Element;
17179
17483
 
17180
17484
  interface ListChildren$1 {
17181
17485
  title: string;
@@ -17188,7 +17492,7 @@ declare global {
17188
17492
  width?: number;
17189
17493
  disabled?: boolean;
17190
17494
  readonly?: boolean;
17191
- clearBtn?: boolean | 'keepAlive';
17495
+ clearBtn?: boolean;
17192
17496
  clickBtn?: boolean;
17193
17497
  dropDownList?: ListChildren$1[];
17194
17498
  searchBtn?: boolean;
@@ -17225,11 +17529,12 @@ declare global {
17225
17529
  color?: string;
17226
17530
  padding?: number[];
17227
17531
  margin?: number[];
17228
- width?: number;
17229
- height?: number;
17532
+ width?: number | '100%';
17533
+ height?: number | '100%';
17230
17534
  rotate?: number;
17231
17535
  cursor?: 'pointer' | 'default' | 'none' | 'move' | 'text';
17232
17536
  invisible?: boolean;
17537
+ display?: string;
17233
17538
  }
17234
17539
 
17235
17540
  interface FlexProps extends ContainerStyleProps {
@@ -17330,32 +17635,34 @@ declare global {
17330
17635
  function TextArea({ disabled, value, width, height, resizable, placeholder, name, onChange, }: TextAreaProps): react_jsx_runtime.JSX.Element;
17331
17636
 
17332
17637
  interface ModalProps {
17333
- defaultTop: number;
17334
- defaultLeft: number;
17335
- defaultWidth: number;
17336
- defaultHeight: number;
17638
+ top: number;
17639
+ left: number;
17640
+ width: number;
17641
+ height: number;
17642
+ overlay?: boolean;
17337
17643
  maxDragX?: number;
17338
17644
  maxDragY?: number;
17339
17645
  hide?: boolean;
17340
17646
  children?: React$1.ReactNode;
17341
17647
  onMoved?: (top: number, left: number) => void;
17342
17648
  }
17343
- function Modal({ defaultTop, defaultLeft, defaultWidth, defaultHeight, maxDragX, maxDragY, hide, children, onMoved, }: ModalProps): react_jsx_runtime.JSX.Element;
17649
+ function Modal({ top, left, width, height, maxDragX, maxDragY, hide, overlay, children, onMoved, }: ModalProps): react_jsx_runtime.JSX.Element;
17344
17650
 
17345
- interface DialogButtonProps {
17346
- text: string;
17347
- icon?: IconProps;
17348
- width?: number;
17349
- onClick?: () => void;
17350
- type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
17351
- }
17352
17651
  interface DialogProps {
17353
17652
  title: string;
17354
- buttons?: DialogButtonProps[];
17653
+ width?: number;
17654
+ height?: number;
17655
+ left?: number;
17656
+ top?: number;
17657
+ hide?: boolean;
17658
+ overlay?: boolean;
17659
+ maxDragY?: number;
17660
+ modal?: boolean;
17661
+ buttons?: ButtonProps[];
17355
17662
  onClose?: () => void;
17356
17663
  children?: React$1.ReactNode;
17357
17664
  }
17358
- function Dialog({ title, buttons, onClose, children }: DialogProps): react_jsx_runtime.JSX.Element;
17665
+ function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
17359
17666
 
17360
17667
  interface SelectListItem {
17361
17668
  title: string;
@@ -17762,7 +18069,7 @@ declare global {
17762
18069
  *
17763
18070
  * @beta
17764
18071
  * @param options -
17765
- * 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
18072
+ * 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值���列表的第一项;
17766
18073
  *
17767
18074
  * 如若为字符串数组,则选项的值和选项的展示内容将保持一致;
17768
18075
  *
@@ -18011,7 +18318,7 @@ declare global {
18011
18318
  */
18012
18319
  listFilesOfFileSystem(folderPath: string, recursive?: boolean): Promise<Array<ISYS_FileSystemFileList>>;
18013
18320
  /**
18014
- * 删除文件系统内���文件
18321
+ * 删除文件系统内的文件
18015
18322
  *
18016
18323
  * @beta
18017
18324
  * @remarks
@@ -18069,7 +18376,7 @@ declare global {
18069
18376
  *
18070
18377
  * @beta
18071
18378
  * @remarks
18072
- * 注意 1:本接口仅离线客户端有效,在浏览器环境内调用将始终 `throw Error`
18379
+ * 注意 1:本接口仅半、全离线客户端有效,在浏览器环境内调用将始终 `throw Error`
18073
18380
  *
18074
18381
  * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
18075
18382
  * @returns 工程目录路径数组
@@ -18135,7 +18442,7 @@ declare global {
18135
18442
  /**
18136
18443
  * 转换 T/DISA 4001 库到单个嘉立创库文件
18137
18444
  *
18138
- * @alpha
18445
+ * @beta
18139
18446
  * @param file - T/DISA 4001 库文件
18140
18447
  * @returns 嘉立创库文件
18141
18448
  */
@@ -18143,7 +18450,7 @@ declare global {
18143
18450
  /**
18144
18451
  * 转换 T/DISA 4001 库到多个嘉立创库文件(每个器件一个文件)
18145
18452
  *
18146
- * @alpha
18453
+ * @beta
18147
18454
  * @param file - T/DISA 4001 库文件
18148
18455
  * @returns 多个嘉立创库文件
18149
18456
  */
@@ -19535,7 +19842,7 @@ declare global {
19535
19842
  *
19536
19843
  * @beta
19537
19844
  * @param netlist1 - 网表 1,可以为:①当前工程内的原理图、PCB 的 UUID;②其它工程的工程 UUID 和原理图、PCB UUID;③原理图、PCB 文件数据
19538
- * @param netlist2 - ���表 2,可以为:①当前工程内的原理图、PCB 的 UUID;②其它工程的工程 UUID 和原理图、PCB UUID;③原理图、PCB 文件数据
19845
+ * @param netlist2 - 网表 2,可以为:①当前工程内的原理图、PCB 的 UUID;②其它工程的工程 UUID 和原理图、PCB UUID;③原理图、PCB 文件数据
19539
19846
  * @returns 网表对比结果
19540
19847
  */
19541
19848
  netlistComparison(netlist1: string | {
@@ -19838,6 +20145,7 @@ declare global {
19838
20145
  sch_SelectControl: SCH_SelectControl;
19839
20146
  sch_SimulationEngine: SCH_SimulationEngine;
19840
20147
  sch_Utils: SCH_Utils;
20148
+ sch_PrimitiveObject: SCH_PrimitiveObject;
19841
20149
  sys_ClientUrl: SYS_ClientUrl;
19842
20150
  sys_Dialog: SYS_Dialog;
19843
20151
  sys_Environment: SYS_Environment;
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.26", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }
1
+ { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.28", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }