@jlceda/pro-api-types 0.2.41 → 0.2.42
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.
- package/index.d.ts +26 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ declare global {
|
|
|
498
498
|
* 搜索符号
|
|
499
499
|
*
|
|
500
500
|
* @beta
|
|
501
|
-
* @param key -
|
|
501
|
+
* @param key - 搜索���键字
|
|
502
502
|
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
503
503
|
* @param classification - 分类,默认为全部
|
|
504
504
|
* @param symbolType - 符号类型,默认为全部
|
|
@@ -1872,7 +1872,7 @@ declare global {
|
|
|
1872
1872
|
*/
|
|
1873
1873
|
copy(modelUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex | Array<string>, newModelName?: string): Promise<string | undefined>;
|
|
1874
1874
|
/**
|
|
1875
|
-
*
|
|
1875
|
+
* ��索 3D 模型
|
|
1876
1876
|
*
|
|
1877
1877
|
* @beta
|
|
1878
1878
|
* @param key - 搜索关键字
|
|
@@ -4374,7 +4374,7 @@ declare global {
|
|
|
4374
4374
|
* 本接口在前端画布上定位到指定的区域,区域数据为相对于数据原点的偏移;
|
|
4375
4375
|
*
|
|
4376
4376
|
* 例如:传入数据为 `{left: 0, right: 60, top: 100, bottom: -20}` =\> `navigateToRegion(0, 60, 100, -20)`,
|
|
4377
|
-
* 则画布将会定位到以 `[30, 40]`
|
|
4377
|
+
* 则画布将会定位到以 `[30, 40]` 为��心的,`x` 轴方向长度为 `60`,`y` 轴方向长度为 `120` 的矩形范围;
|
|
4378
4378
|
*
|
|
4379
4379
|
* 本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
|
|
4380
4380
|
*
|
|
@@ -7669,7 +7669,7 @@ declare global {
|
|
|
7669
7669
|
*/
|
|
7670
7670
|
setState_Reverse(reverse: boolean): IPCB_PrimitiveString;
|
|
7671
7671
|
/**
|
|
7672
|
-
*
|
|
7672
|
+
* ���置属性状态:反相扩展
|
|
7673
7673
|
*
|
|
7674
7674
|
* @beta
|
|
7675
7675
|
* @param expansion - 反相扩展
|
|
@@ -11001,7 +11001,7 @@ declare global {
|
|
|
11001
11001
|
* 获取所有尺寸标注的图元 ID
|
|
11002
11002
|
*
|
|
11003
11003
|
* @beta
|
|
11004
|
-
* @param layer -
|
|
11004
|
+
* @param layer - 层
|
|
11005
11005
|
* @param primitiveLock - 是否锁定
|
|
11006
11006
|
* @returns 尺寸标注的图元 ID 数组
|
|
11007
11007
|
*/
|
|
@@ -12160,7 +12160,7 @@ declare global {
|
|
|
12160
12160
|
*
|
|
12161
12161
|
* 此处的单位跨度为 0.01inch
|
|
12162
12162
|
* @param x - 坐标 X
|
|
12163
|
-
* @param y -
|
|
12163
|
+
* @param y - ��标 Y
|
|
12164
12164
|
* @returns 操作是否成功
|
|
12165
12165
|
*/
|
|
12166
12166
|
navigateToCoordinates(x: number, y: number): Promise<boolean>;
|
|
@@ -12583,7 +12583,7 @@ declare global {
|
|
|
12583
12583
|
*
|
|
12584
12584
|
* 如果设置为 `true`,将会忽略所有检查警告项并尽可能生成下单资料;
|
|
12585
12585
|
*
|
|
12586
|
-
* 如果设置为 `false`,存在任意警告将中断执行并返回 `false`
|
|
12586
|
+
* 如果设置为 `false`,存在任意警告将中断执行并返回 `false` 的结��
|
|
12587
12587
|
* @returns 是否通过下单检查
|
|
12588
12588
|
*/
|
|
12589
12589
|
placeComponentsOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;
|
|
@@ -13915,6 +13915,12 @@ declare global {
|
|
|
13915
13915
|
* 总线图元
|
|
13916
13916
|
*
|
|
13917
13917
|
* @public
|
|
13918
|
+
* @remarks
|
|
13919
|
+
* 尚未解决的问题:
|
|
13920
|
+
*
|
|
13921
|
+
* `ISCH_PrimitiveWire.net` 全局网络名属性因其涉及多图页刷新,当前获取的值可能为 **错误** 的。
|
|
13922
|
+
* 当你尝试为一个导线、总线设置多个名称(放置多个网络标签)时,获取到的 `net` 属性可能并不是当前最新的,
|
|
13923
|
+
* 需要等待画布事件异步刷新全局网络后,再行获取。
|
|
13918
13924
|
*/
|
|
13919
13925
|
class ISCH_PrimitiveBus implements ISCH_Primitive {
|
|
13920
13926
|
/** 异步 */
|
|
@@ -15873,7 +15879,7 @@ declare global {
|
|
|
15873
15879
|
* @beta
|
|
15874
15880
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
15875
15881
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
15876
|
-
* @returns
|
|
15882
|
+
* @returns 器件图元对象,空数组表示获取失败
|
|
15877
15883
|
*/
|
|
15878
15884
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
15879
15885
|
/**
|
|
@@ -17018,7 +17024,7 @@ declare global {
|
|
|
17018
17024
|
* @param cornerRadius - 圆角半径
|
|
17019
17025
|
* @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
|
|
17020
17026
|
* @param color - 颜色,`null` 表示默认
|
|
17021
|
-
* @param fillColor - 填充颜色,`none`
|
|
17027
|
+
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
17022
17028
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
17023
17029
|
* @param lineType - 线型,`null` 表示默认
|
|
17024
17030
|
* @param fillStyle - 填充样式,`null` 表示默认
|
|
@@ -17431,6 +17437,12 @@ declare global {
|
|
|
17431
17437
|
* 导线图元
|
|
17432
17438
|
*
|
|
17433
17439
|
* @public
|
|
17440
|
+
* @remarks
|
|
17441
|
+
* 尚未解决的问题:
|
|
17442
|
+
*
|
|
17443
|
+
* `ISCH_PrimitiveWire.net` 全局网络名属性因其涉及多图页刷新,当前获取的值可能为 **错误** 的。
|
|
17444
|
+
* 当你尝试为一个导线、总线设置多个名称(放置多个网络标签)时,获取到的 `net` 属性可能并不是当前最新的,
|
|
17445
|
+
* 需要等待画布事件异步刷新全局网络后,再行获取。
|
|
17434
17446
|
*/
|
|
17435
17447
|
class ISCH_PrimitiveWire implements ISCH_Primitive {
|
|
17436
17448
|
/** 异步 */
|
|
@@ -17540,7 +17552,7 @@ declare global {
|
|
|
17540
17552
|
*/
|
|
17541
17553
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveWire;
|
|
17542
17554
|
/**
|
|
17543
|
-
*
|
|
17555
|
+
* 设置��性状态:线型
|
|
17544
17556
|
*
|
|
17545
17557
|
* @beta
|
|
17546
17558
|
* @param lineType - 线型
|
|
@@ -18091,7 +18103,7 @@ declare global {
|
|
|
18091
18103
|
*/
|
|
18092
18104
|
useEffect: (effect: () => undefined | (() => undefined), deps?: React.DependencyList) => void;
|
|
18093
18105
|
/**
|
|
18094
|
-
*
|
|
18106
|
+
* 创建并返回指定类型的新 React 元素
|
|
18095
18107
|
* @param type - 元素类型
|
|
18096
18108
|
* @param props - 元素属性
|
|
18097
18109
|
* @param children - 子元素
|
|
@@ -18548,7 +18560,7 @@ declare global {
|
|
|
18548
18560
|
* 获取扩展内的文件
|
|
18549
18561
|
*
|
|
18550
18562
|
* @public
|
|
18551
|
-
* @param uri -
|
|
18563
|
+
* @param uri - 文件路���
|
|
18552
18564
|
* @returns File 格式文件
|
|
18553
18565
|
*/
|
|
18554
18566
|
getExtensionFile(uri: string): Promise<File | undefined>;
|
|
@@ -18571,7 +18583,7 @@ declare global {
|
|
|
18571
18583
|
*/
|
|
18572
18584
|
openReadFileDialog(filenameExtensions?: string | Array<string>, multiFiles?: false): Promise<File | undefined>;
|
|
18573
18585
|
/**
|
|
18574
|
-
*
|
|
18586
|
+
* 打开读入文件夹窗口
|
|
18575
18587
|
*
|
|
18576
18588
|
* @alpha
|
|
18577
18589
|
* @remarks 本接口的浏览器支持有限,具体请参考 {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory | MDN}
|
|
@@ -20085,7 +20097,7 @@ declare global {
|
|
|
20085
20097
|
* 设置循环定时器
|
|
20086
20098
|
*
|
|
20087
20099
|
* @public
|
|
20088
|
-
* @remarks 如果遇到 ID
|
|
20100
|
+
* @remarks 如果遇到 ID 重复的定时器,则之前设置的定时器将被清除
|
|
20089
20101
|
* @param id - 定时器 ID,用于定位&删除定时器
|
|
20090
20102
|
* @param timeout - 定时时间,单位 ms
|
|
20091
20103
|
* @param callFn - 定时调用函数
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.
|
|
1
|
+
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.42", "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" } }
|