@jnrs/lingshu-smart 2.2.40 → 2.2.41

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.
@@ -323,6 +323,11 @@
323
323
  "transform": "percentToPixel",
324
324
  "transformType": "width",
325
325
  "transformPrecision": 2
326
+ },
327
+ {
328
+ "target": "stationColor",
329
+ "source": "stationColor",
330
+ "defaultValue": {}
326
331
  }
327
332
  ]
328
333
  },
@@ -790,6 +795,11 @@
790
795
  {
791
796
  "target": "x",
792
797
  "source": ""
798
+ },
799
+ {
800
+ "target": "stationColor",
801
+ "source": "stationColor",
802
+ "defaultValue": {}
793
803
  }
794
804
  ]
795
805
  },
@@ -835,6 +845,11 @@
835
845
  {
836
846
  "target": "y",
837
847
  "source": ""
848
+ },
849
+ {
850
+ "target": "stationColor",
851
+ "source": "stationColor",
852
+ "defaultValue": {}
838
853
  }
839
854
  ]
840
855
  },
@@ -1016,7 +1031,7 @@
1016
1031
  "defaultValue": false
1017
1032
  },
1018
1033
  {
1019
- "target": "stationStatus",
1034
+ "target": "stationColor",
1020
1035
  "source": "stationStatus",
1021
1036
  "defaultValue": {},
1022
1037
  "transform": "objDict",
@@ -1,4 +1,4 @@
1
- import { b as a, u as o, c as r, a as t } from "../useAppStore-DlxnXCZs.js";
1
+ import { b as a, u as o, c as r, a as t } from "../useAppStore-CoP2SZwk.js";
2
2
  export {
3
3
  a as useAppStore,
4
4
  o as useDataStore,
@@ -17,6 +17,8 @@ export interface GlobalSetting {
17
17
  theme: 'dark' | 'light';
18
18
  wsProxyManualModified: boolean;
19
19
  wsProxyActiveCaseId?: string;
20
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
21
+ perfStatsCollapsed: boolean;
20
22
  }
21
23
  /** globalSetting 默认值 */
22
24
  export declare const DEFAULT_GLOBAL_SETTING: GlobalSetting;
@@ -2962,7 +2964,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
2962
2964
  locale: Locale;
2963
2965
  theme: "dark" | "light";
2964
2966
  wsProxyManualModified: boolean;
2965
- wsProxyActiveCaseId?: string | undefined;
2967
+ wsProxyActiveCaseId?: string
2968
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
2969
+ | undefined;
2970
+ perfStatsCollapsed: boolean;
2966
2971
  }, GlobalSetting | {
2967
2972
  logLevel: LogLevel;
2968
2973
  shadowsEnabled: boolean;
@@ -2972,7 +2977,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
2972
2977
  locale: Locale;
2973
2978
  theme: "dark" | "light";
2974
2979
  wsProxyManualModified: boolean;
2975
- wsProxyActiveCaseId?: string | undefined;
2980
+ wsProxyActiveCaseId?: string
2981
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
2982
+ | undefined;
2983
+ perfStatsCollapsed: boolean;
2976
2984
  }>;
2977
2985
  scriptRunner: import('vue').Ref<{
2978
2986
  uid: string;
@@ -5949,7 +5957,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
5949
5957
  locale: Locale;
5950
5958
  theme: "dark" | "light";
5951
5959
  wsProxyManualModified: boolean;
5952
- wsProxyActiveCaseId?: string | undefined;
5960
+ wsProxyActiveCaseId?: string
5961
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
5962
+ | undefined;
5963
+ perfStatsCollapsed: boolean;
5953
5964
  }, GlobalSetting | {
5954
5965
  logLevel: LogLevel;
5955
5966
  shadowsEnabled: boolean;
@@ -5959,7 +5970,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
5959
5970
  locale: Locale;
5960
5971
  theme: "dark" | "light";
5961
5972
  wsProxyManualModified: boolean;
5962
- wsProxyActiveCaseId?: string | undefined;
5973
+ wsProxyActiveCaseId?: string
5974
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
5975
+ | undefined;
5976
+ perfStatsCollapsed: boolean;
5963
5977
  }>;
5964
5978
  scriptRunner: import('vue').Ref<{
5965
5979
  uid: string;
@@ -8936,7 +8950,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
8936
8950
  locale: Locale;
8937
8951
  theme: "dark" | "light";
8938
8952
  wsProxyManualModified: boolean;
8939
- wsProxyActiveCaseId?: string | undefined;
8953
+ wsProxyActiveCaseId?: string
8954
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
8955
+ | undefined;
8956
+ perfStatsCollapsed: boolean;
8940
8957
  }, GlobalSetting | {
8941
8958
  logLevel: LogLevel;
8942
8959
  shadowsEnabled: boolean;
@@ -8946,7 +8963,10 @@ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingsh
8946
8963
  locale: Locale;
8947
8964
  theme: "dark" | "light";
8948
8965
  wsProxyManualModified: boolean;
8949
- wsProxyActiveCaseId?: string | undefined;
8966
+ wsProxyActiveCaseId?: string
8967
+ /** 性能统计面板是否折叠(persist 到 globalSetting) */
8968
+ | undefined;
8969
+ perfStatsCollapsed: boolean;
8950
8970
  }>;
8951
8971
  scriptRunner: import('vue').Ref<{
8952
8972
  uid: string;
@@ -17,6 +17,8 @@ export declare const useDebugStore: import('pinia').StoreDefinition<"@jnrs/lings
17
17
  setWsProxyActiveCaseId: (caseId: string) => void;
18
18
  wsProxyManualModified: import('vue').WritableComputedRef<boolean, boolean>;
19
19
  setWsProxyManualModified: (modified: boolean) => void;
20
+ perfStatsCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
21
+ setPerfStatsCollapsed: (v: boolean) => void;
20
22
  setLogLevel: (level: LogLevel) => void;
21
23
  setShadowsEnabled: (enabled: boolean) => void;
22
24
  setAnimationsEnabled: (enabled: boolean) => void;
@@ -42,6 +44,8 @@ export declare const useDebugStore: import('pinia').StoreDefinition<"@jnrs/lings
42
44
  setWsProxyActiveCaseId: (caseId: string) => void;
43
45
  wsProxyManualModified: import('vue').WritableComputedRef<boolean, boolean>;
44
46
  setWsProxyManualModified: (modified: boolean) => void;
47
+ perfStatsCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
48
+ setPerfStatsCollapsed: (v: boolean) => void;
45
49
  setLogLevel: (level: LogLevel) => void;
46
50
  setShadowsEnabled: (enabled: boolean) => void;
47
51
  setAnimationsEnabled: (enabled: boolean) => void;
@@ -52,7 +56,7 @@ export declare const useDebugStore: import('pinia').StoreDefinition<"@jnrs/lings
52
56
  toggleTheme: () => void;
53
57
  showDebugPanel: () => void;
54
58
  hideDebugPanel: () => void;
55
- }, "logLevel" | "shadowsEnabled" | "animationsEnabled" | "fpsMode" | "interactionsDisabled" | "locale" | "theme" | "wsProxyManualModified" | "scriptSteps" | "activeCaseId">, Pick<{
59
+ }, "logLevel" | "shadowsEnabled" | "animationsEnabled" | "fpsMode" | "interactionsDisabled" | "locale" | "theme" | "wsProxyManualModified" | "perfStatsCollapsed" | "scriptSteps" | "activeCaseId">, Pick<{
56
60
  logLevel: import('vue').WritableComputedRef<LogLevel, LogLevel>;
57
61
  shadowsEnabled: import('vue').WritableComputedRef<boolean, boolean>;
58
62
  animationsEnabled: import('vue').WritableComputedRef<boolean, boolean>;
@@ -67,6 +71,8 @@ export declare const useDebugStore: import('pinia').StoreDefinition<"@jnrs/lings
67
71
  setWsProxyActiveCaseId: (caseId: string) => void;
68
72
  wsProxyManualModified: import('vue').WritableComputedRef<boolean, boolean>;
69
73
  setWsProxyManualModified: (modified: boolean) => void;
74
+ perfStatsCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
75
+ setPerfStatsCollapsed: (v: boolean) => void;
70
76
  setLogLevel: (level: LogLevel) => void;
71
77
  setShadowsEnabled: (enabled: boolean) => void;
72
78
  setAnimationsEnabled: (enabled: boolean) => void;
@@ -77,4 +83,4 @@ export declare const useDebugStore: import('pinia').StoreDefinition<"@jnrs/lings
77
83
  toggleTheme: () => void;
78
84
  showDebugPanel: () => void;
79
85
  hideDebugPanel: () => void;
80
- }, "setScriptSteps" | "setWsProxyActiveCaseId" | "setWsProxyManualModified" | "setLogLevel" | "setShadowsEnabled" | "setAnimationsEnabled" | "setFpsMode" | "setInteractionsDisabled" | "setLocale" | "setTheme" | "toggleTheme" | "showDebugPanel" | "hideDebugPanel">>;
86
+ }, "setScriptSteps" | "setWsProxyActiveCaseId" | "setWsProxyManualModified" | "setPerfStatsCollapsed" | "setLogLevel" | "setShadowsEnabled" | "setAnimationsEnabled" | "setFpsMode" | "setInteractionsDisabled" | "setLocale" | "setTheme" | "toggleTheme" | "showDebugPanel" | "hideDebugPanel">>;
@@ -163,7 +163,7 @@ export interface IPalletConfig extends IModel {
163
163
  /**
164
164
  * 资源操作窗口(独立设备)
165
165
  * 参考托盘/料道:窗口框造型,框内为单个工位组(其中的托盘可 Pallet 或 Tool);
166
- * 部件可有状态灯与铭牌;operating 支持 light / resource / stationStatus(按工位序号改色)。
166
+ * 部件可有状态灯与铭牌;operating 支持 light / resource / stationColor(按工位序号改色)。
167
167
  */
168
168
  export interface IResourceOperationWindowConfig extends IModel {
169
169
  className: EnumModel.RESOURCE_OPERATION_WINDOW;
@@ -150,6 +150,10 @@ export interface IResourceStoreOperating extends IModelOperating {
150
150
  light?: ILightOperating;
151
151
  x?: number;
152
152
  resource?: IResourceOperating;
153
+ /** 各工位背景颜色,键为工位序号 index(1-based),值为状态码或颜色字符串
154
+ * 代理器转换后值为颜色字符串;未转换时值为状态数字码(内部映射为颜色)
155
+ * 如 { 1: 'red', 2: 100, 3: '#66DC7A' } */
156
+ stationColor?: Record<number, number | string>;
153
157
  }
154
158
  /**
155
159
  * 托盘运转状态
@@ -160,6 +164,10 @@ export interface IPalletOperating extends IModelOperating {
160
164
  x?: number;
161
165
  y?: number;
162
166
  resource?: IResourceOperating;
167
+ /** 各工位背景颜色,键为工位序号 index(1-based),值为状态码或颜色字符串
168
+ * 代理器转换后值为颜色字符串;未转换时值为状态数字码(内部映射为颜色)
169
+ * 如 { 1: 'red', 2: 100, 3: '#66DC7A' } */
170
+ stationColor?: Record<number, number | string>;
163
171
  }
164
172
  /**
165
173
  * 资源操作窗口运转状态
@@ -168,10 +176,10 @@ export interface IResourceOperationWindowOperating extends IModelOperating {
168
176
  className: EnumModel.RESOURCE_OPERATION_WINDOW;
169
177
  light?: Omit<ILightOperating, 'rotating'>;
170
178
  resource?: IResourceOperating;
171
- /** 各工位状态(颜色),键为工位序号 index(1-based),值为状态码或颜色字符串
179
+ /** 各工位背景颜色,键为工位序号 index(1-based),值为状态码或颜色字符串
172
180
  * 代理器转换后值为颜色字符串;未转换时值为状态数字码(内部映射为颜色)
173
181
  * 如 { 1: 'red', 2: 100, 3: '#66DC7A' } */
174
- stationStatus?: Record<number, number | string>;
182
+ stationColor?: Record<number, number | string>;
175
183
  }
