fcs-core-viewer 0.7.0 → 0.8.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/DataStorage/ModelData.d.ts +4 -1
- package/fcs-core-viewer@types/Loader/Loader.d.ts +1 -1
- package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +1 -1
- package/fcs-core-viewer@types/Loader/MESHLoader/ElementLoader.d.ts +15 -0
- package/fcs-core-viewer@types/Loader/MESHLoader/Index.d.ts +5 -0
- package/fcs-core-viewer@types/Loader/STEPLoader/FaceLoader.d.ts +1 -3
- package/fcs-core-viewer@types/StyleHandler/MainMenuStyle.d.ts +6 -3
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ViewerHtmlElementsTypes.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ViewerOperationButton.d.ts +2 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ViewerOperationVariantContainer.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ViewerOperationVariantsPanel.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ViewerOperationsGroup.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerButton.d.ts +2 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerDropDown.d.ts +2 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerInput.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerLabel.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerLabeledInput.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerLabeledSelect.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerSelect.d.ts +5 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/ViewerSelectOption.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeArcCenterVector.d.ts +41 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeArcThreeVertices.d.ts +30 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeAtIntersection.d.ts +30 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeByInterpolation.d.ts +30 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeByOffset.d.ts +30 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeByXYZ.d.ts +10 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeChamfer.d.ts +33 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeCircleCenterVector.d.ts +43 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeCircleThreeVertices.d.ts +30 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeFillet.d.ts +32 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgePolyline.d.ts +4 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Edge/EdgeTangentToLines.d.ts +42 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildShell.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildSolid.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildBuildWire.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractFace.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractLine.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractPoint.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractShell.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractSolid.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/ExtractBuild/ExtractBuildExtractWire.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByExtrapolation.d.ts +37 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByExtrusion.d.ts +43 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByFilling.d.ts +44 -9
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByOffset.d.ts +32 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByReconstruction.d.ts +31 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceByRevolute.d.ts +43 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceBySweep.d.ts +42 -11
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceBySweepbiNormal.d.ts +52 -14
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FaceMidsurface.d.ts +31 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Face/FacebyLoft.d.ts +52 -14
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesBox.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesCone.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesCylinder.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesDisc.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesRectangle.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesSphere.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Primitives/PrimitivesTorus.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Solid/SolidByBoundary.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Solid/SolidByExtrusion.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Solid/SolidByLoft.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Solid/SolidByRevolute.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Solid/SolidBySweep.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexAtCenter.d.ts +27 -4
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexAtIntersection.d.ts +30 -6
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexByInterpolation.d.ts +31 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexByParameters.d.ts +31 -7
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexByXYZ.d.ts +11 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/CreationTools/Vertex/VertexOnGeometry.d.ts +30 -3
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Location/LocationByCoordinateTransformation.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Mirror/MirrorByVector.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Rotate/RotateByVectorAndAngle.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Scale/ScaleByXYZ.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Translate/TranslateByDXDYXZ.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Translate/TranslateByVector.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAD/TransformationTools/Translate/TranslateByVectorAndLength.d.ts +1 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/CreationTools_2D/SurfBased_2D/TwoDSurfBasedMeshSurface.d.ts +4 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Toolboxes/CADToolbox.d.ts +1 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Toolboxes/CAEToolbox.d.ts +1 -1
- package/package.json +1 -1
- package/fcs-core-viewer@types/Loader/MESHLoader/NodeLoader.d.ts +0 -0
|
@@ -585,7 +585,10 @@ export declare namespace ModelData {
|
|
|
585
585
|
Group = 21,
|
|
586
586
|
GeometryContainer = 22,
|
|
587
587
|
MeshContainer = 23,
|
|
588
|
-
CollaborationContainer = 24
|
|
588
|
+
CollaborationContainer = 24,
|
|
589
|
+
Wire = 25,
|
|
590
|
+
Shell = 26,
|
|
591
|
+
Solid = 27
|
|
589
592
|
}
|
|
590
593
|
const dataTypesToObjects: {
|
|
591
594
|
subShapeTypes: {
|
|
@@ -4,7 +4,7 @@ import { FaceLoader } from "./STEPLoader/FaceLoader";
|
|
|
4
4
|
import { TriangleLoader } from "./STLLoader/ElementLoader";
|
|
5
5
|
import { BackendManager } from "../Common/CommsChannels/BackendClient";
|
|
6
6
|
import { TaskUtils } from "../TaskHandler/TaskUtils";
|
|
7
|
-
import { TreeView } from
|
|
7
|
+
import { TreeView } from "../UserInterface/UIComponents/TreeView/TreeView";
|
|
8
8
|
import { MeshWrapper } from '../Model/MeshWrapper';
|
|
9
9
|
import { ModelData } from '../DataStorage/ModelData';
|
|
10
10
|
/**
|
|
@@ -71,5 +71,5 @@ export declare class LoaderTools {
|
|
|
71
71
|
* @param startIndex - Ha tobb face van egy modellben, akkor a merge-oles utan ossze kell illeszteni a face-eket, hogy egyutt egy modellt alkossanak. Ekkor sorban haladva a kovetkezo face indexe onnan kezdodik, ahol az elozo befejezodott.
|
|
72
72
|
* @returns
|
|
73
73
|
*/
|
|
74
|
-
createSmoothFace(position: THREE.BufferAttribute, polygonIndices: [], startIndex: number): any;
|
|
74
|
+
createSmoothFace(position: THREE.BufferAttribute, polygonIndices: [], startIndex: number): any[];
|
|
75
75
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ElementLoader {
|
|
2
|
+
private _fileUrl;
|
|
3
|
+
private _elementIdToNodeId;
|
|
4
|
+
private _nodeIdToPosition;
|
|
5
|
+
private _meshIdOffset;
|
|
6
|
+
private _minXYZ;
|
|
7
|
+
private _maxXYZ;
|
|
8
|
+
constructor(fileUrl: string, meshIdOffset?: number);
|
|
9
|
+
/**
|
|
10
|
+
* Parses the file and extracts:
|
|
11
|
+
* - Node Ids to positions
|
|
12
|
+
* - Element Ids to NodeIds
|
|
13
|
+
*/
|
|
14
|
+
perform(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -3,7 +3,6 @@ import { SceneWrapper } from '../../Model/SceneWrapper';
|
|
|
3
3
|
import { MeshWrapper } from '../../Model/MeshWrapper';
|
|
4
4
|
import { LoaderUtils, LoaderTools } from '../LoaderUtils';
|
|
5
5
|
import { ModelData } from '../../DataStorage/ModelData';
|
|
6
|
-
import { TreeView } from '../../UserInterface/UIComponents/TreeView/TreeView';
|
|
7
6
|
/**
|
|
8
7
|
* Itt tortenik a STEP model importja.
|
|
9
8
|
* Egyedi ID-t generalunk a beimportalni kivant mdoellnek
|
|
@@ -18,7 +17,6 @@ export declare class FaceLoader {
|
|
|
18
17
|
loaderUtils: LoaderUtils;
|
|
19
18
|
sceneWrapper: SceneWrapper;
|
|
20
19
|
meshWrapper: MeshWrapper;
|
|
21
|
-
treeView: TreeView;
|
|
22
20
|
mesh: any;
|
|
23
21
|
line: any;
|
|
24
22
|
point: any;
|
|
@@ -36,7 +34,7 @@ export declare class FaceLoader {
|
|
|
36
34
|
* @param sceneWrapper
|
|
37
35
|
* @param meshWrapper
|
|
38
36
|
*/
|
|
39
|
-
constructor(loaderTools: LoaderTools, loaderUtils: LoaderUtils, sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper
|
|
37
|
+
constructor(loaderTools: LoaderTools, loaderUtils: LoaderUtils, sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper);
|
|
40
38
|
loadSTL(name: string, itemUID: number, parentUID: number, objectURL: string): Promise<string>;
|
|
41
39
|
loadingFunc_STL(geometry: THREE.Mesh): Promise<string>;
|
|
42
40
|
/**
|
|
@@ -4,16 +4,19 @@ export declare class MainMenuStyle {
|
|
|
4
4
|
* Set main menu style
|
|
5
5
|
*/
|
|
6
6
|
setMainMenuStyle(): void;
|
|
7
|
+
setToolboxContainerStyle(toolbox: HTMLElement): void;
|
|
7
8
|
/**
|
|
8
9
|
* Set the style of a group of operations
|
|
9
10
|
*/
|
|
10
|
-
setGroupStyle(detailsGroupElement:
|
|
11
|
+
setGroupStyle(detailsGroupElement: HTMLElement): void;
|
|
11
12
|
/**
|
|
12
13
|
* Button Container style
|
|
13
14
|
*/
|
|
14
|
-
setButtonContainerStyle(buttonContainer:
|
|
15
|
+
setButtonContainerStyle(buttonContainer: HTMLElement): void;
|
|
15
16
|
/**
|
|
16
17
|
* Button style
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
setViewerOperationButtonStyle(button: HTMLButtonElement): void;
|
|
20
|
+
setViewerButtonStyle(button: HTMLButtonElement): void;
|
|
21
|
+
setViewerDropdownStyle(dropdown: HTMLElement): void;
|
|
19
22
|
}
|
|
@@ -2,8 +2,8 @@ import { IViewerHtmlElement, ViewerEventType } from "./ViewerHtmlElementsTypes";
|
|
|
2
2
|
export declare class ViewerOperationButton implements IViewerHtmlElement {
|
|
3
3
|
private readonly title;
|
|
4
4
|
private readonly element;
|
|
5
|
+
private style;
|
|
5
6
|
constructor(title: string);
|
|
6
|
-
private setStyles;
|
|
7
7
|
activate(): void;
|
|
8
8
|
deactivate(): void;
|
|
9
9
|
addEventCallback(eventType: ViewerEventType, callback: (e: any) => void): void;
|
|
@@ -12,5 +12,6 @@ export declare class ViewerOperationButton implements IViewerHtmlElement {
|
|
|
12
12
|
getHtmlElement(): HTMLElement;
|
|
13
13
|
remove(): void;
|
|
14
14
|
setParent(parent: IViewerHtmlElement): void;
|
|
15
|
+
init(): void;
|
|
15
16
|
reset(): void;
|
|
16
17
|
}
|
|
@@ -13,16 +13,16 @@ export declare class ViewerOperationVariantContainer implements IViewerHtmlEleme
|
|
|
13
13
|
*/
|
|
14
14
|
private close;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Initialzes current state
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
init(): void;
|
|
19
19
|
private addSummary;
|
|
20
20
|
getHtmlElement(): HTMLElement;
|
|
21
21
|
remove(): void;
|
|
22
22
|
setHtmlParent(parent: HTMLElement): void;
|
|
23
23
|
setParent(parent: IViewerHtmlElement): void;
|
|
24
24
|
/**
|
|
25
|
-
* Resets
|
|
25
|
+
* Resets default state
|
|
26
26
|
*/
|
|
27
27
|
reset(): void;
|
|
28
28
|
}
|
|
@@ -4,15 +4,14 @@ import { ViewerOperationVariantsPanel } from "./ViewerOperationVariantsPanel";
|
|
|
4
4
|
export declare class ViewerOperationsGroup implements IViewerHtmlElement {
|
|
5
5
|
private readonly element;
|
|
6
6
|
private readonly title;
|
|
7
|
+
private style;
|
|
7
8
|
private buttonContainer;
|
|
8
9
|
private buttons;
|
|
9
10
|
private panels;
|
|
10
11
|
private openedPanelWithButton;
|
|
11
12
|
constructor(title: string);
|
|
12
|
-
private setStyles;
|
|
13
13
|
private addSummary;
|
|
14
14
|
private addButtonContainer;
|
|
15
|
-
private setButtonContainerStyles;
|
|
16
15
|
private buttonClickCallback;
|
|
17
16
|
private closeOpenedPanel;
|
|
18
17
|
addButtonsWithPanels(buttonsWithPanels: Map<ViewerOperationButton, ViewerOperationVariantsPanel>): void;
|
|
@@ -20,5 +19,6 @@ export declare class ViewerOperationsGroup implements IViewerHtmlElement {
|
|
|
20
19
|
getHtmlElement(): HTMLElement;
|
|
21
20
|
remove(): void;
|
|
22
21
|
setParent(parent: IViewerHtmlElement): void;
|
|
22
|
+
init(): void;
|
|
23
23
|
reset(): void;
|
|
24
24
|
}
|
|
@@ -21,6 +21,7 @@ export declare class ViewerButton implements IViewerHtmlElement {
|
|
|
21
21
|
private readonly button;
|
|
22
22
|
private readonly className;
|
|
23
23
|
private readonly type;
|
|
24
|
+
private mainStyles;
|
|
24
25
|
readonly limit: string | number;
|
|
25
26
|
readonly name: string;
|
|
26
27
|
constructor(config: ButtonConfig);
|
|
@@ -34,6 +35,7 @@ export declare class ViewerButton implements IViewerHtmlElement {
|
|
|
34
35
|
remove(): void;
|
|
35
36
|
setHtmlParent(parent: HTMLElement): void;
|
|
36
37
|
setParent(parent: IViewerHtmlElement): void;
|
|
38
|
+
init(): void;
|
|
37
39
|
reset(): void;
|
|
38
40
|
}
|
|
39
41
|
export {};
|
|
@@ -19,6 +19,7 @@ export declare class ViewerDropDown implements IViewerHtmlElement {
|
|
|
19
19
|
private readonly element;
|
|
20
20
|
private contentContainer;
|
|
21
21
|
private isOpened;
|
|
22
|
+
private style;
|
|
22
23
|
constructor(config: EntityDropDownMenuType);
|
|
23
24
|
private initContentContainer;
|
|
24
25
|
private onDropdownButtonClick;
|
|
@@ -30,5 +31,6 @@ export declare class ViewerDropDown implements IViewerHtmlElement {
|
|
|
30
31
|
setHtmlParent(parent: HTMLElement): void;
|
|
31
32
|
setParent(parent: IViewerHtmlElement): void;
|
|
32
33
|
reset(): void;
|
|
34
|
+
init(): void;
|
|
33
35
|
getData(): any;
|
|
34
36
|
}
|
|
@@ -13,6 +13,7 @@ export declare class ViewerInput implements IViewerHtmlElement {
|
|
|
13
13
|
remove(): void;
|
|
14
14
|
setHtmlParent(parent: HTMLElement): void;
|
|
15
15
|
setParent(parent: IViewerHtmlElement): void;
|
|
16
|
+
init(): void;
|
|
16
17
|
reset(): void;
|
|
17
18
|
setValue(value: string): void;
|
|
18
19
|
getData(): number;
|
|
@@ -15,6 +15,7 @@ export declare class ViewerLabeledInput implements IViewerHtmlElement {
|
|
|
15
15
|
remove(): void;
|
|
16
16
|
setHtmlParent(parent: HTMLElement): void;
|
|
17
17
|
setParent(parent: IViewerHtmlElement): void;
|
|
18
|
+
init(): void;
|
|
18
19
|
reset(): void;
|
|
19
20
|
setValue(value: string): void;
|
|
20
21
|
getData(): number;
|
|
@@ -18,6 +18,11 @@ export declare class ViewerSelect<T> implements IViewerHtmlElement {
|
|
|
18
18
|
remove(): void;
|
|
19
19
|
setHtmlParent(parent: HTMLElement): void;
|
|
20
20
|
setParent(parent: IViewerHtmlElement): void;
|
|
21
|
+
init(): void;
|
|
21
22
|
reset(): void;
|
|
23
|
+
setOption(option: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}): void;
|
|
22
27
|
getData(): number;
|
|
23
28
|
}
|
|
@@ -1,24 +1,54 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeArcCenterVector extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu_1;
|
|
7
|
+
private entityDropDownMenu_2;
|
|
8
|
+
private radiusInput;
|
|
9
|
+
private angleInput;
|
|
6
10
|
private readonly onPreviewHandler;
|
|
7
11
|
private readonly onAcceptHandler;
|
|
8
12
|
private readonly onRejectHandler;
|
|
9
13
|
private readonly buttonsContainer;
|
|
10
|
-
private readonly
|
|
11
|
-
private
|
|
12
|
-
private
|
|
14
|
+
private readonly inputsContainer;
|
|
15
|
+
private availableEntities_1;
|
|
16
|
+
private availableEntities_2;
|
|
17
|
+
private entity_1;
|
|
18
|
+
private entity_2;
|
|
13
19
|
private radius;
|
|
14
20
|
private angle;
|
|
15
21
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
|
|
22
|
+
private setEnabledEntity_1;
|
|
23
|
+
private setActiveButton_1;
|
|
24
|
+
private setEnabledEntity_2;
|
|
25
|
+
private setActiveButton_2;
|
|
26
|
+
/**
|
|
27
|
+
* Add entity button
|
|
28
|
+
*/
|
|
29
|
+
private addEntityButton_1;
|
|
30
|
+
private addEntityButton_2;
|
|
21
31
|
private addFields;
|
|
32
|
+
/**
|
|
33
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
34
|
+
*/
|
|
22
35
|
private addActionButtons;
|
|
36
|
+
/**
|
|
37
|
+
* Create dropdown list for entityButton
|
|
38
|
+
*/
|
|
39
|
+
private createDropdownListItems_1;
|
|
40
|
+
private createDropdownListItems_2;
|
|
41
|
+
/**
|
|
42
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
43
|
+
*/
|
|
44
|
+
private onAccept;
|
|
45
|
+
/**
|
|
46
|
+
* Initializes uiComponents on opening the operationUI
|
|
47
|
+
*/
|
|
48
|
+
init(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
51
|
+
*/
|
|
52
|
+
reset(): void;
|
|
23
53
|
}
|
|
24
54
|
export {};
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeArcThreeVertices extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu;
|
|
6
7
|
private readonly onPreviewHandler;
|
|
7
8
|
private readonly onAcceptHandler;
|
|
8
9
|
private readonly onRejectHandler;
|
|
9
10
|
private readonly buttonsContainer;
|
|
10
|
-
private
|
|
11
|
+
private availableEntities;
|
|
12
|
+
private entity;
|
|
11
13
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private
|
|
14
|
+
private setEnabledEntity;
|
|
15
|
+
private setActiveButton;
|
|
16
|
+
/**
|
|
17
|
+
* Add entity button
|
|
18
|
+
*/
|
|
13
19
|
private addEntityButton;
|
|
20
|
+
/**
|
|
21
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
22
|
+
*/
|
|
14
23
|
private addActionButtons;
|
|
24
|
+
/**
|
|
25
|
+
* Create dropdown list for entityButton
|
|
26
|
+
*/
|
|
27
|
+
private createDropdownListItems;
|
|
28
|
+
/**
|
|
29
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
30
|
+
*/
|
|
31
|
+
private onAccept;
|
|
32
|
+
/**
|
|
33
|
+
* Initializes uiComponents on opening the operationUI
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
38
|
+
*/
|
|
39
|
+
reset(): void;
|
|
15
40
|
}
|
|
16
41
|
export {};
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeAtIntersection extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu;
|
|
6
7
|
private readonly onPreviewHandler;
|
|
7
8
|
private readonly onAcceptHandler;
|
|
8
9
|
private readonly onRejectHandler;
|
|
9
10
|
private readonly buttonsContainer;
|
|
10
|
-
private
|
|
11
|
+
private availableEntities;
|
|
12
|
+
private entity;
|
|
11
13
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private
|
|
14
|
+
private setEnabledEntity;
|
|
15
|
+
private setActiveButton;
|
|
16
|
+
/**
|
|
17
|
+
* Add entity button
|
|
18
|
+
*/
|
|
13
19
|
private addEntityButton;
|
|
20
|
+
/**
|
|
21
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
22
|
+
*/
|
|
14
23
|
private addActionButtons;
|
|
24
|
+
/**
|
|
25
|
+
* Create dropdown list for entityButton
|
|
26
|
+
*/
|
|
27
|
+
private createDropdownListItems;
|
|
28
|
+
/**
|
|
29
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
30
|
+
*/
|
|
31
|
+
private onAccept;
|
|
32
|
+
/**
|
|
33
|
+
* Initializes uiComponents on opening the operationUI
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
38
|
+
*/
|
|
39
|
+
reset(): void;
|
|
15
40
|
}
|
|
16
41
|
export {};
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeByInterpolation extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu;
|
|
6
7
|
private readonly onPreviewHandler;
|
|
7
8
|
private readonly onAcceptHandler;
|
|
8
9
|
private readonly onRejectHandler;
|
|
9
10
|
private readonly buttonsContainer;
|
|
10
|
-
private
|
|
11
|
+
private readonly availableEntities;
|
|
12
|
+
private entity;
|
|
11
13
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private
|
|
14
|
+
private setEnabledEntity;
|
|
15
|
+
private setActiveButton;
|
|
16
|
+
/**
|
|
17
|
+
* Add entity button
|
|
18
|
+
*/
|
|
13
19
|
private addEntityButton;
|
|
20
|
+
/**
|
|
21
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
22
|
+
*/
|
|
14
23
|
private addActionButtons;
|
|
24
|
+
/**
|
|
25
|
+
* Create dropdown list for entityButton
|
|
26
|
+
*/
|
|
27
|
+
private createDropdownListItems;
|
|
28
|
+
/**
|
|
29
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
30
|
+
*/
|
|
31
|
+
private onAccept;
|
|
32
|
+
/**
|
|
33
|
+
* Initializes uiComponents on opening the operationUI
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
38
|
+
*/
|
|
39
|
+
reset(): void;
|
|
15
40
|
}
|
|
16
41
|
export {};
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeByOffset extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu;
|
|
6
7
|
private readonly onPreviewHandler;
|
|
7
8
|
private readonly onAcceptHandler;
|
|
8
9
|
private readonly onRejectHandler;
|
|
9
10
|
private readonly buttonsContainer;
|
|
10
|
-
private
|
|
11
|
+
private readonly availableEntities;
|
|
12
|
+
private entity;
|
|
11
13
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
12
|
-
private
|
|
14
|
+
private setEnabledEntity;
|
|
15
|
+
private setActiveButton;
|
|
16
|
+
/**
|
|
17
|
+
* Add entity button
|
|
18
|
+
*/
|
|
13
19
|
private addEntityButton;
|
|
20
|
+
/**
|
|
21
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
22
|
+
*/
|
|
14
23
|
private addActionButtons;
|
|
24
|
+
/**
|
|
25
|
+
* Create dropdown list for entityButton
|
|
26
|
+
*/
|
|
27
|
+
private createDropdownListItems;
|
|
28
|
+
/**
|
|
29
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
30
|
+
*/
|
|
31
|
+
private onAccept;
|
|
32
|
+
/**
|
|
33
|
+
* Initializes uiComponents on opening the operationUI
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
38
|
+
*/
|
|
39
|
+
reset(): void;
|
|
15
40
|
}
|
|
16
41
|
export {};
|
|
@@ -7,6 +7,12 @@ export declare class EdgeByXYZ extends ViewerOperationVariant {
|
|
|
7
7
|
private readonly onAcceptHandler;
|
|
8
8
|
private readonly onRejectHandler;
|
|
9
9
|
private readonly buttonsContainer;
|
|
10
|
+
private x1Input;
|
|
11
|
+
private y1Input;
|
|
12
|
+
private z1Input;
|
|
13
|
+
private x2Input;
|
|
14
|
+
private y2Input;
|
|
15
|
+
private z2Input;
|
|
10
16
|
private x1;
|
|
11
17
|
private y1;
|
|
12
18
|
private z1;
|
|
@@ -16,5 +22,9 @@ export declare class EdgeByXYZ extends ViewerOperationVariant {
|
|
|
16
22
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
17
23
|
private addFields;
|
|
18
24
|
private addActionButtons;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes uiComponents on opening the operationUI
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
19
29
|
}
|
|
20
30
|
export {};
|
|
@@ -1,21 +1,47 @@
|
|
|
1
1
|
import { ViewerOperationVariant } from "../../../../BuildingBlocks/MainMenuComponents/ViewerOperationVariant";
|
|
2
|
-
type OnPreviewHandler = (
|
|
3
|
-
type OnAcceptHandler = (
|
|
4
|
-
type OnRejectHandler = (
|
|
2
|
+
type OnPreviewHandler = (entityUIDs: number[]) => void;
|
|
3
|
+
type OnAcceptHandler = (data: {}) => void;
|
|
4
|
+
type OnRejectHandler = (entityUIDs: number[]) => void;
|
|
5
5
|
export declare class EdgeChamfer extends ViewerOperationVariant {
|
|
6
|
+
private entityDropDownMenu;
|
|
7
|
+
private sizeInput;
|
|
8
|
+
private angleInput;
|
|
6
9
|
private readonly onPreviewHandler;
|
|
7
10
|
private readonly onAcceptHandler;
|
|
8
11
|
private readonly onRejectHandler;
|
|
9
12
|
private readonly buttonsContainer;
|
|
10
|
-
private readonly
|
|
11
|
-
private
|
|
13
|
+
private readonly inputsContainer;
|
|
14
|
+
private availableEntities;
|
|
15
|
+
private entity;
|
|
12
16
|
private angle;
|
|
13
17
|
private size;
|
|
14
18
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
15
|
-
private
|
|
16
|
-
private
|
|
19
|
+
private setEnabledEntity;
|
|
20
|
+
private setActiveButton;
|
|
21
|
+
/**
|
|
22
|
+
* Add entity button
|
|
23
|
+
*/
|
|
17
24
|
private addEntityButton;
|
|
18
25
|
private addFields;
|
|
26
|
+
/**
|
|
27
|
+
* Add action buttons (-> Preview, Accept, Reject)
|
|
28
|
+
*/
|
|
19
29
|
private addActionButtons;
|
|
30
|
+
/**
|
|
31
|
+
* Create dropdown list for entityButton
|
|
32
|
+
*/
|
|
33
|
+
private createDropdownListItems;
|
|
34
|
+
/**
|
|
35
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
36
|
+
*/
|
|
37
|
+
private onAccept;
|
|
38
|
+
/**
|
|
39
|
+
* Initializes uiComponents on opening the operationUI
|
|
40
|
+
*/
|
|
41
|
+
init(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
44
|
+
*/
|
|
45
|
+
reset(): void;
|
|
20
46
|
}
|
|
21
47
|
export {};
|