@jnrs/lingshu-smart 2.2.47 → 3.0.0
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 +281 -348
- package/dist/components/debug/DataLogPanel.vue.d.ts +13 -2
- package/dist/components/debug/PerformanceStats.vue.d.ts +1 -1
- package/dist/components/debug/ScriptRunner/ConfigPanel.vue.d.ts +1 -1
- package/dist/components/debug/ScriptRunner/StepsPanel.vue.d.ts +4 -2
- package/dist/components/debug/ScriptRunner/index.vue.d.ts +11 -0
- package/dist/components/debug/ScriptRunner/script.d.ts +131 -41
- package/dist/components/debug/ScriptRunner/scriptFile.d.ts +92 -0
- package/dist/components/debug/WsProxy/index.vue.d.ts +10 -8
- package/dist/components/debug/WsProxy/proxy.d.ts +114 -53
- package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +18 -2
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +2 -2
- package/dist/components/editor/ControlBar/PersistDialog.vue.d.ts +9 -0
- package/dist/components/index.js +8287 -6169
- package/dist/components/preview/index.vue.d.ts +6308 -4098
- package/dist/controller/AppController.d.ts +65 -3
- package/dist/controller/SocketDispatcher.d.ts +59 -0
- package/dist/fullscreen-BA3oea8O.js +53 -0
- package/dist/index-C6Liz-8o.js +1238 -0
- package/dist/index.js +36 -27
- package/dist/lingshu-smart/cases.json +5882 -14843
- package/dist/lingshu-smart/mockSocket.json +263 -0
- package/dist/lingshu-smart/wsProxyConfig.json +327 -725
- package/dist/playground/ViewPageDemo.vue.d.ts +13336 -8894
- package/dist/stores/index.js +1 -1
- package/dist/stores/useAppStore.d.ts +18952 -12321
- package/dist/stores/useDataStore.d.ts +19714 -12469
- package/dist/stores/useDebugStore.d.ts +11 -2
- package/dist/stores/useEditorStore.d.ts +3 -3
- package/dist/types/app.types.d.ts +1 -1
- package/dist/types/components/config.types.d.ts +16 -0
- package/dist/types/components/operating.types.d.ts +22 -13
- package/dist/types/enums.d.ts +22 -2
- package/dist/types/guards.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/config.types.d.ts +23 -5
- package/dist/types/models/operating.types.d.ts +57 -57
- package/dist/types/socket.types.d.ts +275 -0
- package/dist/ui/abstract/ModelAbs.d.ts +37 -2
- package/dist/ui/components/Resource.d.ts +0 -1
- package/dist/ui/components/StationSlot.d.ts +8 -2
- package/dist/ui/components/StationSlotGroup.d.ts +26 -1
- package/dist/ui/models/DoubleJointRobot.d.ts +14 -4
- package/dist/ui/models/MachineTool.d.ts +6 -1
- package/dist/ui/models/MaterialTrack.d.ts +14 -2
- package/dist/ui/models/Pallet.d.ts +20 -5
- package/dist/ui/models/ResourceOperationWindow.d.ts +0 -1
- package/dist/ui/models/ResourceStore.d.ts +7 -5
- package/dist/ui/models/Rgv.d.ts +4 -2
- package/dist/ui/models/ShuttleStation.d.ts +14 -2
- package/dist/ui/models/SingleJointRobot.d.ts +14 -4
- package/dist/ui/utils/resolveStationSlotLayers.d.ts +20 -0
- package/dist/ui/utils/resolveTypeStyle.d.ts +13 -0
- package/dist/useAppStore-DASwAOBy.js +7223 -0
- package/dist/utils/fullscreen.d.ts +9 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite.d.ts +15 -0
- package/dist/vite.js +39 -0
- package/package.json +6 -2
- package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupBoth.vue.d.ts +0 -2
- package/dist/guards-Bi8oNtaY.js +0 -35
- package/dist/index-Dsgrnpn0.js +0 -1186
- package/dist/useAppStore-CevWqcmT.js +0 -6147
- /package/dist/components/editor/OptionCard/Equipment/{stationSlot/StationSlotGroup.vue.d.ts → models/ResourceStore.vue.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IStationSlotLayerConfig, IStationSlotGroupConfig } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* 工位层解析/归一化(统一「工位配置(层级)」模型)
|
|
4
|
+
* 各类设备的数据均为 stationSlotGroups[](一层=一个工位组);
|
|
5
|
+
* 兼容旧配置:
|
|
6
|
+
* - 单工位组 stationSlotGroup → 迁移为第 1 层
|
|
7
|
+
* - 双工位组 stationSlotGroupPallet/Tool → 迁移为第 1/2 层
|
|
8
|
+
* 返回是否已实际执行迁移(供调用方决定是否需要回写 config)。
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveStationSlotLayers(config: {
|
|
11
|
+
stationSlotGroups?: IStationSlotLayerConfig[];
|
|
12
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
13
|
+
stationSlotGroupPallet?: IStationSlotGroupConfig;
|
|
14
|
+
stationSlotGroupTool?: IStationSlotGroupConfig;
|
|
15
|
+
}): {
|
|
16
|
+
layers: IStationSlotLayerConfig[];
|
|
17
|
+
migrated: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 判断工位组是否为刀具工位组(组内任一工位声明 resourceType=tool 即视为刀具组,仅用于默认定位等展示层判断) */
|
|
20
|
+
export declare function isToolStationSlotGroup(group?: IStationSlotGroupConfig): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnumResourceType } from '../../types';
|
|
2
|
+
/** 类型视觉样式(undefined 项 = 沿用调用方自身配置) */
|
|
3
|
+
export interface ITypeStyle {
|
|
4
|
+
/** 圆角半径:TOOL 正圆(= 宽度)、AUXILIARY 直角(0)、其余圆角矩形(宽度 * 0.1) */
|
|
5
|
+
cornerRadius: number;
|
|
6
|
+
/** 边框颜色覆盖:辅料固定灰描边 */
|
|
7
|
+
stroke?: string;
|
|
8
|
+
/** 边框宽度覆盖:辅料固定 1 */
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
/** 阴影绘制覆盖:辅料不绘制内外阴影 */
|
|
11
|
+
showShadow?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function resolveTypeStyle(resourceType: EnumResourceType, width: number): ITypeStyle;
|