@jnrs/lingshu-smart 3.1.17 → 3.1.19
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 +4 -4
- package/dist/components/debug/WsProxy/proxy.d.ts +1 -1
- package/dist/components/index.js +5630 -5575
- package/dist/components/preview/index.vue.d.ts +5 -1
- package/dist/{fullscreen-DhhBmMbU.js → fullscreen-hS6QkG2j.js} +1 -1
- package/dist/index-ClOx1u3s.js +1299 -0
- package/dist/index.js +21 -20
- package/dist/lingshu-smart/cases.json +40 -40
- package/dist/lingshu-smart/mockSocket.json +26 -26
- package/dist/lingshu-smart/wsProxyConfig.json +13 -13
- package/dist/playground/ViewPageDemo.vue.d.ts +10 -2
- package/dist/stores/index.js +1 -1
- package/dist/stores/useAppStore.d.ts +15 -3
- package/dist/stores/useDataStore.d.ts +12 -0
- package/dist/types/models/config.types.d.ts +4 -0
- package/dist/{useAppStore-BNICxg4C.js → useAppStore-DY9e4SKw.js} +702 -712
- package/dist/utils/index.d.ts +2 -0
- package/dist/vite.d.ts +16 -2
- package/package.json +8 -2
- package/dist/index-CQbsL_m9.js +0 -1260
package/AGENTS.md
CHANGED
|
@@ -144,7 +144,7 @@ onMounted(() => {
|
|
|
144
144
|
| `feedSocketMessage` | `(msg: unknown) => void` | **推荐**。下发一条标准信封协议消息(`envelope + payload`),经 `SocketDispatcher` 自动分发驱动画布 |
|
|
145
145
|
| `setSocketHandlers` | `(handlers: { onAck?: (ack) => void; onRaw?: (raw) => void }) => void` | 订阅回执 `command_ack` 与透传(`alarm_push` / `runtime_status_push`)回调 |
|
|
146
146
|
| `operating` | `(data: ILayerOperating) => void` | 旧链路内部 `operating` 引擎,仅 WsProxy 等内部组件可选使用 |
|
|
147
|
-
| `resetModels` | `() => void`
|
|
147
|
+
| `resetModels` | `(silent?: boolean) => void` | 一键复位画布(所有模型按初始配置重建,含资源清空);`silent` 为 `true` 时不弹复位结果提示 |
|
|
148
148
|
|
|
149
149
|
**Props:**
|
|
150
150
|
|
|
@@ -189,7 +189,7 @@ WebSocket 原始消息(envelope + payload)
|
|
|
189
189
|
|
|
190
190
|
```typescript
|
|
191
191
|
interface MessageEnvelope {
|
|
192
|
-
id: string // 唯一 ID
|
|
192
|
+
id: string // 唯一 ID(前端生成采用 UUIDv7;画布据此去重)
|
|
193
193
|
type: EnvelopeType // device_init | device_command | resource_command
|
|
194
194
|
// | alarm_push | runtime_status_push | scene_reset | command_ack
|
|
195
195
|
timestamp: string // ISO 8601
|
|
@@ -495,7 +495,7 @@ type ILayerOperating =
|
|
|
495
495
|
| `x` | `number` | 位移(像素);绑定轨道时按沿轨距离定位(≤1 比例 / >1 沿轨像素距离) |
|
|
496
496
|
| `y` | `number` | 垂直位移(像素) |
|
|
497
497
|
| `j1` | `number` | 一级关节角度(度) |
|
|
498
|
-
| `currentFixture` | `EnumResourceType` | 当前夹具:`Pallet` / `Tool
|
|
498
|
+
| `currentFixture` | `EnumResourceType` | 当前夹具:`Pallet` / `Tool`;图层「自动切换夹具」开启时(默认)由被放置资源类型驱动,忽略该字段 |
|
|
499
499
|
| `resource` | `IResourceOperating` | 托盘/刀具工位槽 |
|
|
500
500
|
|
|
501
501
|
#### IDoubleJointRobotOperating
|
|
@@ -507,7 +507,7 @@ type ILayerOperating =
|
|
|
507
507
|
| `y` | `number` | 垂直位移(像素) |
|
|
508
508
|
| `j1` | `number` | 一级关节角度(度) |
|
|
509
509
|
| `j2` | `number` | 二级关节角度(度) |
|
|
510
|
-
| `currentFixture` | `EnumResourceType` |
|
|
510
|
+
| `currentFixture` | `EnumResourceType` | 当前夹具类型;图层「自动切换夹具」开启时(默认)由被放置资源类型驱动,忽略该字段 |
|
|
511
511
|
| `resource` | `IResourceOperating` | 托盘/刀具工位槽 |
|
|
512
512
|
|
|
513
513
|
#### IRGVOperating
|
|
@@ -168,7 +168,7 @@ export interface WsProxyCaseConfig extends WsProxyConfig {
|
|
|
168
168
|
export declare const DEFAULT_CONFIG_FILE_URL = "public/lingshu-smart/wsProxyConfig.json";
|
|
169
169
|
/** 设备注册表接口默认地址(注册表模式):走统一 /api 代理前缀,
|
|
170
170
|
* 开发环境由 Vite `server.proxy['/api']` 转发、生产由 Nginx 的 /api location 转发,无需单独配置 /device 代理规则 */
|
|
171
|
-
export declare const DEFAULT_REGISTRY_URL = "/api/device
|
|
171
|
+
export declare const DEFAULT_REGISTRY_URL = "/api/device";
|
|
172
172
|
/** 由 fileUrl 推导实际 fetch 路径:去掉开头多余 / 与 public/ 前缀,补全 .json 扩展名,
|
|
173
173
|
* 并追加时间戳参数以禁用浏览器缓存(保证「重新应用此配置」始终读取最新文件内容) */
|
|
174
174
|
export declare function resolveConfigFetchPath(fileUrl?: string): string;
|