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.
Files changed (47) hide show
  1. package/fcs-core-viewer@types/CloudModelOperations/CAE/AnalysisTools/Request/FreeEdges.d.ts +6 -0
  2. package/fcs-core-viewer@types/CloudModelOperations/CAE/AnalysisTools/Request/Index.d.ts +5 -0
  3. package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_2D/Request/Index.d.ts +2 -0
  4. package/fcs-core-viewer@types/CloudModelOperations/CAE/CreationTools_2D/Request/Remesh2D.d.ts +11 -0
  5. package/fcs-core-viewer@types/CloudModelOperations/Common/Exchange/Request/Index.d.ts +2 -0
  6. package/fcs-core-viewer@types/CloudModelOperations/Common/Exchange/Request/Simulation.d.ts +13 -0
  7. package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/DeleteItem.d.ts +4 -0
  8. package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/Paste.d.ts +4 -0
  9. package/fcs-core-viewer@types/CloudModelOperations/ModelTree/Request/TreeViewEventHandler.d.ts +9 -0
  10. package/fcs-core-viewer@types/CloudModelOperations/ModelView/Request/ModelViewEventHandler.d.ts +6 -0
  11. package/fcs-core-viewer@types/CloudModelOperations/OperationCollection.d.ts +12 -1
  12. package/fcs-core-viewer@types/CloudModelOperations/Visualization/Response/Visibility.d.ts +7 -5
  13. package/fcs-core-viewer@types/DataStorage/SelectionData.d.ts +0 -1
  14. package/fcs-core-viewer@types/DataStorage/ViewerData.d.ts +3 -0
  15. package/fcs-core-viewer@types/UserInterface/EventListeners/ModelViewEvents.d.ts +5 -0
  16. package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +1 -1
  17. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ToolsetPanel.d.ts +1 -0
  18. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton.d.ts +2 -0
  19. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/InputField.d.ts +1 -1
  20. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/LabeledInputField.d.ts +1 -1
  21. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeByXYZ.d.ts +5 -0
  22. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildShell.d.ts +1 -1
  23. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildSolid.d.ts +1 -1
  24. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildWire.d.ts +1 -1
  25. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractFace.d.ts +1 -1
  26. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractLine.d.ts +1 -1
  27. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractPoint.d.ts +1 -1
  28. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractShell.d.ts +1 -1
  29. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractSolid.d.ts +1 -1
  30. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractWire.d.ts +1 -1
  31. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexByXYZ.d.ts +2 -1
  32. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/EditingTools/Delete/DeleteShape.d.ts +1 -1
  33. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/AnalysisTools.d.ts +7 -0
  34. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/FreeEdges/FreeEdgesByElements.d.ts +38 -0
  35. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/CreationTools_2D.d.ts +2 -2
  36. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/RuleBased/RuleBasedManualElementCreation.d.ts +5 -5
  37. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedMeshSurface.d.ts +6 -6
  38. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedRemesh2D.d.ts +60 -0
  39. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_3D/VolBased_3D/ThreeDVolBasedMeshVolume.d.ts +1 -1
  40. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByElements.d.ts +1 -1
  41. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByNodes.d.ts +1 -1
  42. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Toolboxes/CAEToolbox.d.ts +1 -0
  43. package/fcs-core-viewer@types/UserInterface/UIComponents/OptionsMenu/Operations/RunSimulation/RunSimulationOperation.d.ts +21 -1
  44. package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetColorOperation.d.ts +1 -1
  45. package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView/Operations/Edit/SetTransparencyOperation.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedRemeshElemenets.d.ts +0 -16
@@ -0,0 +1,6 @@
1
+ export declare class FreeEdges {
2
+ data: {};
3
+ faceUIDs: number[];
4
+ constructor(data: {});
5
+ perform(): Promise<void>;
6
+ }
@@ -0,0 +1,5 @@
1
+ import * as FreeEdges from "./FreeEdges";
2
+ declare const Request_CAE_AnalysisTools: {
3
+ FreeEdges: typeof FreeEdges.FreeEdges;
4
+ };
5
+ export { Request_CAE_AnalysisTools };
@@ -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 };
@@ -0,0 +1,11 @@
1
+ export declare class Remesh2D {
2
+ data: {};
3
+ faceUIDs: number[];
4
+ elementSize: number;
5
+ elementType: number;
6
+ elementOrder: number;
7
+ meshAlgo: number[];
8
+ meshType: number;
9
+ constructor(data: {});
10
+ perform(): Promise<void>;
11
+ }
@@ -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
  }
@@ -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
  }
@@ -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
- showOnlySelected(): void;
17
- showSelected(): void;
18
- hideSelected(): void;
19
- show(entityUIDs: number[]): void;
20
- hide(entityUIDs: number[]): void;
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;
@@ -43,6 +43,5 @@ export declare class SelectionData {
43
43
  * Add active entityButton name as key.
44
44
  */
45
45
  addEntitySlot(activeButton: EntityButton): void;
46
- reset(): void;
47
46
  getDataFromSelected(): {};
48
47
  }
@@ -77,6 +77,9 @@ export declare class ViewerData {
77
77
  editingTools: {
78
78
  merge: any[];
79
79
  };
80
+ analysisTools: {
81
+ freeEdges: any[];
82
+ };
80
83
  };
81
84
  };
