@jnrs/lingshu-smart 2.2.11 → 2.2.13
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/index.js +34622 -21495
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -1
- package/dist/types/components/config.types.d.ts +47 -41
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './types/index';
|
package/dist/index.js
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
var R = /* @__PURE__ */ ((O) => (O.UNDO = "Undo", O.REDO = "Redo", O))(R || {}), a = /* @__PURE__ */ ((O) => (O.TRANSPORT = "搬运设备", O.MACHINE = "机床", O.CLEANING = "清洗机", O.STATION = "装载站", O.STORAGE = "库", O.OTHER = "其他", O))(a || {}), N = /* @__PURE__ */ ((O) => (O.SINGLE_JOINT_ROBOT = "SingleJointRobot", O.DOUBLE_JOINT_ROBOT = "DoubleJointRobot", O.RGV = "Rgv", O.MACHINE_TOOL = "MachineTool", O.MARKING_MACHINE = "MarkingMachine", O.CLEANING_MACHINE = "CleaningMachine", O.LOADING_STATION = "LoadingStation", O.PALLET_STORAGE = "PalletStorage", O.TOOL_STORAGE = "ToolStorage", O.BUFFER_DOCK = "BufferDock", O.GROUND_RAIL = "GroundRail", O.FOLLOWING_TUGGER = "FollowingTugger", O.RAIL = "Rail", O.RESOURCE_STORE = "ResourceStore", O))(N || {}), T = /* @__PURE__ */ ((O) => (O.STATION_SLOT = "StationSlot", O.RESOURCE = "Resource", O))(T || {}), t = /* @__PURE__ */ ((O) => (O.PALLET = "Pallet", O.TOOL = "Tool", O))(t || {});
|
|
2
|
+
function r(O) {
|
|
3
|
+
return O?.className === N.MACHINE_TOOL;
|
|
4
|
+
}
|
|
5
|
+
function I(O) {
|
|
6
|
+
return O?.className === N.MACHINE_TOOL || O?.className === N.MARKING_MACHINE || O?.className === N.CLEANING_MACHINE || O?.className === N.LOADING_STATION || O?.className === N.RESOURCE_STORE;
|
|
7
|
+
}
|
|
8
|
+
function A(O) {
|
|
9
|
+
return O?.className === N.SINGLE_JOINT_ROBOT || O?.className === N.DOUBLE_JOINT_ROBOT;
|
|
10
|
+
}
|
|
11
|
+
function L(O) {
|
|
12
|
+
return O?.className === N.RAIL;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
T as EnumComponent,
|
|
16
|
+
N as EnumModel,
|
|
17
|
+
t as EnumResourceType,
|
|
18
|
+
R as EnumStepType,
|
|
19
|
+
a as EnumTag,
|
|
20
|
+
A as hasFixtureChange,
|
|
21
|
+
I as hasStationSlotGroup,
|
|
22
|
+
r as isMachineTool,
|
|
23
|
+
L as isRail
|
|
24
|
+
};
|
|
@@ -1,76 +1,82 @@
|
|
|
1
|
-
import { IRowData, IBaseConfig, IInteractiveState } from '../base.types'
|
|
2
|
-
import { EnumResourceType, EnumComponent } from '../enums'
|
|
3
|
-
export type IOriginAround = 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
1
|
+
import { IRowData, IBaseConfig, IInteractiveState } from '../base.types'
|
|
2
|
+
import { EnumResourceType, EnumComponent } from '../enums'
|
|
3
|
+
export type IOriginAround = 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
4
4
|
/**
|
|
5
5
|
* 工位
|
|
6
6
|
*/
|
|
7
7
|
export interface IStationSlotConfig extends IBaseConfig, IInteractiveState {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
className?: EnumComponent.STATION_SLOT
|
|
9
|
+
resourceType: EnumResourceType
|
|
10
|
+
index: number
|
|
11
|
+
name?: string
|
|
12
|
+
rotation?: number
|
|
13
|
+
parentRotation?: number
|
|
14
|
+
disabled?: boolean
|
|
15
|
+
origin?: IOriginAround
|
|
16
|
+
around?: IOriginAround
|
|
17
|
+
hideBounds?: boolean // 是否隐藏边界
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* 布局选项
|
|
21
21
|
*/
|
|
22
22
|
export interface IFlowConfig {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
flow: 'x' | 'y' | 'x-reverse' | 'y-reverse'
|
|
24
|
+
flowWrap: boolean | 'reverse'
|
|
25
|
+
oneDirectionMaxQuantity: number
|
|
26
|
+
gap: number
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* 工位组
|
|
30
30
|
*/
|
|
31
31
|
export interface IStationSlotGroupConfig extends IBaseConfig {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
parentRotation?: number
|
|
33
|
+
origin?: IOriginAround
|
|
34
|
+
around?: IOriginAround
|
|
35
|
+
stationSlots: IStationSlotConfig[]
|
|
36
|
+
flowOptions: IFlowConfig
|
|
37
|
+
hittable?: boolean
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* 资源
|
|
41
41
|
*/
|
|
42
42
|
export interface IResourceConfig extends IBaseConfig, IInteractiveState {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
className?: EnumComponent.RESOURCE
|
|
44
|
+
resourceType: EnumResourceType
|
|
45
|
+
name?: string
|
|
46
|
+
color?: string
|
|
47
|
+
rawData: IRowData
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* 状态灯
|
|
51
51
|
*/
|
|
52
52
|
export interface ILightConfig extends IBaseConfig {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
color?: string
|
|
54
|
+
strokeColor?: string
|
|
55
|
+
strokeWidth?: number
|
|
56
|
+
cornerRadius?: number | number[]
|
|
57
|
+
showShadow?: boolean
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* 进度条
|
|
61
61
|
*/
|
|
62
62
|
export interface IProgressConfig extends IBaseConfig {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
progress: number
|
|
64
|
+
fill?: string
|
|
65
|
+
textContent?: string
|
|
66
|
+
textShow?: boolean
|
|
67
|
+
textPosition?: 'left' | 'center' | 'right'
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* 出入口
|
|
71
71
|
*/
|
|
72
72
|
export interface IEntranceConfig extends IBaseConfig {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
isIn: boolean
|
|
74
|
+
isOut: boolean
|
|
75
75
|
}
|
|
76
|
-
export type IComponent =
|
|
76
|
+
export type IComponent =
|
|
77
|
+
| IStationSlotConfig
|
|
78
|
+
| IResourceConfig
|
|
79
|
+
| IStationSlotGroupConfig
|
|
80
|
+
| IProgressConfig
|
|
81
|
+
| ILightConfig
|
|
82
|
+
| IEntranceConfig
|