@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
package/dist/main.d.ts CHANGED
@@ -1,3 +0,0 @@
1
- import 'element-plus/dist/index.css';
2
- import 'element-plus/theme-chalk/dark/css-vars.css';
3
- import '@/assets/styles/init.scss';
@@ -1,3 +1,2 @@
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;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
3
2
  export default _default;
@@ -1,3 +1,28 @@
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;
1
+ import { ICase, ILayerOperating } from '../types';
2
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
3
+ lingshuSmartPreviewRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
+ actions?: import('../components/preview/index.vue').PreviewActions;
5
+ caseUuid?: string;
6
+ }> & Readonly<{}>, {
7
+ currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
8
+ operating: (data: ILayerOperating) => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
10
+ actions: import('../components/preview/index.vue').PreviewActions;
11
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
12
+ P: {};
13
+ B: {};
14
+ D: {};
15
+ C: {};
16
+ M: {};
17
+ Defaults: {};
18
+ }, Readonly<{
19
+ actions?: import('../components/preview/index.vue').PreviewActions;
20
+ caseUuid?: string;
21
+ }> & Readonly<{}>, {
22
+ currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
23
+ operating: (data: ILayerOperating) => void;
24
+ }, {}, {}, {}, {
25
+ actions: import('../components/preview/index.vue').PreviewActions;
26
+ }> | null;
27
+ }, HTMLDivElement>;
3
28
  export default _default;
