fcs-core-viewer 0.2.2 → 0.2.4
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/fcs-core-viewer@types/Addins/CustomScript.d.ts +11 -11
- package/fcs-core-viewer@types/Addins/Index.d.ts +1 -1
- package/fcs-core-viewer@types/Api.d.ts +10 -10
- package/fcs-core-viewer@types/BackendEvents/BackendEvents.d.ts +218 -218
- package/fcs-core-viewer@types/BackendEvents/TaskExecutionResponse.d.ts +22 -22
- package/fcs-core-viewer@types/CloudViewer/CoreInterfaces.d.ts +12 -12
- package/fcs-core-viewer@types/CloudViewer/FcsViewer.d.ts +379 -379
- package/fcs-core-viewer@types/CloudViewer/Index.d.ts +1 -1
- package/fcs-core-viewer@types/CloudViewer/Settings/CameraSettings.d.ts +44 -44
- package/fcs-core-viewer@types/CloudViewer/Settings/Index.d.ts +11 -11
- package/fcs-core-viewer@types/CloudViewer/Settings/SelectionSettings.d.ts +78 -78
- package/fcs-core-viewer@types/CloudViewer/Settings/StyleSettings.d.ts +71 -71
- package/fcs-core-viewer@types/CloudViewer/Settings/VisibilitySettings.d.ts +19 -19
- package/fcs-core-viewer@types/CloudViewer/TypesFcs.d.ts +12 -12
- package/fcs-core-viewer@types/Common/CommsChannels/BackendClient.d.ts +47 -47
- package/fcs-core-viewer@types/Common/CommsChannels/Socket.d.ts +34 -34
- package/fcs-core-viewer@types/Common/Diagnostics/Exceptions.d.ts +26 -26
- package/fcs-core-viewer@types/Common/Diagnostics/StatusDialog.d.ts +72 -72
- package/fcs-core-viewer@types/Common/Diagnostics/WebLogger.d.ts +21 -21
- package/fcs-core-viewer@types/Common/Index.d.ts +6 -6
- package/fcs-core-viewer@types/Common/LocalStorage/localStorage.d.ts +2 -2
- package/fcs-core-viewer@types/Common/UIDGenerator/UIDGenerator.d.ts +15 -15
- package/fcs-core-viewer@types/Foundations/Index.d.ts +5 -5
- package/fcs-core-viewer@types/Foundations/VectorGeometry.d.ts +30 -30
- package/fcs-core-viewer@types/FrontendEvents/MenuEvents.d.ts +132 -132
- package/fcs-core-viewer@types/FrontendEvents/OptionsEvents.d.ts +21 -21
- package/fcs-core-viewer@types/FrontendEvents/SidebarEvents.d.ts +23 -23
- package/fcs-core-viewer@types/FrontendEvents/TopbarEvents.d.ts +124 -124
- package/fcs-core-viewer@types/FrontendEvents/TreeEvents.d.ts +47 -47
- package/fcs-core-viewer@types/Loader/LoadEdge.d.ts +47 -47
- package/fcs-core-viewer@types/Loader/LoadSTEP.d.ts +68 -68
- package/fcs-core-viewer@types/Loader/LoadVertex.d.ts +41 -41
- package/fcs-core-viewer@types/Loader/Loader.d.ts +67 -67
- package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +234 -234
- package/fcs-core-viewer@types/Model/ActiveCloudDocument.d.ts +84 -84
- package/fcs-core-viewer@types/Model/Index.d.ts +9 -9
- package/fcs-core-viewer@types/Model/MeshWrapper.d.ts +87 -87
- package/fcs-core-viewer@types/Model/SceneWrapper.d.ts +171 -171
- package/fcs-core-viewer@types/SelectionTools/SelectEntities/SelectItem.d.ts +38 -38
- package/fcs-core-viewer@types/SelectionTools/Selection.d.ts +83 -83
- package/fcs-core-viewer@types/SelectionTools/SelectionEdge.d.ts +25 -25
- package/fcs-core-viewer@types/SelectionTools/SelectionEdgeByID.d.ts +29 -29
- package/fcs-core-viewer@types/SelectionTools/SelectionFace.d.ts +42 -42
- package/fcs-core-viewer@types/SelectionTools/SelectionFaceByID.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/SelectionUtils.d.ts +71 -71
- package/fcs-core-viewer@types/SelectionTools/SelectionValidation.d.ts +63 -63
- package/fcs-core-viewer@types/SelectionTools/SelectionVertex.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/SelectionVertexByID.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectActive.d.ts +12 -12
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectAll.d.ts +23 -23
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectEdge.d.ts +7 -7
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectFace.d.ts +7 -7
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectItem.d.ts +14 -14
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectVertex.d.ts +8 -8
- package/fcs-core-viewer@types/SelectionTools/Unselection.d.ts +81 -81
- package/fcs-core-viewer@types/StyleHandler/TreeStyle.d.ts +23 -23
- package/fcs-core-viewer@types/TaskHandler/Context/Context.d.ts +80 -80
- package/fcs-core-viewer@types/TaskHandler/Merge/Merge.d.ts +9 -9
- package/fcs-core-viewer@types/TaskHandler/Model/RequestHandler/CollaborationTool_req.d.ts +15 -15
- package/fcs-core-viewer@types/TaskHandler/Model/ResponseHandler/CollaborationTool_res.d.ts +11 -11
- package/fcs-core-viewer@types/TaskHandler/Options/Options.d.ts +31 -31
- package/fcs-core-viewer@types/TaskHandler/Output/Output.d.ts +14 -14
- package/fcs-core-viewer@types/TaskHandler/TaskHandler.d.ts +325 -325
- package/fcs-core-viewer@types/TaskHandler/TaskUtils.d.ts +54 -54
- package/fcs-core-viewer@types/TaskHandler/Topbar/Delete/Delete.d.ts +89 -89
- package/fcs-core-viewer@types/TaskHandler/Topbar/Display/Display.d.ts +31 -31
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Find.d.ts +86 -86
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Measurement.d.ts +26 -26
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Transformation.d.ts +35 -35
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/CutView.d.ts +85 -85
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/ExplodedView.d.ts +38 -38
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/GeomVisualisation.d.ts +46 -46
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Rotate.d.ts +54 -54
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Screenshot.d.ts +41 -41
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Views.d.ts +22 -22
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddContainer.d.ts +16 -16
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFile.d.ts +18 -18
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFolder.d.ts +16 -16
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/ITaskDefinition.d.ts +5 -5
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/Interactions.d.ts +47 -47
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/RemoveFile.d.ts +6 -6
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/AddTreeItem.d.ts +14 -14
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/Interactions.d.ts +3 -3
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/RemoveTreeItem.d.ts +10 -10
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler.d.ts +5 -5
- package/fcs-core-viewer@types/TaskHandler/Tree/Tree.d.ts +236 -236
- package/fcs-core-viewer@types/Tree/TreeStructure/TreeStructure.d.ts +68 -68
- package/fcs-core-viewer@types/Tree/TreeView/TreeCore.d.ts +175 -175
- package/fcs-core-viewer@types/Tree/TreeView/TreeCoreUtils.d.ts +82 -82
- package/fcs-core-viewer@types/UserInterface/EventListeners/EventListeners.d.ts +32 -32
- package/fcs-core-viewer@types/UserInterface/EventListeners/ModelEvents.d.ts +13 -13
- package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +15 -15
- package/fcs-core-viewer@types/UserInterface/UIComponents/Model.d.ts +33 -33
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView.d.ts +52 -52
- package/fcs-core-viewer@types/UserInterface/UIComponents/UIComponents.d.ts +32 -32
- package/fcs-core-viewer@types/UserInterface/UIComponents.d.ts +44 -44
- package/fcs-core-viewer@types/UserInterface/UIDefinition.d.ts +37 -37
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiBaseComponent.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiFunctionGroup.d.ts +14 -14
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiInputCollector.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiPushButton.d.ts +8 -8
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiSlider.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiStatusBar.d.ts +27 -27
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiTreeView.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAE.d.ts +48 -48
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyActions.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyAssets.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiContextMenu.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockPanel.d.ts +7 -7
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockedQuickMenu.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDropButton.d.ts +5 -5
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiHowerPanel.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiMainComponent.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiQuickOptionsMenu.d.ts +12 -12
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiButtonStyle.d.ts +22 -22
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiPositions.d.ts +20 -20
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiSizing.d.ts +4 -4
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiBinder.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiDefinition.d.ts +8 -8
- package/fcs-core-viewer@types/ViewerEntities/AbstractEntities.d.ts +76 -76
- package/fcs-core-viewer@types/ViewerEntities/ContainerEntities.d.ts +27 -27
- package/fcs-core-viewer@types/ViewerEntities/Index.d.ts +11 -11
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/AnnotationEntities.d.ts +79 -79
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/CollaborationEntities.d.ts +125 -125
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/GeometricEntities.d.ts +20 -20
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/Index.d.ts +7 -7
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/TemporaryEntities.d.ts +15 -15
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/VisibleBaseEntities.d.ts +38 -38
- package/fcs-core-viewer@types/ViewerSetup.d.ts +5 -5
- package/fcs-core-viewer@types/Workspace/StyleHandler.d.ts +133 -133
- package/fcs-core-viewer@types/Workspace/ThreeJsExtensions.d.ts +47 -47
- package/fcs-core-viewer@types/Workspace/ViewerWrapper.d.ts +215 -215
- package/package.json +1 -1
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiBaseComponent.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiFunctionGroup.d.ts +0 -14
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiInputCollector.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiPushButton.d.ts +0 -8
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiSlider.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiStatusBar.d.ts +0 -27
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiTreeView.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAE.d.ts +0 -48
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyActions.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyAssets.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiContextMenu.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockPanel.d.ts +0 -7
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockedQuickMenu.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDropButton.d.ts +0 -5
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiHowerPanel.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiMainComponent.d.ts +0 -2
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiQuickOptionsMenu.d.ts +0 -12
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiButtonStyle.d.ts +0 -22
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiPositions.d.ts +0 -20
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiSizing.d.ts +0 -4
- package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiBinder.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiDefinition.d.ts +0 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TaskUtils } from "../TaskHandler/TaskUtils";
|
|
2
|
-
/**
|
|
3
|
-
* Serves to host additional development functionalities.
|
|
4
|
-
*/
|
|
5
|
-
export declare namespace Addins {
|
|
6
|
-
/**
|
|
7
|
-
* By registering addins we hook up event listeners and path them to the correct
|
|
8
|
-
* method defined in this class.
|
|
9
|
-
*/
|
|
10
|
-
function registerAddins(taskUtils: TaskUtils): void;
|
|
11
|
-
}
|
|
1
|
+
import { TaskUtils } from "../TaskHandler/TaskUtils";
|
|
2
|
+
/**
|
|
3
|
+
* Serves to host additional development functionalities.
|
|
4
|
+
*/
|
|
5
|
+
export declare namespace Addins {
|
|
6
|
+
/**
|
|
7
|
+
* By registering addins we hook up event listeners and path them to the correct
|
|
8
|
+
* method defined in this class.
|
|
9
|
+
*/
|
|
10
|
+
function registerAddins(taskUtils: TaskUtils): void;
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './CustomScript';
|
|
1
|
+
export * from './CustomScript';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contains all usable exports to build custom frontend applications
|
|
3
|
-
* that leverage the FCS Cloud Viewer and Editor.
|
|
4
|
-
*/
|
|
5
|
-
export * from './Foundations/Index';
|
|
6
|
-
export * from './ViewerEntities/Index';
|
|
7
|
-
export * from './CloudViewer/Settings/Index';
|
|
8
|
-
export * from './Model/Index';
|
|
9
|
-
export * from './CloudViewer/Index';
|
|
10
|
-
export * from './Common/Index';
|
|
1
|
+
/**
|
|
2
|
+
* Contains all usable exports to build custom frontend applications
|
|
3
|
+
* that leverage the FCS Cloud Viewer and Editor.
|
|
4
|
+
*/
|
|
5
|
+
export * from './Foundations/Index';
|
|
6
|
+
export * from './ViewerEntities/Index';
|
|
7
|
+
export * from './CloudViewer/Settings/Index';
|
|
8
|
+
export * from './Model/Index';
|
|
9
|
+
export * from './CloudViewer/Index';
|
|
10
|
+
export * from './Common/Index';
|
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
import { MeshWrapper } from '../Model/MeshWrapper';
|
|
2
|
-
import { SceneWrapper } from '../Model/SceneWrapper';
|
|
3
|
-
import { Appearance } from '../TaskHandler/Context/Context';
|
|
4
|
-
import { Loader } from '../Loader/Loader';
|
|
5
|
-
import { TreeOperations } from '../TaskHandler/Tree/Tree';
|
|
6
|
-
import { TreeView } from '../UserInterface/UIComponents/TreeView';
|
|
7
|
-
import { TaskUtils } from '../TaskHandler/TaskUtils';
|
|
8
|
-
import { CloudViewer } from '../CloudViewer/FcsViewer';
|
|
9
|
-
import { Translate } from '../TaskHandler/Topbar/Tools/Transformation';
|
|
10
|
-
import { Measurement } from '../TaskHandler/Topbar/Tools/Measurement';
|
|
11
|
-
import { Options } from '../TaskHandler/Options/Options';
|
|
12
|
-
import { TaskExecutionResponse } from './TaskExecutionResponse';
|
|
13
|
-
import { IBackendEvents } from '../CloudViewer/CoreInterfaces';
|
|
14
|
-
import { AddTreeItem } from '../TaskHandler/Tree/ResponseHandler/AddTreeItem';
|
|
15
|
-
/**
|
|
16
|
-
* This is the format of the backend received data.
|
|
17
|
-
*/
|
|
18
|
-
interface BackendInstructions {
|
|
19
|
-
operation: string;
|
|
20
|
-
arguments: any;
|
|
21
|
-
finished?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Task callback arguments
|
|
24
|
-
*/
|
|
25
|
-
callback_guid_id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional addin arguments
|
|
28
|
-
*/
|
|
29
|
-
addin_command?: string;
|
|
30
|
-
addin?: string;
|
|
31
|
-
on_finished_arguments?: {};
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* All events that were triggered by the backend.
|
|
35
|
-
* Normally, everything is first run by the backend to make sure if the
|
|
36
|
-
* changes can take affect in the model file. Once successful, it is returned
|
|
37
|
-
* back with sockets.
|
|
38
|
-
*/
|
|
39
|
-
export declare class BackendEvents implements IBackendEvents {
|
|
40
|
-
licenseToken: string;
|
|
41
|
-
meshWrapper: MeshWrapper;
|
|
42
|
-
sceneWrapper: SceneWrapper;
|
|
43
|
-
appearance: Appearance;
|
|
44
|
-
loader: Loader;
|
|
45
|
-
treeView: TreeView;
|
|
46
|
-
treeOps: TreeOperations;
|
|
47
|
-
taskUtils: TaskUtils;
|
|
48
|
-
options: Options;
|
|
49
|
-
translate: Translate;
|
|
50
|
-
measurement: Measurement;
|
|
51
|
-
addTreeItem: AddTreeItem;
|
|
52
|
-
name: string;
|
|
53
|
-
tName: string;
|
|
54
|
-
operation: string;
|
|
55
|
-
stlPath: string;
|
|
56
|
-
stlPathStatic: string;
|
|
57
|
-
t2gPathStatic: string;
|
|
58
|
-
scene: any;
|
|
59
|
-
controls: any;
|
|
60
|
-
renderer: any;
|
|
61
|
-
currentCamera: any;
|
|
62
|
-
grEntityLabel: any;
|
|
63
|
-
requestArray: any[];
|
|
64
|
-
requestIndex: number;
|
|
65
|
-
response: any;
|
|
66
|
-
status: string;
|
|
67
|
-
backendInstructionData: {};
|
|
68
|
-
components: {};
|
|
69
|
-
wereListenersRegistered: boolean;
|
|
70
|
-
readonly operationToFunction: {
|
|
71
|
-
show_progress_tracker: any;
|
|
72
|
-
finish_progress_tracker: any;
|
|
73
|
-
show_status_message: any;
|
|
74
|
-
translate_two_points: any;
|
|
75
|
-
measure_distance: any;
|
|
76
|
-
WhatIs: any;
|
|
77
|
-
hide: any;
|
|
78
|
-
show: any;
|
|
79
|
-
hide_all: any;
|
|
80
|
-
show_all: any;
|
|
81
|
-
set_transparency: any;
|
|
82
|
-
center_view: any;
|
|
83
|
-
set_object_color: any;
|
|
84
|
-
refresh_viewer: any;
|
|
85
|
-
clear_document: any;
|
|
86
|
-
commit_to_document: any;
|
|
87
|
-
remove_from_document: any;
|
|
88
|
-
add_new_container: any;
|
|
89
|
-
add_new_container_under: any;
|
|
90
|
-
add_to_document: any;
|
|
91
|
-
add_to_document_under: any;
|
|
92
|
-
export_STEP_for_selection: any;
|
|
93
|
-
generic_callback_middleware: any;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Contains guid to backend service mappings.
|
|
97
|
-
*/
|
|
98
|
-
attachedServices: {
|
|
99
|
-
[key: string]: CloudViewer.BackendService;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Contains all approved guids
|
|
103
|
-
*/
|
|
104
|
-
registeredAddinGuids: string[];
|
|
105
|
-
/**
|
|
106
|
-
* Callback function GUIDs
|
|
107
|
-
*/
|
|
108
|
-
guidCallbackDictionary: {
|
|
109
|
-
[key: string]: Function;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Constructor.
|
|
113
|
-
*/
|
|
114
|
-
constructor(licenseToken: string, sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper, loader: Loader, appearance: Appearance, treeView: TreeView, treeOperations: TreeOperations, taskUtilities: TaskUtils, options: Options, translate: Translate, measurement: Measurement, addTreeItem: AddTreeItem);
|
|
115
|
-
/**
|
|
116
|
-
* Saves the backend service and will be able to invoke the
|
|
117
|
-
* 'OnFinished' method on call back from backend service.
|
|
118
|
-
* @param service
|
|
119
|
-
* @param serviceMethod
|
|
120
|
-
*/
|
|
121
|
-
attachService(service: CloudViewer.BackendService): void;
|
|
122
|
-
/**
|
|
123
|
-
* We pass in a function that will be called when the backend task finishes.
|
|
124
|
-
* We save this method in a dictionary where it will receive a GUID.
|
|
125
|
-
* When the method finishes it will search in the through the
|
|
126
|
-
* 'guidCallbackDictionary' to look if there are any methods that need to be run.
|
|
127
|
-
* @param callbackFn Method to be run after the task is finished
|
|
128
|
-
* @returns created Guid that will be used to identify the callback function
|
|
129
|
-
*/
|
|
130
|
-
attachCallbackMethodToTask(callbackFn: Function): string;
|
|
131
|
-
/**
|
|
132
|
-
* Registers all available event listeners.
|
|
133
|
-
*/
|
|
134
|
-
private _registerEventListeners;
|
|
135
|
-
/**
|
|
136
|
-
* Miutan egyszer elinditottuk a scheduler funkciot, while ciklussal menjunk vegig a array-en,
|
|
137
|
-
* melyet a backend-bol jovo request-ek folyamatosan toltenek fel feladatokkal.
|
|
138
|
-
* Ha i = N akkor kuldje a response-t.
|
|
139
|
-
* @returns Response from called backend method.
|
|
140
|
-
*/
|
|
141
|
-
private scheduler;
|
|
142
|
-
/**
|
|
143
|
-
* Dummy placeholder method that serves as a generic middleware to all methods.
|
|
144
|
-
* @returns
|
|
145
|
-
*/
|
|
146
|
-
private generic_callback_middleware;
|
|
147
|
-
/**
|
|
148
|
-
* Centers the view.
|
|
149
|
-
* @param data Does not matter, because it centers everything that's visible
|
|
150
|
-
*/
|
|
151
|
-
private center_view;
|
|
152
|
-
/**
|
|
153
|
-
* Renders latest document (whatever was added/removed/modified)
|
|
154
|
-
*/
|
|
155
|
-
private refresh_viewer;
|
|
156
|
-
/**
|
|
157
|
-
* Clears all entities in the document. Basically, a new empty document is open.
|
|
158
|
-
*/
|
|
159
|
-
private clear_document;
|
|
160
|
-
/**
|
|
161
|
-
* This method is called both times when we are spawning the progress
|
|
162
|
-
* tracker or updating an existing one. To close down the progress tracker,
|
|
163
|
-
* we need to call a different method from the API, called `finish_progress_tracker`.
|
|
164
|
-
* @param data Contains 'progress_percentage' and 'current_process_name'
|
|
165
|
-
*/
|
|
166
|
-
show_progress_tracker(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
167
|
-
/**
|
|
168
|
-
* Stops the progress tracker and presents the exit status, unless
|
|
169
|
-
* immediate shutdown was requested.
|
|
170
|
-
* @param data Passes on an `exit_message`, `exit_status`, `immediate_shutdown`.
|
|
171
|
-
*/
|
|
172
|
-
finish_progress_tracker(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
173
|
-
/**
|
|
174
|
-
* If there was an already running progress dialog, it is reset.
|
|
175
|
-
* This is not ideal, but we really only want to keep a single instance
|
|
176
|
-
* of a pop-up status window.
|
|
177
|
-
* @param data
|
|
178
|
-
*/
|
|
179
|
-
show_status_message(backendInstruction: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
180
|
-
private remove_from_document;
|
|
181
|
-
/**
|
|
182
|
-
* Add empty file, folder or container to the viewer
|
|
183
|
-
* @param data
|
|
184
|
-
* @returns
|
|
185
|
-
*/
|
|
186
|
-
private add_empty_item;
|
|
187
|
-
add_to_document(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
188
|
-
set_object_color(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
189
|
-
/**
|
|
190
|
-
* Sets the transparency of an object.
|
|
191
|
-
* @param instructions Contains ID and opacity
|
|
192
|
-
*/
|
|
193
|
-
set_transparency(instructions: BackendInstructions): TaskExecutionResponse | "Finished: set_transparency";
|
|
194
|
-
/**
|
|
195
|
-
* Will set visibility toggle on for all passed in entity_ids.
|
|
196
|
-
* @param instructions Contains entity_ids only
|
|
197
|
-
*/
|
|
198
|
-
private _show;
|
|
199
|
-
private _hide;
|
|
200
|
-
set_object_visibility(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
201
|
-
/**
|
|
202
|
-
* Saves the currently active model's path, it will mark it as saveable.
|
|
203
|
-
* ToDo: For any other changes that were not committed to, we will need to
|
|
204
|
-
* disable the ability to export the model.
|
|
205
|
-
* @param instructions
|
|
206
|
-
* @returns 'Finished' message
|
|
207
|
-
*/
|
|
208
|
-
commit_to_document(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* @param instructions Contains exported STEP file path
|
|
212
|
-
*/
|
|
213
|
-
private export_STEP_for_selection;
|
|
214
|
-
translate_two_points(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
215
|
-
measure_distance(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
216
|
-
WhatIs(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
217
|
-
}
|
|
218
|
-
export {};
|
|
1
|
+
import { MeshWrapper } from '../Model/MeshWrapper';
|
|
2
|
+
import { SceneWrapper } from '../Model/SceneWrapper';
|
|
3
|
+
import { Appearance } from '../TaskHandler/Context/Context';
|
|
4
|
+
import { Loader } from '../Loader/Loader';
|
|
5
|
+
import { TreeOperations } from '../TaskHandler/Tree/Tree';
|
|
6
|
+
import { TreeView } from '../UserInterface/UIComponents/TreeView';
|
|
7
|
+
import { TaskUtils } from '../TaskHandler/TaskUtils';
|
|
8
|
+
import { CloudViewer } from '../CloudViewer/FcsViewer';
|
|
9
|
+
import { Translate } from '../TaskHandler/Topbar/Tools/Transformation';
|
|
10
|
+
import { Measurement } from '../TaskHandler/Topbar/Tools/Measurement';
|
|
11
|
+
import { Options } from '../TaskHandler/Options/Options';
|
|
12
|
+
import { TaskExecutionResponse } from './TaskExecutionResponse';
|
|
13
|
+
import { IBackendEvents } from '../CloudViewer/CoreInterfaces';
|
|
14
|
+
import { AddTreeItem } from '../TaskHandler/Tree/ResponseHandler/AddTreeItem';
|
|
15
|
+
/**
|
|
16
|
+
* This is the format of the backend received data.
|
|
17
|
+
*/
|
|
18
|
+
interface BackendInstructions {
|
|
19
|
+
operation: string;
|
|
20
|
+
arguments: any;
|
|
21
|
+
finished?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Task callback arguments
|
|
24
|
+
*/
|
|
25
|
+
callback_guid_id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional addin arguments
|
|
28
|
+
*/
|
|
29
|
+
addin_command?: string;
|
|
30
|
+
addin?: string;
|
|
31
|
+
on_finished_arguments?: {};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* All events that were triggered by the backend.
|
|
35
|
+
* Normally, everything is first run by the backend to make sure if the
|
|
36
|
+
* changes can take affect in the model file. Once successful, it is returned
|
|
37
|
+
* back with sockets.
|
|
38
|
+
*/
|
|
39
|
+
export declare class BackendEvents implements IBackendEvents {
|
|
40
|
+
licenseToken: string;
|
|
41
|
+
meshWrapper: MeshWrapper;
|
|
42
|
+
sceneWrapper: SceneWrapper;
|
|
43
|
+
appearance: Appearance;
|
|
44
|
+
loader: Loader;
|
|
45
|
+
treeView: TreeView;
|
|
46
|
+
treeOps: TreeOperations;
|
|
47
|
+
taskUtils: TaskUtils;
|
|
48
|
+
options: Options;
|
|
49
|
+
translate: Translate;
|
|
50
|
+
measurement: Measurement;
|
|
51
|
+
addTreeItem: AddTreeItem;
|
|
52
|
+
name: string;
|
|
53
|
+
tName: string;
|
|
54
|
+
operation: string;
|
|
55
|
+
stlPath: string;
|
|
56
|
+
stlPathStatic: string;
|
|
57
|
+
t2gPathStatic: string;
|
|
58
|
+
scene: any;
|
|
59
|
+
controls: any;
|
|
60
|
+
renderer: any;
|
|
61
|
+
currentCamera: any;
|
|
62
|
+
grEntityLabel: any;
|
|
63
|
+
requestArray: any[];
|
|
64
|
+
requestIndex: number;
|
|
65
|
+
response: any;
|
|
66
|
+
status: string;
|
|
67
|
+
backendInstructionData: {};
|
|
68
|
+
components: {};
|
|
69
|
+
wereListenersRegistered: boolean;
|
|
70
|
+
readonly operationToFunction: {
|
|
71
|
+
show_progress_tracker: any;
|
|
72
|
+
finish_progress_tracker: any;
|
|
73
|
+
show_status_message: any;
|
|
74
|
+
translate_two_points: any;
|
|
75
|
+
measure_distance: any;
|
|
76
|
+
WhatIs: any;
|
|
77
|
+
hide: any;
|
|
78
|
+
show: any;
|
|
79
|
+
hide_all: any;
|
|
80
|
+
show_all: any;
|
|
81
|
+
set_transparency: any;
|
|
82
|
+
center_view: any;
|
|
83
|
+
set_object_color: any;
|
|
84
|
+
refresh_viewer: any;
|
|
85
|
+
clear_document: any;
|
|
86
|
+
commit_to_document: any;
|
|
87
|
+
remove_from_document: any;
|
|
88
|
+
add_new_container: any;
|
|
89
|
+
add_new_container_under: any;
|
|
90
|
+
add_to_document: any;
|
|
91
|
+
add_to_document_under: any;
|
|
92
|
+
export_STEP_for_selection: any;
|
|
93
|
+
generic_callback_middleware: any;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Contains guid to backend service mappings.
|
|
97
|
+
*/
|
|
98
|
+
attachedServices: {
|
|
99
|
+
[key: string]: CloudViewer.BackendService;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Contains all approved guids
|
|
103
|
+
*/
|
|
104
|
+
registeredAddinGuids: string[];
|
|
105
|
+
/**
|
|
106
|
+
* Callback function GUIDs
|
|
107
|
+
*/
|
|
108
|
+
guidCallbackDictionary: {
|
|
109
|
+
[key: string]: Function;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Constructor.
|
|
113
|
+
*/
|
|
114
|
+
constructor(licenseToken: string, sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper, loader: Loader, appearance: Appearance, treeView: TreeView, treeOperations: TreeOperations, taskUtilities: TaskUtils, options: Options, translate: Translate, measurement: Measurement, addTreeItem: AddTreeItem);
|
|
115
|
+
/**
|
|
116
|
+
* Saves the backend service and will be able to invoke the
|
|
117
|
+
* 'OnFinished' method on call back from backend service.
|
|
118
|
+
* @param service
|
|
119
|
+
* @param serviceMethod
|
|
120
|
+
*/
|
|
121
|
+
attachService(service: CloudViewer.BackendService): void;
|
|
122
|
+
/**
|
|
123
|
+
* We pass in a function that will be called when the backend task finishes.
|
|
124
|
+
* We save this method in a dictionary where it will receive a GUID.
|
|
125
|
+
* When the method finishes it will search in the through the
|
|
126
|
+
* 'guidCallbackDictionary' to look if there are any methods that need to be run.
|
|
127
|
+
* @param callbackFn Method to be run after the task is finished
|
|
128
|
+
* @returns created Guid that will be used to identify the callback function
|
|
129
|
+
*/
|
|
130
|
+
attachCallbackMethodToTask(callbackFn: Function): string;
|
|
131
|
+
/**
|
|
132
|
+
* Registers all available event listeners.
|
|
133
|
+
*/
|
|
134
|
+
private _registerEventListeners;
|
|
135
|
+
/**
|
|
136
|
+
* Miutan egyszer elinditottuk a scheduler funkciot, while ciklussal menjunk vegig a array-en,
|
|
137
|
+
* melyet a backend-bol jovo request-ek folyamatosan toltenek fel feladatokkal.
|
|
138
|
+
* Ha i = N akkor kuldje a response-t.
|
|
139
|
+
* @returns Response from called backend method.
|
|
140
|
+
*/
|
|
141
|
+
private scheduler;
|
|
142
|
+
/**
|
|
143
|
+
* Dummy placeholder method that serves as a generic middleware to all methods.
|
|
144
|
+
* @returns
|
|
145
|
+
*/
|
|
146
|
+
private generic_callback_middleware;
|
|
147
|
+
/**
|
|
148
|
+
* Centers the view.
|
|
149
|
+
* @param data Does not matter, because it centers everything that's visible
|
|
150
|
+
*/
|
|
151
|
+
private center_view;
|
|
152
|
+
/**
|
|
153
|
+
* Renders latest document (whatever was added/removed/modified)
|
|
154
|
+
*/
|
|
155
|
+
private refresh_viewer;
|
|
156
|
+
/**
|
|
157
|
+
* Clears all entities in the document. Basically, a new empty document is open.
|
|
158
|
+
*/
|
|
159
|
+
private clear_document;
|
|
160
|
+
/**
|
|
161
|
+
* This method is called both times when we are spawning the progress
|
|
162
|
+
* tracker or updating an existing one. To close down the progress tracker,
|
|
163
|
+
* we need to call a different method from the API, called `finish_progress_tracker`.
|
|
164
|
+
* @param data Contains 'progress_percentage' and 'current_process_name'
|
|
165
|
+
*/
|
|
166
|
+
show_progress_tracker(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Stops the progress tracker and presents the exit status, unless
|
|
169
|
+
* immediate shutdown was requested.
|
|
170
|
+
* @param data Passes on an `exit_message`, `exit_status`, `immediate_shutdown`.
|
|
171
|
+
*/
|
|
172
|
+
finish_progress_tracker(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* If there was an already running progress dialog, it is reset.
|
|
175
|
+
* This is not ideal, but we really only want to keep a single instance
|
|
176
|
+
* of a pop-up status window.
|
|
177
|
+
* @param data
|
|
178
|
+
*/
|
|
179
|
+
show_status_message(backendInstruction: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
180
|
+
private remove_from_document;
|
|
181
|
+
/**
|
|
182
|
+
* Add empty file, folder or container to the viewer
|
|
183
|
+
* @param data
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
private add_empty_item;
|
|
187
|
+
add_to_document(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
188
|
+
set_object_color(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Sets the transparency of an object.
|
|
191
|
+
* @param instructions Contains ID and opacity
|
|
192
|
+
*/
|
|
193
|
+
set_transparency(instructions: BackendInstructions): TaskExecutionResponse | "Finished: set_transparency";
|
|
194
|
+
/**
|
|
195
|
+
* Will set visibility toggle on for all passed in entity_ids.
|
|
196
|
+
* @param instructions Contains entity_ids only
|
|
197
|
+
*/
|
|
198
|
+
private _show;
|
|
199
|
+
private _hide;
|
|
200
|
+
set_object_visibility(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* Saves the currently active model's path, it will mark it as saveable.
|
|
203
|
+
* ToDo: For any other changes that were not committed to, we will need to
|
|
204
|
+
* disable the ability to export the model.
|
|
205
|
+
* @param instructions
|
|
206
|
+
* @returns 'Finished' message
|
|
207
|
+
*/
|
|
208
|
+
commit_to_document(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @param instructions Contains exported STEP file path
|
|
212
|
+
*/
|
|
213
|
+
private export_STEP_for_selection;
|
|
214
|
+
translate_two_points(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
215
|
+
measure_distance(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
216
|
+
WhatIs(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
217
|
+
}
|
|
218
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export declare enum TaskExecutionOutcome {
|
|
2
|
-
Successful = 0,
|
|
3
|
-
SuccessfulWithWarnings = 1,
|
|
4
|
-
FailureButCanContinue = 2,
|
|
5
|
-
CompleteFailure = 3
|
|
6
|
-
}
|
|
7
|
-
export declare class TaskExecutionResponse {
|
|
8
|
-
private _functionName;
|
|
9
|
-
private _executionOutcome;
|
|
10
|
-
private _errorMessage;
|
|
11
|
-
private _warningMessage;
|
|
12
|
-
constructor(functionName: string);
|
|
13
|
-
/**
|
|
14
|
-
* Uses the stack trace to create a default
|
|
15
|
-
* @returns A default execution response with successful outcome.
|
|
16
|
-
*/
|
|
17
|
-
static ConstructDefaultResponse(): TaskExecutionResponse;
|
|
18
|
-
getOutcome(): TaskExecutionOutcome;
|
|
19
|
-
setOutcome(outcome: TaskExecutionOutcome): void;
|
|
20
|
-
setWarningMessage(_warningMessage: string): void;
|
|
21
|
-
setErrorMessage(errorMessages: string): void;
|
|
22
|
-
}
|
|
1
|
+
export declare enum TaskExecutionOutcome {
|
|
2
|
+
Successful = 0,
|
|
3
|
+
SuccessfulWithWarnings = 1,
|
|
4
|
+
FailureButCanContinue = 2,
|
|
5
|
+
CompleteFailure = 3
|
|
6
|
+
}
|
|
7
|
+
export declare class TaskExecutionResponse {
|
|
8
|
+
private _functionName;
|
|
9
|
+
private _executionOutcome;
|
|
10
|
+
private _errorMessage;
|
|
11
|
+
private _warningMessage;
|
|
12
|
+
constructor(functionName: string);
|
|
13
|
+
/**
|
|
14
|
+
* Uses the stack trace to create a default
|
|
15
|
+
* @returns A default execution response with successful outcome.
|
|
16
|
+
*/
|
|
17
|
+
static ConstructDefaultResponse(): TaskExecutionResponse;
|
|
18
|
+
getOutcome(): TaskExecutionOutcome;
|
|
19
|
+
setOutcome(outcome: TaskExecutionOutcome): void;
|
|
20
|
+
setWarningMessage(_warningMessage: string): void;
|
|
21
|
+
setErrorMessage(errorMessages: string): void;
|
|
22
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BackendManager } from "../Common/CommsChannels/BackendClient";
|
|
2
|
-
/**
|
|
3
|
-
* Core interfaces serve to declare types that are used in
|
|
4
|
-
* code that is not directly accessible via the API.
|
|
5
|
-
*/
|
|
6
|
-
export interface ITaskUtilities {
|
|
7
|
-
setBackendManager(backendManager: BackendManager): void;
|
|
8
|
-
getDataFromSelected(): any | null;
|
|
9
|
-
}
|
|
10
|
-
export interface IBackendEvents {
|
|
11
|
-
attachCallbackMethodToTask(callbackFn: Function): string;
|
|
12
|
-
}
|
|
1
|
+
import { BackendManager } from "../Common/CommsChannels/BackendClient";
|
|
2
|
+
/**
|
|
3
|
+
* Core interfaces serve to declare types that are used in
|
|
4
|
+
* code that is not directly accessible via the API.
|
|
5
|
+
*/
|
|
6
|
+
export interface ITaskUtilities {
|
|
7
|
+
setBackendManager(backendManager: BackendManager): void;
|
|
8
|
+
getDataFromSelected(): any | null;
|
|
9
|
+
}
|
|
10
|
+
export interface IBackendEvents {
|
|
11
|
+
attachCallbackMethodToTask(callbackFn: Function): string;
|
|
12
|
+
}
|