fcs-core-viewer 0.36.0 → 0.38.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-editor@types/Editor3D/Operations/CAD/Index.d.ts +2 -1
- package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/Index.d.ts +2 -1
- package/fcs-core-editor@types/Editor3D/Operations/CAD/TransformationTools/OpTranslate.d.ts +30 -2
- package/fcs-core-editor@types/Editor3D/Operations/CAE/CreationTools_0D_1D/Index.d.ts +3 -0
- package/fcs-core-editor@types/Editor3D/Operations/CAE/CreationTools_0D_1D/OpMeshLine.d.ts +34 -0
- package/fcs-core-editor@types/Editor3D/Operations/CAE/CreationTools_2D/Index.d.ts +3 -0
- package/fcs-core-editor@types/Editor3D/Operations/CAE/CreationTools_2D/OpBoundary2D.d.ts +17 -0
- package/fcs-core-editor@types/Editor3D/Operations/CAE/Index.d.ts +4 -0
- package/fcs-core-editor@types/Editor3D/Operations/Index.d.ts +6 -1
- package/fcs-core-editor@types/Editor3D/Operations/OperationCollection.d.ts +13 -6
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Index.d.ts +2 -0
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Translate/UITranslate.d.ts +95 -0
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_0D_1D/Advanced/UIMeshLine.d.ts +55 -6
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_0D_1D/Index.d.ts +2 -2
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/Basic/UIBoundary2D.d.ts +49 -0
- package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/Index.d.ts +2 -0
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/EdgeMaterial.d.ts +1 -1
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/Element1DMaterial.d.ts +1 -1
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/LineMaterial.d.ts +1 -1
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/MeshMaterial.d.ts +2 -2
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/TempElement0DMaterial.d.ts +2 -2
- package/fcs-core-editor@types/Viewer3D/DataStorage/MaterialData/TempElement1DMaterial.d.ts +3 -3
- package/fcs-core-editor@types/Viewer3D/DataStorage/MeshData/gmshData.d.ts +2 -2
- package/fcs-core-editor@types/Viewer3D/Loader/FileTypes.d.ts +2 -1
- package/fcs-core-editor@types/Viewer3D/UserInterface/UIComponents/Model/Model.d.ts +2 -0
- package/fcs-core-editor@types/Viewer3D/ViewerCommands/View/Rotate.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,8 @@ declare const CAD: {
|
|
|
4
4
|
TemporaryProjectOnFace: typeof import("./TransformationTools/OpProjectOnFace").TemporaryProjectOnFace;
|
|
5
5
|
ProjectOnLine: typeof import("./TransformationTools/OpProjectOnLine").ProjectOnLine;
|
|
6
6
|
TemporaryProjectOnLine: typeof import("./TransformationTools/OpProjectOnLine").TemporaryProjectOnLine;
|
|
7
|
-
|
|
7
|
+
Translate: typeof import("./TransformationTools/OpTranslate").Translate;
|
|
8
|
+
TemporaryTranslate: typeof import("./TransformationTools/OpTranslate").TemporaryTranslate;
|
|
8
9
|
};
|
|
9
10
|
Request_CAD_EditingTools: {
|
|
10
11
|
SplitFace: typeof import("./EditingTools/OpSplitFace").SplitFace;
|
|
@@ -6,6 +6,7 @@ declare const CADTransformationTools: {
|
|
|
6
6
|
TemporaryProjectOnFace: typeof ProjectOnFace.TemporaryProjectOnFace;
|
|
7
7
|
ProjectOnLine: typeof ProjectOnLine.ProjectOnLine;
|
|
8
8
|
TemporaryProjectOnLine: typeof ProjectOnLine.TemporaryProjectOnLine;
|
|
9
|
-
|
|
9
|
+
Translate: typeof Translate.Translate;
|
|
10
|
+
TemporaryTranslate: typeof Translate.TemporaryTranslate;
|
|
10
11
|
};
|
|
11
12
|
export { CADTransformationTools };
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ModelData } from "../../../../Viewer3D/DataStorage/ModelData/Index";
|
|
2
|
+
export declare class Translate {
|
|
3
|
+
id: number;
|
|
4
|
+
itemName: string;
|
|
5
|
+
Modes: {
|
|
6
|
+
DxDyDz: number;
|
|
7
|
+
Nodes: number;
|
|
8
|
+
Vector: number;
|
|
9
|
+
};
|
|
10
|
+
entity1UIDs: number[];
|
|
11
|
+
entity2UIDs: number[];
|
|
12
|
+
entity3UIDs: number[];
|
|
13
|
+
entity4UIDs: number[];
|
|
14
|
+
entity1IDs: number[];
|
|
15
|
+
entity2IDs: number[];
|
|
16
|
+
entity3IDs: number[];
|
|
17
|
+
entity4IDs: number[];
|
|
18
|
+
dx: number;
|
|
19
|
+
dy: number;
|
|
20
|
+
dz: number;
|
|
21
|
+
entity1Type: ModelData.dataTypes;
|
|
22
|
+
isPreview: boolean;
|
|
23
|
+
constructor(data: {});
|
|
24
|
+
perform(): Promise<import("../../../Network/BackendClient").ApiOperationResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare class TemporaryTranslate {
|
|
27
|
+
private data;
|
|
28
|
+
constructor(data?: {});
|
|
29
|
+
preview(): Promise<import("../../../Network/BackendClient").ApiOperationResponse>;
|
|
30
|
+
reject(): Promise<void>;
|
|
3
31
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as CreateNode from "./OpCreateNode";
|
|
2
2
|
import * as KinematicCoupling from "./OpKinematicCoupling";
|
|
3
3
|
import * as DistributingCoupling from "./OpDistributingCoupling";
|
|
4
|
+
import * as MeshLine from "./OpMeshLine";
|
|
4
5
|
declare const CAECreationTools_0D_1D_Operations: {
|
|
6
|
+
MeshLine: typeof MeshLine.MeshLine;
|
|
7
|
+
TemporaryMeshLine: typeof MeshLine.TemporaryMeshLine;
|
|
5
8
|
DistributingCoupling: typeof DistributingCoupling.DistributingCoupling;
|
|
6
9
|
TemporaryDistributingCoupling: typeof DistributingCoupling.TemporaryDistributingCoupling;
|
|
7
10
|
KinematicCoupling: typeof KinematicCoupling.KinematicCoupling;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as THREE from "../../../../Viewer3D/three/build/three.module";
|
|
2
|
+
import { EdgeSeed } from "../../../../Viewer3D/DataStorage/ModelData/Elements/ElementShapes/TemporaryElementShapes/EdgeSeed";
|
|
3
|
+
export declare class MeshLine {
|
|
4
|
+
data: {};
|
|
5
|
+
meshName: string;
|
|
6
|
+
entityUIDs: number[];
|
|
7
|
+
elementType: number;
|
|
8
|
+
elementSize: number;
|
|
9
|
+
elementOrder: number;
|
|
10
|
+
meshType: {};
|
|
11
|
+
isPreview: boolean;
|
|
12
|
+
checkQuality2D: boolean;
|
|
13
|
+
edgeSeeds: {
|
|
14
|
+
[edgeUID: number]: EdgeSeed;
|
|
15
|
+
};
|
|
16
|
+
qualityMeasure: number;
|
|
17
|
+
comparisonCondition: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
algorithm: number[];
|
|
20
|
+
recombineAll: number;
|
|
21
|
+
recombinationAlgorithm: number;
|
|
22
|
+
recombineMinimumQuality: number;
|
|
23
|
+
recombineNodePositioning: number;
|
|
24
|
+
recombineOptimizeTopology: number;
|
|
25
|
+
element2DMaterial: THREE.ShaderMaterial;
|
|
26
|
+
constructor(data?: {});
|
|
27
|
+
perform(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare class TemporaryMeshLine {
|
|
30
|
+
private data;
|
|
31
|
+
constructor(data?: {});
|
|
32
|
+
preview(): Promise<void>;
|
|
33
|
+
reject(): Promise<void>;
|
|
34
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as ManualElementCreation from "./OpCreateElement";
|
|
2
2
|
import * as Extrude2D from "./OpExtrude2D";
|
|
3
|
+
import * as Boundary2D from "./OpBoundary2D";
|
|
3
4
|
import * as MeshFace from "./OpMeshFace";
|
|
4
5
|
import * as Remesh from "./OpRemesh";
|
|
5
6
|
import * as MeshPatch from "./OpMeshPatch";
|
|
6
7
|
declare const CAECreationTools2DOperations: {
|
|
8
|
+
Boundary2D: typeof Boundary2D.Boundary2D;
|
|
9
|
+
TemporaryBoundary2D: typeof Boundary2D.TemporaryBoundary2D;
|
|
7
10
|
MeshPatch: typeof MeshPatch.MeshPatch;
|
|
8
11
|
TemporaryMeshPatch: typeof MeshPatch.TemporaryMeshPatch;
|
|
9
12
|
Remesh: typeof Remesh.Remesh;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class Boundary2D {
|
|
2
|
+
elementUIDs: number[];
|
|
3
|
+
nodeUIDs: number[];
|
|
4
|
+
isPreview: boolean;
|
|
5
|
+
checkQuality2D: boolean;
|
|
6
|
+
qualityMeasure: number;
|
|
7
|
+
comparisonCondition: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
constructor(data: {});
|
|
10
|
+
perform(): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export declare class TemporaryBoundary2D {
|
|
13
|
+
private data;
|
|
14
|
+
constructor(data?: {});
|
|
15
|
+
preview(): Promise<void>;
|
|
16
|
+
reject(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -10,6 +10,8 @@ declare const CAE: {
|
|
|
10
10
|
TemporaryMeshVolume: typeof import("./CreationTools_3D/OpMeshVolume").TemporaryMeshVolume;
|
|
11
11
|
};
|
|
12
12
|
CAECreationTools2DOperations: {
|
|
13
|
+
Boundary2D: typeof import("./CreationTools_2D/OpBoundary2D").Boundary2D;
|
|
14
|
+
TemporaryBoundary2D: typeof import("./CreationTools_2D/OpBoundary2D").TemporaryBoundary2D;
|
|
13
15
|
MeshPatch: typeof import("./CreationTools_2D/OpMeshPatch").MeshPatch;
|
|
14
16
|
TemporaryMeshPatch: typeof import("./CreationTools_2D/OpMeshPatch").TemporaryMeshPatch;
|
|
15
17
|
Remesh: typeof import("./CreationTools_2D/OpRemesh").Remesh;
|
|
@@ -22,6 +24,8 @@ declare const CAE: {
|
|
|
22
24
|
TemporaryCreateElement: typeof import("./CreationTools_2D/OpCreateElement").TemporaryCreateElement;
|
|
23
25
|
};
|
|
24
26
|
CAECreationTools_0D_1D_Operations: {
|
|
27
|
+
MeshLine: typeof import("./CreationTools_0D_1D/OpMeshLine").MeshLine;
|
|
28
|
+
TemporaryMeshLine: typeof import("./CreationTools_0D_1D/OpMeshLine").TemporaryMeshLine;
|
|
25
29
|
DistributingCoupling: typeof import("./CreationTools_0D_1D/OpDistributingCoupling").DistributingCoupling;
|
|
26
30
|
TemporaryDistributingCoupling: typeof import("./CreationTools_0D_1D/OpDistributingCoupling").TemporaryDistributingCoupling;
|
|
27
31
|
KinematicCoupling: typeof import("./CreationTools_0D_1D/OpKinematicCoupling").KinematicCoupling;
|
|
@@ -34,6 +34,8 @@ declare const Operations: {
|
|
|
34
34
|
TemporaryMeshVolume: typeof import("./CAE/CreationTools_3D/OpMeshVolume").TemporaryMeshVolume;
|
|
35
35
|
};
|
|
36
36
|
CAECreationTools2DOperations: {
|
|
37
|
+
Boundary2D: typeof import("./CAE/CreationTools_2D/OpBoundary2D").Boundary2D;
|
|
38
|
+
TemporaryBoundary2D: typeof import("./CAE/CreationTools_2D/OpBoundary2D").TemporaryBoundary2D;
|
|
37
39
|
MeshPatch: typeof import("./CAE/CreationTools_2D/OpMeshPatch").MeshPatch;
|
|
38
40
|
TemporaryMeshPatch: typeof import("./CAE/CreationTools_2D/OpMeshPatch").TemporaryMeshPatch;
|
|
39
41
|
Remesh: typeof import("./CAE/CreationTools_2D/OpRemesh").Remesh;
|
|
@@ -46,6 +48,8 @@ declare const Operations: {
|
|
|
46
48
|
TemporaryCreateElement: typeof import("./CAE/CreationTools_2D/OpCreateElement").TemporaryCreateElement;
|
|
47
49
|
};
|
|
48
50
|
CAECreationTools_0D_1D_Operations: {
|
|
51
|
+
MeshLine: typeof import("./CAE/CreationTools_0D_1D/OpMeshLine").MeshLine;
|
|
52
|
+
TemporaryMeshLine: typeof import("./CAE/CreationTools_0D_1D/OpMeshLine").TemporaryMeshLine;
|
|
49
53
|
DistributingCoupling: typeof import("./CAE/CreationTools_0D_1D/OpDistributingCoupling").DistributingCoupling;
|
|
50
54
|
TemporaryDistributingCoupling: typeof import("./CAE/CreationTools_0D_1D/OpDistributingCoupling").TemporaryDistributingCoupling;
|
|
51
55
|
KinematicCoupling: typeof import("./CAE/CreationTools_0D_1D/OpKinematicCoupling").KinematicCoupling;
|
|
@@ -65,7 +69,8 @@ declare const Operations: {
|
|
|
65
69
|
TemporaryProjectOnFace: typeof import("./CAD/TransformationTools/OpProjectOnFace").TemporaryProjectOnFace;
|
|
66
70
|
ProjectOnLine: typeof import("./CAD/TransformationTools/OpProjectOnLine").ProjectOnLine;
|
|
67
71
|
TemporaryProjectOnLine: typeof import("./CAD/TransformationTools/OpProjectOnLine").TemporaryProjectOnLine;
|
|
68
|
-
|
|
72
|
+
Translate: typeof import("./CAD/TransformationTools/OpTranslate").Translate;
|
|
73
|
+
TemporaryTranslate: typeof import("./CAD/TransformationTools/OpTranslate").TemporaryTranslate;
|
|
69
74
|
};
|
|
70
75
|
Request_CAD_EditingTools: {
|
|
71
76
|
SplitFace: typeof import("./CAD/EditingTools/OpSplitFace").SplitFace;
|
|
@@ -62,11 +62,12 @@ export declare enum OperationToId {
|
|
|
62
62
|
/**
|
|
63
63
|
* CAD - Transformation Tools - 21xx
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
CAD_TransformationTools_TranslateByDxDyDz = 2100,
|
|
66
|
+
CAD_TransformationTools_TranslateByTwoPoints = 2101,
|
|
67
|
+
CAD_TransformationTools_TranslateByVector = 2102,
|
|
68
|
+
CAD_TransformationTools_ProjectOnLine = 2103,
|
|
69
|
+
CAD_TransformationTools_ProjectOnFace_by_Vector = 2104,
|
|
70
|
+
CAD_TransformationTools_ProjectOnFace_by_Normal = 2105,
|
|
70
71
|
/**
|
|
71
72
|
* CAD - Editing Tools - 22xx
|
|
72
73
|
*/
|
|
@@ -100,6 +101,7 @@ export declare enum OperationToId {
|
|
|
100
101
|
CAE_CreationTools_1D_CreateKinematicCoupling_bySelectingMasterNode = 3008,
|
|
101
102
|
CAE_CreationTools_1D_CreateDistributingCoupling_byCalculatingMasterNode = 3009,
|
|
102
103
|
CAE_CreationTools_1D_CreatedistributingCoupling_bySelectingMasterNode = 3010,
|
|
104
|
+
CAE_CreationTools_1D_MeshLine = 3011,
|
|
103
105
|
/**
|
|
104
106
|
* CAE - Creation Tools 2D - 31xx
|
|
105
107
|
*/
|
|
@@ -108,6 +110,7 @@ export declare enum OperationToId {
|
|
|
108
110
|
CAE_CreationTools_Remesh2DElements = 3110,
|
|
109
111
|
CAE_CreationTools_SplineMesh2DElements = 3120,
|
|
110
112
|
CAE_CreationTools_2D_Extrude2D = 3150,
|
|
113
|
+
CAE_CreationTools_2D_Boundary2D = 3151,
|
|
111
114
|
/**
|
|
112
115
|
* CAE - Creation Tools 3D - 32xx
|
|
113
116
|
*/
|
|
@@ -128,7 +131,11 @@ export declare enum OperationToId {
|
|
|
128
131
|
* CAE - Analysis Tools - 34xx
|
|
129
132
|
*/
|
|
130
133
|
CAE_AnalysisTools_FindFreeEdges = 3400,
|
|
131
|
-
CAE_AnalysisTools_CheckQuality2D = 3410
|
|
134
|
+
CAE_AnalysisTools_CheckQuality2D = 3410,
|
|
135
|
+
/**
|
|
136
|
+
* CAE - Exports - 40xx
|
|
137
|
+
*/
|
|
138
|
+
Common_Exchange_ExportCOMM = 4000
|
|
132
139
|
}
|
|
133
140
|
export declare const OperationIdToName: {
|
|
134
141
|
[key: number]: string;
|
|
@@ -5,6 +5,7 @@ import * as ProjectOnLine from "./Project/UIProjectOnLine";
|
|
|
5
5
|
import * as ProjectOnFace from "./Project/UIProjectOnFace";
|
|
6
6
|
import * as RotateByVectorAndAngle from "./Rotate/UIRotateByVectorAndAngle";
|
|
7
7
|
import * as ScaleByXYZ from "./Scale/UIScaleByXYZ";
|
|
8
|
+
import * as Translate from "./Translate/UITranslate";
|
|
8
9
|
import * as TranslateByDXDYXZ from "./Translate/UITranslateByDXDYXZ";
|
|
9
10
|
import * as TranslateByVector from "./Translate/UITranslateByVector";
|
|
10
11
|
import * as TranslateByVectorAndLength from "./Translate/UITranslateByVectorAndLength";
|
|
@@ -30,6 +31,7 @@ declare const TransformationTools: {
|
|
|
30
31
|
TranslateByVectorAndLength: typeof TranslateByVectorAndLength.TranslateByVectorAndLength;
|
|
31
32
|
TranslateByVector: typeof TranslateByVector.TranslateByVector;
|
|
32
33
|
TranslateByDXDYDZ: typeof TranslateByDXDYXZ.TranslateByDXDYDZ;
|
|
34
|
+
Translate: typeof Translate.Translate;
|
|
33
35
|
};
|
|
34
36
|
};
|
|
35
37
|
export { TransformationTools };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Operation } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
+
type OnPreviewHandler = (input: {}) => Promise<{}>;
|
|
3
|
+
type OnAcceptHandler = (input: {}) => Promise<{}>;
|
|
4
|
+
type OnRejectHandler = () => Promise<void>;
|
|
5
|
+
export declare class Translate extends Operation {
|
|
6
|
+
private entityDropDownMenu_1;
|
|
7
|
+
private entityDropDownMenu_2;
|
|
8
|
+
private entityDropDownMenu_3;
|
|
9
|
+
private entityDropDownMenu_4;
|
|
10
|
+
private entityDropDownMenu_5;
|
|
11
|
+
private dxInput;
|
|
12
|
+
private dyInput;
|
|
13
|
+
private dzInput;
|
|
14
|
+
private modeSelector;
|
|
15
|
+
private readonly onPreviewHandler;
|
|
16
|
+
private readonly onAcceptHandler;
|
|
17
|
+
private readonly onRejectHandler;
|
|
18
|
+
private readonly buttonsContainer;
|
|
19
|
+
private availableEntities_1;
|
|
20
|
+
private availableEntities_2;
|
|
21
|
+
private availableEntities_3;
|
|
22
|
+
private availableEntities_4;
|
|
23
|
+
private availableEntities_5;
|
|
24
|
+
private affectedElementUIDs;
|
|
25
|
+
private dx;
|
|
26
|
+
private dy;
|
|
27
|
+
private dz;
|
|
28
|
+
private modeOptions;
|
|
29
|
+
private dynamicComponents;
|
|
30
|
+
private selectionData;
|
|
31
|
+
static Modes: {
|
|
32
|
+
DxDyDz: number;
|
|
33
|
+
Nodes: number;
|
|
34
|
+
Vector: number;
|
|
35
|
+
};
|
|
36
|
+
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
37
|
+
private setEnabledEntity;
|
|
38
|
+
private setActiveButton;
|
|
39
|
+
private changeMode;
|
|
40
|
+
/**
|
|
41
|
+
* Add dropdown list
|
|
42
|
+
*/
|
|
43
|
+
private addDropDownLists;
|
|
44
|
+
/**
|
|
45
|
+
* Add entity button
|
|
46
|
+
*/
|
|
47
|
+
private buttons;
|
|
48
|
+
/**
|
|
49
|
+
* Create dropdown list for entityButton_1
|
|
50
|
+
*/
|
|
51
|
+
private createDropdownListItems_1;
|
|
52
|
+
/**
|
|
53
|
+
* Create dropdown list for entityButton_2
|
|
54
|
+
*/
|
|
55
|
+
private createDropdownListItems_2;
|
|
56
|
+
/**
|
|
57
|
+
* Create dropdown list for entityButton_3
|
|
58
|
+
*/
|
|
59
|
+
private createDropdownListItems_3;
|
|
60
|
+
/**
|
|
61
|
+
* Create dropdown list for entityButton_4
|
|
62
|
+
*/
|
|
63
|
+
private createDropdownListItems_4;
|
|
64
|
+
/**
|
|
65
|
+
* Create dropdown list for entityButton_5
|
|
66
|
+
*/
|
|
67
|
+
private createDropdownListItems_5;
|
|
68
|
+
/**
|
|
69
|
+
* Add input field
|
|
70
|
+
*/
|
|
71
|
+
private fields;
|
|
72
|
+
/**
|
|
73
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
74
|
+
*/
|
|
75
|
+
private addActionButtons;
|
|
76
|
+
/**
|
|
77
|
+
* Initializes uiComponents on opening the operationUI
|
|
78
|
+
*/
|
|
79
|
+
init(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
82
|
+
*/
|
|
83
|
+
unselect(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
86
|
+
*/
|
|
87
|
+
reset(): void;
|
|
88
|
+
private onPreview;
|
|
89
|
+
/**
|
|
90
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
91
|
+
*/
|
|
92
|
+
private onAccept;
|
|
93
|
+
private onReject;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -1,16 +1,65 @@
|
|
|
1
1
|
import { Operation } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { DropdownList } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/OperationPanelComponents/DropdownList";
|
|
3
|
+
import { LabeledInputField } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/OperationPanelComponents/LabeledInputField";
|
|
4
|
+
import { gmshData } from "../../../../../../../../Viewer3D/DataStorage/MeshData/gmshData";
|
|
5
|
+
type OnPreviewHandler = (data: {}) => Promise<void>;
|
|
6
|
+
type OnAcceptHandler = (data: {}) => Promise<void>;
|
|
7
|
+
type OnRejectHandler = () => Promise<void>;
|
|
8
|
+
export declare class MeshLine extends Operation {
|
|
9
|
+
private entityDropDownMenu;
|
|
10
|
+
elementOrderSelect_1: DropdownList<gmshData.settings.elementOrder>;
|
|
11
|
+
elementSizeInput_1: LabeledInputField;
|
|
6
12
|
private readonly onPreviewHandler;
|
|
7
13
|
private readonly onAcceptHandler;
|
|
8
14
|
private readonly onRejectHandler;
|
|
9
15
|
private readonly buttonsContainer;
|
|
10
|
-
private
|
|
16
|
+
private readonly inputContainer;
|
|
17
|
+
private elementOrderOptions;
|
|
18
|
+
private elementSize;
|
|
19
|
+
private readonly availableEntities;
|
|
20
|
+
private selectionData;
|
|
21
|
+
private element2DMaterial;
|
|
22
|
+
private uiComponents;
|
|
11
23
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private
|
|
24
|
+
private setEnabledEntity;
|
|
25
|
+
private setActiveButton;
|
|
26
|
+
/**
|
|
27
|
+
* Add entity button
|
|
28
|
+
*/
|
|
13
29
|
private addEntityButton;
|
|
30
|
+
/**
|
|
31
|
+
* Create dropdown list for entityButton
|
|
32
|
+
*/
|
|
33
|
+
private createDropdownListItems;
|
|
34
|
+
/**
|
|
35
|
+
* Add dropdown list
|
|
36
|
+
*/
|
|
37
|
+
private addDropDownLists_2;
|
|
38
|
+
/**
|
|
39
|
+
* Add input field
|
|
40
|
+
*/
|
|
41
|
+
private addFields;
|
|
42
|
+
/**
|
|
43
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
44
|
+
*/
|
|
14
45
|
private addActionButtons;
|
|
46
|
+
/**
|
|
47
|
+
* Initializes uiComponents on opening the operationUI
|
|
48
|
+
*/
|
|
49
|
+
init(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Unselects all entities and tree items
|
|
52
|
+
*/
|
|
53
|
+
unselect(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Reset default settings
|
|
56
|
+
*/
|
|
57
|
+
reset(): void;
|
|
58
|
+
private onPreview;
|
|
59
|
+
/**
|
|
60
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
61
|
+
*/
|
|
62
|
+
private onAccept;
|
|
63
|
+
private onReject;
|
|
15
64
|
}
|
|
16
65
|
export {};
|
|
@@ -7,7 +7,7 @@ import * as BasicRigidCoupling from "./Basic/UIRigidCoupling";
|
|
|
7
7
|
import * as BasicSeamWeld from "./Basic/UISeamWeld";
|
|
8
8
|
import * as BasicSpotWeld from "./Basic/UISpotWeld";
|
|
9
9
|
import * as BasicTwoPMethods from "./Basic/UITwoPMethods";
|
|
10
|
-
import * as
|
|
10
|
+
import * as MeshLine from "./Advanced/UIMeshLine";
|
|
11
11
|
import * as AdvancedRemeshElements from "./Advanced/UIRemeshElements";
|
|
12
12
|
declare const CreationTools_0D_1D: {
|
|
13
13
|
Manual: {
|
|
@@ -25,7 +25,7 @@ declare const CreationTools_0D_1D: {
|
|
|
25
25
|
};
|
|
26
26
|
Advanced: {
|
|
27
27
|
AdvancedRemeshElemets: typeof AdvancedRemeshElements.AdvancedRemeshElemets;
|
|
28
|
-
|
|
28
|
+
MeshLine: typeof MeshLine.MeshLine;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
export { CreationTools_0D_1D };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Operation } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
+
type OnPreviewHandler = (data: {}) => Promise<void>;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => Promise<{}>;
|
|
4
|
+
type OnRejectHandler = () => Promise<void>;
|
|
5
|
+
export declare class Boundary2D extends Operation {
|
|
6
|
+
private readonly onPreviewHandler;
|
|
7
|
+
private readonly onAcceptHandler;
|
|
8
|
+
private readonly onRejectHandler;
|
|
9
|
+
private readonly buttonsContainer;
|
|
10
|
+
private toleranceInput;
|
|
11
|
+
private availableEntities;
|
|
12
|
+
private entityDropDownMenu;
|
|
13
|
+
private entity;
|
|
14
|
+
private readonly inputsContainer;
|
|
15
|
+
private selectionData;
|
|
16
|
+
private element2DMaterial;
|
|
17
|
+
private uiComponents;
|
|
18
|
+
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
19
|
+
private setEnabledEntity;
|
|
20
|
+
private setActiveButton;
|
|
21
|
+
/**
|
|
22
|
+
* Add entity button
|
|
23
|
+
*/
|
|
24
|
+
private addEntityButton;
|
|
25
|
+
/**
|
|
26
|
+
* Create dropdown list for entityButton
|
|
27
|
+
*/
|
|
28
|
+
private createDropdownListItems;
|
|
29
|
+
private addActionButtons;
|
|
30
|
+
/**
|
|
31
|
+
* Initializes uiComponents on opening the operationUI
|
|
32
|
+
*/
|
|
33
|
+
init(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Unselects all entities and tree items
|
|
36
|
+
*/
|
|
37
|
+
unselect(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Reset default settings
|
|
40
|
+
*/
|
|
41
|
+
reset(): void;
|
|
42
|
+
private onPreview;
|
|
43
|
+
/**
|
|
44
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
45
|
+
*/
|
|
46
|
+
private onAccept;
|
|
47
|
+
private onReject;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import * as Fill from "./Basic/UIFill";
|
|
|
5
5
|
import * as Offset from "./Basic/UIOffset";
|
|
6
6
|
import * as Revolute from "./Basic/UIRevolute";
|
|
7
7
|
import * as Sweep from "./Basic/UISweep";
|
|
8
|
+
import * as Boundary2D from "./Basic/UIBoundary2D";
|
|
8
9
|
import * as MeshPatch from "./Advanced/UIMeshPatch";
|
|
9
10
|
import * as MeshFace from "./Advanced/UIMeshFace";
|
|
10
11
|
import * as Remesh from "./Advanced/UIRemesh";
|
|
@@ -13,6 +14,7 @@ declare const CreationTools_2D: {
|
|
|
13
14
|
CreateElement: typeof CreateElement.CreateElement;
|
|
14
15
|
};
|
|
15
16
|
Basic: {
|
|
17
|
+
Boundary2D: typeof Boundary2D.Boundary2D;
|
|
16
18
|
Sweep: typeof Sweep.Sweep;
|
|
17
19
|
Revolute: typeof Revolute.Revolute;
|
|
18
20
|
Offset: typeof Offset.Offset;
|
|
@@ -2,6 +2,6 @@ import * as THREE from '../../three/build/three.module';
|
|
|
2
2
|
export declare class EdgeMaterial extends THREE.ShaderMaterial {
|
|
3
3
|
static instance: EdgeMaterial;
|
|
4
4
|
gpuPicking: boolean;
|
|
5
|
-
constructor(currentCamera: THREE.OrthographicCamera);
|
|
5
|
+
constructor(currentCamera: THREE.OrthographicCamera, offsetFactor?: number, offsetUnits?: number);
|
|
6
6
|
static getInstance(): EdgeMaterial;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import * as THREE from '../../three/build/three.module';
|
|
|
2
2
|
export declare class Element1DMaterial extends THREE.ShaderMaterial {
|
|
3
3
|
static instance: Element1DMaterial;
|
|
4
4
|
gpuPicking: boolean;
|
|
5
|
-
constructor(currentCamera: THREE.OrthographicCamera);
|
|
5
|
+
constructor(currentCamera: THREE.OrthographicCamera, offsetFactor?: number, offsetUnits?: number);
|
|
6
6
|
static getInstance(): Element1DMaterial;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import * as THREE from '../../three/build/three.module';
|
|
|
2
2
|
export declare class LineMaterial extends THREE.ShaderMaterial {
|
|
3
3
|
static instance: LineMaterial;
|
|
4
4
|
gpuPicking: boolean;
|
|
5
|
-
constructor(currentCamera: THREE.OrthographicCamera);
|
|
5
|
+
constructor(currentCamera: THREE.OrthographicCamera, offsetFactor?: number, offsetUnits?: number);
|
|
6
6
|
static getInstance(): LineMaterial;
|
|
7
7
|
}
|
|
@@ -2,11 +2,11 @@ import * as THREE from '../../three/build/three.module';
|
|
|
2
2
|
export declare class MeshMaterial extends THREE.ShaderMaterial {
|
|
3
3
|
static instance: MeshMaterial;
|
|
4
4
|
gpuPicking: boolean;
|
|
5
|
-
constructor(ambientLight: THREE.AmbientLight, directionalLights: THREE.DirectionalLight[], side: any, offset: boolean, offsetFactor?: number, offsetUnits?: number);
|
|
5
|
+
constructor(ambientLight: THREE.AmbientLight, directionalLights: THREE.DirectionalLight[], side: any, offset: boolean, offsetFactor?: number, offsetUnits?: number, currentCamera?: THREE.OrthographicCamera);
|
|
6
6
|
static getInstance(): MeshMaterial;
|
|
7
7
|
}
|
|
8
8
|
export declare class FaceMaterial extends MeshMaterial {
|
|
9
9
|
static instance: FaceMaterial;
|
|
10
|
-
constructor(ambientLight: THREE.AmbientLight, directionalLights: THREE.DirectionalLight[]);
|
|
10
|
+
constructor(ambientLight: THREE.AmbientLight, directionalLights: THREE.DirectionalLight[], currentCamera: THREE.OrthographicCamera);
|
|
11
11
|
static getInstance(): FaceMaterial;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as THREE from '../../three/build/three.module';
|
|
2
|
-
|
|
3
|
-
export declare class TempElement0DMaterial extends Element0DMaterial {
|
|
2
|
+
export declare class TempElement0DMaterial extends THREE.ShaderMaterial {
|
|
4
3
|
static instance: TempElement0DMaterial;
|
|
4
|
+
gpuPicking: boolean;
|
|
5
5
|
constructor(currentCamera: THREE.OrthographicCamera);
|
|
6
6
|
static getInstance(): TempElement0DMaterial;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as THREE from '../../three/build/three.module';
|
|
2
|
-
|
|
3
|
-
export declare class TempElement1DMaterial extends Element1DMaterial {
|
|
2
|
+
export declare class TempElement1DMaterial extends THREE.ShaderMaterial {
|
|
4
3
|
static instance: TempElement1DMaterial;
|
|
5
|
-
|
|
4
|
+
gpuPicking: boolean;
|
|
5
|
+
constructor(currentCamera: THREE.OrthographicCamera, offsetFactor?: number, offsetUnits?: number);
|
|
6
6
|
static getInstance(): TempElement1DMaterial;
|
|
7
7
|
}
|
|
@@ -46,6 +46,7 @@ export declare class ModelContextMenu {
|
|
|
46
46
|
};
|
|
47
47
|
submenu: HTMLElement;
|
|
48
48
|
mouse3DPosition: THREE.Vector3;
|
|
49
|
+
selectionCtrlHTML: HTMLAnchorElement;
|
|
49
50
|
constructor();
|
|
50
51
|
getInstance(): ModelContextMenu;
|
|
51
52
|
getElement(int: number): HTMLAnchorElement;
|
|
@@ -54,5 +55,6 @@ export declare class ModelContextMenu {
|
|
|
54
55
|
hide(): void;
|
|
55
56
|
setPosition(location: THREE.Vector3): void;
|
|
56
57
|
createSeparator(): HTMLHRElement;
|
|
58
|
+
private positionSubmenu;
|
|
57
59
|
}
|
|
58
60
|
export {};
|