fcs-core-viewer 0.36.0 → 0.37.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/Index.d.ts +2 -1
- package/fcs-core-editor@types/Editor3D/Operations/OperationCollection.d.ts +11 -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 +94 -0
- package/fcs-core-editor@types/Viewer3D/Loader/FileTypes.d.ts +2 -1
- 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<boolean>;
|
|
25
|
+
}
|
|
26
|
+
export declare class TemporaryTranslate {
|
|
27
|
+
private data;
|
|
28
|
+
constructor(data?: {});
|
|
29
|
+
preview(): Promise<void>;
|
|
30
|
+
reject(): Promise<void>;
|
|
3
31
|
}
|
|
@@ -65,7 +65,8 @@ declare const Operations: {
|
|
|
65
65
|
TemporaryProjectOnFace: typeof import("./CAD/TransformationTools/OpProjectOnFace").TemporaryProjectOnFace;
|
|
66
66
|
ProjectOnLine: typeof import("./CAD/TransformationTools/OpProjectOnLine").ProjectOnLine;
|
|
67
67
|
TemporaryProjectOnLine: typeof import("./CAD/TransformationTools/OpProjectOnLine").TemporaryProjectOnLine;
|
|
68
|
-
|
|
68
|
+
Translate: typeof import("./CAD/TransformationTools/OpTranslate").Translate;
|
|
69
|
+
TemporaryTranslate: typeof import("./CAD/TransformationTools/OpTranslate").TemporaryTranslate;
|
|
69
70
|
};
|
|
70
71
|
Request_CAD_EditingTools: {
|
|
71
72
|
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
|
*/
|
|
@@ -128,7 +129,11 @@ export declare enum OperationToId {
|
|
|
128
129
|
* CAE - Analysis Tools - 34xx
|
|
129
130
|
*/
|
|
130
131
|
CAE_AnalysisTools_FindFreeEdges = 3400,
|
|
131
|
-
CAE_AnalysisTools_CheckQuality2D = 3410
|
|
132
|
+
CAE_AnalysisTools_CheckQuality2D = 3410,
|
|
133
|
+
/**
|
|
134
|
+
* CAE - Exports - 40xx
|
|
135
|
+
*/
|
|
136
|
+
Common_Exchange_ExportCOMM = 4000
|
|
132
137
|
}
|
|
133
138
|
export declare const OperationIdToName: {
|
|
134
139
|
[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,94 @@
|
|
|
1
|
+
import { Operation } from "../../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
|
|
2
|
+
type OnPreviewHandler = (input: {}) => Promise<void>;
|
|
3
|
+
type OnAcceptHandler = (input: {}) => Promise<boolean>;
|
|
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 dx;
|
|
25
|
+
private dy;
|
|
26
|
+
private dz;
|
|
27
|
+
private modeOptions;
|
|
28
|
+
private dynamicComponents;
|
|
29
|
+
private selectionData;
|
|
30
|
+
static Modes: {
|
|
31
|
+
DxDyDz: number;
|
|
32
|
+
Nodes: number;
|
|
33
|
+
Vector: number;
|
|
34
|
+
};
|
|
35
|
+
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
36
|
+
private setEnabledEntity;
|
|
37
|
+
private setActiveButton;
|
|
38
|
+
private changeMode;
|
|
39
|
+
/**
|
|
40
|
+
* Add dropdown list
|
|
41
|
+
*/
|
|
42
|
+
private addDropDownLists;
|
|
43
|
+
/**
|
|
44
|
+
* Add entity button
|
|
45
|
+
*/
|
|
46
|
+
private buttons;
|
|
47
|
+
/**
|
|
48
|
+
* Create dropdown list for entityButton_1
|
|
49
|
+
*/
|
|
50
|
+
private createDropdownListItems_1;
|
|
51
|
+
/**
|
|
52
|
+
* Create dropdown list for entityButton_2
|
|
53
|
+
*/
|
|
54
|
+
private createDropdownListItems_2;
|
|
55
|
+
/**
|
|
56
|
+
* Create dropdown list for entityButton_3
|
|
57
|
+
*/
|
|
58
|
+
private createDropdownListItems_3;
|
|
59
|
+
/**
|
|
60
|
+
* Create dropdown list for entityButton_4
|
|
61
|
+
*/
|
|
62
|
+
private createDropdownListItems_4;
|
|
63
|
+
/**
|
|
64
|
+
* Create dropdown list for entityButton_5
|
|
65
|
+
*/
|
|
66
|
+
private createDropdownListItems_5;
|
|
67
|
+
/**
|
|
68
|
+
* Add input field
|
|
69
|
+
*/
|
|
70
|
+
private fields;
|
|
71
|
+
/**
|
|
72
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
73
|
+
*/
|
|
74
|
+
private addActionButtons;
|
|
75
|
+
/**
|
|
76
|
+
* Initializes uiComponents on opening the operationUI
|
|
77
|
+
*/
|
|
78
|
+
init(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
81
|
+
*/
|
|
82
|
+
unselect(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
85
|
+
*/
|
|
86
|
+
reset(): void;
|
|
87
|
+
private onPreview;
|
|
88
|
+
/**
|
|
89
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
90
|
+
*/
|
|
91
|
+
private onAccept;
|
|
92
|
+
private onReject;
|
|
93
|
+
}
|
|
94
|
+
export {};
|