@jnrs/lingshu-smart 2.2.8 → 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.
Files changed (176) hide show
  1. package/dist/App.vue.d.ts +1 -2
  2. package/dist/assets/data/editor_default_setting.d.ts +1 -8
  3. package/dist/assets/data/editor_preset_menu.d.ts +1 -8
  4. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
  5. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
  6. package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
  7. package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
  8. package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
  9. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
  10. package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
  11. package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
  12. package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
  13. package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
  14. package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
  15. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
  16. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
  17. package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
  18. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
  19. package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
  20. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
  21. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
  22. package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
  23. package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
  24. package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
  25. package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
  26. package/dist/components/editor/index.vue.d.ts +13 -4
  27. package/dist/components/index.d.ts +2 -2
  28. package/dist/components/index.js +27281 -4
  29. package/dist/components/preview/index.vue.d.ts +5 -6
  30. package/dist/composables/useStepRecord.d.ts +4 -12
  31. package/dist/constants/options.d.ts +1 -8
  32. package/dist/controller/AppController.d.ts +3 -10
  33. package/dist/controller/EditorController.d.ts +2 -9
  34. package/dist/index.js +1 -1
  35. package/dist/json/cases.json +577 -20
  36. package/dist/locales/i18next.d.ts +1 -1
  37. package/dist/locales/index.d.ts +2 -2
  38. package/dist/locales/index.js +13 -3
  39. package/dist/main.d.ts +0 -3
  40. package/dist/playground/EditPageDemo.vue.d.ts +1 -2
  41. package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
  42. package/dist/stores/useAppStore.d.ts +5 -12
  43. package/dist/stores/useDataStore.d.ts +11 -18
  44. package/dist/stores/useEditorStore.d.ts +20 -27
  45. package/dist/types/app.types.d.ts +1 -1
  46. package/dist/types/base.types.d.ts +1 -1
  47. package/dist/types/components/config.types.d.ts +1 -1
  48. package/dist/types/components/operating.types.d.ts +1 -1
  49. package/dist/types/enums.d.ts +1 -1
  50. package/dist/types/guards.d.ts +5 -12
  51. package/dist/types/index.d.ts +2 -2
  52. package/dist/types/models/config.types.d.ts +49 -47
  53. package/dist/types/models/operating.types.d.ts +53 -53
  54. package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
  55. package/dist/ui/abstract/ModelAbs.d.ts +2 -10
  56. package/dist/ui/components/Entrance.d.ts +1 -8
  57. package/dist/ui/components/Light.d.ts +1 -8
  58. package/dist/ui/components/Progress.d.ts +1 -8
  59. package/dist/ui/components/Resource.d.ts +1 -8
  60. package/dist/ui/components/StationSlot.d.ts +1 -23
  61. package/dist/ui/components/StationSlotGroup.d.ts +1 -8
  62. package/dist/ui/factories/createGlass.d.ts +0 -6
  63. package/dist/ui/factories/createModel.d.ts +2 -9
  64. package/dist/ui/factories/createShadow.d.ts +1 -9
  65. package/dist/ui/factories/createText.d.ts +0 -7
  66. package/dist/ui/models/CleaningMachine.d.ts +1 -1
  67. package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
  68. package/dist/ui/models/LoadingStation.d.ts +1 -1
  69. package/dist/ui/models/MachineTool.d.ts +1 -1
  70. package/dist/ui/models/MarkingMachine.d.ts +1 -1
  71. package/dist/ui/models/Rail.d.ts +1 -1
  72. package/dist/ui/models/ResourceStore.d.ts +1 -1
  73. package/dist/ui/models/SingleJointRobot.d.ts +3 -3
  74. package/dist/ui/shapes/NamePlate.d.ts +0 -7
  75. package/dist/ui/shapes/ScrewHole.d.ts +0 -7
  76. package/dist/ui/shapes/Texture.d.ts +1 -8
  77. package/dist/ui/utils/attr.d.ts +2 -9
  78. package/dist/utils/type-guards.d.ts +1 -1
  79. package/package.json +3 -3
  80. package/dist/App.vue.js +0 -30
  81. package/dist/assets/data/editor_default.d.ts +0 -16
  82. package/dist/assets/data/editor_default.js +0 -59
  83. package/dist/assets/data/editor_default_setting.js +0 -58
  84. package/dist/assets/data/editor_preset.d.ts +0 -9
  85. package/dist/assets/data/editor_preset.js +0 -51
  86. package/dist/assets/data/editor_preset_menu.js +0 -290
  87. package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
  88. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
  89. package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
  90. package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
  91. package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
  92. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
  93. package/dist/components/editor/DrawingBoard.vue.js +0 -31
  94. package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
  95. package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
  96. package/dist/components/editor/MenuCard/index.vue.js +0 -84
  97. package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
  98. package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
  99. package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
  100. package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
  101. package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
  102. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
  103. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
  104. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
  105. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
  106. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
  107. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
  108. package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
  109. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
  110. package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
  111. package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
  112. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
  113. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
  114. package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
  115. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
  116. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
  117. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
  118. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
  119. package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
  120. package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
  121. package/dist/components/editor/OptionCard/index.vue.js +0 -73
  122. package/dist/components/editor/index.vue.js +0 -156
  123. package/dist/components/preview/index.vue.js +0 -104
  124. package/dist/composables/useStepRecord.js +0 -135
  125. package/dist/constants/options.js +0 -55
  126. package/dist/controller/AppController.js +0 -168
  127. package/dist/controller/EditorController.js +0 -173
  128. package/dist/locales/en.js +0 -5
  129. package/dist/locales/i18next.js +0 -6
  130. package/dist/locales/zhCn.js +0 -5
  131. package/dist/main.js +0 -13
  132. package/dist/playground/EditPageDemo.vue.js +0 -57
  133. package/dist/playground/ViewPageDemo.vue.js +0 -277
  134. package/dist/stores/index.js +0 -3
  135. package/dist/stores/useAppStore.js +0 -78
  136. package/dist/stores/useDataStore.js +0 -116
  137. package/dist/stores/useEditorStore.js +0 -263
  138. package/dist/types/app.types.js +0 -2
  139. package/dist/types/base.types.js +0 -1
  140. package/dist/types/components/config.types.js +0 -1
  141. package/dist/types/components/operating.types.js +0 -1
  142. package/dist/types/enums.js +0 -46
  143. package/dist/types/guards.js +0 -28
  144. package/dist/types/index.js +0 -8
  145. package/dist/types/models/config.types.js +0 -1
  146. package/dist/types/models/operating.types.js +0 -1
  147. package/dist/ui/abstract/ComponentAbs.js +0 -64
  148. package/dist/ui/abstract/ModelAbs.js +0 -119
  149. package/dist/ui/components/Entrance.js +0 -83
  150. package/dist/ui/components/Light.js +0 -167
  151. package/dist/ui/components/Progress.js +0 -84
  152. package/dist/ui/components/Resource.js +0 -70
  153. package/dist/ui/components/StationSlot.js +0 -207
  154. package/dist/ui/components/StationSlotGroup.js +0 -110
  155. package/dist/ui/factories/createGlass.js +0 -51
  156. package/dist/ui/factories/createModel.js +0 -35
  157. package/dist/ui/factories/createShadow.js +0 -52
  158. package/dist/ui/factories/createText.js +0 -46
  159. package/dist/ui/models/CleaningMachine.js +0 -141
  160. package/dist/ui/models/DoubleJointRobot.js +0 -545
  161. package/dist/ui/models/LoadingStation.js +0 -167
  162. package/dist/ui/models/MachineTool.js +0 -184
  163. package/dist/ui/models/MarkingMachine.js +0 -148
  164. package/dist/ui/models/Rail.js +0 -117
  165. package/dist/ui/models/ResourceStore.js +0 -101
  166. package/dist/ui/models/SingleBot.d.ts +0 -20
  167. package/dist/ui/models/SingleBot.js +0 -202
  168. package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
  169. package/dist/ui/models/SingleGripperRobot.js +0 -272
  170. package/dist/ui/models/SingleJointRobot.js +0 -346
  171. package/dist/ui/shapes/NamePlate.js +0 -85
  172. package/dist/ui/shapes/ScrewHole.js +0 -57
  173. package/dist/ui/shapes/Texture.js +0 -51
  174. package/dist/ui/utils/attr.js +0 -50
  175. package/dist/utils/index.js +0 -92
  176. package/dist/utils/type-guards.js +0 -105
