fcs-core-viewer 0.52.1 → 0.54.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 (78) hide show
  1. package/fcs-core-editor@types/Editor3D/Editor3DAPI.d.ts +1 -0
  2. package/fcs-core-editor@types/Editor3D/Editor3DState.d.ts +33 -0
  3. package/fcs-core-editor@types/Editor3D/Network/SocketCommandsGateway.d.ts +0 -6
  4. package/fcs-core-editor@types/Editor3D/Operations/CAD/CreationTools/CreationToolsParentResolver.d.ts +3 -1
  5. package/fcs-core-editor@types/Editor3D/Operations/CAD/Index.d.ts +6 -0
  6. package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/Index.d.ts +9 -0
  7. package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/OpMirrorByFace.d.ts +19 -0
  8. package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/OpMirrorByLine.d.ts +14 -0
  9. package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/OpMirrorByPoint.d.ts +14 -0
  10. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpAnalysis.d.ts +1 -0
  11. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpBar.d.ts +1 -0
  12. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpBeam.d.ts +1 -0
  13. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpBoundaryCondition.d.ts +1 -0
  14. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpConcentratedLoad.d.ts +1 -0
  15. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpConstraint.d.ts +1 -0
  16. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpContact.d.ts +1 -0
  17. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpCustomMaterial.d.ts +1 -1
  18. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpDashpot.d.ts +1 -0
  19. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpDistributedLoad.d.ts +1 -0
  20. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpMass.d.ts +1 -0
  21. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpMembrane.d.ts +1 -0
  22. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpMotionConstraint.d.ts +1 -0
  23. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpOutputControl.d.ts +1 -0
  24. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpShell.d.ts +1 -0
  25. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpSolid.d.ts +1 -0
  26. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpSpring.d.ts +1 -0
  27. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpThermalLoad.d.ts +1 -0
  28. package/fcs-core-editor@types/Editor3D/Operations/CAE/EditingTools/Index.d.ts +3 -0
  29. package/fcs-core-editor@types/Editor3D/Operations/CAE/EditingTools/OpAlignNodes.d.ts +14 -0
  30. package/fcs-core-editor@types/Editor3D/Operations/CAE/Index.d.ts +2 -0
  31. package/fcs-core-editor@types/Editor3D/Operations/Common/Exchange/Simulation.d.ts +3 -0
  32. package/fcs-core-editor@types/Editor3D/Operations/Index.d.ts +8 -0
  33. package/fcs-core-editor@types/Editor3D/Operations/OperationCollection.d.ts +4 -7
  34. package/fcs-core-editor@types/Editor3D/UserInterface/EditorUIData.d.ts +1 -0
  35. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Index.d.ts +6 -4
  36. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Mirror/{UIMirrorByVector.d.ts → UIMirrorByFace.d.ts} +15 -16
  37. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Mirror/UIMirrorByLine.d.ts +41 -0
  38. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Mirror/UIMirrorByPoint.d.ts +41 -0
  39. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIBar.d.ts +3 -0
  40. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIBeam.d.ts +3 -0
  41. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIBoundaryCondition.d.ts +3 -0
  42. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIConcentratedLoad.d.ts +3 -0
  43. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIContactPair.d.ts +3 -0
  44. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UICustomMaterial.d.ts +3 -0
  45. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIDashpot.d.ts +3 -0
  46. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIDistributedLoad.d.ts +3 -0
  47. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIDynamicHarmonic.d.ts +3 -0
  48. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIDynamicImplicit.d.ts +3 -0
  49. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIGlobalContact.d.ts +3 -0
  50. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UILinearBuckling.d.ts +3 -0
  51. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UILinearStatic.d.ts +3 -0
  52. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIMPCconstraint.d.ts +3 -0
  53. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIMass.d.ts +3 -0
  54. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIMembrane.d.ts +3 -0
  55. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIModal.d.ts +3 -0
  56. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIMotionConstraint.d.ts +3 -0
  57. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UINonlinearStatic.d.ts +3 -0
  58. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIOutputControl.d.ts +3 -0
  59. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIShell.d.ts +3 -0
  60. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UISolid.d.ts +3 -0
  61. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UISpring.d.ts +3 -0
  62. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UITIEconstraint.d.ts +3 -0
  63. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIThermalLoad.d.ts +3 -0
  64. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/AlignNodes/UIAlignNodes.d.ts +51 -0
  65. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Index.d.ts +4 -0
  66. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/OptionsMenu/Operations/RunSimulation/RunSimulationOperation.d.ts +19 -1
  67. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Shapes/Mesh/SubshapeTypes/TopoElement.d.ts +16 -0
  68. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Shapes/Mesh/SubshapeTypes/TopoNode.d.ts +16 -0
  69. package/fcs-core-editor@types/Viewer3D/Loader/GEOMLoader/GeomLoader.d.ts +2 -0
  70. package/fcs-core-editor@types/Viewer3D/SelectionTools/SelectionHelpers.d.ts +25 -1
  71. package/fcs-core-editor@types/Viewer3D/UserInterface/UIComponents/BuildingBlocks/OperationPanelComponents/SelectionInputField.d.ts +5 -0
  72. package/fcs-core-editor@types/Viewer3D/UserInterface/UIComponents/BuildingBlocks/OperationPanelComponents/TargetItemSelector.d.ts +45 -0
  73. package/fcs-core-editor@types/Viewer3D/ViewerCommands/CAE/AnalysisTools/LoadAndBC.d.ts +0 -1
  74. package/fcs-core-editor@types/Viewer3D/ViewerCommands/CAE/AnalysisTools/Material.d.ts +0 -1
  75. package/fcs-core-editor@types/Viewer3D/ViewerCommands/CAE/AnalysisTools/Property.d.ts +0 -1
  76. package/fcs-core-editor@types/Viewer3D/ViewerEntities/VisibleEntities/Tooltip.d.ts +14 -0
  77. package/package.json +1 -1
  78. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Mirror/UIMirrorByPlane.d.ts +0 -23
@@ -0,0 +1,45 @@
1
+ import { IViewerHtmlElement } from "../MainMenuComponents/HtmlElementInterface";
2
+ /**
3
+ * A dropdown component placed at the top of AnalysisTool operation panels.
4
+ * Lets the user choose to either create a new item (`--Create New--`) or
5
+ * update an existing file item from the relevant container.
6
+ *
7
+ * Usage:
8
+ * 1. Instantiate with a getter that returns the container UID at init-time.
9
+ * 2. Call `setParent()` to attach to the operation panel.
10
+ * 3. Call `init()` each time the panel is opened to refresh the option list.
11
+ * 4. Use `getSelectedUID()` to retrieve the selected item UID (null = create new).
12
+ */
13
+ export declare class TargetItemSelector implements IViewerHtmlElement {
14
+ private readonly dropdown;
15
+ private readonly containerUIDGetter;
16
+ private selectedUID;
17
+ private readonly onChangeCallback;
18
+ /**
19
+ * @param containerUIDGetter A function that returns the container's itemUID.
20
+ * Evaluated lazily so the container can be created
21
+ * after the UI panel is constructed.
22
+ * @param onChangeCallback Called whenever the selection changes.
23
+ * `isExisting` is true when an existing item is selected.
24
+ */
25
+ constructor(containerUIDGetter: () => number, onChangeCallback?: (isExisting: boolean, uid: number | null) => void);
26
+ /**
27
+ * Refreshes the dropdown with all children currently in the container.
28
+ * Must be called each time the operation panel is opened.
29
+ */
30
+ init(): void;
31
+ /**
32
+ * Returns the UID of the selected item, or null if --Create New-- is selected.
33
+ */
34
+ getSelectedUID(): number | null;
35
+ /**
36
+ * Returns true when --Create New-- is currently selected.
37
+ */
38
+ isCreateNew(): boolean;
39
+ getHtmlElement(): HTMLElement;
40
+ remove(): void;
41
+ setParent(parent: IViewerHtmlElement): void;
42
+ setHtmlParent(parent: HTMLElement): void;
43
+ setVisibility(isVisible: boolean): void;
44
+ reset(): void;
45
+ }
@@ -10,5 +10,4 @@ export declare class LoadAndBC {
10
10
  */
11
11
  process(response: {}): Promise<void>;
12
12
  update(response: {}): Promise<void>;
13
- append(response: {}): Promise<void>;
14
13
  }
@@ -10,5 +10,4 @@ export declare class Material {
10
10
  */
11
11
  process(response: {}): Promise<void>;
12
12
  update(response: {}): Promise<void>;
13
- append(response: {}): Promise<void>;
14
13
  }
@@ -10,5 +10,4 @@ export declare class Property {
10
10
  */
11
11
  process(response: {}): Promise<void>;
12
12
  update(response: {}): Promise<void>;
13
- append(response: {}): Promise<void>;
14
13
  }
@@ -4,6 +4,20 @@ export declare class Tooltip {
4
4
  uniqueID_To_Instance: {};
5
5
  constructor(target: HTMLElement);
6
6
  setData(data: Record<string, string | number>): void;
7
+ /**
8
+ * Convert an itemColor array ([r,g,b] in 0-255) into a CSS rgb(...) string.
9
+ */
10
+ private itemColorToRgb;
11
+ /**
12
+ * Return a display string for an associated file instance ('Name (ID)').
13
+ */
14
+ private formatItemRef;
15
+ /**
16
+ * Build the per-data-type tooltip rows for an item instance.
17
+ * ID and Color are always included; additional rows depend on the
18
+ * item's dataType.
19
+ */
20
+ private buildTooltipData;
7
21
  private show;
8
22
  private hide;
9
23
  destroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcs-core-viewer",
3
- "version": "0.52.1",
3
+ "version": "0.54.0",
4
4
  "description": "3D Viewer in the Cloud",
5
5
  "author": {
6
6
  "name": "Femsolve Kft."
@@ -1,23 +0,0 @@
1
- import { Operation } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
2
- type OnPreviewHandler = (entityUIDs: number[]) => void;
3
- type OnAcceptHandler = (data: {}) => void;
4
- type OnRejectHandler = (entityUIDs: number[]) => void;
5
- export declare class MirrorByPlane 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
- /**
15
- * Add action buttons (-> Preview, Accept, Reject)
16
- */
17
- private addActionButtons;
18
- /**
19
- * Extracts the selected entities from dict 'selected' and starts the attached task
20
- */
21
- private onAccept;
22
- }
23
- export {};