@jlceda/pro-api-types 0.1.159 → 0.1.160

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 +15 -9
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -10038,7 +10038,13 @@ declare class PCB_Document {
10038
10038
  /* Excluded from this release type: navigateToRegion */
10039
10039
  /* Excluded from this release type: getPrimitiveAtPoint */
10040
10040
  /* Excluded from this release type: getPrimitivesInRegion */
10041
- /* Excluded from this release type: zoomToBoardOutline */
10041
+ /**
10042
+ * 缩放到板框(适应板框)
10043
+ *
10044
+ * @beta
10045
+ * @returns 操作是否成功
10046
+ */
10047
+ zoomToBoardOutline(): Promise<boolean>;
10042
10048
  }
10043
10049
 
10044
10050
  /**
@@ -11549,7 +11555,7 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
11549
11555
  */
11550
11556
  create(x: number, y: number, complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | IPCB_ComplexPolygon, layer: TPCB_LayersOfImage, width?: number, height?: number, rotation?: number, horizonMirror?: boolean, primitiveLock?: boolean): Promise<IPCB_PrimitiveImage | undefined>;
11551
11557
  /**
11552
- * 删除图像
11558
+ * 删��图像
11553
11559
  *
11554
11560
  * @beta
11555
11561
  * @param primitiveIds - 图像的图元 ID 或图像图元对象
@@ -11954,7 +11960,7 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
11954
11960
  * @beta
11955
11961
  * @param net - 网络名称
11956
11962
  * @param layer - 层
11957
- * @param primitiveLock - 是否锁定
11963
+ * @param primitiveLock - 是��锁定
11958
11964
  * @returns 折线的图元 ID 数组
11959
11965
  */
11960
11966
  getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<string>>;
@@ -12396,7 +12402,7 @@ declare class SCH_Event {
12396
12402
  * 新增鼠标事件监听
12397
12403
  *
12398
12404
  * @public
12399
- * @param id - 事件 ID,用以防止重��注册事件
12405
+ * @param id - 事件 ID,用以防止重复注册事件
12400
12406
  * @param eventType - 事件类型
12401
12407
  * @param callFn - 事件触发时的回调函数
12402
12408
  * @param onlyOnce - 是否仅监听一次
@@ -12769,7 +12775,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
12769
12775
  *
12770
12776
  * @beta
12771
12777
  * @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
12772
- * @returns 圆图元对象,`undefined` 表示获取失败
12778
+ * @returns 圆图元��象,`undefined` 表示获取失败
12773
12779
  */
12774
12780
  get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
12775
12781
  /**
@@ -13536,7 +13542,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
13536
13542
  *
13537
13543
  * @beta
13538
13544
  * @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
13539
- * @returns 矩形图元对象,`undefined` 表示获取失败
13545
+ * @returns 矩形图元���象,`undefined` 表示获取失败
13540
13546
  */
13541
13547
  get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
13542
13548
  /**
@@ -13919,7 +13925,7 @@ declare class SYS_Dialog {
13919
13925
  * @param beforeContent - 选择框上方文字
13920
13926
  * @param afterContent - 选择框下方文字
13921
13927
  * @param title - 选择框标题
13922
- * @param defaultOption - 默认选项,以选项的值作为匹配参数,如若 `multiple` 参数为 `true`,则此处需要传入字符串数���
13928
+ * @param defaultOption - 默认选项,以选���的值作为匹配参数,如若 `multiple` 参数为 `true`,则此处需要传入字符串数组
13923
13929
  * @param multiple - 是否支持多选,默认为单选框
13924
13930
  * @param callbackFn - 回调函数
13925
13931
  * @returns 用户选择的值,对应传入的 `options` 中的 `value` 字段
@@ -14265,7 +14271,7 @@ declare class SYS_FileSystem {
14265
14271
  * @remarks
14266
14272
  * 返回的路径中,结尾不包含斜杠 `/`(或反斜杠 `\`)
14267
14273
  *
14268
- * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14274
+ * 注意 1:本接口仅客户端有��,在浏览器环境内调用将始终 `throw Error`
14269
14275
  *
14270
14276
  * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14271
14277
  * @returns EDA 文档目录路径
@@ -14768,7 +14774,7 @@ declare class SYS_ShortcutKey {
14768
14774
  * @param shortcutKey - 快捷键,数组中包含多个元素则解析为组合快捷键,将按规则排序后存入缓存
14769
14775
  * @param title - 快捷键标题,快捷键的友好名称
14770
14776
  * @param callbackFn - 回调函数
14771
- * @returns 注册操作是否成功
14777
+ * @returns 注册���作是否成功
14772
14778
  */
14773
14779
  registerShortcutKey(shortcutKey: TSYS_ShortcutKeys, title: string, callbackFn: (shortcutKey: TSYS_ShortcutKeys) => void | Promise<void>, documentType?: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType>, scene?: Array<ESYS_ShortcutKeyEffectiveEditorScene>): Promise<boolean>;
14774
14780
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.159",
3
+ "version": "0.1.160",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [