@jnrs/lingshu-smart 2.2.29 → 2.2.31
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/AGENTS.md +1 -1
- package/README.md +29 -5
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +5 -5
- package/dist/components/index.js +1044 -1005
- package/dist/{index-xyCXB0RY.js → index-Mt8e7D8x.js} +3627 -3666
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/AGENTS.md
CHANGED
package/README.md
CHANGED
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## ✨ 介绍
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
巨能(JNRS)前端 2D 数字孪生库,灵枢智造。基于 LeaferJS 引擎构建,提供完整的 2D 数字孪生解决方案。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
### 核心功能
|
|
8
|
+
|
|
9
|
+
| 功能 | 说明 |
|
|
10
|
+
| ---------- | ----------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| 编辑器模式 | `LingshuSmartEditor` — 方案可视化编辑,支持拖拽布局、设备配置、图层管理、方案保存/预览 |
|
|
12
|
+
| 运行看板 | `LingshuSmartPreview` — 方案运行看板,支持 WebSocket 实时驱动设备动画、交互事件(点击/拖拽/右键菜单) |
|
|
13
|
+
| 设备模型 | 机床、机器人(单关节/双关节)、RGV、装载站、打标机、清洗机、轨道拖链、资源库等 |
|
|
14
|
+
| 设备运转 | 灯光、进度条、入口动画、工位槽资源增删、坐标/角度/货叉控制 |
|
|
15
|
+
| 坐标转换 | `transRuntimeToPixel` / `transPercentToPixel` — 物理坐标与像素坐标互转 |
|
|
9
16
|
|
|
10
17
|
## 💻 技术栈
|
|
11
18
|
|
|
12
|
-
TypeScript、Vue3 生态、
|
|
19
|
+
TypeScript、Vue3 生态、LeaferJS
|
|
13
20
|
|
|
14
21
|
## 🧩 安装教程
|
|
15
22
|
|
|
@@ -20,8 +27,25 @@ pnpm add @jnrs/lingshu-smart
|
|
|
20
27
|
## 🔍 使用示例
|
|
21
28
|
|
|
22
29
|
```typescript
|
|
23
|
-
import type { ILayerOperating } from '@jnrs/lingshu-smart'
|
|
30
|
+
import type { ILayerOperating, ILayer, ICase } from '@jnrs/lingshu-smart'
|
|
24
31
|
import { LingshuSmartPreview, LingshuSmartEditor } from '@jnrs/lingshu-smart/components'
|
|
32
|
+
import { transRuntimeToPixel, transPercentToPixel } from '@jnrs/lingshu-smart'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 编辑器模式
|
|
36
|
+
|
|
37
|
+
```vue
|
|
38
|
+
<LingshuSmartEditor :actions="{ loadCases, saveCases, handlePreview, handleExit }" />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 运行看板模式
|
|
42
|
+
|
|
43
|
+
```vue
|
|
44
|
+
<LingshuSmartPreview
|
|
45
|
+
ref="previewRef"
|
|
46
|
+
:case-uuid="currentCaseId"
|
|
47
|
+
:actions="{ loadCases, onTap, onMenuTap, onDragEnd }"
|
|
48
|
+
/>
|
|
25
49
|
```
|
|
26
50
|
|
|
27
51
|
详细文档请查看 [AGENTS.md](./AGENTS.md)
|
|
@@ -32,7 +32,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
32
32
|
readonly form?: string | undefined;
|
|
33
33
|
readonly readonly?: boolean | undefined;
|
|
34
34
|
readonly ariaLabel?: string | undefined;
|
|
35
|
-
readonly inputmode?: "
|
|
35
|
+
readonly inputmode?: "none" | "text" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
36
36
|
readonly clearable?: boolean | undefined;
|
|
37
37
|
readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
38
38
|
readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
@@ -93,7 +93,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
93
93
|
type: import('vue').PropType<string>;
|
|
94
94
|
};
|
|
95
95
|
size: {
|
|
96
|
-
type: import('vue').PropType<"" | "
|
|
96
|
+
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
97
97
|
};
|
|
98
98
|
form: {
|
|
99
99
|
type: import('vue').PropType<string>;
|
|
@@ -113,7 +113,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
113
113
|
type: import('vue').PropType<string>;
|
|
114
114
|
};
|
|
115
115
|
inputmode: {
|
|
116
|
-
type: import('vue').PropType<"
|
|
116
|
+
type: import('vue').PropType<"none" | "text" | "search" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
117
117
|
};
|
|
118
118
|
autocomplete: {
|
|
119
119
|
type: import('vue').PropType<string>;
|
|
@@ -283,7 +283,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
283
283
|
type: import('vue').PropType<string>;
|
|
284
284
|
};
|
|
285
285
|
size: {
|
|
286
|
-
type: import('vue').PropType<"" | "
|
|
286
|
+
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
287
287
|
};
|
|
288
288
|
form: {
|
|
289
289
|
type: import('vue').PropType<string>;
|
|
@@ -303,7 +303,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
303
303
|
type: import('vue').PropType<string>;
|
|
304
304
|
};
|
|
305
305
|
inputmode: {
|
|
306
|
-
type: import('vue').PropType<"
|
|
306
|
+
type: import('vue').PropType<"none" | "text" | "search" | "url" | "email" | "tel" | "numeric" | "decimal">;
|
|
307
307
|
};
|
|
308
308
|
autocomplete: {
|
|
309
309
|
type: import('vue').PropType<string>;
|