@jnrs/lingshu-smart 2.2.36 → 2.2.37

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.
@@ -132,11 +132,15 @@ export interface IResourceStoreConfig extends IModel {
132
132
  /**
133
133
  * 托盘(独立设备)
134
134
  * 参考 ResourceStore:带铭牌、状态灯;主体背景色可配置(默认 #3C3C3C)
135
+ * 支持托盘/刀具两个独立工位组
135
136
  */
136
137
  export interface IPalletConfig extends IModel {
137
138
  className: EnumModel.PALLET;
138
139
  /** 主体背景色(默认 '#3C3C3C') */
139
140
  backgroundColor?: string;
141
+ flowOptions?: IFlowConfig;
142
+ stationSlotGroupPallet?: IStationSlotGroupConfig;
143
+ stationSlotGroupTool?: IStationSlotGroupConfig;
140
144
  }
141
145
  /**
142
146
  * 设备层联合类型
@@ -139,6 +139,7 @@ export interface IPalletOperating extends IModelOperating {
139
139
  light?: ILightOperating;
140
140
  x?: number;
141
141
  y?: number;
142
+ resource?: IResourceOperating;
142
143
  }
143
144
  /**
144
145
  * 设备层运转状态的联合类型
@@ -1,16 +1,25 @@
1
1
  import { IPalletConfig, IPalletOperating } from '../../types';
2
2
  import { Box } from 'leafer';
3
3
  import { ModelAbs } from '../abstract/ModelAbs';
4
+ import { StationSlotGroup } from '../components/StationSlotGroup';
4
5
  /**
5
6
  * 托盘(独立设备)
6
- * 参考 ResourceStore:带铭牌、状态灯;
7
+ * 参考 ResourceStore:带铭牌、状态灯、托盘/刀具双工位组;
7
8
  * 主体样式参考 ShuttleStation 的 layerContainer(内嵌纹理、溢出隐藏),支持修改背景色。
8
9
  */
9
10
  export declare class Pallet extends ModelAbs<IPalletConfig> {
10
11
  private static readonly CORNER_RADIUS;
11
12
  private light;
13
+ private stationSlotGroupPallet;
14
+ private stationSlotGroupTool;
12
15
  protected createUi(): Box;
13
16
  private moveX;
14
17
  private moveY;
15
18
  protected operating(data: IPalletOperating): void;
19
+ /**
20
+ * 判断本托盘是否包含指定工位号
21
+ * 用于同一 id 的 Pallet 被拆分为多个 UI 时的三级匹配
22
+ */
23
+ containsStationIndex(index: number): boolean;
24
+ protected collectStationSlotGroups(): StationSlotGroup[];
16
25
  }