176
184
  /**
177
185
  * 设备层运转状态的联合类型
@@ -27,9 +27,13 @@ export declare class StationSlotGroup extends ComponentAbs<IStationSlotGroupConf
27
27
  */
28
28
  removeResourceById(resourceId: string): boolean;
29
29
  /**
30
- * 按工位序号修改工位填充颜色(未传 color 时恢复默认背景色)
30
+ * 按工位序号修改工位填充颜色
31
31
  * @param index 工位序号(IStationSlotConfig.index)
32
- * @param color 目标颜色;缺省时使用工位默认背景色
32
+ * @param color 目标颜色:颜色字符串直接使用,数字状态码内部映射为颜色;缺省时使用工位默认背景色
33
33
  */
34
- setSiteWorkingColor(index: number, color?: string): void;
34
+ setSiteWorkingColor(index: number, color?: string | number): void;
35
+ /**
36
+ * 判断本组是否包含指定工位序号
37
+ */
38
+ hasStationIndex(index: number): boolean;
35
39
  }
@@ -6,6 +6,7 @@ import { StationSlotGroup } from '../components/StationSlotGroup';
6
6
  * 托盘(独立设备)
7
7
  * 参考 ResourceStore:带铭牌、状态灯、托盘/刀具双工位组;
8
8
  * 主体样式参考 ShuttleStation 的 layerContainer(内嵌纹理、溢出隐藏),支持修改背景色。
