@jnrs/lingshu-smart 2.2.7 → 2.2.9
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/editor/ControlBar/CaseTitleEdit.vue.d.ts +14 -14
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
- package/dist/components/index.js +9952 -8111
- package/dist/json/cases.json +577 -20
- package/dist/stores/useAppStore.d.ts +1 -1
- package/dist/types/base.types.d.ts +3 -1
- package/dist/types/components/config.types.d.ts +10 -2
- package/dist/types/enums.d.ts +6 -3
- package/dist/types/guards.d.ts +4 -1
- package/dist/types/models/config.types.d.ts +53 -6
- package/dist/types/models/operating.types.d.ts +74 -8
- package/dist/ui/abstract/ModelAbs.d.ts +2 -0
- package/dist/ui/components/Light.d.ts +18 -2
- package/dist/ui/components/StationSlot.d.ts +1 -1
- package/dist/ui/factories/createGlass.d.ts +3 -1
- package/dist/ui/factories/createShadow.d.ts +3 -3
- package/dist/ui/models/CleaningMachine.d.ts +14 -0
- package/dist/ui/models/DoubleJointRobot.d.ts +22 -0
- package/dist/ui/models/LoadingStation.d.ts +16 -0
- package/dist/ui/models/MachineTool.d.ts +4 -3
- package/dist/ui/models/MarkingMachine.d.ts +16 -0
- package/dist/ui/models/Rail.d.ts +15 -0
- package/dist/ui/models/ResourceStore.d.ts +12 -0
- package/dist/ui/models/SingleJointRobot.d.ts +22 -0
- package/dist/ui/shapes/NamePlate.d.ts +3 -1
- package/dist/ui/shapes/ScrewHole.d.ts +1 -1
- package/dist/ui/shapes/Texture.d.ts +5 -3
- package/dist/ui/utils/attr.d.ts +1 -1
- package/package.json +4 -4
- /package/dist/assets/data/{editor_default.d.ts → editor_default_setting.d.ts} +0 -0
- /package/dist/assets/data/{editor_preset.d.ts → editor_preset_menu.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IRowData, IBaseConfig, IInteractiveState } from '../base.types';
|
|
2
2
|
import { EnumResourceType, EnumComponent } from '../enums';
|
|
3
|
+
export type IOriginAround = 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
4
|
/**
|
|
4
5
|
* 工位
|
|
5
6
|
*/
|
|
@@ -11,6 +12,9 @@ export interface IStationSlotConfig extends IBaseConfig, IInteractiveState {
|
|
|
11
12
|
rotation?: number;
|
|
12
13
|
parentRotation?: number;
|
|
13
14
|
disabled?: boolean;
|
|
15
|
+
origin?: IOriginAround;
|
|
16
|
+
around?: IOriginAround;
|
|
17
|
+
showContainer?: boolean;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
20
|
* 布局选项
|
|
@@ -26,8 +30,11 @@ export interface IFlowConfig {
|
|
|
26
30
|
*/
|
|
27
31
|
export interface IStationSlotGroupConfig extends IBaseConfig {
|
|
28
32
|
parentRotation?: number;
|
|
33
|
+
origin?: IOriginAround;
|
|
34
|
+
around?: IOriginAround;
|
|
29
35
|
stationSlots: IStationSlotConfig[];
|
|
30
36
|
flowOptions: IFlowConfig;
|
|
37
|
+
hittable?: boolean;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* 资源
|
|
@@ -43,10 +50,11 @@ export interface IResourceConfig extends IBaseConfig, IInteractiveState {
|
|
|
43
50
|
* 状态灯
|
|
44
51
|
*/
|
|
45
52
|
export interface ILightConfig extends IBaseConfig {
|
|
46
|
-
|
|
53
|
+
color?: string;
|
|
47
54
|
strokeColor?: string;
|
|
48
55
|
strokeWidth?: number;
|
|
49
|
-
|
|
56
|
+
cornerRadius?: number | number[];
|
|
57
|
+
showShadow?: boolean;
|
|
50
58
|
}
|
|
51
59
|
/**
|
|
52
60
|
* 进度条
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -11,17 +11,20 @@ export declare enum EnumTag {
|
|
|
11
11
|
OTHER = "\u5176\u4ED6"
|
|
12
12
|
}
|
|
13
13
|
export declare enum EnumModel {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
SINGLE_JOINT_ROBOT = "SingleJointRobot",
|
|
15
|
+
DOUBLE_JOINT_ROBOT = "DoubleJointRobot",
|
|
16
16
|
RGV = "Rgv",
|
|
17
17
|
MACHINE_TOOL = "MachineTool",
|
|
18
|
+
MARKING_MACHINE = "MarkingMachine",
|
|
18
19
|
CLEANING_MACHINE = "CleaningMachine",
|
|
19
20
|
LOADING_STATION = "LoadingStation",
|
|
20
21
|
PALLET_STORAGE = "PalletStorage",
|
|
21
22
|
TOOL_STORAGE = "ToolStorage",
|
|
22
23
|
BUFFER_DOCK = "BufferDock",
|
|
23
24
|
GROUND_RAIL = "GroundRail",
|
|
24
|
-
FOLLOWING_TUGGER = "FollowingTugger"
|
|
25
|
+
FOLLOWING_TUGGER = "FollowingTugger",
|
|
26
|
+
RAIL = "Rail",
|
|
27
|
+
RESOURCE_STORE = "ResourceStore"
|
|
25
28
|
}
|
|
26
29
|
export declare enum EnumComponent {
|
|
27
30
|
STATION_SLOT = "StationSlot",
|
package/dist/types/guards.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { ILayer } from './index';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function isMachineTool(layer: ILayer | null): layer is import('./index').IMachineToolConfig;
|
|
3
|
+
export declare function hasStationSlotGroup(layer: ILayer | null): layer is import('./index').IMachineToolConfig | import('./index').ILoadingStationConfig | import('./index').IMarkingMachineConfig | import('./index').ICleaningMachineConfig | import('./index').IResourceStoreConfig;
|
|
4
|
+
export declare function hasFixtureChange(layer: ILayer | null): layer is import('./index').ISingleJointRobotConfig | import('./index').IDoubleJointRobotConfig;
|
|
5
|
+
export declare function isRail(layer: ILayer | null): layer is import('./index').IRailConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnumModel, EnumTag } from '../enums';
|
|
1
|
+
import { EnumModel, EnumTag, EnumResourceType } from '../enums';
|
|
2
2
|
import { IRowData, IBaseConfig, IEventState } from '../base.types';
|
|
3
3
|
import { IStationSlotGroupConfig } from '../components/config.types';
|
|
4
4
|
/**
|
|
@@ -28,18 +28,65 @@ export interface IModel extends IBaseConfig, IEventState {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface IMachineToolConfig extends IModel {
|
|
30
30
|
className: EnumModel.MACHINE_TOOL;
|
|
31
|
+
stationContainerDirection?: 'horizontal' | 'vertical';
|
|
31
32
|
stationSlotGroup?: IStationSlotGroupConfig;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* 装载站
|
|
35
36
|
*/
|
|
36
|
-
export interface
|
|
37
|
-
className: EnumModel.
|
|
38
|
-
|
|
37
|
+
export interface ILoadingStationConfig extends IModel {
|
|
38
|
+
className: EnumModel.LOADING_STATION;
|
|
39
|
+
stationContainerDirection?: 'horizontal' | 'vertical';
|
|
40
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 打标机
|
|
44
|
+
*/
|
|
45
|
+
export interface IMarkingMachineConfig extends IModel {
|
|
46
|
+
className: EnumModel.MARKING_MACHINE;
|
|
47
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 清洗机
|
|
51
|
+
*/
|
|
52
|
+
export interface ICleaningMachineConfig extends IModel {
|
|
53
|
+
className: EnumModel.CLEANING_MACHINE;
|
|
54
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 单关节机器人
|
|
58
|
+
*/
|
|
59
|
+
export interface ISingleJointRobotConfig extends IModel {
|
|
60
|
+
className: EnumModel.SINGLE_JOINT_ROBOT;
|
|
61
|
+
currentFixture: EnumResourceType;
|
|
39
62
|
linkRailId?: string;
|
|
40
63
|
linkTrailerId?: string;
|
|
41
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* 双关节机器人
|
|
67
|
+
*/
|
|
68
|
+
export interface IDoubleJointRobotConfig extends IModel {
|
|
69
|
+
className: EnumModel.DOUBLE_JOINT_ROBOT;
|
|
70
|
+
currentFixture: EnumResourceType;
|
|
71
|
+
linkRailId?: string;
|
|
72
|
+
linkTrailerId?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 轨道
|
|
76
|
+
*/
|
|
77
|
+
export interface IRailConfig extends IModel {
|
|
78
|
+
className: EnumModel.RAIL;
|
|
79
|
+
chainDirection?: 'left' | 'right';
|
|
80
|
+
linkEquipIdArray?: string[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 资源库
|
|
84
|
+
*/
|
|
85
|
+
export interface IResourceStoreConfig extends IModel {
|
|
86
|
+
className: EnumModel.RESOURCE_STORE;
|
|
87
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
88
|
+
}
|
|
42
89
|
/**
|
|
43
90
|
* 设备层联合类型
|
|
44
91
|
*/
|
|
45
|
-
export type ILayer = IMachineToolConfig |
|
|
92
|
+
export type ILayer = IMachineToolConfig | ILoadingStationConfig | IMarkingMachineConfig | ICleaningMachineConfig | ISingleJointRobotConfig | IDoubleJointRobotConfig | IRailConfig | IResourceStoreConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnumModel } from '../enums';
|
|
1
|
+
import { EnumModel, EnumResourceType } from '../enums';
|
|
2
2
|
import { IRowData } from '../base.types';
|
|
3
3
|
import { ILightOperating, IProgressOperating, IEntranceOperating, IResourceOperating } from '../components/operating.types';
|
|
4
4
|
/**
|
|
@@ -18,17 +18,83 @@ export interface IMachineToolOperating extends IModelOperating {
|
|
|
18
18
|
light?: ILightOperating;
|
|
19
19
|
progress?: IProgressOperating;
|
|
20
20
|
entrance?: IEntranceOperating;
|
|
21
|
+
stationRotatable?: boolean;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* 装载站运转状态
|
|
24
25
|
*/
|
|
25
|
-
export interface
|
|
26
|
-
className: EnumModel.
|
|
27
|
-
light
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
export interface ILoadingStationOperating extends IModelOperating {
|
|
27
|
+
className: EnumModel.LOADING_STATION;
|
|
28
|
+
light?: Omit<ILightOperating, 'rotating'>;
|
|
29
|
+
progress?: IProgressOperating;
|
|
30
|
+
entrance?: IEntranceOperating;
|
|
31
|
+
stationRotatable?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 打标机站点状态
|
|
35
|
+
*/
|
|
36
|
+
export interface ILaserSiteState {
|
|
37
|
+
site: number;
|
|
38
|
+
active: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 打标机运转状态
|
|
42
|
+
*/
|
|
43
|
+
export interface IMarkingMachineOperating extends IModelOperating {
|
|
44
|
+
className: EnumModel.MARKING_MACHINE;
|
|
45
|
+
light?: Omit<ILightOperating, 'rotating'>;
|
|
46
|
+
progress?: IProgressOperating;
|
|
47
|
+
entrance?: IEntranceOperating;
|
|
48
|
+
laserSiteNumberArray?: ILaserSiteState[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 清洗机运转状态
|
|
52
|
+
*/
|
|
53
|
+
export interface ICleaningMachineOperating extends IModelOperating {
|
|
54
|
+
className: EnumModel.CLEANING_MACHINE;
|
|
55
|
+
light?: Omit<ILightOperating, 'rotating'>;
|
|
56
|
+
progress?: IProgressOperating;
|
|
57
|
+
entrance?: IEntranceOperating;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* 单关节机器人运转状态
|
|
61
|
+
*/
|
|
62
|
+
export interface ISingleJointRobotOperating extends IModelOperating {
|
|
63
|
+
className: EnumModel.SINGLE_JOINT_ROBOT;
|
|
64
|
+
light?: ILightOperating;
|
|
65
|
+
x?: number;
|
|
66
|
+
y?: number;
|
|
67
|
+
j1?: number;
|
|
68
|
+
currentFixture?: EnumResourceType;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 双关节机器人运转状态
|
|
72
|
+
*/
|
|
73
|
+
export interface IDoubleJointRobotOperating extends IModelOperating {
|
|
74
|
+
className: EnumModel.DOUBLE_JOINT_ROBOT;
|
|
75
|
+
light?: ILightOperating;
|
|
76
|
+
x?: number;
|
|
77
|
+
y?: number;
|
|
78
|
+
j1?: number;
|
|
79
|
+
j2?: number;
|
|
80
|
+
currentFixture?: EnumResourceType;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 轨道运转状态
|
|
84
|
+
*/
|
|
85
|
+
export interface IRailOperating extends IModelOperating {
|
|
86
|
+
className: EnumModel.RAIL;
|
|
87
|
+
x?: number;
|
|
88
|
+
botId?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 资源库运转状态
|
|
92
|
+
*/
|
|
93
|
+
export interface IResourceStoreOperating extends IModelOperating {
|
|
94
|
+
className: EnumModel.RESOURCE_STORE;
|
|
95
|
+
light?: ILightOperating;
|
|
30
96
|
}
|
|
31
97
|
/**
|
|
32
98
|
* 设备层运转状态的联合类型
|
|
33
99
|
*/
|
|
34
|
-
export type ILayerOperating = IMachineToolOperating |
|
|
100
|
+
export type ILayerOperating = IMachineToolOperating | ILoadingStationOperating | IMarkingMachineOperating | ICleaningMachineOperating | ISingleJointRobotOperating | IDoubleJointRobotOperating | IRailOperating | IResourceStoreOperating;
|
|
@@ -9,6 +9,8 @@ export declare abstract class ModelAbs<T extends ILayer = ILayer> {
|
|
|
9
9
|
get ui(): UI<import('leafer').IUIInputData>;
|
|
10
10
|
get config(): T;
|
|
11
11
|
protected get width_05(): number;
|
|
12
|
+
protected get width_02(): number;
|
|
13
|
+
protected get width_08(): number;
|
|
12
14
|
protected get height_05(): number;
|
|
13
15
|
protected abstract createUi(): UI;
|
|
14
16
|
protected abstract operating(data: ILayerOperating): void;
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { ILightConfig, ILightOperating } from '../../types';
|
|
2
2
|
import { Box } from 'leafer';
|
|
3
3
|
import { ComponentAbs } from '../abstract/ComponentAbs';
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export interface IEllipseLight extends ILightConfig {
|
|
5
|
+
isRingShape?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IRectLightOperating extends Omit<ILightOperating, 'rotating'> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 圆形灯
|
|
11
|
+
*/
|
|
12
|
+
export declare class EllipseLight extends ComponentAbs<IEllipseLight> {
|
|
13
|
+
constructor(options: IEllipseLight);
|
|
6
14
|
protected createUi(): Box;
|
|
7
15
|
operating(val: ILightOperating): void;
|
|
8
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* 矩形灯
|
|
19
|
+
*/
|
|
20
|
+
export declare class RectLight extends ComponentAbs<ILightConfig> {
|
|
21
|
+
constructor(options: ILightConfig);
|
|
22
|
+
protected createUi(): Box;
|
|
23
|
+
operating(val: IRectLightOperating): void;
|
|
24
|
+
}
|
|
@@ -7,7 +7,6 @@ export declare class StationSlot extends ComponentAbs<IStationSlotConfig> {
|
|
|
7
7
|
protected createUi(): Box;
|
|
8
8
|
private get autoFixRotation();
|
|
9
9
|
private get autoCornerRadius();
|
|
10
|
-
private setupClickableArea;
|
|
11
10
|
/**
|
|
12
11
|
* 添加托盘
|
|
13
12
|
* @param d
|
|
@@ -23,6 +22,7 @@ export declare class StationSlot extends ComponentAbs<IStationSlotConfig> {
|
|
|
23
22
|
* @param flag
|
|
24
23
|
*/
|
|
25
24
|
setSiteWorking(flag: boolean): void;
|
|
25
|
+
toggleVisible(visible: boolean | 0): void;
|
|
26
26
|
/**
|
|
27
27
|
* 销毁
|
|
28
28
|
*/
|
|
@@ -4,7 +4,9 @@ export interface IGlassConfig {
|
|
|
4
4
|
y?: number;
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
7
|
-
cornerRadius?: number;
|
|
7
|
+
cornerRadius?: number | number[];
|
|
8
|
+
origin?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
9
|
+
around?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* 创建具有磨砂玻璃效果的 Box 容器
|
|
@@ -2,8 +2,8 @@ import { Canvas, IShadowEffect } from 'leafer';
|
|
|
2
2
|
export interface IShadow {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
|
-
cornerRadius?: number;
|
|
6
|
-
shadow?: IShadowEffect | IShadowEffect[];
|
|
7
|
-
innerShadow?: IShadowEffect | IShadowEffect[];
|
|
5
|
+
cornerRadius?: number | number[];
|
|
6
|
+
shadow?: IShadowEffect | IShadowEffect[] | null;
|
|
7
|
+
innerShadow?: IShadowEffect | IShadowEffect[] | null;
|
|
8
8
|
}
|
|
9
9
|
export declare function createShadow(options: IShadow): Canvas;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICleaningMachineConfig, ICleaningMachineOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 清洗机
|
|
6
|
+
*/
|
|
7
|
+
export declare class CleaningMachine extends ModelAbs<ICleaningMachineConfig> {
|
|
8
|
+
private light;
|
|
9
|
+
private progress;
|
|
10
|
+
private entrance;
|
|
11
|
+
private stationSlotGroup;
|
|
12
|
+
protected createUi(): Box;
|
|
13
|
+
protected operating(data: ICleaningMachineOperating): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IDoubleJointRobotConfig, IDoubleJointRobotOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 双关节机器人(DoubleJointRobot)
|
|
6
|
+
*/
|
|
7
|
+
export declare class DoubleJointRobot extends ModelAbs<IDoubleJointRobotConfig> {
|
|
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 palletStationSlot;
|
|
15
|
+
private cutterStationSlot;
|
|
16
|
+
protected createUi(): Box;
|
|
17
|
+
protected operating(data: IDoubleJointRobotOperating): void;
|
|
18
|
+
private handleRotateR1;
|
|
19
|
+
private handleRotateR2;
|
|
20
|
+
private moveX;
|
|
21
|
+
private switchFork;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILoadingStationConfig, ILoadingStationOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 装载站(LoadingStation)
|
|
6
|
+
*/
|
|
7
|
+
export declare class LoadingStation extends ModelAbs<ILoadingStationConfig> {
|
|
8
|
+
private static readonly PROGRESS_Y_OFFSET;
|
|
9
|
+
private static readonly NAME_PLATE_Y_OFFSET;
|
|
10
|
+
private light;
|
|
11
|
+
private progress;
|
|
12
|
+
private entrance;
|
|
13
|
+
private stationSlotGroup;
|
|
14
|
+
protected createUi(): Box;
|
|
15
|
+
protected operating(data: ILoadingStationOperating): void;
|
|
16
|
+
}
|
|
@@ -5,13 +5,14 @@ import { ModelAbs } from '../abstract/ModelAbs';
|
|
|
5
5
|
* 机床
|
|
6
6
|
*/
|
|
7
7
|
export declare class MachineTool extends ModelAbs<IMachineToolConfig> {
|
|
8
|
+
private static readonly STATION_OFFSET;
|
|
8
9
|
private light;
|
|
9
10
|
private progress;
|
|
10
11
|
private entrance;
|
|
11
12
|
private stationSlotGroup;
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
private get width_08();
|
|
13
|
+
private stationContainer;
|
|
14
|
+
private stationContainerBaseRotation;
|
|
15
15
|
protected createUi(): Box;
|
|
16
16
|
protected operating(data: IMachineToolOperating): void;
|
|
17
|
+
private rotateStationContainerWithAnimation;
|
|
17
18
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IMarkingMachineConfig, IMarkingMachineOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 打标机
|
|
6
|
+
*/
|
|
7
|
+
export declare class MarkingMachine extends ModelAbs<IMarkingMachineConfig> {
|
|
8
|
+
private light;
|
|
9
|
+
private progress;
|
|
10
|
+
private entrance;
|
|
11
|
+
private stationSlotGroup;
|
|
12
|
+
protected createUi(): Box;
|
|
13
|
+
protected operating(data: IMarkingMachineOperating): void;
|
|
14
|
+
private renderLaser;
|
|
15
|
+
private setLaserWorking;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRailConfig, IRailOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 轨道(Rail)
|
|
6
|
+
*/
|
|
7
|
+
export declare class Rail extends ModelAbs<IRailConfig> {
|
|
8
|
+
private static readonly DEFAULT_HEIGHT;
|
|
9
|
+
private chains;
|
|
10
|
+
protected createUi(): Box;
|
|
11
|
+
protected operating(data: IRailOperating): void;
|
|
12
|
+
private initChains;
|
|
13
|
+
private createChain;
|
|
14
|
+
private moveChain;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IResourceStoreConfig, IResourceStoreOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 资源库
|
|
6
|
+
*/
|
|
7
|
+
export declare class ResourceStore extends ModelAbs<IResourceStoreConfig> {
|
|
8
|
+
private light;
|
|
9
|
+
private stationSlotGroup;
|
|
10
|
+
protected createUi(): Box;
|
|
11
|
+
protected operating(data: IResourceStoreOperating): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ISingleJointRobotConfig, ISingleJointRobotOperating } from '../../types';
|
|
2
|
+
import { Box } from 'leafer';
|
|
3
|
+
import { ModelAbs } from '../abstract/ModelAbs';
|
|
4
|
+
/**
|
|
5
|
+
* 单关节机器人
|
|
6
|
+
* 基于 ModelAbs 重构,保留 Bot.js 核心运行行为:状态灯、沿 X 移动、手臂旋转、夹具切换。
|
|
7
|
+
*/
|
|
8
|
+
export declare class SingleJointRobot extends ModelAbs<ISingleJointRobotConfig> {
|
|
9
|
+
private static readonly DEFAULT_WIDTH;
|
|
10
|
+
private static readonly DEFAULT_HEIGHT;
|
|
11
|
+
private static readonly DEFAULT_LIGHT_COLOR;
|
|
12
|
+
private light1;
|
|
13
|
+
private light2;
|
|
14
|
+
private defaultLightColor;
|
|
15
|
+
private palletStationSlot;
|
|
16
|
+
private cutterStationSlot;
|
|
17
|
+
protected createUi(): Box;
|
|
18
|
+
protected operating(data: ISingleJointRobotOperating): void;
|
|
19
|
+
private handleRotate;
|
|
20
|
+
private moveX;
|
|
21
|
+
private switchFork;
|
|
22
|
+
}
|
|
@@ -9,7 +9,9 @@ export interface NamePlateOptions {
|
|
|
9
9
|
fill?: string;
|
|
10
10
|
textColor?: string;
|
|
11
11
|
fontSize?: number;
|
|
12
|
+
stroke?: string;
|
|
13
|
+
strokeWidth?: number;
|
|
12
14
|
screwHole?: boolean;
|
|
13
15
|
zIndex?: number | string;
|
|
14
16
|
}
|
|
15
|
-
export declare function
|
|
17
|
+
export declare function NamePlate(options: NamePlateOptions): Box;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Box } from 'leafer';
|
|
1
|
+
import { Box, IFill } from 'leafer';
|
|
2
2
|
export type TextureEffect = 'LightGrid' | 'DarkGrid' | 'MatrixGrid' | 'LightDot' | 'DarkDot' | 'WoodFloor' | 'VerticalBar';
|
|
3
3
|
export interface ITextureOptions {
|
|
4
|
+
className?: string;
|
|
4
5
|
width?: number;
|
|
5
6
|
height?: number;
|
|
6
7
|
effect?: TextureEffect;
|
|
7
8
|
opacity?: number;
|
|
8
9
|
scale?: number;
|
|
9
10
|
rotation?: number;
|
|
10
|
-
cornerRadius?: number;
|
|
11
|
+
cornerRadius?: number | number[];
|
|
12
|
+
fill?: IFill;
|
|
11
13
|
}
|
|
12
|
-
export declare function
|
|
14
|
+
export declare function Texture(options?: ITextureOptions): Box;
|
package/dist/ui/utils/attr.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { IInteractiveState, IEventState } from '../../types';
|
|
|
4
4
|
* 根据交互属性设置鼠标样式和 hover 效果
|
|
5
5
|
* @param target UI 目标对象
|
|
6
6
|
* @param data 交互属性数据
|
|
7
|
-
* @param type 效果类型,默认为 'shadow',可选 'border'
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jnrs/lingshu-smart",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "LingShu Smart 2D Digital Twin System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jnrs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
46
46
|
"vue": "^3.5.22",
|
|
47
47
|
"vue-i18n": "^9.14.5",
|
|
48
|
-
"@jnrs/shared": "1.1.
|
|
48
|
+
"@jnrs/shared": "1.1.23"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"dev": "vite",
|
|
69
|
-
"build": "
|
|
69
|
+
"build": "rimraf dist && pnpm type-check && vite build",
|
|
70
70
|
"release": "node ./scripts/release.mjs",
|
|
71
|
-
"type-check": "vue-tsc --
|
|
71
|
+
"type-check": "vue-tsc --noEmit"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
File without changes
|
|
File without changes
|