@jnrs/lingshu-smart 2.2.34 → 2.2.36

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.
Files changed (46) hide show
  1. package/AGENTS.md +34 -10
  2. package/README.md +8 -7
  3. package/dist/components/debug/DataLogPanel.vue.d.ts +44 -0
  4. package/dist/components/debug/ScriptRunner/ConfigPanel.vue.d.ts +14 -11
  5. package/dist/components/debug/ScriptRunner/StepsPanel.vue.d.ts +8 -0
  6. package/dist/components/debug/ScriptRunner/script.d.ts +29 -1
  7. package/dist/components/debug/WsProxy/ConfigEditor.vue.d.ts +18 -0
  8. package/dist/components/debug/WsProxy/ConnPanel.vue.d.ts +33 -0
  9. package/dist/components/debug/WsProxy/index.vue.d.ts +36 -0
  10. package/dist/components/debug/WsProxy/proxy.d.ts +171 -0
  11. package/dist/components/editor/OptionCard/Equipment/models/Pallet.vue.d.ts +2 -0
  12. package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupDialog.vue.d.ts +4 -0
  13. package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupLayers.vue.d.ts +2 -0
  14. package/dist/components/index.d.ts +2 -1
  15. package/dist/components/index.js +14396 -11457
  16. package/dist/components/preview/index.vue.d.ts +296 -0
  17. package/dist/controller/AppController.d.ts +2 -0
  18. package/dist/index.js +94 -86
  19. package/dist/lingshu-smart/wsProxyConfig.json +525 -0
  20. package/dist/locales/index.js +2 -2
  21. package/dist/playground/ViewPageDemo.vue.d.ts +646 -0
  22. package/dist/stores/useAppStore.d.ts +888 -0
  23. package/dist/stores/useDataStore.d.ts +888 -0
  24. package/dist/stores/useDebugStore.d.ts +393 -2
  25. package/dist/types/components/config.types.d.ts +6 -0
  26. package/dist/types/components/operating.types.d.ts +1 -0
  27. package/dist/types/enums.d.ts +2 -1
  28. package/dist/types/guards.d.ts +7 -1
  29. package/dist/types/models/config.types.d.ts +25 -1
  30. package/dist/types/models/operating.types.d.ts +27 -1
  31. package/dist/ui/abstract/ModelAbs.d.ts +10 -0
  32. package/dist/ui/components/StationSlot.d.ts +5 -1
  33. package/dist/ui/components/StationSlotGroup.d.ts +5 -0
  34. package/dist/ui/models/CleaningMachine.d.ts +2 -0
  35. package/dist/ui/models/DoubleJointRobot.d.ts +2 -0
  36. package/dist/ui/models/LoadingStation.d.ts +2 -0
  37. package/dist/ui/models/MachineTool.d.ts +2 -0
  38. package/dist/ui/models/MarkingMachine.d.ts +2 -0
  39. package/dist/ui/models/Pallet.d.ts +16 -0
  40. package/dist/ui/models/ResourceStore.d.ts +2 -0
  41. package/dist/ui/models/Rgv.d.ts +2 -0
  42. package/dist/ui/models/ShuttleStation.d.ts +17 -4
  43. package/dist/ui/models/SingleJointRobot.d.ts +2 -0
  44. package/package.json +2 -2
  45. package/dist/components/debug/ScriptRunner/LogPanel.vue.d.ts +0 -19
  46. /package/dist/{json → lingshu-smart}/cases.json +0 -0
@@ -1,6 +1,7 @@
1
1
  import { ICleaningMachineConfig, ICleaningMachineOperating } 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
7
  */
@@ -11,4 +12,5 @@ export declare class CleaningMachine extends ModelAbs<ICleaningMachineConfig> {
11
12
  private stationSlotGroup;
12
13
  protected createUi(): Box;
13
14
  protected operating(data: ICleaningMachineOperating): void;
15
+ protected collectStationSlotGroups(): StationSlotGroup[];
14
16
  }