9
+ * operating 支持:light / x / y / resource / stationColor(按工位序号修改工位背景颜色)
9
10
  */
10
11
  export declare class Pallet extends ModelAbs<IPalletConfig> {
11
12
  private static readonly CORNER_RADIUS;
@@ -16,6 +17,8 @@ export declare class Pallet extends ModelAbs<IPalletConfig> {
16
17
  private moveX;
17
18
  private moveY;
18
19
  protected operating(data: IPalletOperating): void;
20
+ /** 按工位序号修改工位背景颜色:在托盘/刀具工位组中查找包含该序号的工位槽并改色 */
21
+ private applyStationColor;
19
22
  /**
20
23
  * 判断本托盘是否包含指定工位号
21
24
  * 用于同一 id 的 Pallet 被拆分为多个 UI 时的三级匹配
@@ -9,7 +9,7 @@ import { StationSlotGroup } from '../components/StationSlotGroup';
9
9
  * operating 支持:
10
10
  * - light:主体状态灯
11
11
  * - resource:向框内工位组添加 / 移除托盘资源
12
- * - stationStatus:按工位序号 index 修改工位颜色(值可为颜色字符串或状态码)
12
+ * - stationColor:按工位序号 index 修改工位背景颜色(值可为颜色字符串或状态码)
13
13
  */
14
14
  export declare class ResourceOperationWindow extends ModelAbs<IResourceOperationWindowConfig> {
15
15
  private static readonly DEFAULT_RING_THICKNESS;
@@ -28,9 +28,7 @@ export declare class ResourceOperationWindow extends ModelAbs<IResourceOperation
28
28
  private buildOutlinePath;
29
29
  protected createUi(): Box;
30
30
  protected operating(data: IResourceOperationWindowOperating): void;
31
- private applyStationStatus;
32
- private resolveColor;
33
- private statusToColor;
31
+ private applyStationColor;
34
32
  /**
35
33
  * 判断本窗口是否包含指定工位号
36
34
  */
@@ -4,6 +4,7 @@ import { ModelAbs } from '../abstract/ModelAbs';
4
4
  import { StationSlotGroup } from '../components/StationSlotGroup';
5
5
  /**
6
6
  * 资源库
7
+ * operating 支持:light / x / resource(托盘、刀具增删)/ stationColor(按工位序号修改工位背景颜色)
7
8
  */
8
9
  export declare class ResourceStore extends ModelAbs<IResourceStoreConfig> {
9
10
  private static readonly CORNER_RADIUS;
@@ -18,5 +19,7 @@ export declare class ResourceStore extends ModelAbs<IResourceStoreConfig> {
18
19
  containsStationIndex(index: number): boolean;
19
20
  private moveX;
20
21
  protected operating(data: IResourceStoreOperating): void;
22
+ /** 按工位序号修改工位背景颜色:在托盘/刀具工位组中查找包含该序号的工位槽并改色 */
23
+ private applyStationColor;
21
24
  protected collectStationSlotGroups(): StationSlotGroup[];
22
25
  }