@@ -1,25 +1,18 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : useAppStore.ts
5
- * @Date : 2026/03/20
6
- * @Desc. : 用于预览页面:当前方案状态
7
- */
8
- import type { ICase, IContainer, ILayerOperating } from '@/types';
9
- export declare const useAppStore: import("pinia").StoreDefinition<"@jnrs/lingshu-smart/app", Pick<{
10
- currentCase: import("vue").Ref<ICase | null | undefined, ICase | null | undefined>;
1
+ import { ICase, IContainer, ILayerOperating } from '../types';
2
+ export declare const useAppStore: import('pinia').StoreDefinition<"@jnrs/lingshu-smart/app", Pick<{
3
+ currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
11
4
  initContainer: (options: IContainer, caseUuid: string) => void;
12
5
  resizeContainer: () => void;
13
6
  destroyContainer: () => void;
14
7
  operating: (data: ILayerOperating) => void;
15
8
  }, "currentCase">, Pick<{
16
- currentCase: import("vue").Ref<ICase | null | undefined, ICase | null | undefined>;
9
+ currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
17
10
  initContainer: (options: IContainer, caseUuid: string) => void;
18
11
  resizeContainer: () => void;
19
12
  destroyContainer: () => void;
20
13
  operating: (data: ILayerOperating) => void;
21
14
  }, never>, Pick<{
22
- currentCase: import("vue").Ref<ICase | null | undefined, ICase | null | undefined>;
15
+ currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
23
16
  initContainer: (options: IContainer, caseUuid: string) => void;
24
17
  resizeContainer: () => void;
25
18
  destroyContainer: () => void;
@@ -1,33 +1,26 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : useDataStore.ts
5
- * @Date : 2026/03/23
6
- * @Desc. : 设备列表、方案列表、当前方案、当前方案的场景、当前方案的图层列表、当前图层状态管理
7
- */
8
- import type { ICase } from '@/types';
9
- export declare const useDataStore: import("pinia").StoreDefinition<"@jnrs/lingshu-smart/data", Pick<{
10
- casesLoading: import("vue").Ref<boolean, boolean>;
11
- equipmentsMenu: import("@/types").IEquipmentsMenu[];
12
- cases: import("vue").Ref<ICase[] | undefined, ICase[] | undefined>;
1
+ import { ICase } from '../types';
2
+ export declare const useDataStore: import('pinia').StoreDefinition<"@jnrs/lingshu-smart/data", Pick<{
3
+ casesLoading: import('vue').Ref<boolean, boolean>;
4
+ equipmentsMenu: import('../types').IEquipmentsMenu[];
5
+ cases: import('vue').Ref<ICase[] | undefined, ICase[] | undefined>;
13
6
  updateCases: (data?: ICase[]) => void;
14
7
  selectCase: (uuid: string) => void;
15
8
  addCase: (data?: ICase) => void;
16
9
  removeCase: (uuid: string) => void;
17
10
  clearCases: () => void;
18
11
  }, "cases" | "casesLoading" | "equipmentsMenu">, Pick<{
19
- casesLoading: import("vue").Ref<boolean, boolean>;
20
- equipmentsMenu: import("@/types").IEquipmentsMenu[];
21
- cases: import("vue").Ref<ICase[] | undefined, ICase[] | undefined>;
12
+ casesLoading: import('vue').Ref<boolean, boolean>;
13
+ equipmentsMenu: import('../types').IEquipmentsMenu[];
14
+ cases: import('vue').Ref<ICase[] | undefined, ICase[] | undefined>;
22
15
  updateCases: (data?: ICase[]) => void;
23
16
  selectCase: (uuid: string) => void;
24
17
  addCase: (data?: ICase) => void;
25
18
  removeCase: (uuid: string) => void;
26
19
  clearCases: () => void;
27
20
  }, never>, Pick<{
28
- casesLoading: import("vue").Ref<boolean, boolean>;
29
- equipmentsMenu: import("@/types").IEquipmentsMenu[];
30
- cases: import("vue").Ref<ICase[] | undefined, ICase[] | undefined>;
21
+ casesLoading: import('vue').Ref<boolean, boolean>;
22
+ equipmentsMenu: import('../types').IEquipmentsMenu[];
23
+ cases: import('vue').Ref<ICase[] | undefined, ICase[] | undefined>;
31
24
  updateCases: (data?: ICase[]) => void;
32
25
  selectCase: (uuid: string) => void;
33
26
  addCase: (data?: ICase) => void;
@@ -1,51 +1,44 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : useEditorStore.ts
5
- * @Date : 2026/01/21
6
- * @Desc. : 用于编辑器页面:设备列表、方案列表、当前方案、当前方案的场景、当前方案的图层列表、当前图层状态管理
7
- */
8
- import type { ICase, IScene, ILayer, IContainer } from '@/types';
9
- export declare const useEditorStore: import("pinia").StoreDefinition<"@jnrs/lingshu-smart/editor", Pick<{
10
- currentCase: import("vue").ComputedRef<ICase | null>;
11
- scene: import("vue").ComputedRef<IScene | null>;
12
- layers: import("vue").ComputedRef<ILayer[]>;
13
- currentLayer: import("vue").ComputedRef<ILayer | null>;
1
+ import { ICase, IScene, ILayer, IContainer } from '../types';
2
+ export declare const useEditorStore: import('pinia').StoreDefinition<"@jnrs/lingshu-smart/editor", Pick<{
3
+ currentCase: import('vue').ComputedRef<ICase | null>;
4
+ scene: import('vue').ComputedRef<IScene | null>;
5
+ layers: import('vue').ComputedRef<ILayer[]>;
6
+ currentLayer: import('vue').ComputedRef<ILayer | null>;
14
7
  initContainer: (options: IContainer) => void;
15
8
  resizeContainer: () => void;
16
9
  destroyContainer: () => void;
17
10
  initEditor: () => void;
18
- updateScene: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
11
+ updateScene: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
19
12
  addLayer: (layer: ILayer) => void;
20
13
  selectLayer: (uuid?: string) => void;
21
14
  updateLayer: (layer: ILayer) => void;
22
- renderLayers: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
15
+ renderLayers: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
23
16
  }, never>, Pick<{
24
- currentCase: import("vue").ComputedRef<ICase | null>;
25
- scene: import("vue").ComputedRef<IScene | null>;
26
- layers: import("vue").ComputedRef<ILayer[]>;
27
- currentLayer: import("vue").ComputedRef<ILayer | null>;
17
+ currentCase: import('vue').ComputedRef<ICase | null>;
18
+ scene: import('vue').ComputedRef<IScene | null>;
19
+ layers: import('vue').ComputedRef<ILayer[]>;
20
+ currentLayer: import('vue').ComputedRef<ILayer | null>;
28
21
  initContainer: (options: IContainer) => void;
29
22
  resizeContainer: () => void;
30
23
  destroyContainer: () => void;
31
24
  initEditor: () => void;
32
- updateScene: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
25
+ updateScene: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
33
26
  addLayer: (layer: ILayer) => void;
34
27
  selectLayer: (uuid?: string) => void;
35
28
  updateLayer: (layer: ILayer) => void;
36
- renderLayers: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
29
+ renderLayers: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
37
30
  }, "currentCase" | "scene" | "layers" | "currentLayer">, Pick<{
38
- currentCase: import("vue").ComputedRef<ICase | null>;
39
- scene: import("vue").ComputedRef<IScene | null>;
40
- layers: import("vue").ComputedRef<ILayer[]>;
41
- currentLayer: import("vue").ComputedRef<ILayer | null>;
31
+ currentCase: import('vue').ComputedRef<ICase | null>;
32
+ scene: import('vue').ComputedRef<IScene | null>;
33
+ layers: import('vue').ComputedRef<ILayer[]>;
34
+ currentLayer: import('vue').ComputedRef<ILayer | null>;
42
35
  initContainer: (options: IContainer) => void;
43
36
  resizeContainer: () => void;
44
37
  destroyContainer: () => void;
45
38
  initEditor: () => void;
46
- updateScene: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
39
+ updateScene: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
47
40
  addLayer: (layer: ILayer) => void;
48
41
  selectLayer: (uuid?: string) => void;
49
42
  updateLayer: (layer: ILayer) => void;
50
- renderLayers: import("@jnrs/shared/lodash").DebouncedFunc<() => void>;
43
+ renderLayers: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
51
44
  }, "initContainer" | "resizeContainer" | "destroyContainer" | "initEditor" | "updateScene" | "addLayer" | "selectLayer" | "updateLayer" | "renderLayers">>;
@@ -1,4 +1,4 @@
1
- import { type ILayer, type InteractiveUi, EnumTag } from './index';
1
+ import { ILayer, InteractiveUi, EnumTag } from './index';
2
2
  /**
3
3
  * 场景
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type EnumInteractiveUi } from './enums';
1
+ import { EnumInteractiveUi } from './enums';
2
2
  /**
3
3
  * 原始业务数据
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { IRowData, IBaseConfig, IInteractiveState } from '../base.types';
1
+ import { IRowData, IBaseConfig, IInteractiveState } from '../base.types';
2
2
  import { EnumResourceType, EnumComponent } from '../enums';
3
3
  export type IOriginAround = 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { IRowData } from '../base.types';
1
+ import { IRowData } from '../base.types';
2
2
  import { EnumResourceType } from '../enums';
3
3
  /**
4
4
  * 资源操作
@@ -12,7 +12,7 @@ export declare enum EnumTag {
12
12
  }
13
13
  export declare enum EnumModel {
14
14
  SINGLE_JOINT_ROBOT = "SingleJointRobot",
15
- DOUBLE_GRIPPER_ROBOT = "DoubleGripperRobot",
15
+ DOUBLE_JOINT_ROBOT = "DoubleJointRobot",
16
16
  RGV = "Rgv",
17
17
  MACHINE_TOOL = "MachineTool",
18
18
  MARKING_MACHINE = "MarkingMachine",
@@ -1,12 +1,5 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : guards.ts
5
- * @Date : 2026/04/07
6
- * @Desc. : 类型守卫函数
7
- */
8
- import { type ILayer } from './index';
9
- export declare function isMachineTool(layer: ILayer | null): layer is import("./index").IMachineToolConfig;
10
- export declare function hasStationSlotGroup(layer: ILayer | null): layer is import("./index").IMachineToolConfig | import("./index").ILoadingStationConfig | import("./index").IMarkingMachineConfig | import("./index").ICleaningMachineConfig | import("./index").IResourceStoreConfig;
11
- export declare function hasFixtureChange(layer: ILayer | null): layer is import("./index").ISingleJointRobotConfig;
12
- export declare function isRail(layer: ILayer | null): layer is import("./index").IRailConfig;
1
+ import { ILayer } from './index';
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,3 +1,5 @@
1
+ import { ILayer } from './models/config.types';
2
+ import { IStationSlotConfig, IResourceConfig } from './components/config.types';
1
3
  export * from './enums';
2
4
  export * from './app.types';
3
5
  export * from './base.types';
@@ -6,8 +8,6 @@ export * from './models/operating.types';
6
8
  export * from './components/config.types';
7
9
  export * from './components/operating.types';
8
10
  export * from './guards';
9
- import type { ILayer } from './models/config.types';
10
- import type { IStationSlotConfig, IResourceConfig } from './components/config.types';
11
11
  /**
12
12
  * 可交互设备类型
13
13
  * @description 可交互UI类型:设备模型(ILayer)、工位槽(IStationSlot)、资源(IResource)
@@ -1,90 +1,92 @@
1
- import { EnumModel, EnumTag, EnumResourceType } from '../enums'
2
- import type { IRowData, IBaseConfig, IEventState } from '../base.types'
3
- import type { IStationSlotGroupConfig } from '../components/config.types'
1
+ import { EnumModel, EnumTag, EnumResourceType } from '../enums';
2
+ import { IRowData, IBaseConfig, IEventState } from '../base.types';
3
+ import { IStationSlotGroupConfig } from '../components/config.types';
4
4
  /**
5
5
  * 设备模型基类
6
6
  */
7
7
  export interface IModel extends IBaseConfig, IEventState {
8
- uuid: string
9
- equipmentName: string
10
- nameplate?: string
11
- model?: string
12
- manufacturer?: string
13
- group?: string
14
- tags?: EnumTag[]
15
- x: number
16
- y: number
17
- percentX: number
18
- percentY: number
19
- zIndex: number
20
- rotation: number
21
- scale: number
22
- rawData: IRowData
23
- editable: boolean
24
- selected: boolean
8
+ uuid: string;
9
+ equipmentName: string;
10
+ nameplate?: string;
11
+ model?: string;
12
+ manufacturer?: string;
13
+ group?: string;
14
+ tags?: EnumTag[];
15
+ x: number;
16
+ y: number;
17
+ percentX: number;
18
+ percentY: number;
19
+ zIndex: number;
20
+ rotation: number;
21
+ scale: number;
22
+ rawData: IRowData;
23
+ editable: boolean;
24
+ selected: boolean;
25
25
  }
26
26
  /**
27
27
  * 机床
28
28
  */
29
29
  export interface IMachineToolConfig extends IModel {
30
- className: EnumModel.MACHINE_TOOL
31
- stationContainerDirection?: 'horizontal' | 'vertical'
32
- stationSlotGroup?: IStationSlotGroupConfig
30
+ className: EnumModel.MACHINE_TOOL;
31
+ stationContainerDirection?: 'horizontal' | 'vertical';
32
+ stationSlotGroup?: IStationSlotGroupConfig;
33
33
  }
34
34
  /**
35
35
  * 装载站
36
36
  */
37
37
  export interface ILoadingStationConfig extends IModel {
38
- className: EnumModel.LOADING_STATION
39
- stationContainerDirection?: 'horizontal' | 'vertical'
40
- stationSlotGroup?: IStationSlotGroupConfig
38
+ className: EnumModel.LOADING_STATION;
39
+ stationContainerDirection?: 'horizontal' | 'vertical';
40
+ stationSlotGroup?: IStationSlotGroupConfig;
41
41
  }
42
42
  /**
43
43
  * 打标机
44
44
  */
45
45
  export interface IMarkingMachineConfig extends IModel {
46
- className: EnumModel.MARKING_MACHINE
47
- stationSlotGroup?: IStationSlotGroupConfig
46
+ className: EnumModel.MARKING_MACHINE;
47
+ stationSlotGroup?: IStationSlotGroupConfig;
48
48
  }
49
49
  /**
50
50
  * 清洗机
51
51
  */
52
52
  export interface ICleaningMachineConfig extends IModel {
53
- className: EnumModel.CLEANING_MACHINE
54
- stationSlotGroup?: IStationSlotGroupConfig
53
+ className: EnumModel.CLEANING_MACHINE;
54
+ stationSlotGroup?: IStationSlotGroupConfig;
55
55
  }
56
56
  /**
57
57
  * 单关节机器人
58
58
  */
59
59
  export interface ISingleJointRobotConfig extends IModel {
60
- className: EnumModel.SINGLE_JOINT_ROBOT
61
- currentFixture: EnumResourceType
62
- linkRailId?: string
63
- linkTrailerId?: string
60
+ className: EnumModel.SINGLE_JOINT_ROBOT;
61
+ currentFixture: EnumResourceType;
62
+ linkRailId?: string;
63
+ linkTrailerId?: string;
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;
64
73
  }
65
74
  /**
66
75
  * 轨道
67
76
  */
68
77
  export interface IRailConfig extends IModel {
69
- className: EnumModel.RAIL
70
- chainDirection?: 'left' | 'right'
71
- linkEquipIdArray?: string[]
78
+ className: EnumModel.RAIL;
79
+ chainDirection?: 'left' | 'right';
80
+ linkEquipIdArray?: string[];
72
81
  }
73
82
  /**
74
83
  * 资源库
75
84
  */
76
85
  export interface IResourceStoreConfig extends IModel {
77
- className: EnumModel.RESOURCE_STORE
78
- stationSlotGroup?: IStationSlotGroupConfig
86
+ className: EnumModel.RESOURCE_STORE;
87
+ stationSlotGroup?: IStationSlotGroupConfig;
79
88
  }
80
89
  /**
81
90
  * 设备层联合类型
82
91
  */
83
- export type ILayer =
84
- | IMachineToolConfig
85
- | ILoadingStationConfig
86
- | IMarkingMachineConfig
87
- | ICleaningMachineConfig
88
- | ISingleJointRobotConfig
89
- | IRailConfig
90
- | IResourceStoreConfig
92
+ export type ILayer = IMachineToolConfig | ILoadingStationConfig | IMarkingMachineConfig | ICleaningMachineConfig | ISingleJointRobotConfig | IDoubleJointRobotConfig | IRailConfig | IResourceStoreConfig;
@@ -1,100 +1,100 @@
1
- import { EnumModel, EnumResourceType } from '../enums'
2
- import type { IRowData } from '../base.types'
3
- import type {
4
- ILightOperating,
5
- IProgressOperating,
6
- IEntranceOperating,
7
- IResourceOperating
8
- } from '../components/operating.types'
1
+ import { EnumModel, EnumResourceType } from '../enums';
2
+ import { IRowData } from '../base.types';
3
+ import { ILightOperating, IProgressOperating, IEntranceOperating, IResourceOperating } from '../components/operating.types';
9
4
  /**
10
5
  * 设备运转基类
11
6
  */
12
7
  export interface IModelOperating {
13
- id: string
14
- className: EnumModel
15
- rawData: IRowData
16
- resource?: IResourceOperating
8
+ id: string;
9
+ className: EnumModel;
10
+ rawData: IRowData;
11
+ resource?: IResourceOperating;
17
12
  }
18
13
  /**
19
14
  * 机床运转状态
20
15
  */
21
16
  export interface IMachineToolOperating extends IModelOperating {
22
- className: EnumModel.MACHINE_TOOL
23
- light?: ILightOperating
24
- progress?: IProgressOperating
25
- entrance?: IEntranceOperating
26
- stationRotatable?: boolean
17
+ className: EnumModel.MACHINE_TOOL;
18
+ light?: ILightOperating;
19
+ progress?: IProgressOperating;
20
+ entrance?: IEntranceOperating;
21
+ stationRotatable?: boolean;
27
22
  }
28
23
  /**
29
24
  * 装载站运转状态
30
25
  */
31
26
  export interface ILoadingStationOperating extends IModelOperating {
32
- className: EnumModel.LOADING_STATION
33
- light?: Omit<ILightOperating, 'rotating'>
34
- progress?: IProgressOperating
35
- entrance?: IEntranceOperating
36
- stationRotatable?: boolean
27
+ className: EnumModel.LOADING_STATION;
28
+ light?: Omit<ILightOperating, 'rotating'>;
29
+ progress?: IProgressOperating;
30
+ entrance?: IEntranceOperating;
31
+ stationRotatable?: boolean;
37
32
  }
38
33
  /**
39
34
  * 打标机站点状态
40
35
  */
41
36
  export interface ILaserSiteState {
42
- site: number
43
- active: boolean
37
+ site: number;
38
+ active: boolean;
44
39
  }
45
40
  /**
46
41
  * 打标机运转状态
47
42
  */
48
43
  export interface IMarkingMachineOperating extends IModelOperating {
49
- className: EnumModel.MARKING_MACHINE
50
- light?: Omit<ILightOperating, 'rotating'>
51
- progress?: IProgressOperating
52
- entrance?: IEntranceOperating
53
- laserSiteNumberArray?: ILaserSiteState[]
44
+ className: EnumModel.MARKING_MACHINE;
45
+ light?: Omit<ILightOperating, 'rotating'>;
46
+ progress?: IProgressOperating;
47
+ entrance?: IEntranceOperating;
48
+ laserSiteNumberArray?: ILaserSiteState[];
54
49
  }
55
50
  /**
56
51
  * 清洗机运转状态
57
52
  */
58
53
  export interface ICleaningMachineOperating extends IModelOperating {
59
- className: EnumModel.CLEANING_MACHINE
60
- light?: Omit<ILightOperating, 'rotating'>
61
- progress?: IProgressOperating
62
- entrance?: IEntranceOperating
54
+ className: EnumModel.CLEANING_MACHINE;
55
+ light?: Omit<ILightOperating, 'rotating'>;
56
+ progress?: IProgressOperating;
57
+ entrance?: IEntranceOperating;
63
58
  }
64
59
  /**
65
60
  * 单关节机器人运转状态
66
61
  */
67
- export interface ISingleGripperRobotOperating extends IModelOperating {
68
- className: EnumModel.SINGLE_JOINT_ROBOT
69
- light?: ILightOperating
70
- x?: number
71
- y?: number
72
- r?: number
73
- currentFixture?: EnumResourceType
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;
74
81
  }
75
82
  /**
76
83
  * 轨道运转状态
77
84
  */
78
85
  export interface IRailOperating extends IModelOperating {
79
- className: EnumModel.RAIL
80
- x?: number
81
- botId?: string
86
+ className: EnumModel.RAIL;
87
+ x?: number;
88
+ botId?: string;
82
89
  }
83
90
  /**
84
91
  * 资源库运转状态
85
92
  */
86
93
  export interface IResourceStoreOperating extends IModelOperating {
87
- className: EnumModel.RESOURCE_STORE
88
- light?: ILightOperating
94
+ className: EnumModel.RESOURCE_STORE;
95
+ light?: ILightOperating;
89
96
  }
90
97
  /**
91
98
  * 设备层运转状态的联合类型
92
99
  */
93
- export type ILayerOperating =
94
- | IMachineToolOperating
95
- | ILoadingStationOperating
96
- | IMarkingMachineOperating
97
- | ICleaningMachineOperating
98
- | ISingleGripperRobotOperating
99
- | IRailOperating
100
- | IResourceStoreOperating
100
+ export type ILayerOperating = IMachineToolOperating | ILoadingStationOperating | IMarkingMachineOperating | ICleaningMachineOperating | ISingleJointRobotOperating | IDoubleJointRobotOperating | IRailOperating | IResourceStoreOperating;
@@ -1,18 +1,11 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : ComponentAbs.ts
5
- * @Date : 2026/02/13
6
- * @Desc. : 抽象类:子组件(Model-View 分离)
7
- */
8
- import type { IComponent, IComponentOperating } from '@/types';
1
+ import { IComponent, IComponentOperating } from '../../types';
9
2
  import { UI } from 'leafer';
10
3
  export declare abstract class ComponentAbs<T extends IComponent = IComponent> {
11
4
  _ui: UI | null;
12
5
  private _config;
13
6
  private _initialized;
14
7
  constructor(options: T);
15
- get ui(): UI<import("leafer").IUIInputData>;
8
+ get ui(): UI<import('leafer').IUIInputData>;
16
9
  get config(): T;
17
10
  protected get width_05(): number;
18
11
  protected get height_05(): number;
@@ -1,12 +1,4 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : ModelAbs.ts
5
- * @Date : 2026/02/13
6
- * @Desc. : 抽象类:设备
7
- * @Intro. : Model-View 分离架构
8
- */
9
- import type { ILayer, IEventHandler, ILayerOperating } from '@/types';
1
+ import { ILayer, IEventHandler, ILayerOperating } from '../../types';
10
2
  import { UI } from 'leafer';
11
3
  export declare abstract class ModelAbs<T extends ILayer = ILayer> {
12
4
  _ui: UI | null;
@@ -14,7 +6,7 @@ export declare abstract class ModelAbs<T extends ILayer = ILayer> {
14
6
  private eventHandler;
15
7
  private _initialized;
16
8
  constructor(options: T);
17
- get ui(): UI<import("leafer").IUIInputData>;
9
+ get ui(): UI<import('leafer').IUIInputData>;
18
10
  get config(): T;
19
11
  protected get width_05(): number;
20
12
  protected get width_02(): number;
@@ -1,12 +1,5 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : Entrance.ts
5
- * @Date : 2025/01/18
6
- * @desc. : 设备入口
7
- */
8
1
  import { Box } from 'leafer';
9
- import { type IEntranceConfig, type IEntranceOperating } from '@/types';
2
+ import { IEntranceConfig, IEntranceOperating } from '../../types';
10
3
  import { ComponentAbs } from '../abstract/ComponentAbs';
11
4
  export declare class Entrance extends ComponentAbs<IEntranceConfig> {
12
5
  constructor(options: IEntranceConfig);
@@ -1,11 +1,4 @@
1
- /**
2
- * @Author : TanRui
3
- * @WeChat : Tan578853789
4
- * @File : Light.ts
5
- * @Date : 2025/02/12
6
- * @desc. : 状态灯
7
- */
8
- import type { ILightConfig, ILightOperating } from '@/types';
1
+ import { ILightConfig, ILightOperating } from '../../types';
9
2
  import { Box } from 'leafer';
10
3
  import { ComponentAbs } from '../abstract/ComponentAbs';
11
4
  export interface IEllipseLight extends ILightConfig {