@jnrs/lingshu-smart 2.2.6 → 2.2.8

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 (174) hide show
  1. package/dist/App.vue.d.ts +2 -1
  2. package/dist/App.vue.js +30 -0
  3. package/dist/assets/data/editor_default.d.ts +8 -1
  4. package/dist/assets/data/editor_default.js +59 -0
  5. package/dist/assets/data/editor_default_setting.d.ts +16 -0
  6. package/dist/assets/data/editor_default_setting.js +58 -0
  7. package/dist/assets/data/editor_preset.d.ts +8 -1
  8. package/dist/assets/data/editor_preset.js +51 -0
  9. package/dist/assets/data/editor_preset_menu.d.ts +9 -0
  10. package/dist/assets/data/editor_preset_menu.js +290 -0
  11. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +3 -15
  12. package/dist/components/editor/ControlBar/CaseManger.vue.js +465 -0
  13. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +2 -411
  14. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +108 -0
  15. package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +3 -2
  16. package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +280 -0
  17. package/dist/components/editor/ControlBar/MainButton.vue.d.ts +3 -2
  18. package/dist/components/editor/ControlBar/MainButton.vue.js +183 -0
  19. package/dist/components/editor/ControlBar/StepButton.vue.d.ts +2 -1
  20. package/dist/components/editor/ControlBar/StepButton.vue.js +147 -0
  21. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +2 -1
  22. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +98 -0
  23. package/dist/components/editor/DrawingBoard.vue.d.ts +2 -1
  24. package/dist/components/editor/DrawingBoard.vue.js +31 -0
  25. package/dist/components/editor/MenuCard/Equipments.vue.d.ts +2 -1
  26. package/dist/components/editor/MenuCard/Equipments.vue.js +129 -0
  27. package/dist/components/editor/MenuCard/Layers.vue.d.ts +2 -1
  28. package/dist/components/editor/MenuCard/Layers.vue.js +201 -0
  29. package/dist/components/editor/MenuCard/index.vue.d.ts +2 -1
  30. package/dist/components/editor/MenuCard/index.vue.js +84 -0
  31. package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +2 -1
  32. package/dist/components/editor/OptionCard/Equipment/Base.vue.js +96 -0
  33. package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +3 -0
  34. package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +443 -0
  35. package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +3 -0
  36. package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +81 -0
  37. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +2 -1
  38. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +304 -0
  39. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +3 -0
  40. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +597 -0
  41. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +2 -1
  42. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +287 -0
  43. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +3 -0
  44. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +440 -0
  45. package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +2 -1
  46. package/dist/components/editor/OptionCard/Equipment/Position.vue.js +436 -0
  47. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +2 -1
  48. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +1131 -0
  49. package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +3 -0
  50. package/dist/components/editor/OptionCard/Equipment/Store.vue.js +453 -0
  51. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +3 -0
  52. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +1109 -0
  53. package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +2 -1
  54. package/dist/components/editor/OptionCard/Equipment/index.vue.js +100 -0
  55. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +3 -0
  56. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +99 -0
  57. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +3 -0
  58. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +225 -0
  59. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +3 -0
  60. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +99 -0
  61. package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +2 -1
  62. package/dist/components/editor/OptionCard/Scene/Background.vue.js +543 -0
  63. package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +2 -1
  64. package/dist/components/editor/OptionCard/Scene/index.vue.js +200 -0
  65. package/dist/components/editor/OptionCard/index.vue.d.ts +2 -1
  66. package/dist/components/editor/OptionCard/index.vue.js +73 -0
  67. package/dist/components/editor/index.vue.d.ts +4 -13
  68. package/dist/components/editor/index.vue.js +156 -0
  69. package/dist/components/index.d.ts +2 -2
  70. package/dist/components/index.js +4 -25440
  71. package/dist/components/preview/index.vue.d.ts +6 -5
  72. package/dist/components/preview/index.vue.js +104 -0
  73. package/dist/composables/useStepRecord.d.ts +12 -4
  74. package/dist/composables/useStepRecord.js +135 -0
  75. package/dist/constants/options.d.ts +8 -1
  76. package/dist/constants/options.js +55 -0
  77. package/dist/controller/AppController.d.ts +10 -3
  78. package/dist/controller/AppController.js +168 -0
  79. package/dist/controller/EditorController.d.ts +9 -2
  80. package/dist/controller/EditorController.js +173 -0
  81. package/dist/index.js +1 -1
  82. package/dist/locales/en.js +5 -0
  83. package/dist/locales/i18next.d.ts +1 -1
  84. package/dist/locales/i18next.js +6 -0
  85. package/dist/locales/index.d.ts +2 -2
  86. package/dist/locales/index.js +3 -13
  87. package/dist/locales/zhCn.js +5 -0
  88. package/dist/main.d.ts +3 -0
  89. package/dist/main.js +13 -0
  90. package/dist/playground/EditPageDemo.vue.d.ts +2 -1
  91. package/dist/playground/EditPageDemo.vue.js +57 -0
  92. package/dist/playground/ViewPageDemo.vue.d.ts +2 -27
  93. package/dist/playground/ViewPageDemo.vue.js +277 -0
  94. package/dist/stores/index.js +3 -0
  95. package/dist/stores/useAppStore.d.ts +13 -6
  96. package/dist/stores/useAppStore.js +78 -0
  97. package/dist/stores/useDataStore.d.ts +18 -11
  98. package/dist/stores/useDataStore.js +116 -0
  99. package/dist/stores/useEditorStore.d.ts +27 -20
  100. package/dist/stores/useEditorStore.js +263 -0
  101. package/dist/types/app.types.d.ts +1 -1
  102. package/dist/types/app.types.js +2 -0
  103. package/dist/types/base.types.d.ts +4 -2
  104. package/dist/types/base.types.js +1 -0
  105. package/dist/types/components/config.types.d.ts +11 -3
  106. package/dist/types/components/config.types.js +1 -0
  107. package/dist/types/components/operating.types.d.ts +1 -1
  108. package/dist/types/components/operating.types.js +1 -0
  109. package/dist/types/enums.d.ts +5 -2
  110. package/dist/types/enums.js +46 -0
  111. package/dist/types/guards.d.ts +12 -2
  112. package/dist/types/guards.js +28 -0
  113. package/dist/types/index.d.ts +2 -2
  114. package/dist/types/index.js +8 -0
  115. package/dist/types/models/config.types.d.ts +74 -29
  116. package/dist/types/models/config.types.js +1 -0
  117. package/dist/types/models/operating.types.d.ts +83 -17
  118. package/dist/types/models/operating.types.js +1 -0
  119. package/dist/ui/abstract/ComponentAbs.d.ts +9 -2
  120. package/dist/ui/abstract/ComponentAbs.js +64 -0
  121. package/dist/ui/abstract/ModelAbs.d.ts +12 -2
  122. package/dist/ui/abstract/ModelAbs.js +119 -0
  123. package/dist/ui/components/Entrance.d.ts +8 -1
  124. package/dist/ui/components/Entrance.js +83 -0
  125. package/dist/ui/components/Light.d.ts +26 -3
  126. package/dist/ui/components/Light.js +167 -0
  127. package/dist/ui/components/Progress.d.ts +8 -1
  128. package/dist/ui/components/Progress.js +84 -0
  129. package/dist/ui/components/Resource.d.ts +8 -1
  130. package/dist/ui/components/Resource.js +70 -0
  131. package/dist/ui/components/StationSlot.d.ts +24 -2
  132. package/dist/ui/components/StationSlot.js +207 -0
  133. package/dist/ui/components/StationSlotGroup.d.ts +8 -1
  134. package/dist/ui/components/StationSlotGroup.js +110 -0
  135. package/dist/ui/factories/createGlass.d.ts +9 -1
  136. package/dist/ui/factories/createGlass.js +51 -0
  137. package/dist/ui/factories/createModel.d.ts +9 -2
  138. package/dist/ui/factories/createModel.js +35 -0
  139. package/dist/ui/factories/createShadow.d.ts +12 -4
  140. package/dist/ui/factories/createShadow.js +52 -0
  141. package/dist/ui/factories/createText.d.ts +7 -0
  142. package/dist/ui/factories/createText.js +46 -0
  143. package/dist/ui/models/CleaningMachine.d.ts +14 -0
  144. package/dist/ui/models/CleaningMachine.js +141 -0
  145. package/dist/ui/models/DoubleJointRobot.d.ts +23 -0
  146. package/dist/ui/models/DoubleJointRobot.js +545 -0
  147. package/dist/ui/models/LoadingStation.d.ts +16 -0
  148. package/dist/ui/models/LoadingStation.js +167 -0
  149. package/dist/ui/models/MachineTool.d.ts +5 -4
  150. package/dist/ui/models/MachineTool.js +184 -0
  151. package/dist/ui/models/MarkingMachine.d.ts +16 -0
  152. package/dist/ui/models/MarkingMachine.js +148 -0
  153. package/dist/ui/models/Rail.d.ts +15 -0
  154. package/dist/ui/models/Rail.js +117 -0
  155. package/dist/ui/models/ResourceStore.d.ts +12 -0
  156. package/dist/ui/models/ResourceStore.js +101 -0
  157. package/dist/ui/models/SingleBot.d.ts +20 -0
  158. package/dist/ui/models/SingleBot.js +202 -0
  159. package/dist/ui/models/SingleGripperRobot.d.ts +19 -0
  160. package/dist/ui/models/SingleGripperRobot.js +272 -0
  161. package/dist/ui/models/SingleJointRobot.d.ts +22 -0
  162. package/dist/ui/models/SingleJointRobot.js +346 -0
  163. package/dist/ui/shapes/NamePlate.d.ts +10 -1
  164. package/dist/ui/shapes/NamePlate.js +85 -0
  165. package/dist/ui/shapes/ScrewHole.d.ts +8 -1
  166. package/dist/ui/shapes/ScrewHole.js +57 -0
  167. package/dist/ui/shapes/Texture.d.ts +12 -3
  168. package/dist/ui/shapes/Texture.js +51 -0
  169. package/dist/ui/utils/attr.d.ts +10 -3
  170. package/dist/ui/utils/attr.js +50 -0
  171. package/dist/utils/index.js +92 -0
  172. package/dist/utils/type-guards.d.ts +1 -1
  173. package/dist/utils/type-guards.js +105 -0
  174. package/package.json +2 -2
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -0,0 +1,30 @@
1
+ import { shallowRef, onMounted } from 'vue';
2
+ import EditPage from './playground/EditPageDemo.vue';
3
+ import ViewPage from './playground/ViewPageDemo.vue';
4
+ const componentPage = shallowRef(null);
5
+ onMounted(() => {
6
+ const VIEW_PATH = '/preview/';
7
+ if (location.pathname.includes(VIEW_PATH)) {
8
+ componentPage.value = ViewPage;
9
+ }
10
+ else {
11
+ componentPage.value = EditPage;
12
+ }
13
+ });
14
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
15
+ const __VLS_ctx = {
16
+ ...{},
17
+ ...{},
18
+ };
19
+ let __VLS_components;
20
+ let __VLS_directives;
21
+ const __VLS_0 = ((__VLS_ctx.componentPage));
22
+ // @ts-ignore
23
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({}));
24
+ const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
25
+ var __VLS_5 = {};
26
+ // @ts-ignore
27
+ [componentPage,];
28
+ var __VLS_3;
29
+ const __VLS_export = (await import('vue')).defineComponent({});
30
+ export default {};
@@ -1,4 +1,11 @@
1
- import { ICase, IModel } from '../../types';
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : default.ts
5
+ * @Date : 2026/01/21
6
+ * @Desc. : 编辑页面的初始值配置
7
+ */
8
+ import { type ICase, type IModel } from '@/types';
2
9
  /**
3
10
  * 新方案默认值
4
11
  */
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : default.ts
5
+ * @Date : 2026/01/21
6
+ * @Desc. : 编辑页面的初始值配置
7
+ */
8
+ import {} from '@/types';
9
+ /**
10
+ * 新方案默认值
11
+ */
12
+ export const CASE_INIT = {
13
+ uuid: '',
14
+ title: '',
15
+ isActive: false,
16
+ layers: [],
17
+ scene: {
18
+ width: 1920,
19
+ height: 1080,
20
+ zoomType: 'fit',
21
+ fill: {
22
+ type: 'solid',
23
+ color: '#000',
24
+ opacity: 1,
25
+ stops: []
26
+ },
27
+ texture: ''
28
+ }
29
+ };
30
+ /**
31
+ * 新图层默认值
32
+ */
33
+ export const DEFAULT_LAYER = {
34
+ // 添加的那一刻生成 uuid
35
+ uuid: '',
36
+ rawData: {
37
+ id: ''
38
+ },
39
+ equipmentName: '',
40
+ width: 0,
41
+ height: 0,
42
+ x: 0,
43
+ y: 0,
44
+ percentX: 0,
45
+ percentY: 0,
46
+ rotation: 0,
47
+ scale: 1,
48
+ zIndex: 1,
49
+ // 交互状态
50
+ hittable: true,
51
+ hitSelf: true,
52
+ visible: true,
53
+ clickable: true,
54
+ menuClickable: true,
55
+ draggable: false,
56
+ // 编辑状态
57
+ editable: true,
58
+ selected: false
59
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : editor_default_setting.ts
5
+ * @Date : 2026/01/21
6
+ * @Desc. : 编辑页面的初始值配置
7
+ */
8
+ import { type ICase, type IModel } from '@/types';
9
+ /**
10
+ * 新方案默认值
11
+ */
12
+ export declare const CASE_INIT: ICase;
13
+ /**
14
+ * 新图层默认值
15
+ */
16
+ export declare const DEFAULT_LAYER: IModel;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : editor_default_setting.ts
5
+ * @Date : 2026/01/21
6
+ * @Desc. : 编辑页面的初始值配置
7
+ */
8
+ import {} from '@/types';
9
+ /**
10
+ * 新方案默认值
11
+ */
12
+ export const CASE_INIT = {
13
+ uuid: '',
14
+ title: '',
15
+ isActive: false,
16
+ layers: [],
17
+ scene: {
18
+ width: 1920,
19
+ height: 1080,
20
+ zoomType: 'fit',
21
+ fill: {
22
+ type: 'solid',
23
+ color: '#000',
24
+ opacity: 1,
25
+ stops: []
26
+ },
27
+ texture: ''
28
+ }
29
+ };
30
+ /**
31
+ * 新图层默认值
32
+ */
33
+ export const DEFAULT_LAYER = {
34
+ uuid: '', // 添加的那一刻生成 uuid
35
+ rawData: {
36
+ id: ''
37
+ },
38
+ equipmentName: '',
39
+ width: 0,
40
+ height: 0,
41
+ x: 0,
42
+ y: 0,
43
+ percentX: 0,
44
+ percentY: 0,
45
+ rotation: 0,
46
+ scale: 1,
47
+ zIndex: 1,
48
+ // 交互状态
49
+ hittable: true,
50
+ hitSelf: true,
51
+ visible: true,
52
+ clickable: true,
53
+ menuClickable: true,
54
+ draggable: false,
55
+ // 编辑状态
56
+ editable: true,
57
+ selected: false
58
+ };
@@ -1,2 +1,9 @@
1
- import { IEquipmentsMenu } from '../../types';
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : preset.ts
5
+ * @Date : 2026/04/02
6
+ * @Desc. : 预设数据配置
7
+ */
8
+ import { type IEquipmentsMenu } from '@/types';
2
9
  export declare const EQUIPMENTS_MENU: IEquipmentsMenu[];
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : preset.ts
5
+ * @Date : 2026/04/02
6
+ * @Desc. : 预设数据配置
7
+ */
8
+ import { EnumTag, EnumModel, EnumResourceType } from '@/types';
9
+ import { DEFAULT_LAYER } from './editor_default';
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
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @Author : TanRui
3
+ * @WeChat : Tan578853789
4
+ * @File : editor_preset_menu.ts
5
+ * @Date : 2026/04/02
6
+ * @Desc. : 预设数据配置 - 设备菜单
7
+ */
8
+ import { type IEquipmentsMenu } from '@/types';
9
+ export declare const EQUIPMENTS_MENU: IEquipmentsMenu[];
@@ -0,0 +1,290 @@
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
+ ]
@@ -1,4 +1,4 @@
1
- import { ICase } from '../../../types';
1
+ import type { ICase } from '@/types';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * 加载方案列表
@@ -11,18 +11,6 @@ type __VLS_Props = {
11
11
  */
12
12
  saveCases?: (cases?: ICase[]) => void;
13
13
  };
14
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
- exportImportDialogRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
16
- showVisible: () => void;
17
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
18
- P: {};
19
- B: {};
20
- D: {};
21
- C: {};
22
- M: {};
23
- Defaults: {};
24
- }, Readonly<{}> & Readonly<{}>, {
25
- showVisible: () => void;
26
- }, {}, {}, {}, {}> | null;
27
- }, any>;
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
28
16
  export default _default;