@@ -1,290 +0,0 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : editor_preset_menu.ts
5
- * @Date : 2026/04/02
6
- * @Desc. : 预设数据配置 - 设备菜单
7
- */
8
- import { EnumTag, EnumModel, EnumResourceType } from '@/types'
9
- import { DEFAULT_LAYER } from './editor_default_setting'
10
- export const EQUIPMENTS_MENU = [
11
- {
12
- title: '机床',
13
- tag: EnumTag.MACHINE,
14
- children: [
15
- {
16
- ...DEFAULT_LAYER,
17
- className: EnumModel.MACHINE_TOOL,
18
- equipmentName: '机床',
19
- nameplate: '机床',
20
- tags: [EnumTag.MACHINE],
21
- width: 220,
22
- height: 240,
23
- stationContainerDirection: 'horizontal',
24
- stationSlotGroup: {
25
- width: 220,
26
- height: 70,
27
- flowOptions: {
28
- flow: 'x',
29
- flowWrap: false,
30
- oneDirectionMaxQuantity: 2,
31
- gap: 5
32
- },
33
- stationSlots: [
34
- {
35
- name: '1',
36
- index: 1,
37
- resourceType: EnumResourceType.PALLET,
38
- width: 50,
39
- height: 50,
40
- x: 0,
41
- y: 0,
42
- rotation: 0,
43
- disabled: false,
44
- hittable: true
45
- }
46
- ]
47
- }
48
- }
49
- ]
50
- },
51
- {
52
- title: '清洗机',
53
- tag: EnumTag.CLEANING,
54
- children: [
55
- {
56
- ...DEFAULT_LAYER,
57
- className: EnumModel.CLEANING_MACHINE,
58
- equipmentName: '清洗机',
59
- nameplate: '清洗机',
60
- tags: [EnumTag.CLEANING],
61
- width: 180,
62
- height: 200,
63
- stationSlotGroup: {
64
- width: 171,
65
- height: 66,
66
- flowOptions: {
67
- flow: 'x',
68
- flowWrap: false,
69
- oneDirectionMaxQuantity: 1,
70
- gap: 5
71
- },
72
- stationSlots: [
73
- {
74
- name: '1',
75
- index: 1,
76
- resourceType: EnumResourceType.PALLET,
77
- width: 42,
78
- height: 42,
79
- x: 0,
80
- y: 0,
81
- rotation: 0,
82
- disabled: false,
83
- hittable: true
84
- }
85
- ]
86
- }
87
- }
88
- ]
89
- },
90
- {
91
- title: '装载站',
92
- tag: EnumTag.STATION,
93
- children: [
94
- {
95
- ...DEFAULT_LAYER,
96
- className: EnumModel.LOADING_STATION,
97
- equipmentName: '装载站',
98
- nameplate: '装载站',
99
- tags: [EnumTag.STATION],
100
- width: 140,
101
- height: 200,
102
- stationContainerDirection: 'horizontal',
103
- stationSlotGroup: {
104
- width: 80,
105
- height: 80,
106
- flowOptions: {
107
- flow: 'x',
108
- flowWrap: false,
109
- oneDirectionMaxQuantity: 1,
110
- gap: 0
111
- },
112
- stationSlots: [
113
- {
114
- name: '1',
115
- index: 1,
116
- resourceType: EnumResourceType.PALLET,
117
- width: 50,
118
- height: 50,
119
- x: 0,
120
- y: 0,
121
- rotation: 0,
122
- disabled: false,
123
- hittable: true
124
- }
125
- ]
126
- }
127
- }
128
- ]
129
- },
130
- {
131
- title: '库',
132
- tag: EnumTag.STORAGE,
133
- children: [
134
- {
135
- ...DEFAULT_LAYER,
136
- className: EnumModel.RESOURCE_STORE,
137
- equipmentName: '资源库',
138
- nameplate: '资源库',
139
- tags: [EnumTag.STORAGE],
140
- width: 260,
141
- height: 180,
142
- stationSlotGroup: {
143
- width: 220,
144
- height: 60,
145
- flowOptions: {
146
- flow: 'x',
147
- flowWrap: false,
148
- oneDirectionMaxQuantity: 4,
149
- gap: 6
150
- },
151
- stationSlots: [
152
- {
153
- name: '1',
154
- index: 1,
155
- resourceType: EnumResourceType.PALLET,
156
- width: 42,
157
- height: 42,
158
- x: 0,
159
- y: 0,
160
- rotation: 0,
161
- disabled: false,
162
- hittable: true
163
- },
164
- {
165
- name: '2',
166
- index: 2,
167
- resourceType: EnumResourceType.PALLET,
168
- width: 42,
169
- height: 42,
170
- x: 0,
171
- y: 0,
172
- rotation: 0,
173
- disabled: false,
174
- hittable: true
175
- },
176
- {
177
- name: '3',
178
- index: 3,
179
- resourceType: EnumResourceType.PALLET,
180
- width: 42,
181
- height: 42,
182
- x: 0,
183
- y: 0,
184
- rotation: 0,
185
- disabled: false,
186
- hittable: true
187
- },
188
- {
189
- name: '4',
190
- index: 4,
191
- resourceType: EnumResourceType.PALLET,
192
- width: 42,
193
- height: 42,
194
- x: 0,
195
- y: 0,
196
- rotation: 0,
197
- disabled: false,
198
- hittable: true
199
- }
200
- ]
201
- }
202
- }
203
- ]
204
- },
205
- {
206
- title: '搬运设备',
207
- tag: EnumTag.TRANSPORT,
208
- children: [
209
- {
210
- ...DEFAULT_LAYER,
211
- className: EnumModel.SINGLE_JOINT_ROBOT,
212
- equipmentName: '单关节机器人',
213
- nameplate: '单关节机器人',
214
- tags: [EnumTag.TRANSPORT],
215
- width: 90,
216
- height: 76,
217
- currentFixture: EnumResourceType.TOOL,
218
- linkRailId: '',
219
- linkTrailerId: ''
220
- },
221
- {
222
- ...DEFAULT_LAYER,
223
- hittable: false,
224
- className: EnumModel.RAIL,
225
- equipmentName: '轨道',
226
- nameplate: '轨道',
227
- tags: [EnumTag.TRANSPORT],
228
- width: 1920,
229
- height: 60,
230
- x: 960,
231
- y: 540,
232
- percentX: 0.5,
233
- percentY: 0.5,
234
- chainDirection: 'left',
235
- linkEquipIdArray: []
236
- }
237
- ]
238
- },
239
- {
240
- title: '其他',
241
- tag: EnumTag.OTHER,
242
- children: [
243
- {
244
- ...DEFAULT_LAYER,
245
- className: EnumModel.MARKING_MACHINE,
246
- equipmentName: '打标机',
247
- nameplate: '打标机',
248
- tags: [EnumTag.OTHER],
249
- width: 160,
250
- height: 180,
251
- stationSlotGroup: {
252
- width: 128,
253
- height: 65,
254
- flowOptions: {
255
- flow: 'x',
256
- flowWrap: false,
257
- oneDirectionMaxQuantity: 2,
258
- gap: 5
259
- },
260
- stationSlots: [
261
- {
262
- name: '1',
263
- index: 1,
264
- resourceType: EnumResourceType.PALLET,
265
- width: 50,
266
- height: 50,
267
- x: 0,
268
- y: 0,
269
- rotation: 0,
270
- disabled: false,
271
- hittable: true
272
- },
273
- {
274
- name: '2',
275
- index: 2,
276
- resourceType: EnumResourceType.PALLET,
277
- width: 50,
278
- height: 50,
279
- x: 0,
280
- y: 0,
281
- rotation: 0,
282
- disabled: false,
283
- hittable: true
284
- }
285
- ]
286
- }
287
- }
288
- ]
289
- }
290
- ]