@jnrs/lingshu-smart 2.2.8 → 2.2.10
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/App.vue.d.ts +1 -2
- package/dist/assets/data/editor_default_setting.d.ts +1 -8
- package/dist/assets/data/editor_preset_menu.d.ts +1 -8
- package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
- package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
- package/dist/components/editor/index.vue.d.ts +13 -4
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +27281 -4
- package/dist/components/preview/index.vue.d.ts +5 -6
- package/dist/composables/useStepRecord.d.ts +4 -12
- package/dist/constants/options.d.ts +1 -8
- package/dist/controller/AppController.d.ts +3 -10
- package/dist/controller/EditorController.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/json/cases.json +577 -20
- package/dist/locales/i18next.d.ts +1 -1
- package/dist/locales/index.d.ts +2 -2
- package/dist/locales/index.js +13 -3
- package/dist/main.d.ts +0 -3
- package/dist/playground/EditPageDemo.vue.d.ts +1 -2
- package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
- package/dist/stores/useAppStore.d.ts +5 -12
- package/dist/stores/useDataStore.d.ts +11 -18
- package/dist/stores/useEditorStore.d.ts +20 -27
- package/dist/types/app.types.d.ts +1 -1
- package/dist/types/base.types.d.ts +1 -1
- package/dist/types/components/config.types.d.ts +1 -1
- package/dist/types/components/operating.types.d.ts +1 -1
- package/dist/types/enums.d.ts +1 -1
- package/dist/types/guards.d.ts +5 -12
- package/dist/types/index.d.ts +2 -2
- package/dist/types/models/config.types.d.ts +49 -47
- package/dist/types/models/operating.types.d.ts +53 -53
- package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
- package/dist/ui/abstract/ModelAbs.d.ts +2 -10
- package/dist/ui/components/Entrance.d.ts +1 -8
- package/dist/ui/components/Light.d.ts +1 -8
- package/dist/ui/components/Progress.d.ts +1 -8
- package/dist/ui/components/Resource.d.ts +1 -8
- package/dist/ui/components/StationSlot.d.ts +1 -23
- package/dist/ui/components/StationSlotGroup.d.ts +1 -8
- package/dist/ui/factories/createGlass.d.ts +0 -6
- package/dist/ui/factories/createModel.d.ts +2 -9
- package/dist/ui/factories/createShadow.d.ts +1 -9
- package/dist/ui/factories/createText.d.ts +0 -7
- package/dist/ui/models/CleaningMachine.d.ts +1 -1
- package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
- package/dist/ui/models/LoadingStation.d.ts +1 -1
- package/dist/ui/models/MachineTool.d.ts +1 -1
- package/dist/ui/models/MarkingMachine.d.ts +1 -1
- package/dist/ui/models/Rail.d.ts +1 -1
- package/dist/ui/models/ResourceStore.d.ts +1 -1
- package/dist/ui/models/SingleJointRobot.d.ts +3 -3
- package/dist/ui/shapes/NamePlate.d.ts +0 -7
- package/dist/ui/shapes/ScrewHole.d.ts +0 -7
- package/dist/ui/shapes/Texture.d.ts +1 -8
- package/dist/ui/utils/attr.d.ts +2 -9
- package/dist/utils/type-guards.d.ts +1 -1
- package/package.json +3 -3
- package/dist/App.vue.js +0 -30
- package/dist/assets/data/editor_default.d.ts +0 -16
- package/dist/assets/data/editor_default.js +0 -59
- package/dist/assets/data/editor_default_setting.js +0 -58
- package/dist/assets/data/editor_preset.d.ts +0 -9
- package/dist/assets/data/editor_preset.js +0 -51
- package/dist/assets/data/editor_preset_menu.js +0 -290
- package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
- package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
- package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
- package/dist/components/editor/DrawingBoard.vue.js +0 -31
- package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
- package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
- package/dist/components/editor/MenuCard/index.vue.js +0 -84
- package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
- package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
- package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
- package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
- package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
- package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
- package/dist/components/editor/OptionCard/index.vue.js +0 -73
- package/dist/components/editor/index.vue.js +0 -156
- package/dist/components/preview/index.vue.js +0 -104
- package/dist/composables/useStepRecord.js +0 -135
- package/dist/constants/options.js +0 -55
- package/dist/controller/AppController.js +0 -168
- package/dist/controller/EditorController.js +0 -173
- package/dist/locales/en.js +0 -5
- package/dist/locales/i18next.js +0 -6
- package/dist/locales/zhCn.js +0 -5
- package/dist/main.js +0 -13
- package/dist/playground/EditPageDemo.vue.js +0 -57
- package/dist/playground/ViewPageDemo.vue.js +0 -277
- package/dist/stores/index.js +0 -3
- package/dist/stores/useAppStore.js +0 -78
- package/dist/stores/useDataStore.js +0 -116
- package/dist/stores/useEditorStore.js +0 -263
- package/dist/types/app.types.js +0 -2
- package/dist/types/base.types.js +0 -1
- package/dist/types/components/config.types.js +0 -1
- package/dist/types/components/operating.types.js +0 -1
- package/dist/types/enums.js +0 -46
- package/dist/types/guards.js +0 -28
- package/dist/types/index.js +0 -8
- package/dist/types/models/config.types.js +0 -1
- package/dist/types/models/operating.types.js +0 -1
- package/dist/ui/abstract/ComponentAbs.js +0 -64
- package/dist/ui/abstract/ModelAbs.js +0 -119
- package/dist/ui/components/Entrance.js +0 -83
- package/dist/ui/components/Light.js +0 -167
- package/dist/ui/components/Progress.js +0 -84
- package/dist/ui/components/Resource.js +0 -70
- package/dist/ui/components/StationSlot.js +0 -207
- package/dist/ui/components/StationSlotGroup.js +0 -110
- package/dist/ui/factories/createGlass.js +0 -51
- package/dist/ui/factories/createModel.js +0 -35
- package/dist/ui/factories/createShadow.js +0 -52
- package/dist/ui/factories/createText.js +0 -46
- package/dist/ui/models/CleaningMachine.js +0 -141
- package/dist/ui/models/DoubleJointRobot.js +0 -545
- package/dist/ui/models/LoadingStation.js +0 -167
- package/dist/ui/models/MachineTool.js +0 -184
- package/dist/ui/models/MarkingMachine.js +0 -148
- package/dist/ui/models/Rail.js +0 -117
- package/dist/ui/models/ResourceStore.js +0 -101
- package/dist/ui/models/SingleBot.d.ts +0 -20
- package/dist/ui/models/SingleBot.js +0 -202
- package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
- package/dist/ui/models/SingleGripperRobot.js +0 -272
- package/dist/ui/models/SingleJointRobot.js +0 -346
- package/dist/ui/shapes/NamePlate.js +0 -85
- package/dist/ui/shapes/ScrewHole.js +0 -57
- package/dist/ui/shapes/Texture.js +0 -51
- package/dist/ui/utils/attr.js +0 -50
- package/dist/utils/index.js +0 -92
- package/dist/utils/type-guards.js +0 -105
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
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
|
-
|
|
2
|
-
declare const _default:
|
|
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
|
-
|
|
3
|
-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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(
|
|
20
|
-
equipmentsMenu: import(
|
|
21
|
-
cases: import(
|
|
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(
|
|
29
|
-
equipmentsMenu: import(
|
|
30
|
-
cases: import(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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(
|
|
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(
|
|
15
|
+
renderLayers: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
|
|
23
16
|
}, never>, Pick<{
|
|
24
|
-
currentCase: import(
|
|
25
|
-
scene: import(
|
|
26
|
-
layers: import(
|
|
27
|
-
currentLayer: import(
|
|
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(
|
|
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(
|
|
29
|
+
renderLayers: import('@jnrs/shared/lodash').DebouncedFunc<() => void>;
|
|
37
30
|
}, "currentCase" | "scene" | "layers" | "currentLayer">, Pick<{
|
|
38
|
-
currentCase: import(
|
|
39
|
-
scene: import(
|
|
40
|
-
layers: import(
|
|
41
|
-
currentLayer: import(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
/**
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare enum EnumTag {
|
|
|
12
12
|
}
|
|
13
13
|
export declare enum EnumModel {
|
|
14
14
|
SINGLE_JOINT_ROBOT = "SingleJointRobot",
|
|
15
|
-
|
|
15
|
+
DOUBLE_JOINT_ROBOT = "DoubleJointRobot",
|
|
16
16
|
RGV = "Rgv",
|
|
17
17
|
MACHINE_TOOL = "MachineTool",
|
|
18
18
|
MARKING_MACHINE = "MarkingMachine",
|
package/dist/types/guards.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
3
|
-
import
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
47
|
-
|
|
46
|
+
className: EnumModel.MARKING_MACHINE;
|
|
47
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* 清洗机
|
|
51
51
|
*/
|
|
52
52
|
export interface ICleaningMachineConfig extends IModel {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
className: EnumModel.CLEANING_MACHINE;
|
|
54
|
+
stationSlotGroup?: IStationSlotGroupConfig;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* 单关节机器人
|
|
58
58
|
*/
|
|
59
59
|
export interface ISingleJointRobotConfig extends IModel {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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
|
|
3
|
-
import
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
43
|
-
|
|
37
|
+
site: number;
|
|
38
|
+
active: boolean;
|
|
44
39
|
}
|
|
45
40
|
/**
|
|
46
41
|
* 打标机运转状态
|
|
47
42
|
*/
|
|
48
43
|
export interface IMarkingMachineOperating extends IModelOperating {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
88
|
-
|
|
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(
|
|
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(
|
|
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 {
|
|
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 {
|