@jnrs/lingshu-smart 2.2.25 → 2.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.
- package/AGENTS.md +689 -0
- package/README.md +4 -40
- package/dist/components/index.js +4 -4
- package/dist/controller/AppController.d.ts +4 -0
- package/dist/{index-32uj9JyT.js → index-tpebqVjC.js} +6960 -6222
- package/dist/index.js +1 -1
- package/dist/json/cases.json +553 -449
- package/dist/playground/mockWebSocketData.d.ts +0 -4
- package/dist/types/components/config.types.d.ts +1 -0
- package/dist/types/enums.d.ts +0 -5
- package/dist/types/models/config.types.d.ts +14 -1
- package/dist/types/models/operating.types.d.ts +12 -1
- package/dist/ui/abstract/ModelAbs.d.ts +2 -0
- package/dist/ui/components/Entrance.d.ts +4 -12
- package/dist/ui/models/DoubleJointRobot.d.ts +6 -3
- package/dist/ui/models/Rgv.d.ts +32 -0
- package/dist/ui/models/SingleJointRobot.d.ts +4 -1
- package/dist/ui/utils/attr.d.ts +5 -0
- package/package.json +2 -2
- package/AGENTIC.md +0 -1048
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
巨能前端 2D 数字孪生库,灵枢智造。
|
|
6
6
|
|
|
7
7
|
- 2D 数字孪生编辑器、运行看板
|
|
8
|
+
- ...
|
|
8
9
|
|
|
9
10
|
## 💻 技术栈
|
|
10
11
|
|
|
@@ -19,45 +20,8 @@ pnpm add @jnrs/lingshu-smart
|
|
|
19
20
|
## 🔍 使用示例
|
|
20
21
|
|
|
21
22
|
```typescript
|
|
22
|
-
import type {
|
|
23
|
-
import { LingshuSmartEditor } from '@jnrs/lingshu-smart/components'
|
|
23
|
+
import type { ILayerOperating } from '@jnrs/lingshu-smart'
|
|
24
|
+
import { LingshuSmartPreview, LingshuSmartEditor } from '@jnrs/lingshu-smart/components'
|
|
24
25
|
```
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#### @jnrs/lingshu-smart/components 模块
|
|
29
|
-
|
|
30
|
-
Vue 组件
|
|
31
|
-
|
|
32
|
-
- LingshuSmartEditor 编辑器组件
|
|
33
|
-
|
|
34
|
-
| 属性名 | 描述 | 类型 | 默认值 |
|
|
35
|
-
| ------- | -------- | --------------- | ------ |
|
|
36
|
-
| actions | 事件处理 | `EditorActions` | {} |
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
interface EditorActions {
|
|
40
|
-
/**
|
|
41
|
-
* 加载案例列表
|
|
42
|
-
* @returns Promise<ICase[]>
|
|
43
|
-
*/
|
|
44
|
-
loadCases?: (id?: string) => Promise<ICase[]>
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 保存方案列表
|
|
48
|
-
*/
|
|
49
|
-
saveCases?: (cases?: ICase[]) => void
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* 跳转到预览页面
|
|
53
|
-
*/
|
|
54
|
-
handlePreview?: (currentCase?: ICase) => void
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 退出当前页面
|
|
58
|
-
*/
|
|
59
|
-
handleExit?: () => void
|
|
60
|
-
}
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
详细文档请查看 `AGENTIC.md`
|
|
27
|
+
详细文档请查看 `AGENTS.md`
|