@@ -1,6 +1,7 @@
1
1
  import { IDoubleJointRobotConfig, IDoubleJointRobotOperating, EnumResourceType } 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
  * 双关节机器人(DoubleJointRobot)
6
7
  */
@@ -17,6 +18,7 @@ export declare class DoubleJointRobot extends ModelAbs<IDoubleJointRobotConfig>
17
18
  set currentFixture(type: EnumResourceType);
18
19
  protected createUi(): Box;
19
20
  protected operating(data: IDoubleJointRobotOperating): void;
21
+ protected collectStationSlotGroups(): StationSlotGroup[];
20
22
  private handleRotateR1;
21
23
  private handleRotateR2;
22
24
  private moveX;
@@ -1,6 +1,7 @@
1
1
  import { ILoadingStationConfig, ILoadingStationOperating } 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
  * 装载站(LoadingStation)
6
7
  */
@@ -13,4 +14,5 @@ export declare class LoadingStation extends ModelAbs<ILoadingStationConfig> {
13
14
  private stationSlotGroup;
14
15
  protected createUi(): Box;
15
16
  protected operating(data: ILoadingStationOperating): void;
17
+ protected collectStationSlotGroups(): StationSlotGroup[];
16
18
  }
@@ -1,6 +1,7 @@
1
1
  import { IMachineToolConfig, IMachineToolOperating } 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
7
  */
@@ -15,5 +16,6 @@ export declare class MachineTool extends ModelAbs<IMachineToolConfig> {
15
16
  private animating;
16
17
  protected createUi(): Box;
17
18
  protected operating(data: IMachineToolOperating): void;
19
+ protected collectStationSlotGroups(): StationSlotGroup[];
18
20
  private rotateStationContainerWithAnimation;
19
21
  }
@@ -1,6 +1,7 @@
1
1
  import { IMarkingMachineConfig, IMarkingMachineOperating } 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
7
  */
@@ -11,6 +12,7 @@ export declare class MarkingMachine extends ModelAbs<IMarkingMachineConfig> {
11
12
  private stationSlotGroup;
12
13
  protected createUi(): Box;
13
14
  protected operating(data: IMarkingMachineOperating): void;
15
+ protected collectStationSlotGroups(): StationSlotGroup[];
14
16
  private renderLaser;
15
17
  private setLaserWorking;
16
18
  }
@@ -0,0 +1,16 @@
1
+ import { IPalletConfig, IPalletOperating } from '../../types';
2
+ import { Box } from 'leafer';
3
+ import { ModelAbs } from '../abstract/ModelAbs';
4
+ /**
5
+ * 托盘(独立设备)
6
+ * 参考 ResourceStore:带铭牌、状态灯;
7
+ * 主体样式参考 ShuttleStation 的 layerContainer(内嵌纹理、溢出隐藏),支持修改背景色。
8
+ */
9
+ export declare class Pallet extends ModelAbs<IPalletConfig> {
10
+ private static readonly CORNER_RADIUS;
11
+ private light;
12
+ protected createUi(): Box;
13
+ private moveX;
14
+ private moveY;
15
+ protected operating(data: IPalletOperating): void;
16
+ }
@@ -1,6 +1,7 @@
1
1
  import { IResourceStoreConfig, IResourceStoreOperating } 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
7
  */
@@ -17,4 +18,5 @@ export declare class ResourceStore extends ModelAbs<IResourceStoreConfig> {
17
18
  containsStationIndex(index: number): boolean;
18
19
  private moveX;
19
20
  protected operating(data: IResourceStoreOperating): void;
21
+ protected collectStationSlotGroups(): StationSlotGroup[];
20
22
  }
@@ -1,6 +1,7 @@
1
1
  import { IRGVConfig, IRGVOperating } 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
  * RGV(轨道导引车)
6
7
  */
