@jnrs/lingshu-smart 2.2.25 → 2.2.28

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.
@@ -21,7 +21,3 @@ export declare const secondBatchMessages: {
21
21
  type: string;
22
22
  payload: any;
23
23
  }[];
24
- /**
25
- * 注释掉的测试数据(备用)
26
- */
27
- export declare const commentedMessages: never[];
@@ -58,6 +58,7 @@ export interface ILightConfig extends IBaseConfig {
58
58
  strokeWidth?: number;
59
59
  cornerRadius?: number | number[];
60
60
  showShadow?: boolean;
61
+ inFlow?: boolean;
61
62
  }
62
63
  /**
63
64
  * 进度条
@@ -18,11 +18,6 @@ export declare enum EnumModel {
18
18
  MARKING_MACHINE = "MarkingMachine",
19
19
  CLEANING_MACHINE = "CleaningMachine",
20
20
  LOADING_STATION = "LoadingStation",
21
- PALLET_STORAGE = "PalletStorage",
22
- TOOL_STORAGE = "ToolStorage",
23
- BUFFER_DOCK = "BufferDock",
24
- GROUND_RAIL = "GroundRail",
25
- FOLLOWING_TUGGER = "FollowingTugger",
26
21
  RAIL = "Rail",
27
22
  RESOURCE_STORE = "ResourceStore"
28
23
  }
@@ -75,6 +75,19 @@ export interface IDoubleJointRobotConfig extends IModel {
75
75
  currentFixture: EnumResourceType;
76
76
  linkRailId?: string;
77
77
  linkTrailerId?: string;
78
+ flowOptions?: IFlowConfig;
79
+ stationSlotGroupPallet?: IStationSlotGroupConfig;
80
+ stationSlotGroupTool?: IStationSlotGroupConfig;
81
+ }
82
+ /**
83
+ * RGV
84
+ */
85
+ export interface IRGVConfig extends IModel {
86
+ className: EnumModel.RGV;
87
+ linkRailId?: string;
88
+ flowOptions?: IFlowConfig;
89
+ stationSlotGroupPallet?: IStationSlotGroupConfig;
90
+ stationSlotGroupTool?: IStationSlotGroupConfig;
78
91
  }
79
92
  /**
80
93
  * 轨道
@@ -96,4 +109,4 @@ export interface IResourceStoreConfig extends IModel {
96
109
  /**
97
110
  * 设备层联合类型
98
111
  */
99
- export type ILayer = IMachineToolConfig | ILoadingStationConfig | IMarkingMachineConfig | ICleaningMachineConfig | ISingleJointRobotConfig | IDoubleJointRobotConfig | IRailConfig | IResourceStoreConfig;
112
+ export type ILayer = IMachineToolConfig | ILoadingStationConfig | IMarkingMachineConfig | ICleaningMachineConfig | ISingleJointRobotConfig | IDoubleJointRobotConfig | IRGVConfig | IRailConfig | IResourceStoreConfig;
@@ -79,6 +79,17 @@ export interface IDoubleJointRobotOperating extends IModelOperating {
79
79
  j2?: number;
80
80
  currentFixture?: EnumResourceType;
81
81
  }
82
+ /**
83
+ * RGV运转状态
84
+ */
85
+ export interface IRGVOperating extends IModelOperating {
86
+ className: EnumModel.RGV;
87
+ light?: ILightOperating;
88
+ x?: number;
89
+ j1?: number;
90
+ forkXY?: number;
91
+ forkZ?: number;
92
+ }
82
93
  /**
83
94
  * 轨道运转状态
84
95
  */
