@jnrs/lingshu-smart 2.2.42 → 2.2.44
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/dist/components/index.js +2290 -2297
- package/dist/components/preview/index.vue.d.ts +10889 -455
- package/dist/controller/EditorController.d.ts +12 -0
- package/dist/guards-CtOQ-c4T.js +35 -0
- package/dist/index-8szZ-Zwj.js +1172 -0
- package/dist/index.js +28 -52
- package/dist/lingshu-smart/wsProxyConfig.json +19 -20
- package/dist/playground/ViewPageDemo.vue.d.ts +21673 -805
- package/dist/stores/index.js +1 -1
- package/dist/stores/useAppStore.d.ts +32454 -1152
- package/dist/stores/useDataStore.d.ts +32423 -1121
- package/dist/types/components/config.types.d.ts +4 -0
- package/dist/types/components/operating.types.d.ts +2 -0
- package/dist/types/models/config.types.d.ts +3 -0
- package/dist/ui/abstract/ModelAbs.d.ts +5 -0
- package/dist/ui/models/MaterialTrack.d.ts +3 -1
- package/dist/ui/models/ShuttleStation.d.ts +3 -0
- package/dist/useAppStore-DctrbbfN.js +5966 -0
- package/package.json +3 -3
- package/dist/index-Cz1A_VVJ.js +0 -11452
- package/dist/useAppStore-BED53e2b.js +0 -15776
|
@@ -21,6 +21,8 @@ export interface IStationSlotConfig extends IBaseConfig, IInteractiveState {
|
|
|
21
21
|
showShadow?: boolean;
|
|
22
22
|
showText?: boolean;
|
|
23
23
|
inFlow?: boolean;
|
|
24
|
+
/** 最近一次 operating 接收到的原始数据(运行时注入,供点击回调 data 读取) */
|
|
25
|
+
operatingData?: unknown;
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
28
|
* 布局选项
|
|
@@ -56,6 +58,8 @@ export interface IResourceConfig extends IBaseConfig, IInteractiveState {
|
|
|
56
58
|
name?: string;
|
|
57
59
|
color?: string;
|
|
58
60
|
rawData: IRowData;
|
|
61
|
+
/** 最近一次 operating 接收到的原始数据(运行时注入,供点击回调 data 读取) */
|
|
62
|
+
operatingData?: unknown;
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
65
|
* 状态灯
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnumModel, EnumTag, EnumResourceType } from '../enums';
|
|
2
2
|
import { IRowData, IBaseConfig, IEventState } from '../base.types';
|
|
3
3
|
import { IStationSlotGroupConfig, IFlowConfig } from '../components/config.types';
|
|
4
|
+
import { ILayerOperating } from './operating.types';
|
|
4
5
|
/**
|
|
5
6
|
* 设备模型基类
|
|
6
7
|
*/
|
|
@@ -24,6 +25,8 @@ export interface IModel extends IBaseConfig, IEventState {
|
|
|
24
25
|
rotation: number;
|
|
25
26
|
scale: number;
|
|
26
27
|
rawData: IRowData;
|
|
28
|
+
/** 最近一次 operating 接收到的原始数据(运行时注入,供点击回调 layer/data 读取) */
|
|
29
|
+
operatingData?: ILayerOperating;
|
|
27
30
|
editable: boolean;
|
|
28
31
|
selected: boolean;
|
|
29
32
|
}
|
|
@@ -5,6 +5,11 @@ export declare abstract class ModelAbs<T extends ILayer = ILayer> extends BaseAb
|
|
|
5
5
|
private eventHandler;
|
|
6
6
|
protected abstract operating(data: ILayerOperating): void;
|
|
7
7
|
handleOperation: (data: ILayerOperating) => void;
|
|
8
|
+
/**
|
|
9
|
+
* 将最近一次 operating 接收到的原始数据写入模型 config 及整棵 UI 树的 data 属性,
|
|
10
|
+
* 使点击回调(onTap/onMenuTap/onDragEnd)中的 layer 与 data 都能读取到各自 operatingData。
|
|
11
|
+
*/
|
|
12
|
+
private writeOperatingData;
|
|
8
13
|
private shouldHandleInteraction;
|
|
9
14
|
private tapCallback;
|
|
10
15
|
private menuTapCallback;
|
|
@@ -7,7 +7,7 @@ import { ModelAbs } from '../abstract/ModelAbs';
|
|
|
7
7
|
* 与接驳站的差异:
|
|
8
8
|
* 1. 无底座和轮子(主体即完整几何);
|
|
9
9
|
* 2. 无层状态灯(工位组无状态灯配置);
|
|
10
|
-
* 3. operating 支持 layerVisible
|
|
10
|
+
* 3. operating 支持 layerVisible 按层索引显隐工位组,以及 resource 资源增删(按层定位)。
|
|
11
11
|
*/
|
|
12
12
|
export declare class MaterialTrack extends ModelAbs<IMaterialTrackConfig> {
|
|
13
13
|
private static readonly WALL_THICKNESS;
|
|
@@ -26,4 +26,6 @@ export declare class MaterialTrack extends ModelAbs<IMaterialTrackConfig> {
|
|
|
26
26
|
private buildLayers;
|
|
27
27
|
protected createUi(): Box;
|
|
28
28
|
protected operating(data: IMaterialTrackOperating): void;
|
|
29
|
+
/** 资源增删:data.resource 提供 layer(>0) 时定位到该层;缺省时仅当唯一一层包含该工位序号才操作 */
|
|
30
|
+
private handleResourceOperating;
|
|
29
31
|
}
|
|
@@ -6,6 +6,7 @@ import { ModelAbs } from '../abstract/ModelAbs';
|
|
|
6
6
|
* 整体为 U 型结构,支持多层工位组配置(每层 = 一个工位组容器);
|
|
7
7
|
* 每层独立拥有状态灯,通过 layerLightColor 字典数据驱动颜色;
|
|
8
8
|
* 主体底部有 #EA9734 底座 + 两端半露轮子。
|
|
9
|
+
* operating 支持 resource 资源增删(按层定位,layer 缺省时按工位序号匹配)。
|
|
9
10
|
*/
|
|
10
11
|
export declare class ShuttleStation extends ModelAbs<IShuttleStationConfig> {
|
|
11
12
|
private static readonly WALL_THICKNESS;
|
|
@@ -28,6 +29,8 @@ export declare class ShuttleStation extends ModelAbs<IShuttleStationConfig> {
|
|
|
28
29
|
private buildBaseAndWheels;
|
|
29
30
|
protected createUi(): Box;
|
|
30
31
|
protected operating(data: IShuttleStationOperating): void;
|
|
32
|
+
/** 资源增删:data.resource 提供 layer(>0) 时定位到该层;缺省时仅当唯一一层包含该工位序号才操作 */
|
|
33
|
+
private handleResourceOperating;
|
|
31
34
|
private applyLayerLightColor;
|
|
32
35
|
private resolveStatusColor;
|
|
33
36
|
private statusToColor;
|