@@ -15,6 +16,7 @@ export declare class Rgv extends ModelAbs<IRGVConfig> {
15
16
  private stationSlotGroupTool;
16
17
  protected createUi(): Box;
17
18
  protected operating(data: IRGVOperating): void;
19
+ protected collectStationSlotGroups(): StationSlotGroup[];
18
20
  private handleRotate;
19
21
  private moveX;
20
22
  /**
@@ -3,19 +3,32 @@ import { Box } from 'leafer';
3
3
  import { ModelAbs } from '../abstract/ModelAbs';
4
4
  /**
5
5
  * 接驳站(ShuttleStation)
6
- * 整体为 U 型结构,通过单个 Path 元素一体化绘制,内部透明;
7
- * U 型下方底部区域较宽大,用于放置铭牌与长条状态灯;
8
- * 该模型仅支持 light 运转状态
6
+ * 整体为 U 型结构,支持多层工位组配置(每层 = 一个工位组容器);
7
+ * 每层独立拥有状态灯,通过 layerStatus 字典数据驱动颜色;
8
+ * 主体底部有 #EA9734 底座 + 两端半露轮子。
9
9
  */
10
10
  export declare class ShuttleStation extends ModelAbs<IShuttleStationConfig> {
11
11
  private static readonly WALL_THICKNESS;
12
12
  private static readonly BASE_HEIGHT;
13
- private static readonly BOTTOM_RADIUS;
14
13
  private static readonly LIGHT_Y_OFFSET;
15
14
  private static readonly NAME_PLATE_Y_OFFSET;
15
+ private static readonly LAYER_GAP;
16
+ private static readonly BASE_THICKNESS;
17
+ private static readonly BASE_EXTEND;
18
+ private static readonly WHEEL_SIZE;
19
+ private static readonly WHEEL_INSET;
20
+ private static readonly WHEEL_COVER_RATIO;
16
21
  private light;
22
+ private layerLights;
23
+ private layerGroups;
24
+ private lastLayerStatus;
17
25
  private buildUPath;
18
26
  private buildOutlinePath;
27
+ private buildLayers;
28
+ private buildBaseAndWheels;
19
29
  protected createUi(): Box;
20
30
  protected operating(data: IShuttleStationOperating): void;
31
+ private applyLayerStatus;
32
+ private resolveStatusColor;
33
+ private statusToColor;
21
34
  }
@@ -1,6 +1,7 @@
1
1
  import { ISingleJointRobotConfig, ISingleJointRobotOperating, EnumResourceType } 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
7
  */
@@ -17,6 +18,7 @@ export declare class SingleJointRobot extends ModelAbs<ISingleJointRobotConfig>
17
18
  set currentFixture(type: EnumResourceType);
18
19
  protected createUi(): Box;
19
20
  protected operating(data: ISingleJointRobotOperating): void;
21
+ protected collectStationSlotGroups(): StationSlotGroup[];
20
22
  private handleRotate;
21
23
  private moveX;
22
24
  private switchFork;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.34",
3
+ "version": "2.2.36",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",
@@ -48,7 +48,7 @@
48
48
  "pinia-plugin-persistedstate": "^4.7.1",
49
49
  "vue": "^3.5.22",
50
50
  "vue-i18n": "^9.14.5",
51
- "@jnrs/shared": "1.1.35"
51
+ "@jnrs/shared": "1.1.36"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/lodash-es": "^4.17.12",
@@ -1,19 +0,0 @@
1
- /** 日志条目(对应 WebSocket 消息结构) */
2
- export interface LogEntry {
3
- datetime: string;
4
- type: string;
5
- traceId: string;
6
- payload: any;
7
- }
8
- type __VLS_Props = {
9
- logs: LogEntry[];
10
- maxLogCount: number;
11
- };
12
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- copy: () => any;
14
- clear: () => any;
15
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onCopy?: (() => any) | undefined;
17
- onClear?: (() => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
- export default _default;
File without changes