@jlceda/pro-api-types 0.2.27 → 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 +35 -32
  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 - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
@@ -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
  * // 从文件选择器读取模板文件
@@ -5989,7 +5989,7 @@ declare global {
5989
5989
  */
5990
5990
  unhighlightNet(net: string): Promise<boolean>;
5991
5991
  /**
5992
- * 取消高亮��有网络
5992
+ * 取消高亮所���网络
5993
5993
  *
5994
5994
  * @beta
5995
5995
  * @returns 操作是否成功
@@ -7125,7 +7125,7 @@ declare global {
7125
7125
  * 获取文本
7126
7126
  *
7127
7127
  * @alpha
7128
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的��元对象
7128
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图���对象
7129
7129
  * @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7130
7130
  * @returns 文本图元对象,空数组表示获取失败
7131
7131
  */
@@ -8882,7 +8882,7 @@ declare global {
8882
8882
  */
8883
8883
  getState_Polygon(): IPCB_Polygon;
8884
8884
  /**
8885
- * ��取属性状态:线宽
8885
+ * 获���属性状态:线宽
8886
8886
  *
8887
8887
  * @public
8888
8888
  * @returns 线宽
@@ -9974,7 +9974,7 @@ declare global {
9974
9974
  * 将异步图元重置为当前画布状态
9975
9975
  *
9976
9976
  * @internal
9977
- * @remarks 本器件焊盘图元属性不支持修改,本接口调用将不会有任何效果
9977
+ * @remarks 本器件焊盘图元属性不支持修��,本接口调用将不会有任何效果
9978
9978
  * @returns 器件焊盘图元对象
9979
9979
  */
9980
9980
  reset(): Promise<IPCB_PrimitiveComponentPad>;
@@ -11056,7 +11056,7 @@ declare global {
11056
11056
  * 获取属性状态:图元类型
11057
11057
  *
11058
11058
  * @public
11059
- * @returns 图元类���
11059
+ * @returns 图元类型
11060
11060
  */
11061
11061
  getState_PrimitiveType(): EPCB_PrimitiveType;
11062
11062
  /**
@@ -14415,7 +14415,7 @@ declare global {
14415
14415
  *
14416
14416
  * @public
14417
14417
  * @remarks
14418
- * 器件引脚图元是一个特��的图元,它指的是在原理图画布上关联到符号的引脚
14418
+ * 器件引脚图元是一个特殊���图元,它指的是在原理图画布上关联到符号的引脚
14419
14419
  *
14420
14420
  * 器件引脚图元仅可更改 `pinNumber`、`noConnected` 属性,其它所有属性均为只读,
14421
14421
  * 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
@@ -17473,13 +17473,13 @@ declare global {
17473
17473
 
17474
17474
  interface ButtonProps {
17475
17475
  text?: string;
17476
- disable?: boolean;
17476
+ disabled?: boolean;
17477
17477
  type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
17478
17478
  width?: number | 'responsive';
17479
17479
  icon?: IconProps;
17480
17480
  onClick?: () => void;
17481
17481
  }
17482
- 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;
17483
17483
 
17484
17484
  interface ListChildren$1 {
17485
17485
  title: string;
@@ -17492,7 +17492,7 @@ declare global {
17492
17492
  width?: number;
17493
17493
  disabled?: boolean;
17494
17494
  readonly?: boolean;
17495
- clearBtn?: boolean | 'keepAlive';
17495
+ clearBtn?: boolean;
17496
17496
  clickBtn?: boolean;
17497
17497
  dropDownList?: ListChildren$1[];
17498
17498
  searchBtn?: boolean;
@@ -17529,11 +17529,12 @@ declare global {
17529
17529
  color?: string;
17530
17530
  padding?: number[];
17531
17531
  margin?: number[];
17532
- width?: number;
17533
- height?: number;
17532
+ width?: number | '100%';
17533
+ height?: number | '100%';
17534
17534
  rotate?: number;
17535
17535
  cursor?: 'pointer' | 'default' | 'none' | 'move' | 'text';
17536
17536
  invisible?: boolean;
17537
+ display?: string;
17537
17538
  }
17538
17539
 
17539
17540
  interface FlexProps extends ContainerStyleProps {
@@ -17634,32 +17635,34 @@ declare global {
17634
17635
  function TextArea({ disabled, value, width, height, resizable, placeholder, name, onChange, }: TextAreaProps): react_jsx_runtime.JSX.Element;
17635
17636
 
17636
17637
  interface ModalProps {
17637
- defaultTop: number;
17638
- defaultLeft: number;
17639
- defaultWidth: number;
17640
- defaultHeight: number;
17638
+ top: number;
17639
+ left: number;
17640
+ width: number;
17641
+ height: number;
17642
+ overlay?: boolean;
17641
17643
  maxDragX?: number;
17642
17644
  maxDragY?: number;
17643
17645
  hide?: boolean;
17644
17646
  children?: React$1.ReactNode;
17645
17647
  onMoved?: (top: number, left: number) => void;
17646
17648
  }
17647
- 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;
17648
17650
 
17649
- interface DialogButtonProps {
17650
- text: string;
17651
- icon?: IconProps;
17652
- width?: number;
17653
- onClick?: () => void;
17654
- type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
17655
- }
17656
17651
  interface DialogProps {
17657
17652
  title: string;
17658
- 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[];
17659
17662
  onClose?: () => void;
17660
17663
  children?: React$1.ReactNode;
17661
17664
  }
17662
- function Dialog({ title, buttons, onClose, children }: DialogProps): react_jsx_runtime.JSX.Element;
17665
+ function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
17663
17666
 
17664
17667
  interface SelectListItem {
17665
17668
  title: string;
@@ -18066,7 +18069,7 @@ declare global {
18066
18069
  *
18067
18070
  * @beta
18068
18071
  * @param options -
18069
- * 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
18072
+ * 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值���列表的第一项;
18070
18073
  *
18071
18074
  * 如若为字符串数组,则选项的值和选项的展示内容将保持一致;
18072
18075
  *
@@ -18439,7 +18442,7 @@ declare global {
18439
18442
  /**
18440
18443
  * 转换 T/DISA 4001 库到单个嘉立创库文件
18441
18444
  *
18442
- * @alpha
18445
+ * @beta
18443
18446
  * @param file - T/DISA 4001 库文件
18444
18447
  * @returns 嘉立创库文件
18445
18448
  */
@@ -18447,7 +18450,7 @@ declare global {
18447
18450
  /**
18448
18451
  * 转换 T/DISA 4001 库到多个嘉立创库文件(每个器件一个文件)
18449
18452
  *
18450
- * @alpha
18453
+ * @beta
18451
18454
  * @param file - T/DISA 4001 库文件
18452
18455
  * @returns 多个嘉立创库文件
18453
18456
  */
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.27", "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" } }