fcs-core-viewer 0.16.0 → 0.18.0
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/BackendEvents/BackendEvents.d.ts +9 -12
- package/fcs-core-viewer@types/CloudModelOperations/CAD/CreationTools/Request/ExtractAndBuild.d.ts +9 -0
- package/fcs-core-viewer@types/CloudModelOperations/CAD/CreationTools/Request/Index.d.ts +2 -0
- package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_0D_1D/Response/CreateNodeByXYZ.d.ts +2 -2
- package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_2D/Response/ManualElementCreation.d.ts +2 -2
- package/fcs-core-viewer@types/CloudModelOperations/CAE/EditingTools/Request/Merge.d.ts +2 -6
- package/fcs-core-viewer@types/CloudModelOperations/{ModelTree → Common/Core}/Request/AddItem.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/Common/Core/Request/Index.d.ts +12 -0
- package/fcs-core-viewer@types/CloudModelOperations/Common/Core/Request/Paste.d.ts +16 -0
- package/fcs-core-viewer@types/CloudModelOperations/{ModelTree → Common/Core}/Response/AddItem.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/Common/Core/Response/Index.d.ts +2 -0
- package/fcs-core-viewer@types/CloudModelOperations/Common/Exchange/Request/MeshExports.d.ts +5 -1
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/Index.d.ts +6 -13
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/Paste.d.ts +10 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/Rename.d.ts +10 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/{TreeViewEventHandler.d.ts → Request/TreeViewEventHandler.d.ts} +13 -9
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Response/Index.d.ts +1 -4
- package/fcs-core-viewer@types/CloudModelOperations/ModelView/Request/Index.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/ModelView/{ModelEventHandler.d.ts → Request/ModelViewEventHandler.d.ts} +7 -2
- package/fcs-core-viewer@types/CloudModelOperations/OperationCollection.d.ts +22 -9
- package/fcs-core-viewer@types/CloudModelOperations/Topbar/View/CutView.d.ts +3 -6
- package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/Index.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/Representation.d.ts +3 -2
- package/fcs-core-viewer@types/CloudModelOperations/Viewer/Response/Color.d.ts +3 -3
- package/fcs-core-viewer@types/CloudModelOperations/Viewer/Response/Index.d.ts +3 -3
- package/fcs-core-viewer@types/CloudModelOperations/Viewer/Response/Transparency.d.ts +6 -0
- package/fcs-core-viewer@types/CloudModelOperations/Viewer/Response/Visibility.d.ts +2 -2
- package/fcs-core-viewer@types/CloudViewer/SceneWrapper.d.ts +0 -27
- package/fcs-core-viewer@types/CloudViewer/ViewerWrapper.d.ts +8 -7
- package/fcs-core-viewer@types/Common/CommsChannels/BackendClient.d.ts +17 -1
- package/fcs-core-viewer@types/Common/Diagnostics/StatusBar.d.ts +35 -25
- package/fcs-core-viewer@types/DataStorage/MaterialData/BorderMaterial.d.ts +6 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/Element1DMaterial.d.ts +7 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/Index.d.ts +16 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/LineMaterial.d.ts +7 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/MeshCustomMaterial_basedOn_MeshBasicMaterial.d.ts +4 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/MeshCustomShader_basedOn_ PhongMaterial.d.ts +4 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/MeshMaterial.d.ts +18 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/NodeMaterial.d.ts +7 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/PointMaterial.d.ts +7 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData/VertexMaterial.d.ts +7 -0
- package/fcs-core-viewer@types/DataStorage/MaterialData.d.ts +1 -68
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/{BoundaryContainer.d.ts → BorderContainer.d.ts} +4 -5
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/Element1DContainer.d.ts +28 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/ElementContainer.d.ts +4 -11
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/FaceContainer.d.ts +4 -8
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/LineContainer.d.ts +5 -3
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/NodeContainer.d.ts +9 -10
- package/fcs-core-viewer@types/DataStorage/ModelData/Containers/PointContainer.d.ts +9 -10
- package/fcs-core-viewer@types/DataStorage/ModelData/GPUPicking/GPUPicking.d.ts +81 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Index.d.ts +47 -40
- package/fcs-core-viewer@types/DataStorage/ModelData/OctreeDataStructure/Octree.d.ts +13 -3
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Line_2N.d.ts +16 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Quad_4N.d.ts +7 -5
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Tetra_4N.d.ts +7 -5
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Tria_3N.d.ts +8 -5
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoEdge.d.ts +3 -1
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoElement.d.ts +2 -2
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoElement0D.d.ts +0 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoElement1D.d.ts +46 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoFace.d.ts +2 -2
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoMesh.d.ts +23 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoNode.d.ts +8 -4
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoShape.d.ts +1 -1
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/TopoVertex.d.ts +3 -3
- package/fcs-core-viewer@types/FrontendEvents/TopbarEvents.d.ts +1 -3
- package/fcs-core-viewer@types/Loader/FileTypes.d.ts +12 -0
- package/fcs-core-viewer@types/Loader/GEOMLoader/GeomLoader.d.ts +17 -11
- package/fcs-core-viewer@types/Loader/Loader.d.ts +1 -1
- package/fcs-core-viewer@types/Loader/MESHLoader/Index.d.ts +0 -6
- package/fcs-core-viewer@types/Loader/MESHLoader/mshpReader.d.ts +16 -9
- package/fcs-core-viewer@types/Loader/MESHLoader/mshpReader_depricated.d.ts +0 -0
- package/fcs-core-viewer@types/Loader/MESHLoader/payloadReader.d.ts +15 -11
- package/fcs-core-viewer@types/Tree/TreeView/TreeCore.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/EventListeners/{ModelEvents.d.ts → ModelViewEvents.d.ts} +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/InputField.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/CreationTools.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/Modal/Modal.d.ts +29 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/OptionsMenu/Operations/ExportGeometry/ExportGeometryOperation.d.ts +3 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/OptionsMenu/Operations/ExportMesh/ExportMeshOperation.d.ts +2 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/OptionsMenu/Operations/ExportSolverDeck/ExportSolverDeckOperation.d.ts +3 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/StatusBar/BuildingBlocks/LogMessage.d.ts +23 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/StatusBar/Operations/LogMessageOperation.d.ts +22 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetColorOperation.d.ts +3 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetTransparencyOperation.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Toolboxes/EditToolbox.d.ts +2 -1
- package/package.json +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/AddContainer.d.ts +0 -10
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/AddFile.d.ts +0 -7
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/AddFolder.d.ts +0 -14
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/CopyPasteShape.d.ts +0 -7
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/CutPasteShape.d.ts +0 -7
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/PasteShape.d.ts +0 -15
- package/fcs-core-viewer@types/CloudModelOperations/ModelView/Request/CollaborationTool_req.d.ts +0 -15
- package/fcs-core-viewer@types/CloudModelOperations/ModelView/Response/CollaborationTool_res.d.ts +0 -11
- package/fcs-core-viewer@types/CloudModelOperations/Topbar/View/GeomVisualisation.d.ts +0 -44
- package/fcs-core-viewer@types/CloudModelOperations/Viewer/Response/Opacity.d.ts +0 -8
- package/fcs-core-viewer@types/Common/Diagnostics/StatusDialog.d.ts +0 -72
- package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +0 -37
- package/fcs-core-viewer@types/Loader/MESHLoader/ElementLoader.d.ts +0 -3
- package/fcs-core-viewer@types/Loader/MESHLoader/MeshLoader.d.ts +0 -31
- package/fcs-core-viewer@types/Loader/MESHLoader/NodeCloudLoader.d.ts +0 -26
- package/fcs-core-viewer@types/Loader/MESHLoader/NodeLoader.d.ts +0 -3
- /package/fcs-core-viewer@types/CloudModelOperations/{ModelTree → Common/Core}/Request/Assign.d.ts +0 -0
- /package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/Fit.d.ts +0 -0
- /package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/OrientedViews.d.ts +0 -0
- /package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/Rotate.d.ts +0 -0
|
@@ -50,9 +50,9 @@ export declare class BackendEvents implements IBackendEvents {
|
|
|
50
50
|
components: {};
|
|
51
51
|
wereListenersRegistered: boolean;
|
|
52
52
|
readonly operationToFunction: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
set_progress_status: any;
|
|
54
|
+
set_exit_status: any;
|
|
55
|
+
set_default_state: any;
|
|
56
56
|
translate_by_dxdydz: any;
|
|
57
57
|
measure_distance: any;
|
|
58
58
|
hide: any;
|
|
@@ -147,20 +147,17 @@ export declare class BackendEvents implements IBackendEvents {
|
|
|
147
147
|
* we need to call a different method from the API, called `finish_progress_tracker`.
|
|
148
148
|
* @param data Contains 'progress_percentage' and 'current_process_name'
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
set_progress_status(instructions: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
151
151
|
/**
|
|
152
|
-
* Stops the progress tracker and presents the exit status
|
|
153
|
-
*
|
|
154
|
-
* @param data Passes on an `exit_message`, `exit_status`, `immediate_shutdown`.
|
|
152
|
+
* Stops the progress tracker and presents the exit status
|
|
153
|
+
* @param data Passes on an `exit_message`, `exit_status`
|
|
155
154
|
*/
|
|
156
|
-
|
|
155
|
+
set_exit_status(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
157
156
|
/**
|
|
158
|
-
* If there was an already running progress dialog, it is reset.
|
|
159
|
-
* This is not ideal, but we really only want to keep a single instance
|
|
160
|
-
* of a pop-up status window.
|
|
157
|
+
* If there was an already running progress dialog, it is reset and 'Ready' is shown.
|
|
161
158
|
* @param data
|
|
162
159
|
*/
|
|
163
|
-
|
|
160
|
+
set_default_state(backendInstruction: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
164
161
|
add_mesh_to_model(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
165
162
|
add_geom_to_model(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
|
166
163
|
set_object_color(data: BackendInstructions): Promise<TaskExecutionResponse>;
|
package/fcs-core-viewer@types/CloudModelOperations/CAD/CreationTools/Request/ExtractAndBuild.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModelData } from "../../../../DataStorage/ModelData/Index";
|
|
2
|
+
/**
|
|
3
|
+
* Generic task class to handle shape extraction
|
|
4
|
+
*/
|
|
5
|
+
export declare class ExtractShapes {
|
|
6
|
+
_extractableShapeType: ModelData.dataTypes;
|
|
7
|
+
constructor(extractableShapeType: ModelData.dataTypes);
|
|
8
|
+
perform(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as CreateVertexByXYZ from "./CreateVertex";
|
|
2
2
|
import * as CreateEdgeByXYZ from './CreateEdge';
|
|
3
|
+
import * as ExtractAndBuild from './ExtractAndBuild';
|
|
3
4
|
declare const Request_CAD_CreationTools: {
|
|
5
|
+
ExtractShapes: typeof ExtractAndBuild.ExtractShapes;
|
|
4
6
|
CreateEdgeByXYZ: typeof CreateEdgeByXYZ.CreateEdgeByXYZ;
|
|
5
7
|
CreateVertexByXYZ: typeof CreateVertexByXYZ.CreateVertexByXYZ;
|
|
6
8
|
};
|
|
@@ -3,8 +3,8 @@ export declare class CreateNodeByXYZ {
|
|
|
3
3
|
constructor();
|
|
4
4
|
process(itemName: string, itemUID: number, parentUID: number, shapeUID: number, shapeType: ModelData.dataTypes, data: {
|
|
5
5
|
type: number;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
existingNodes: {};
|
|
7
|
+
addedNodes: {};
|
|
8
8
|
elements: {};
|
|
9
9
|
}): Promise<void>;
|
|
10
10
|
}
|
|
@@ -2,8 +2,8 @@ import { ModelData } from "../../../../DataStorage/ModelData/Index";
|
|
|
2
2
|
export declare class ManualElementCreation {
|
|
3
3
|
constructor();
|
|
4
4
|
process(itemName: string, itemUID: number, parentUID: number, shapeUID: number, shapeType: ModelData.dataTypes, data: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
existingNodes: {};
|
|
6
|
+
addedNodes: {};
|
|
7
7
|
elements: {};
|
|
8
8
|
}): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
declare class
|
|
2
|
-
constructor();
|
|
3
|
-
}
|
|
4
|
-
export declare class MergeByNodes extends Merge {
|
|
1
|
+
export declare class MergeByNodes {
|
|
5
2
|
uniqueID_To_Instance: {};
|
|
6
3
|
constructor();
|
|
7
4
|
perform(data: {}): Promise<void>;
|
|
8
5
|
}
|
|
9
|
-
export declare class MergeByElements
|
|
6
|
+
export declare class MergeByElements {
|
|
10
7
|
constructor();
|
|
11
8
|
perform(data: {}): void;
|
|
12
9
|
}
|
|
13
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as AddItem from './AddItem';
|
|
2
|
+
import * as Assign from './Assign';
|
|
3
|
+
import * as Paste from './Paste';
|
|
4
|
+
declare const Request_Common_Core: {
|
|
5
|
+
PasteOperation: typeof Paste.PasteOperation;
|
|
6
|
+
Paste: typeof Paste.Paste;
|
|
7
|
+
Assign: typeof Assign.Assign;
|
|
8
|
+
AddFile: typeof AddItem.AddFile;
|
|
9
|
+
AddFolder: typeof AddItem.AddFolder;
|
|
10
|
+
AddContainer: typeof AddItem.AddContainer;
|
|
11
|
+
};
|
|
12
|
+
export { Request_Common_Core };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SelectionData } from "../../../../DataStorage/SelectionData";
|
|
2
|
+
import { TreeStructure } from "../../../../Tree/TreeStructure/TreeStructure";
|
|
3
|
+
import { ModelData } from "../../../../Api";
|
|
4
|
+
export declare enum PasteOperation {
|
|
5
|
+
cutItem = 0,
|
|
6
|
+
copyItem = 1,
|
|
7
|
+
cutShape = 2,
|
|
8
|
+
copyShape = 3
|
|
9
|
+
}
|
|
10
|
+
export declare class Paste {
|
|
11
|
+
selected: {};
|
|
12
|
+
selectionData: SelectionData;
|
|
13
|
+
treeStructure: TreeStructure;
|
|
14
|
+
constructor();
|
|
15
|
+
perform(operation: PasteOperation, source_shapeUIDs: number[], target_itemUID: number, selectedShapeTypeEnum?: ModelData.dataTypes): Promise<void>;
|
|
16
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as Delete from './Delete';
|
|
2
2
|
import * as Assign from './Assign';
|
|
3
3
|
import * as Paste from './Paste';
|
|
4
|
+
import * as AddItem from './AddItem';
|
|
4
5
|
declare const Response_Common_Core: {
|
|
6
|
+
AddItem: typeof AddItem.AddItem;
|
|
5
7
|
Paste: typeof Paste.Paste;
|
|
6
8
|
Assign: typeof Assign.Assign;
|
|
7
9
|
Delete: typeof Delete.Delete;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { FileTypes } from "../../../../Loader/FileTypes";
|
|
2
|
+
import { OperationToId } from "../../../OperationCollection";
|
|
1
3
|
export declare class ExportMesh {
|
|
2
|
-
|
|
4
|
+
private _exportableMeshType;
|
|
5
|
+
constructor(meshOption: string);
|
|
3
6
|
perform(): Promise<void>;
|
|
7
|
+
_getOperationToId(fileType: FileTypes.MeshFiles): OperationToId;
|
|
4
8
|
}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import * as AddItem from './AddItem';
|
|
2
|
-
import * as Assign from './Assign';
|
|
3
1
|
import * as DeleteItem from './DeleteItem';
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
2
|
+
import * as TreeViewEventHandler from './TreeViewEventHandler';
|
|
3
|
+
import * as Paste from './Paste';
|
|
4
|
+
import * as Rename from './Rename';
|
|
7
5
|
declare const Request_ModelTree: {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
RenameItem: typeof Rename.RenameItem;
|
|
7
|
+
Paste: typeof Paste.Paste;
|
|
10
8
|
DeleteItem: typeof DeleteItem.DeleteItem;
|
|
11
|
-
|
|
12
|
-
PasteShape: typeof PasteShape.PasteShape;
|
|
13
|
-
Assign: typeof Assign.Assign;
|
|
14
|
-
AddFile: typeof AddItem.AddFile;
|
|
15
|
-
AddFolder: typeof AddItem.AddFolder;
|
|
16
|
-
AddContainer: typeof AddItem.AddContainer;
|
|
9
|
+
TreeViewEventHandler: typeof TreeViewEventHandler.TreeViewEventHandler;
|
|
17
10
|
};
|
|
18
11
|
export { Request_ModelTree };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectionData } from "../../../DataStorage/SelectionData";
|
|
2
|
+
import { TreeStructure } from "../../../Tree/TreeStructure/TreeStructure";
|
|
3
|
+
export declare class Paste {
|
|
4
|
+
static operation: number;
|
|
5
|
+
selected: {};
|
|
6
|
+
selectionData: SelectionData;
|
|
7
|
+
treeStructure: TreeStructure;
|
|
8
|
+
constructor();
|
|
9
|
+
perform(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TreeStructure } from "../../../Tree/TreeStructure/TreeStructure";
|
|
2
|
+
export declare class RenameItem {
|
|
3
|
+
private readonly _htmlElement;
|
|
4
|
+
private readonly _treeStructure;
|
|
5
|
+
constructor(htmlElement: HTMLElement, treeStructure: TreeStructure);
|
|
6
|
+
/**
|
|
7
|
+
* Add file to container at top-level right under a container or under a selected folder.
|
|
8
|
+
*/
|
|
9
|
+
perform(itemTargetName: string, itemID: number): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as THREE from '
|
|
2
|
-
import { SceneWrapper } from "
|
|
3
|
-
import { MeshWrapper } from "
|
|
4
|
-
import { TreeStructure } from "
|
|
5
|
-
import { TreeCore } from "
|
|
6
|
-
import { SelectionData } from "
|
|
1
|
+
import * as THREE from '../../../three/build/three.module';
|
|
2
|
+
import { SceneWrapper } from "../../../CloudViewer/SceneWrapper";
|
|
3
|
+
import { MeshWrapper } from "../../../Model/MeshWrapper";
|
|
4
|
+
import { TreeStructure } from "../../../Tree/TreeStructure/TreeStructure";
|
|
5
|
+
import { TreeCore } from "../../../Tree/TreeView/TreeCore";
|
|
6
|
+
import { SelectionData } from "../../../DataStorage/SelectionData";
|
|
7
7
|
export declare class TreeViewEventHandler {
|
|
8
8
|
static operation: number;
|
|
9
9
|
sceneWrapper: SceneWrapper;
|
|
@@ -28,6 +28,7 @@ export declare class TreeViewEventHandler {
|
|
|
28
28
|
* Toggles visibility of the corresponding part
|
|
29
29
|
*/
|
|
30
30
|
onToggleCheckmark(): void;
|
|
31
|
+
private static _placedPartCounter;
|
|
31
32
|
addGeomPart(): Promise<void>;
|
|
32
33
|
addMeshPart(): Promise<void>;
|
|
33
34
|
addAssembly(): Promise<void>;
|
|
@@ -38,11 +39,14 @@ export declare class TreeViewEventHandler {
|
|
|
38
39
|
showOnly(): void;
|
|
39
40
|
hide(): void;
|
|
40
41
|
hideAll(): void;
|
|
41
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Method is called when the user renames an item in the model tree.
|
|
44
|
+
* @param targetName The name we want to rename the item to.
|
|
45
|
+
* @param htmlElement Associated tree item label's HTML element
|
|
46
|
+
*/
|
|
47
|
+
rename(targetName: string, htmlElement: HTMLElement): Promise<void>;
|
|
42
48
|
makeCurrent(): void;
|
|
43
49
|
copy(): void;
|
|
44
50
|
cut(): void;
|
|
45
|
-
paste(): Promise<void>;
|
|
46
51
|
explode(): Promise<void>;
|
|
47
|
-
delete(): Promise<void>;
|
|
48
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as DeleteShapes from './DeleteShapes';
|
|
2
|
-
import * as ModelViewEventHandler from '
|
|
2
|
+
import * as ModelViewEventHandler from './ModelViewEventHandler';
|
|
3
3
|
declare const Request_ModelView: {
|
|
4
4
|
ModelEventHandler: typeof ModelViewEventHandler.ModelEventHandler;
|
|
5
5
|
DeleteShapes: typeof DeleteShapes.DeleteShapes;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as THREE from '../../../three/build/three.module';
|
|
2
|
+
import { ModelContextMenu } from "../../../UserInterface/UIComponents/Model/Model";
|
|
3
|
+
import { SceneWrapper } from "../../../CloudViewer/SceneWrapper";
|
|
2
4
|
export declare class ModelEventHandler {
|
|
5
|
+
sceneWrapper: SceneWrapper;
|
|
3
6
|
modelContextMenu: ModelContextMenu;
|
|
7
|
+
renderer: THREE.Renderer;
|
|
8
|
+
scene: THREE.Scene;
|
|
9
|
+
currentCamera: THREE.OrthographicCamera;
|
|
4
10
|
constructor();
|
|
5
11
|
edit(): void;
|
|
6
12
|
cut(): void;
|
|
@@ -10,7 +16,6 @@ export declare class ModelEventHandler {
|
|
|
10
16
|
showOnly(): void;
|
|
11
17
|
showAll(): void;
|
|
12
18
|
hideAll(): void;
|
|
13
|
-
delete(): void;
|
|
14
19
|
setVisibleOnly(button_visibleOnly: any): void;
|
|
15
20
|
setThroughAll(button_throughAll: any): void;
|
|
16
21
|
enableVertex(button_vertex: any): void;
|
|
@@ -12,25 +12,38 @@ export declare enum OperationToId {
|
|
|
12
12
|
Common_Exchange_ImportSTEP = 1100,
|
|
13
13
|
Common_Exchange_ImportSTL = 1101,
|
|
14
14
|
Common_Exchange_ImportMSH = 1102,
|
|
15
|
+
Common_Exchange_ImportMED = 1103,
|
|
15
16
|
Common_Exchange_ExportMED = 1110,
|
|
16
|
-
|
|
17
|
+
Common_Exchange_ExportSTL = 1111,
|
|
18
|
+
Common_Exchange_ExportGMSH = 1112,
|
|
19
|
+
Common_Exchange_ExportSTEPForSelection = 1120,
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* Common Core - 12xx
|
|
19
22
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
ModelTree_CutPasteShape = 1211,
|
|
23
|
+
Common_Core_AddContainer = 1200,
|
|
24
|
+
Common_Core_AddFolder = 1201,
|
|
25
|
+
Common_Core_AddFile = 1202,
|
|
26
|
+
Common_Core_CopyPasteShape = 1210,
|
|
27
|
+
Common_Core_CutPasteShape = 1211,
|
|
26
28
|
/**
|
|
27
|
-
* Model
|
|
29
|
+
* Model Tree - 13xx
|
|
30
|
+
*/
|
|
31
|
+
ModelTree_DeleteItem = 1300,
|
|
32
|
+
ModelTree_RenameItem = 1301,
|
|
33
|
+
/**
|
|
34
|
+
* Model View - 14xx
|
|
28
35
|
*/
|
|
29
36
|
/**
|
|
30
37
|
* CAD - Creation Tools - 20xx
|
|
31
38
|
*/
|
|
32
39
|
CAD_CreationTools_CreateVertexByXYZ = 2000,
|
|
33
40
|
CAD_CreationTools_CreateEdgeByXYZ = 2010,
|
|
41
|
+
CAD_CreationTools_ExtractAndBuild_ExtractVertices = 2050,
|
|
42
|
+
CAD_CreationTools_ExtractAndBuild_ExtractEdges = 2051,
|
|
43
|
+
CAD_CreationTools_ExtractAndBuild_ExtractWires = 2052,
|
|
44
|
+
CAD_CreationTools_ExtractAndBuild_ExtractFaces = 2053,
|
|
45
|
+
CAD_CreationTools_ExtractAndBuild_ExtractShells = 2054,
|
|
46
|
+
CAD_CreationTools_ExtractAndBuild_ExtractSolids = 2055,
|
|
34
47
|
/**
|
|
35
48
|
* CAD - Transformation Tools - 21xx
|
|
36
49
|
*/
|
|
@@ -3,12 +3,9 @@ import { TreeView } from '../../../UserInterface/UIComponents/TreeView/TreeView'
|
|
|
3
3
|
export declare class CutView {
|
|
4
4
|
sceneWrapper: SceneWrapper;
|
|
5
5
|
treeView: TreeView;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
customLineMaterial: any;
|
|
10
|
-
generalPointMaterial: any;
|
|
11
|
-
customPointMaterial: any;
|
|
6
|
+
faceMaterial: any;
|
|
7
|
+
lineMaterial: any;
|
|
8
|
+
vertexMaterial: any;
|
|
12
9
|
readonly controls: any;
|
|
13
10
|
readonly scene: any;
|
|
14
11
|
readonly currentCamera: any;
|
package/fcs-core-viewer@types/CloudModelOperations/Topbar/{Request → View}/Representation.d.ts
RENAMED
|
@@ -10,8 +10,9 @@ declare class Representation {
|
|
|
10
10
|
materialGeom: THREE.MeshPhongMaterial;
|
|
11
11
|
materialFEMesh: THREE.MeshPhongMaterial;
|
|
12
12
|
borderMaterial: THREE.ShaderMaterial;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
lineMaterial: LineMaterial;
|
|
14
|
+
nodeMaterial: THREE.ShaderMaterial;
|
|
15
|
+
vertexMaterial: THREE.ShaderMaterial;
|
|
15
16
|
constructor();
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class
|
|
2
|
-
|
|
1
|
+
export declare class SetColor {
|
|
2
|
+
uniqueID_To_Instance: {};
|
|
3
3
|
constructor();
|
|
4
|
-
|
|
4
|
+
process(entityUIDs: number[], colorData: any[]): void;
|
|
5
5
|
private updateColorAttributes;
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Visibility from "./Visibility";
|
|
2
2
|
import * as Color from "./Color";
|
|
3
|
-
import * as
|
|
3
|
+
import * as Transparency from "./Transparency";
|
|
4
4
|
declare const Response_ViewerTools: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
SetTransparency: typeof Transparency.SetTransparency;
|
|
6
|
+
SetColor: typeof Color.SetColor;
|
|
7
7
|
Visibility: typeof Visibility.Visibility;
|
|
8
8
|
};
|
|
9
9
|
export { Response_ViewerTools };
|
|
@@ -16,7 +16,7 @@ export declare class Visibility {
|
|
|
16
16
|
showOnlySelected(): void;
|
|
17
17
|
showSelected(): void;
|
|
18
18
|
hideSelected(): void;
|
|
19
|
-
show(
|
|
20
|
-
hide(
|
|
19
|
+
show(entityUIDs: number[]): void;
|
|
20
|
+
hide(entityUIDs: number[]): void;
|
|
21
21
|
private updateVisibilityAttributes;
|
|
22
22
|
}
|
|
@@ -33,13 +33,6 @@ export declare class SceneWrapper {
|
|
|
33
33
|
materialGeom: THREE.MeshPhongMaterial;
|
|
34
34
|
materialFEMesh: THREE.MeshPhongMaterial;
|
|
35
35
|
customMeshMaterial: any;
|
|
36
|
-
generalLineMaterial: any;
|
|
37
|
-
borderMaterial: any;
|
|
38
|
-
customLineMaterial: any;
|
|
39
|
-
generalPointMaterial: any;
|
|
40
|
-
customPointMaterial: any;
|
|
41
|
-
yellowSphereTexture: any;
|
|
42
|
-
violetSphereTexture: any;
|
|
43
36
|
axisLeft: number;
|
|
44
37
|
axisBottom: number;
|
|
45
38
|
triadAxis: {};
|
|
@@ -132,26 +125,6 @@ export declare class SceneWrapper {
|
|
|
132
125
|
setEnclosingBox: (enclosingBox: {}) => {};
|
|
133
126
|
setCanvas: (canvas: HTMLCanvasElement) => void;
|
|
134
127
|
getCanvas: () => HTMLCanvasElement;
|
|
135
|
-
getMeshMaterialGeom: () => any;
|
|
136
|
-
setMeshMaterialGeom: (materialGeom: any) => void;
|
|
137
|
-
getMeshMaterialFEMesh: () => any;
|
|
138
|
-
setMeshMaterialFEMesh: (materialFEMesh: any) => void;
|
|
139
|
-
getCustomMeshMaterial: () => any;
|
|
140
|
-
setCustomMeshMaterial: (customMeshMaterial: any) => void;
|
|
141
|
-
getGeneralLineMaterial: () => any;
|
|
142
|
-
setGeneralLineMaterial: (generalLineMaterial: any) => void;
|
|
143
|
-
getBorderMaterial: () => any;
|
|
144
|
-
setBorderMaterial: (borderMaterial: any) => void;
|
|
145
|
-
getCustomLineMaterial: () => any;
|
|
146
|
-
setCustomLineMaterial: (customLineMaterial: any) => void;
|
|
147
|
-
getGeneralPointMaterial: () => any;
|
|
148
|
-
setGeneralPointMaterial: (generalPointMaterial: any) => void;
|
|
149
|
-
getCustomPointMaterial: () => any;
|
|
150
|
-
setCustomPointMaterial: (customPointMaterial: any) => void;
|
|
151
|
-
getYellowSphereTexture: () => any;
|
|
152
|
-
setYellowSphereTexture: (texture: any) => void;
|
|
153
|
-
getVioletSphereTexture: () => any;
|
|
154
|
-
setVioletSphereTexture: (texture: any) => void;
|
|
155
128
|
getFaceHighlightColor: () => number[];
|
|
156
129
|
getEdgeHighlightColor: () => number[];
|
|
157
130
|
/**
|
|
@@ -5,14 +5,12 @@ import { StyleHandler } from '../StyleHandler/StyleHandler';
|
|
|
5
5
|
import { ValidateOnSelection } from '../SelectionTools/SelectionValidation/ValidateOnSelection';
|
|
6
6
|
import { SelectionUtils } from '../SelectionTools/SelectionUtils';
|
|
7
7
|
import { ValidationMethods } from '../SelectionTools/SelectionValidation/ValidationMethods';
|
|
8
|
-
import { LoaderUtils } from '../Loader/LoaderUtils';
|
|
9
8
|
import { ExplodedView } from '../CloudModelOperations/Topbar/View/ExplodedView';
|
|
10
9
|
import { TreeEvents } from '../FrontendEvents/TreeEvents';
|
|
11
10
|
import { Loader } from '../Loader/Loader';
|
|
12
11
|
import { OptionsEvents } from '../FrontendEvents/OptionsEvents';
|
|
13
12
|
import { TopbarEvents } from '../FrontendEvents/TopbarEvents';
|
|
14
13
|
import { Screenshot } from '../CloudModelOperations/Topbar/View/Screenshot';
|
|
15
|
-
import { GeomVisualisation } from '../CloudModelOperations/Topbar/View/GeomVisualisation';
|
|
16
14
|
import { SidebarEvents } from '../FrontendEvents/SidebarEvents';
|
|
17
15
|
import { MenuEvents } from '../FrontendEvents/MenuEvents';
|
|
18
16
|
import { Display } from '../CloudModelOperations/Topbar/Display/Display';
|
|
@@ -24,7 +22,6 @@ import { BackendEvents } from '../BackendEvents/BackendEvents';
|
|
|
24
22
|
import { EventListeners } from '../UserInterface/EventListeners/EventListeners';
|
|
25
23
|
import { UIComponents } from '../UserInterface/UIComponents/UIComponents';
|
|
26
24
|
import { UIDGenerator } from '../Common/Utilities/UIDGenerator';
|
|
27
|
-
import { MaterialData } from '../DataStorage/MaterialData';
|
|
28
25
|
import { ModelData } from '../DataStorage/ModelData/Index';
|
|
29
26
|
import { SelectionData } from '../DataStorage/SelectionData';
|
|
30
27
|
import { StyleSettings } from './Settings/StyleSettings';
|
|
@@ -67,7 +64,13 @@ export declare class ViewerWrapper {
|
|
|
67
64
|
axisLeft: number;
|
|
68
65
|
axisBottom: number;
|
|
69
66
|
controls: any;
|
|
67
|
+
ambientLight: any;
|
|
70
68
|
directionalLight: any;
|
|
69
|
+
directionalLights: [{
|
|
70
|
+
direction: any;
|
|
71
|
+
color: any;
|
|
72
|
+
}];
|
|
73
|
+
sHarmonics: number[];
|
|
71
74
|
camToStart: any[];
|
|
72
75
|
camToStart_world: any;
|
|
73
76
|
camToStart_world_unit: any;
|
|
@@ -113,12 +116,10 @@ export declare class ViewerWrapper {
|
|
|
113
116
|
SelectionUtils: SelectionUtils;
|
|
114
117
|
ValidationMethods: ValidationMethods;
|
|
115
118
|
ExplodedView: ExplodedView;
|
|
116
|
-
LoaderUtils: LoaderUtils;
|
|
117
119
|
Loader: Loader;
|
|
118
120
|
TreeEvents: TreeEvents;
|
|
119
121
|
OptionsEvents: OptionsEvents;
|
|
120
122
|
Screenshot: Screenshot;
|
|
121
|
-
GeomVisualization: GeomVisualisation;
|
|
122
123
|
TopBarEvents: TopbarEvents;
|
|
123
124
|
SideBarEvents: SidebarEvents;
|
|
124
125
|
Display: Display;
|
|
@@ -132,9 +133,9 @@ export declare class ViewerWrapper {
|
|
|
132
133
|
EventListeners: EventListeners;
|
|
133
134
|
UIComponents: UIComponents;
|
|
134
135
|
UIDGenerator: UIDGenerator;
|
|
135
|
-
MaterialData: MaterialData;
|
|
136
136
|
ElementContainer: InstanceType<typeof ModelData.ContainerType.ElementContainer>;
|
|
137
|
-
|
|
137
|
+
Element1DContainer: InstanceType<typeof ModelData.ContainerType.Element1DContainer>;
|
|
138
|
+
BorderContainer: InstanceType<typeof ModelData.ContainerType.BorderContainer>;
|
|
138
139
|
NodeContainer: InstanceType<typeof ModelData.ContainerType.NodeContainer>;
|
|
139
140
|
MeshContainer: InstanceType<typeof ModelData.ContainerType.MeshContainer>;
|
|
140
141
|
LineContainer: InstanceType<typeof ModelData.ContainerType.LineContainer>;
|
|
@@ -7,6 +7,22 @@ export interface TaskRequest {
|
|
|
7
7
|
blobInput: any;
|
|
8
8
|
event: Event;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* This is the format of the payload when all returned tasks
|
|
12
|
+
* are finished.
|
|
13
|
+
*/
|
|
14
|
+
export interface TaskResponse {
|
|
15
|
+
exit_status: number;
|
|
16
|
+
diagnostic_messages: string[];
|
|
17
|
+
user_id: string;
|
|
18
|
+
task_result: {
|
|
19
|
+
operation: string;
|
|
20
|
+
arguments: any;
|
|
21
|
+
callback_method_guid: string;
|
|
22
|
+
finished: boolean;
|
|
23
|
+
};
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
10
26
|
/**
|
|
11
27
|
* Proxy class for sending backend transactions.
|
|
12
28
|
* All deepend related operations should be transferred through here.
|
|
@@ -29,7 +45,7 @@ export declare class BackendManager {
|
|
|
29
45
|
* @param onCompleteEvent When the task finishes it shall callback this event
|
|
30
46
|
* @param endpoint By default all tasks are sent to the '/viewer/toBackend' endpoint for now
|
|
31
47
|
*/
|
|
32
|
-
sendTaskRequestToBackend(taskId: number, input?: null | any, blobInput?: File | null, onCompleteEvent?: Function, endpoint?: string): Promise<
|
|
48
|
+
sendTaskRequestToBackend(taskId: number, input?: null | any, blobInput?: File | null, onCompleteEvent?: Function, endpoint?: string): Promise<TaskResponse>;
|
|
33
49
|
/**
|
|
34
50
|
* Always use this method send baseline computational requests.
|
|
35
51
|
* E.g. import of model, meshing task.
|