@@ -99,4 +110,4 @@ export interface IResourceStoreOperating extends IModelOperating {
99
110
  /**
100
111
  * 设备层运转状态的联合类型
101
112
  */
102
- export type ILayerOperating = IMachineToolOperating | ILoadingStationOperating | IMarkingMachineOperating | ICleaningMachineOperating | ISingleJointRobotOperating | IDoubleJointRobotOperating | IRailOperating | IResourceStoreOperating;
113
+ export type ILayerOperating = IMachineToolOperating | ILoadingStationOperating | IMarkingMachineOperating | ICleaningMachineOperating | ISingleJointRobotOperating | IDoubleJointRobotOperating | IRGVOperating | IRailOperating | IResourceStoreOperating;
@@ -12,6 +12,8 @@ export declare abstract class ModelAbs<T extends ILayer = ILayer> {
12
12
  protected get width_02(): number;
13
13
  protected get width_08(): number;
14
14
  protected get height_05(): number;
15
+ protected get height_02(): number;
16
+ protected get height_08(): number;
15
17
  protected abstract createUi(): UI;
16
18
  protected abstract operating(data: ILayerOperating): void;
17
19
  init(): this;
@@ -13,19 +13,9 @@ export declare class Entrance extends ComponentAbs<IEntranceConfig> {
13
13
  around: string;
14
14
  visible: boolean;
15
15
  children: ({
16
+ className: string;
16
17
  tag: string;
17
18
  points: number[];
18
- animation: {
19
- keyframes: ({
20
- fill: string;
21
- scaleY?: undefined;
22
- } | {
23
- fill: string;
24
- scaleY: number;
25
- })[];
26
- duration: number;
27
- swing: boolean;
28
- };
29
19
  text?: undefined;
30
20
  fill?: undefined;
31
21
  fontSize?: undefined;
@@ -42,9 +32,11 @@ export declare class Entrance extends ComponentAbs<IEntranceConfig> {
42
32
  textAlign: string;
43
33
  y: number;
44
34
  width: number;
35
+ className?: undefined;
45
36
  points?: undefined;
46
- animation?: undefined;
47
37
  })[];
48
38
  };
39
+ private readonly ACTIVE_ANIMATION;
40
+ private updateChannel;
49
41
  operating(val: IEntranceOperating): void;
50
42
  }
@@ -1,4 +1,4 @@
1
- import { IDoubleJointRobotConfig, IDoubleJointRobotOperating } from '../../types';
1
+ import { IDoubleJointRobotConfig, IDoubleJointRobotOperating, EnumResourceType } from '../../types';
2
2
  import { Box } from 'leafer';
3
3
  import { ModelAbs } from '../abstract/ModelAbs';
4
4
  /**
@@ -11,12 +11,15 @@ export declare class DoubleJointRobot extends ModelAbs<IDoubleJointRobotConfig>
11
11
  private light1;
12
12
  private light2;
13
13
  private defaultLightColor;
14
- private palletStationSlot;
15
- private cutterStationSlot;
14
+ private stationSlotGroupPallet;
15
+ private stationSlotGroupTool;
16
+ get currentFixture(): EnumResourceType;
17
+ set currentFixture(type: EnumResourceType);
16
18
  protected createUi(): Box;
17
19
  protected operating(data: IDoubleJointRobotOperating): void;
18
20
  private handleRotateR1;
19
21
  private handleRotateR2;
20
22
  private moveX;
21
23
  private switchFork;
24
+ handleLoadResource(handleType: 'add' | 'remove'): void;
22
25
  }
@@ -0,0 +1,32 @@
1
+ import { IRGVConfig, IRGVOperating } from '../../types';
2
+ import { Box } from 'leafer';
3
+ import { ModelAbs } from '../abstract/ModelAbs';
4
+ /**
5
+ * RGV(轨道导引车)
6
+ */
7
+ export declare class Rgv extends ModelAbs<IRGVConfig> {
8
+ private static readonly DEFAULT_WIDTH;
9
+ private static readonly DEFAULT_HEIGHT;
10
+ private static readonly DEFAULT_LIGHT_COLOR;
11
+ private light1;
12
+ private light2;
13
+ private defaultLightColor;
14
+ private stationSlotGroupPallet;
15
+ private stationSlotGroupTool;
16
+ protected createUi(): Box;
17
+ protected operating(data: IRGVOperating): void;
18
+ private handleRotate;
19
+ private moveX;
20
+ /**
21
+ * forks 前后移动
22
+ * @param percent 移动比例,-1 ~ 1
23
+ * @param duration 动画持续时间
24
+ */
25
+ private handleForkMove;
26
+ /**
27
+ * forks 上下移动
28
+ * @param percent 移动比例,-1 ~ 1
29
+ * @param duration 动画持续时间
30
+ */
31
+ private handleForkMoveUpDown;
32
+ }
@@ -1,4 +1,4 @@
1
- import { ISingleJointRobotConfig, ISingleJointRobotOperating } from '../../types';
1
+ import { ISingleJointRobotConfig, ISingleJointRobotOperating, EnumResourceType } from '../../types';
2
2
  import { Box } from 'leafer';
3
3
  import { ModelAbs } from '../abstract/ModelAbs';
4
4
  /**
@@ -13,9 +13,12 @@ export declare class SingleJointRobot extends ModelAbs<ISingleJointRobotConfig>
13
13
  private defaultLightColor;
14
14
  private stationSlotGroupPallet;
15
15
  private stationSlotGroupTool;
16
+ get currentFixture(): EnumResourceType;
17
+ set currentFixture(type: EnumResourceType);
16
18
  protected createUi(): Box;
17
19
  protected operating(data: ISingleJointRobotOperating): void;
18
20
  private handleRotate;
19
21
  private moveX;
20
22
  private switchFork;
23
+ handleLoadResource(handleType: 'add' | 'remove'): void;
21
24
  }
@@ -7,3 +7,8 @@ import { IInteractiveState, IEventState } from '../../types';
7
7
  * @param type 效果类型,默认为 'shadow',可选 'border'('border' 特别适用于 overflow: 'hidden' 的容器)
8
8
  */
9
9
  export declare function setCursor(target: UI, data: IInteractiveState & IEventState, type?: 'shadow' | 'border'): void;
10
+ /**
11
+ * 设置阴影效果
12
+ * @param target UI 目标对象
13
+ */
14
+ export declare function setShadow(target: UI, color?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.25",
3
+ "version": "2.2.28",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",
@@ -21,7 +21,7 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "README.md",
24
- "AGENTIC.md",
24
+ "AGENTS.md",
25
25
  "LICENSE"
26
26
  ],
27
27
  "exports": {