fcs-core-viewer 0.20.1 → 0.21.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/CloudModelOperations/CAE/AnalysisTools/Request/FreeEdges.d.ts +6 -0
- package/fcs-core-viewer@types/CloudModelOperations/CAE/AnalysisTools/Request/Index.d.ts +5 -0
- package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_2D/Request/Index.d.ts +2 -0
- package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_2D/Request/Remesh2D.d.ts +11 -0
- package/fcs-core-viewer@types/CloudModelOperations/Common/Exchange/Request/Index.d.ts +2 -0
- package/fcs-core-viewer@types/CloudModelOperations/Common/Exchange/Request/Simulation.d.ts +13 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/DeleteItem.d.ts +4 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/Paste.d.ts +4 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/TreeViewEventHandler.d.ts +9 -0
- package/fcs-core-viewer@types/CloudModelOperations/ModelView/Request/ModelViewEventHandler.d.ts +6 -0
- package/fcs-core-viewer@types/CloudModelOperations/OperationCollection.d.ts +12 -1
- package/fcs-core-viewer@types/CloudModelOperations/Visualization/Response/Visibility.d.ts +7 -5
- package/fcs-core-viewer@types/DataStorage/SelectionData.d.ts +0 -1
- package/fcs-core-viewer@types/DataStorage/ViewerData.d.ts +3 -0
- package/fcs-core-viewer@types/UserInterface/EventListeners/ModelViewEvents.d.ts +5 -0
- package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ToolsetPanel.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton.d.ts +2 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/InputField.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/LabeledInputField.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeByXYZ.d.ts +5 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildShell.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildSolid.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildWire.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractFace.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractLine.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractPoint.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractShell.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractSolid.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractWire.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexByXYZ.d.ts +2 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/EditingTools/Delete/DeleteShape.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/AnalysisTools.d.ts +7 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/FreeEdges/FreeEdgesByElements.d.ts +38 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/CreationTools_2D.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/RuleBased/RuleBasedManualElementCreation.d.ts +5 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedMeshSurface.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedRemesh2D.d.ts +60 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_3D/VolBased_3D/ThreeDVolBasedMeshVolume.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByElements.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByNodes.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Toolboxes/CAEToolbox.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/OptionsMenu/Operations/RunSimulation/RunSimulationOperation.d.ts +21 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetColorOperation.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetTransparencyOperation.d.ts +1 -1
- package/package.json +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedRemeshElemenets.d.ts +0 -16
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import * as Remesh2D from "./Remesh2D";
|
|
1
2
|
import * as MeshSurface from "./MeshSurface";
|
|
2
3
|
import * as ManualElementCreation from "./CreateElement";
|
|
3
4
|
declare const Request_CAE_CreationTools_2D: {
|
|
4
5
|
CreateElementByNodes: typeof ManualElementCreation.CreateElementByNodes;
|
|
5
6
|
MeshSurface: typeof MeshSurface.MeshSurface;
|
|
7
|
+
Remesh2D: typeof Remesh2D.Remesh2D;
|
|
6
8
|
};
|
|
7
9
|
export { Request_CAE_CreationTools_2D };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as MeshExports from './MeshExports';
|
|
2
2
|
import * as FileImports from './FileImports';
|
|
3
|
+
import * as RunSimulation from './Simulation';
|
|
3
4
|
declare const Request_Common_Exchange: {
|
|
5
|
+
RunSimulation: typeof RunSimulation.RunSimulation;
|
|
4
6
|
FileLoader: typeof FileImports.FileLoader;
|
|
5
7
|
ExportMesh: typeof MeshExports.ExportMesh;
|
|
6
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class RunSimulation {
|
|
2
|
+
currentInputFile: File;
|
|
3
|
+
constructor();
|
|
4
|
+
uploadFile(file: File): void;
|
|
5
|
+
perform(data: {
|
|
6
|
+
title: string;
|
|
7
|
+
nodes: number;
|
|
8
|
+
cpus: number;
|
|
9
|
+
memory: number;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
downloadLog(): Promise<void>;
|
|
12
|
+
downloadResult(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { EntityButton } from '../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton';
|
|
2
|
+
import { TreeView } from '../../../UserInterface/UIComponents/TreeView/TreeView';
|
|
1
3
|
export declare class DeleteItem {
|
|
4
|
+
activeButton: EntityButton;
|
|
5
|
+
treeView: TreeView;
|
|
2
6
|
constructor();
|
|
3
7
|
perform(): Promise<void>;
|
|
4
8
|
private deleteByItemUID;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { SelectionData } from "../../../DataStorage/SelectionData";
|
|
2
2
|
import { TreeStructure } from "../../../Tree/TreeStructure/TreeStructure";
|
|
3
|
+
import { EntityButton } from "../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton";
|
|
4
|
+
import { TreeView } from "../../../UserInterface/UIComponents/TreeView/TreeView";
|
|
3
5
|
export declare class Paste {
|
|
4
6
|
static operation: number;
|
|
5
7
|
selected: {};
|
|
6
8
|
selectionData: SelectionData;
|
|
7
9
|
treeStructure: TreeStructure;
|
|
10
|
+
activeButton: EntityButton;
|
|
11
|
+
treeView: TreeView;
|
|
8
12
|
constructor();
|
|
9
13
|
perform(): Promise<void>;
|
|
10
14
|
}
|
package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/TreeViewEventHandler.d.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import * as THREE from '../../../three/build/three.module';
|
|
2
2
|
import { SceneWrapper } from "../../../CloudViewer/SceneWrapper";
|
|
3
3
|
import { MeshWrapper } from "../../../Model/MeshWrapper";
|
|
4
|
+
import { ModelContextMenu } from '../../../UserInterface/UIComponents/Model/Model';
|
|
4
5
|
import { TreeStructure } from "../../../Tree/TreeStructure/TreeStructure";
|
|
5
6
|
import { TreeCore } from "../../../Tree/TreeView/TreeCore";
|
|
6
7
|
import { SelectionData } from "../../../DataStorage/SelectionData";
|
|
8
|
+
import { EntityButton } from '../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton';
|
|
9
|
+
import { TreeView } from '../../../UserInterface/UIComponents/TreeView/TreeView';
|
|
7
10
|
export declare class TreeViewEventHandler {
|
|
8
11
|
static operation: number;
|
|
9
12
|
sceneWrapper: SceneWrapper;
|
|
10
13
|
meshWrapper: MeshWrapper;
|
|
14
|
+
modelContextMenu: ModelContextMenu;
|
|
11
15
|
selectionData: SelectionData;
|
|
12
16
|
treeStructure: TreeStructure;
|
|
13
17
|
treeCore: TreeCore;
|
|
18
|
+
treeView: TreeView;
|
|
14
19
|
renderer: THREE.Renderer;
|
|
15
20
|
scene: THREE.Scene;
|
|
16
21
|
currentCamera: THREE.OrthographicCamera;
|
|
22
|
+
activeButton: EntityButton;
|
|
17
23
|
selected: {};
|
|
18
24
|
constructor();
|
|
19
25
|
onClickFile(event: MouseEvent, summary: HTMLElement): void;
|
|
@@ -44,6 +50,7 @@ export declare class TreeViewEventHandler {
|
|
|
44
50
|
showOnlyElements1D(): Promise<void>;
|
|
45
51
|
showOnlyElements2D(): Promise<void>;
|
|
46
52
|
showOnlyElements3D(): Promise<void>;
|
|
53
|
+
edit(): void;
|
|
47
54
|
/**
|
|
48
55
|
* Method is called when the user renames an item in the model tree.
|
|
49
56
|
* @param targetName The name we want to rename the item to.
|
|
@@ -51,7 +58,9 @@ export declare class TreeViewEventHandler {
|
|
|
51
58
|
*/
|
|
52
59
|
rename(targetName: string, htmlElement: HTMLElement): Promise<void>;
|
|
53
60
|
makeCurrent(): void;
|
|
61
|
+
assign(): void;
|
|
54
62
|
copy(): void;
|
|
55
63
|
cut(): void;
|
|
56
64
|
explode(): Promise<void>;
|
|
65
|
+
private hideAllToolboxes;
|
|
57
66
|
}
|
package/fcs-core-viewer@types/CloudModelOperations/ModelView/Request/ModelViewEventHandler.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as THREE from '../../../three/build/three.module';
|
|
2
2
|
import { ModelContextMenu } from "../../../UserInterface/UIComponents/Model/Model";
|
|
3
|
+
import { SelectionData } from "../../../DataStorage/SelectionData";
|
|
3
4
|
import { SceneWrapper } from "../../../CloudViewer/SceneWrapper";
|
|
5
|
+
import { TreeView } from '../../../UserInterface/UIComponents/TreeView/TreeView';
|
|
6
|
+
import { EntityButton } from '../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton';
|
|
4
7
|
export declare class ModelEventHandler {
|
|
5
8
|
sceneWrapper: SceneWrapper;
|
|
6
9
|
modelContextMenu: ModelContextMenu;
|
|
7
10
|
renderer: THREE.Renderer;
|
|
8
11
|
scene: THREE.Scene;
|
|
9
12
|
currentCamera: THREE.OrthographicCamera;
|
|
13
|
+
treeView: TreeView;
|
|
14
|
+
selectionData: SelectionData;
|
|
15
|
+
activeButton: EntityButton;
|
|
10
16
|
constructor();
|
|
11
17
|
edit(): void;
|
|
12
18
|
cut(): void;
|
|
@@ -6,6 +6,12 @@ export declare enum OperationToId {
|
|
|
6
6
|
Common_State_LoadModel = 1001,
|
|
7
7
|
Common_State_SaveModel = 1002,
|
|
8
8
|
Common_State_ClearModel = 1003,
|
|
9
|
+
/**
|
|
10
|
+
* Simulation - 10xx
|
|
11
|
+
*/
|
|
12
|
+
Common_Exchange_StartSimulation = 1010,
|
|
13
|
+
Common_Exchange_DownloadSimulationLog = 1020,
|
|
14
|
+
Common_Exchange_DownloadSimulationResults = 1030,
|
|
9
15
|
/**
|
|
10
16
|
* Model Data Exchange - 11xx
|
|
11
17
|
*/
|
|
@@ -62,6 +68,7 @@ export declare enum OperationToId {
|
|
|
62
68
|
*/
|
|
63
69
|
CAE_CreationTools_2D_CreateElementByNodes = 3100,
|
|
64
70
|
CAE_CreationTools_2D_MeshSurface = 3101,
|
|
71
|
+
CAE_CreationTools_Remesh2DElements = 3110,
|
|
65
72
|
/**
|
|
66
73
|
* CAE - Creation Tools 3D - 32xx
|
|
67
74
|
*/
|
|
@@ -75,7 +82,11 @@ export declare enum OperationToId {
|
|
|
75
82
|
CAE_EditingTools_CutPasteElements = 3311,
|
|
76
83
|
CAE_EditingTools_MergeNodes = 3320,
|
|
77
84
|
CAE_EditingTools_MergeElements = 3321,
|
|
78
|
-
CAE_EditingTools_MeshSetOperation = 3340
|
|
85
|
+
CAE_EditingTools_MeshSetOperation = 3340,
|
|
86
|
+
/**
|
|
87
|
+
* CAE - Analysis Tools - 34xx
|
|
88
|
+
*/
|
|
89
|
+
CAE_AnalysisTools_FindFreeEdges = 3400
|
|
79
90
|
}
|
|
80
91
|
export declare const OperationIdToName: {
|
|
81
92
|
[key: number]: string;
|
|
@@ -2,6 +2,7 @@ import * as THREE from '../../../three/build/three.module';
|
|
|
2
2
|
import { SceneWrapper } from '../../../CloudViewer/SceneWrapper';
|
|
3
3
|
import { MeshWrapper } from "../../../Model/MeshWrapper";
|
|
4
4
|
import { TreeView } from "../../../UserInterface/UIComponents/TreeView/TreeView";
|
|
5
|
+
import { EntityButton } from '../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton';
|
|
5
6
|
export declare class Visibility {
|
|
6
7
|
sceneWrapper: SceneWrapper;
|
|
7
8
|
meshWrapper: MeshWrapper;
|
|
@@ -10,14 +11,15 @@ export declare class Visibility {
|
|
|
10
11
|
treeView: TreeView;
|
|
11
12
|
div_treeHTML: HTMLElement;
|
|
12
13
|
elements: NodeListOf<Element>;
|
|
14
|
+
activeButton: EntityButton;
|
|
13
15
|
constructor();
|
|
14
16
|
showAll(): void;
|
|
15
17
|
hideAll(): void;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
showOnly(): void;
|
|
19
|
+
show(entityUIDs?: number[]): void;
|
|
20
|
+
hide(entityUIDs?: number[]): void;
|
|
21
|
+
private showEntity;
|
|
22
|
+
private hideEntity;
|
|
21
23
|
showOnlyOrphanNodes(): void;
|
|
22
24
|
showOnlyElements0D(): void;
|
|
23
25
|
showOnlyElements1D(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as THREE from '../../three/build/three.module';
|
|
1
2
|
import { SceneWrapper } from "../../CloudViewer/SceneWrapper";
|
|
2
3
|
import { UIComponents } from "../UIComponents/UIComponents";
|
|
3
4
|
import { ModelContextMenu } from "../UIComponents/Model/Model";
|
|
@@ -10,6 +11,10 @@ export declare class ModelViewEvents {
|
|
|
10
11
|
userId: string;
|
|
11
12
|
fcs_viewer: HTMLDivElement;
|
|
12
13
|
editToolbox: EditToolbox;
|
|
14
|
+
scene: THREE.Scene;
|
|
15
|
+
currentCamera: THREE.OrthographicCamera;
|
|
16
|
+
renderer: THREE.Renderer;
|
|
13
17
|
constructor();
|
|
14
18
|
register(): any;
|
|
19
|
+
private reset;
|
|
15
20
|
}
|
|
@@ -8,6 +8,7 @@ export type EntityDropDownMenuType = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
limit?: string | number;
|
|
10
10
|
selectionColor?: THREE.Vector3;
|
|
11
|
+
borderColor?: THREE.Vector3;
|
|
11
12
|
enabledEntity?: ModelData.dataTypes;
|
|
12
13
|
items?: Button[];
|
|
13
14
|
onClickHandler?: (entityButton: EntityButton) => void;
|
|
@@ -23,6 +24,7 @@ export declare class EntityButton implements IViewerHtmlElement {
|
|
|
23
24
|
private contentContainer;
|
|
24
25
|
private isOpened;
|
|
25
26
|
selectionColor: THREE.Vector3;
|
|
27
|
+
borderColor: THREE.Vector3;
|
|
26
28
|
enabledEntity: ModelData.dataTypes;
|
|
27
29
|
private style;
|
|
28
30
|
constructor(config: EntityDropDownMenuType);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Operation } from "../../../../BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
+
type OnPreviewHandler = (entity: string) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entity: string) => void;
|
|
5
|
+
export declare class FreeEdgesByElements extends Operation {
|
|
6
|
+
private readonly onPreviewHandler;
|
|
7
|
+
private readonly onAcceptHandler;
|
|
8
|
+
private readonly onRejectHandler;
|
|
9
|
+
private readonly buttonsContainer;
|
|
10
|
+
private availableEntities;
|
|
11
|
+
private entityDropDownMenu;
|
|
12
|
+
private entity;
|
|
13
|
+
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
14
|
+
private setEnabledEntity;
|
|
15
|
+
private setActiveButton;
|
|
16
|
+
/**
|
|
17
|
+
* Add entity button
|
|
18
|
+
*/
|
|
19
|
+
private addEntityButton;
|
|
20
|
+
/**
|
|
21
|
+
* Create dropdown list for entityButton
|
|
22
|
+
*/
|
|
23
|
+
private createDropdownListItems;
|
|
24
|
+
private addActionButtons;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes uiComponents on opening the operationUI
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Unselects all entities and tree items
|
|
31
|
+
*/
|
|
32
|
+
reset(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
35
|
+
*/
|
|
36
|
+
private onAccept;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import { RuleBasedPatchHMSpline } from "./RuleBased/RuleBasedPatchHMSpline";
|
|
|
7
7
|
import { RuleBasedRevoluteHMSpin } from "./RuleBased/RuleBasedRevoluteHMSpin";
|
|
8
8
|
import { RuleBasedSweep } from "./RuleBased/RuleBasedSweep";
|
|
9
9
|
import { TwoDSurfBasedMeshSurface } from "./SurfBased_2D/TwoDSurfBasedMeshSurface";
|
|
10
|
-
import {
|
|
10
|
+
import { TwoDSurfBasedRemesh2D } from "./SurfBased_2D/TwoDSurfBasedRemesh2D";
|
|
11
11
|
export declare namespace CreationTools_2D {
|
|
12
12
|
namespace RuleBased {
|
|
13
13
|
class Extend extends RuleBasedExtendHMRuled {
|
|
@@ -30,7 +30,7 @@ export declare namespace CreationTools_2D {
|
|
|
30
30
|
namespace SurfaceBased_2D {
|
|
31
31
|
class MeshSurface extends TwoDSurfBasedMeshSurface {
|
|
32
32
|
}
|
|
33
|
-
class RemeshElements extends
|
|
33
|
+
class RemeshElements extends TwoDSurfBasedRemesh2D {
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -35,17 +35,17 @@ export declare class RuleBasedManualElementCreation extends Operation {
|
|
|
35
35
|
* Add action buttons (-> Preview, Accept, Reject)
|
|
36
36
|
*/
|
|
37
37
|
private addActionButtons;
|
|
38
|
-
/**
|
|
39
|
-
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
40
|
-
*/
|
|
41
|
-
private onAccept;
|
|
42
38
|
/**
|
|
43
39
|
* Initializes uiComponents on opening the operationUI
|
|
44
40
|
*/
|
|
45
41
|
init(): void;
|
|
46
42
|
/**
|
|
47
|
-
*
|
|
43
|
+
* Unselects all entities and tree items
|
|
48
44
|
*/
|
|
49
45
|
reset(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
48
|
+
*/
|
|
49
|
+
private onAccept;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
|
@@ -7,7 +7,7 @@ type OnPreviewHandler = (entity: string) => void;
|
|
|
7
7
|
type OnAcceptHandler = (data: {}) => void;
|
|
8
8
|
type OnRejectHandler = (entity: string) => void;
|
|
9
9
|
export declare class TwoDSurfBasedMeshSurface extends Operation {
|
|
10
|
-
private
|
|
10
|
+
private entityDropDownMenu;
|
|
11
11
|
elementTypeSelect_1: DropdownList<{}>;
|
|
12
12
|
elementOrderSelect_1: DropdownList<ModelData.elementOrder>;
|
|
13
13
|
elementSizeInput_1: LabeledInputField;
|
|
@@ -28,6 +28,10 @@ export declare class TwoDSurfBasedMeshSurface extends Operation {
|
|
|
28
28
|
* Add entity button
|
|
29
29
|
*/
|
|
30
30
|
private addEntityButton;
|
|
31
|
+
/**
|
|
32
|
+
* Create dropdown list for entityButton
|
|
33
|
+
*/
|
|
34
|
+
private createDropdownListItems;
|
|
31
35
|
/**
|
|
32
36
|
* Add dropdown list
|
|
33
37
|
*/
|
|
@@ -45,13 +49,9 @@ export declare class TwoDSurfBasedMeshSurface extends Operation {
|
|
|
45
49
|
*/
|
|
46
50
|
init(): void;
|
|
47
51
|
/**
|
|
48
|
-
*
|
|
52
|
+
* Unselects all entities and tree items
|
|
49
53
|
*/
|
|
50
54
|
reset(): void;
|
|
51
|
-
/**
|
|
52
|
-
* Create dropdown list for entityButton
|
|
53
|
-
*/
|
|
54
|
-
private createDropdownListItems;
|
|
55
55
|
/**
|
|
56
56
|
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
57
57
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Operation } from "../../../../BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
+
import { DropdownList } from "../../../../BuildingBlocks/OperationPanelComponents/DropdownList";
|
|
3
|
+
import { LabeledInputField } from "../../../../BuildingBlocks/OperationPanelComponents/LabeledInputField";
|
|
4
|
+
import { ModelData } from "../../../../../../../DataStorage/ModelData/Index";
|
|
5
|
+
import { IViewerHtmlElement } from "../../../../BuildingBlocks/MainMenuComponents/HtmlElementInterface";
|
|
6
|
+
type OnPreviewHandler = (entity: string) => void;
|
|
7
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
8
|
+
type OnRejectHandler = (entity: string) => void;
|
|
9
|
+
export declare class TwoDSurfBasedRemesh2D extends Operation {
|
|
10
|
+
private entityDropDownMenu;
|
|
11
|
+
elementTypeSelect_1: DropdownList<{}>;
|
|
12
|
+
elementOrderSelect_1: DropdownList<ModelData.elementOrder>;
|
|
13
|
+
elementSizeInput_1: LabeledInputField;
|
|
14
|
+
private readonly onPreviewHandler;
|
|
15
|
+
private readonly onAcceptHandler;
|
|
16
|
+
private readonly onRejectHandler;
|
|
17
|
+
private readonly buttonsContainer;
|
|
18
|
+
private readonly inputContainer;
|
|
19
|
+
private elementTypeOptions;
|
|
20
|
+
private elementOrderOptions;
|
|
21
|
+
private elementSize;
|
|
22
|
+
private readonly availableEntities;
|
|
23
|
+
uiComponents: IViewerHtmlElement[];
|
|
24
|
+
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
25
|
+
private setEnabledEntity;
|
|
26
|
+
private setActiveButton;
|
|
27
|
+
/**
|
|
28
|
+
* Add entity button
|
|
29
|
+
*/
|
|
30
|
+
private addEntityButton;
|
|
31
|
+
/**
|
|
32
|
+
* Create dropdown list for entityButton
|
|
33
|
+
*/
|
|
34
|
+
private createDropdownListItems;
|
|
35
|
+
/**
|
|
36
|
+
* Add dropdown list
|
|
37
|
+
*/
|
|
38
|
+
private addDropDownLists;
|
|
39
|
+
/**
|
|
40
|
+
* Add input field
|
|
41
|
+
*/
|
|
42
|
+
private addFields;
|
|
43
|
+
/**
|
|
44
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
45
|
+
*/
|
|
46
|
+
private addActionButtons;
|
|
47
|
+
/**
|
|
48
|
+
* Initializes uiComponents on opening the operationUI
|
|
49
|
+
*/
|
|
50
|
+
init(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Unselects all entities and tree items
|
|
53
|
+
*/
|
|
54
|
+
reset(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
57
|
+
*/
|
|
58
|
+
private onAccept;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { Operation } from "../../../MainMenu/BuildingBlocks/MainMenuComponents/Operation";
|
|
2
2
|
type RunSimulationConfig = {
|
|
3
|
-
onRunSimulation: (
|
|
3
|
+
onRunSimulation: (data: {
|
|
4
|
+
title: string;
|
|
5
|
+
nodes: number;
|
|
6
|
+
cpus: number;
|
|
7
|
+
memory: number;
|
|
8
|
+
}) => void;
|
|
4
9
|
onDownloadLog: () => void;
|
|
5
10
|
onDownloadLRes: () => void;
|
|
6
11
|
};
|
|
12
|
+
export declare enum SimulationStatus {
|
|
13
|
+
IDLE = 0,
|
|
14
|
+
SUCCESS = 1,
|
|
15
|
+
RUNNING = 2,
|
|
16
|
+
FAILED = 3
|
|
17
|
+
}
|
|
7
18
|
export declare class RunSimulationOperation extends Operation {
|
|
8
19
|
private readonly onRunSimulation;
|
|
9
20
|
private readonly onDownloadLog;
|
|
@@ -30,6 +41,12 @@ export declare class RunSimulationOperation extends Operation {
|
|
|
30
41
|
private elementMemoryOptions;
|
|
31
42
|
private dropdownContainer;
|
|
32
43
|
constructor(config?: RunSimulationConfig);
|
|
44
|
+
/**
|
|
45
|
+
* Adjust the UI according to the provided status.
|
|
46
|
+
* Can be triggered from websocket.
|
|
47
|
+
* @param status Outcome of simulation
|
|
48
|
+
*/
|
|
49
|
+
setSimulationStatus(status: SimulationStatus): void;
|
|
33
50
|
private buildHeaderText;
|
|
34
51
|
private buildContainers;
|
|
35
52
|
private addButton_FileBrowser;
|
|
@@ -51,5 +68,8 @@ export declare class RunSimulationOperation extends Operation {
|
|
|
51
68
|
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
52
69
|
*/
|
|
53
70
|
reset(): void;
|
|
71
|
+
private runSimulation;
|
|
72
|
+
private downloadLog;
|
|
73
|
+
private downloadResult;
|
|
54
74
|
}
|
|
55
75
|
export {};
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Operation } from "../../../../BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
-
type OnPreviewHandler = (entity: string) => void;
|
|
3
|
-
type OnAcceptHandler = (entity: string) => void;
|
|
4
|
-
type OnRejectHandler = (entity: string) => void;
|
|
5
|
-
export declare class TwoDSurfBasedRemeshElements extends Operation {
|
|
6
|
-
private readonly onPreviewHandler;
|
|
7
|
-
private readonly onAcceptHandler;
|
|
8
|
-
private readonly onRejectHandler;
|
|
9
|
-
private readonly buttonsContainer;
|
|
10
|
-
private entityValue;
|
|
11
|
-
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private setEntityValue;
|
|
13
|
-
private addEntityButton;
|
|
14
|
-
private addActionButtons;
|
|
15
|
-
}
|
|
16
|
-
export {};
|