82
85
  /**
@@ -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
  }
@@ -26,5 +26,5 @@ export declare class TreeViewEvents {
26
26
  onContextFolder(summary: HTMLElement): void;
27
27
  onClickCheckbox(checkbox: any): void;
28
28
  register(): void;
29
- private hideAllToolboxes;
29
+ private reset;
30
30
  }
@@ -12,6 +12,7 @@ export declare class ToolsetPanel implements IViewerHtmlElement, IMethodGroup {
12
12
  private buttons;
13
13
  private panels;
14
14
  private createdContainers;
15
+ private operation;
15
16
  private openedPanelWithButton;
16
17
  constructor(title: string);
17
18
  onToggle(): void;
@@ -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);
@@ -17,5 +17,5 @@ export declare class InputField implements IViewerHtmlElement {
17
17
  init(): void;
18
18
  reset(): void;
19
19
  setValue(value: string): void;
20
- getData(): number;
20
+ getData(): string;
21
21
  }
@@ -21,6 +21,6 @@ export declare class LabeledInputField implements IViewerHtmlElement {
21
21
  init(): void;
22
22
  reset(): void;
23
23
  setValue(value: string): void;
24
- getData(): number;
24
+ getData(): string;
25
25
  }
26
26
  export {};
@@ -26,5 +26,10 @@ export declare class EdgeByXYZ extends Operation {
26
26
  * Initializes uiComponents on opening the operationUI
27
27
  */
28
28
  init(): void;
29
+ /**
30
+ * Unselects all entities and tree items
31
+ */
32
+ reset(): void;
33
+ onAccept(): void;
29
34
  }
30
35
  export {};
@@ -35,7 +35,7 @@ export declare class ExtractBuildBuildShell extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildBuildSolid extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildBuildWire extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractFace extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractLine extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractPoint extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractShell extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractSolid extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -35,7 +35,7 @@ export declare class ExtractBuildExtractWire extends Operation {
35
35
  */
36
36
  init(): void;
37
37
  /**
38
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
38
+ * Unselects all entities and tree items
39
39
  */
40
40
  reset(): void;
41
41
  }
@@ -19,8 +19,9 @@ export declare class VertexByXYZ extends Operation {
19
19
  */
20
20
  init(): void;
21
21
  /**
22
- * Resets the uiComponents on closing the operationUI
22
+ * Unselects all entities and tree items
23
23
  */
24
24
  reset(): void;
25
+ onAccept(): void;
25
26
  }
26
27
  export {};
@@ -34,7 +34,7 @@ export declare class DeleteShapeUI extends Operation {
34
34
  */
35
35
  init(): void;
36
36
  /**
37
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
37
+ * Unselects all entities and tree items
38
38
  */
39
39
  reset(): void;
40
40
  }
@@ -0,0 +1,7 @@
1
+ import { FreeEdgesByElements } from "./FreeEdges/FreeEdgesByElements";
2
+ export declare namespace AnalysisTools {
3
+ namespace FreeEdges {
4
+ class ByElements extends FreeEdgesByElements {
5
+ }
6
+ }
7
+ }
@@ -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 { TwoDSurfBasedRemeshElements } from "./SurfBased_2D/TwoDSurfBasedRemeshElemenets";
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 TwoDSurfBasedRemeshElements {
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
- * Resets the uiComponents on closing the operationUI
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 entityDropDownMenu_1;
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
- * Resets the uiComponents on closing the operationUI
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 {};
@@ -41,7 +41,7 @@ export declare class ThreeDVolBasedMeshVolume extends Operation {
41
41
  */
42
42
  init(): void;
43
43
  /**
44
- * Resets the uiComponents on closing the operationUI
44
+ * Unselects all entities and tree items
45
45
  */
46
46
  reset(): void;
47
47
  /**
@@ -31,7 +31,7 @@ export declare class EditingToolsByElements extends Operation {
31
31
  */
32
32
  init(): void;
33
33
  /**
34
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
34
+ * Unselects all entities and tree items
35
35
  */
36
36
  reset(): void;
37
37
  /**
@@ -30,7 +30,7 @@ export declare class EditingToolsByNodes extends Operation {
30
30
  */
31
31
  init(): void;
32
32
  /**
33
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
33
+ * Unselects all entities and tree items
34
34
  */
35
35
  reset(): void;
36
36
  /**
@@ -12,6 +12,7 @@ export declare class ViewerCAEToolbox implements IBaseToolbox {
12
12
  private buildCreation_2D_ToolsPanel;
13
13
  private buildCreation_3D_ToolsPanel;
14
14
  private buildEditingToolsPanel;
15
+ private buildAnalysisToolsPanel;
15
16
  show(): void;
16
17
  hide(): void;
17
18
  }
@@ -1,9 +1,20 @@
1
1
  import { Operation } from "../../../MainMenu/BuildingBlocks/MainMenuComponents/Operation";
2
2
  type RunSimulationConfig = {
3
- onRunSimulation: () => void;
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 {};
@@ -27,7 +27,7 @@ export declare class SetColorOperation extends Operation {
27
27
  */
28
28
  init(): void;
29
29
  /**
30
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
30
+ * Unselects all entities and tree items
31
31
  */
32
32
  reset(): void;
33
33
  }
@@ -23,7 +23,7 @@ export declare class SetTransparencyOperation extends Operation {
23
23
  */
24
24
  init(): void;
25
25
  /**
26
- * Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
26
+ * Unselects all entities and tree items
27
27
  */
28
28
  reset(): void;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcs-core-viewer",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "3D Viewer in the Cloud",
5
5
  "author": {
6
6
  "name": "Femsolve Kft."
@@ -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 {};