fcs-core-viewer 0.19.0 → 0.19.1
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/CloudModelOperations/CAE/EditingTools/Request/Merge.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/Common/Core/Request/Paste.d.ts +1 -1
- package/fcs-core-viewer@types/CloudModelOperations/Common/Core/Response/Paste.d.ts +2 -2
- package/fcs-core-viewer@types/DataStorage/ModelData/Index.d.ts +6 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Hexa_8N.d.ts +23 -0
- package/fcs-core-viewer@types/DataStorage/ModelData/Shapes/ElementTypes/Prism_6N.d.ts +23 -0
- package/fcs-core-viewer@types/DataStorage/SelectionData.d.ts +13 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/OperationUI.d.ts +1 -12
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ToolButton.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/MainMenuComponents/ToolsetPanel.d.ts +1 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton.d.ts +8 -5
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByElements.d.ts +6 -1
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/CAE/EditingTools/Merge/EditingToolsByNodes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,5 +12,5 @@ export declare class Paste {
|
|
|
12
12
|
selectionData: SelectionData;
|
|
13
13
|
treeStructure: TreeStructure;
|
|
14
14
|
constructor();
|
|
15
|
-
perform(operation: PasteOperation, source_shapeUIDs: number[], target_itemUID: number,
|
|
15
|
+
perform(operation: PasteOperation, source_shapeUIDs: number[], target_itemUID: number, selectedShapeType?: ModelData.dataTypes): Promise<void>;
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectionData } from "../../../../DataStorage/SelectionData";
|
|
2
2
|
import { TreeStructure } from "../../../../Tree/TreeStructure/TreeStructure";
|
|
3
3
|
import { TreeCore } from "../../../../Tree/TreeView/TreeCore";
|
|
4
|
-
import {
|
|
4
|
+
import { EntityButton } from "../../../../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton";
|
|
5
5
|
import { UIComponents } from "../../../../UserInterface/UIComponents/UIComponents";
|
|
6
6
|
export declare class Paste {
|
|
7
7
|
selectionData: SelectionData;
|
|
@@ -10,7 +10,7 @@ export declare class Paste {
|
|
|
10
10
|
uiComponents: UIComponents;
|
|
11
11
|
selected: {};
|
|
12
12
|
components: {};
|
|
13
|
-
activeButton:
|
|
13
|
+
activeButton: EntityButton;
|
|
14
14
|
constructor();
|
|
15
15
|
process(data: {}): void;
|
|
16
16
|
}
|
|
@@ -21,6 +21,8 @@ import * as Tria_3N from './Shapes/ElementTypes/Tria_3N';
|
|
|
21
21
|
import * as Quad_4N from './Shapes/ElementTypes/Quad_4N';
|
|
22
22
|
import * as Tetra_4N from './Shapes/ElementTypes/Tetra_4N';
|
|
23
23
|
import * as Pyramid_5N from './Shapes/ElementTypes/Pyramid_5N';
|
|
24
|
+
import * as Prism_6N from './Shapes/ElementTypes/Prism_6N';
|
|
25
|
+
import * as Hexa_8N from './Shapes/ElementTypes/Hexa_8N';
|
|
24
26
|
import * as GeomPart from './Items/Files/Part';
|
|
25
27
|
import * as MeshPart from './Items/Files/Mesh';
|
|
26
28
|
import * as Thread from './Items/Files/Thread';
|
|
@@ -66,6 +68,8 @@ export declare namespace ModelData {
|
|
|
66
68
|
nodeVID_To_iNode: {};
|
|
67
69
|
};
|
|
68
70
|
const Shapes: {
|
|
71
|
+
Hexa_8N: typeof Hexa_8N.Hexa_8N;
|
|
72
|
+
Prism_6N: typeof Prism_6N.Prism_6N;
|
|
69
73
|
Pyramid_5N: typeof Pyramid_5N.Pyramid_5N;
|
|
70
74
|
Tetra_4N: typeof Tetra_4N.Tetra_4N;
|
|
71
75
|
Quad_4N: typeof Quad_4N.Quad_4N;
|
|
@@ -166,6 +170,8 @@ export declare namespace ModelData {
|
|
|
166
170
|
3: typeof Quad_4N.Quad_4N;
|
|
167
171
|
4: typeof Tetra_4N.Tetra_4N;
|
|
168
172
|
7: typeof Pyramid_5N.Pyramid_5N;
|
|
173
|
+
6: typeof Prism_6N.Prism_6N;
|
|
174
|
+
5: typeof Hexa_8N.Hexa_8N;
|
|
169
175
|
};
|
|
170
176
|
const dataTypesToObjects: {
|
|
171
177
|
shapeTypes: {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ModelData } from "../../Index";
|
|
2
|
+
import { TopoElement } from "../TopoElement";
|
|
3
|
+
export declare class Hexa_8N extends TopoElement {
|
|
4
|
+
static title: string;
|
|
5
|
+
constructor(shapeUID: number);
|
|
6
|
+
/**
|
|
7
|
+
* Az. msh filebol kigyujti az elemet alkoto node-ok xyz koordinatait es adott elemre specifikus logikaval
|
|
8
|
+
* osszekoti a node-okat tetraederekke. Ez a megjelenites miatt fontos, hiszen a three.js
|
|
9
|
+
* háromszogeket tud megjeleniteni
|
|
10
|
+
*/
|
|
11
|
+
static extractElement(nodeUIDs: number[], startIndex: number, elementIndexData: {
|
|
12
|
+
indices: {};
|
|
13
|
+
length: number;
|
|
14
|
+
maxIdx: number;
|
|
15
|
+
nodeUID_To_index: {};
|
|
16
|
+
}, nodesXYZ: number[], nodeUID_To_coords: {}): number[][];
|
|
17
|
+
drawIBorder(iElement: TopoElement, iBorders: InstanceType<typeof ModelData.Shapes.TopoBorder>[], borderIndices: number[], borderStartIndex: number, borderIndexData: {
|
|
18
|
+
indices: {};
|
|
19
|
+
length: number;
|
|
20
|
+
maxIdx: number;
|
|
21
|
+
nodeUID_To_index: {};
|
|
22
|
+
}, nodeUIDs: number[], nodes: {}, borderStartPosition: number[], borderEndPosition: number[], borderColor: number[], nodeUID_To_coords: {}, hash_To_iBorder: {}): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ModelData } from "../../Index";
|
|
2
|
+
import { TopoElement } from "../TopoElement";
|
|
3
|
+
export declare class Prism_6N extends TopoElement {
|
|
4
|
+
static title: string;
|
|
5
|
+
constructor(shapeUID: number);
|
|
6
|
+
/**
|
|
7
|
+
* Az. msh filebol kigyujti az elemet alkoto node-ok xyz koordinatait es adott elemre specifikus logikaval
|
|
8
|
+
* osszekoti a node-okat tetraederekke. Ez a megjelenites miatt fontos, hiszen a three.js
|
|
9
|
+
* háromszogeket tud megjeleniteni
|
|
10
|
+
*/
|
|
11
|
+
static extractElement(nodeUIDs: number[], startIndex: number, elementIndexData: {
|
|
12
|
+
indices: {};
|
|
13
|
+
length: number;
|
|
14
|
+
maxIdx: number;
|
|
15
|
+
nodeUID_To_index: {};
|
|
16
|
+
}, nodesXYZ: number[], nodeUID_To_coords: {}): number[][];
|
|
17
|
+
drawIBorder(iElement: TopoElement, iBorders: InstanceType<typeof ModelData.Shapes.TopoBorder>[], borderIndices: number[], borderStartIndex: number, borderIndexData: {
|
|
18
|
+
indices: {};
|
|
19
|
+
length: number;
|
|
20
|
+
maxIdx: number;
|
|
21
|
+
nodeUID_To_index: {};
|
|
22
|
+
}, nodeUIDs: number[], nodes: {}, borderStartPosition: number[], borderEndPosition: number[], borderColor: number[], nodeUID_To_coords: {}, hash_To_iBorder: {}): void;
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityButton } from "../UserInterface/UIComponents/MainMenu/BuildingBlocks/OperationPanelComponents/EntityButton";
|
|
2
2
|
import { ModelData } from "./ModelData/Index";
|
|
3
3
|
export declare class SelectionData {
|
|
4
4
|
selected: {};
|
|
@@ -8,7 +8,7 @@ export declare class SelectionData {
|
|
|
8
8
|
static activeItem: any;
|
|
9
9
|
static currentItem: any;
|
|
10
10
|
static defualtButton: any;
|
|
11
|
-
|
|
11
|
+
entityButton: EntityButton;
|
|
12
12
|
constructor();
|
|
13
13
|
static getInstance(): SelectionData;
|
|
14
14
|
/**
|
|
@@ -24,17 +24,25 @@ export declare class SelectionData {
|
|
|
24
24
|
*/
|
|
25
25
|
static setActiveItem(item: any): void;
|
|
26
26
|
static resetActiveItem(): void;
|
|
27
|
+
/**
|
|
28
|
+
* ActiveButton-tol fuggoen engedelyezi a kivalasztast a ModelViewContextMenu/SelectionControls-ban
|
|
29
|
+
*/
|
|
30
|
+
static enableEntitiesOnly(): void;
|
|
31
|
+
static enableEntitiesAll(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Regisztralja a kivalasztott entity type-ot es highlight-olja a ModelViewContextMenu/SelectionControls-ban
|
|
34
|
+
*/
|
|
35
|
+
static setEnabledEntity(type: ModelData.dataTypes): void;
|
|
27
36
|
/**
|
|
28
37
|
* Kijeloleskor az activeButton-hoz rendeljuk hozza a kijelolt entitasokat
|
|
29
|
-
* @param button
|
|
30
38
|
*/
|
|
31
|
-
static setActiveButton(
|
|
39
|
+
static setActiveButton(entityButton: EntityButton): void;
|
|
32
40
|
static resetActiveButton(): void;
|
|
33
41
|
setDefaultButton(): void;
|
|
34
42
|
/**
|
|
35
43
|
* Add active entityButton name as key.
|
|
36
44
|
*/
|
|
37
|
-
addEntitySlot(activeButton:
|
|
45
|
+
addEntitySlot(activeButton: EntityButton): void;
|
|
38
46
|
reset(): void;
|
|
39
47
|
getDataFromSelected(): {};
|
|
40
48
|
}
|
|
@@ -5,26 +5,15 @@ export declare class OperationUI implements IViewerHtmlElement {
|
|
|
5
5
|
private readonly element;
|
|
6
6
|
private summary;
|
|
7
7
|
private readonly variant;
|
|
8
|
-
private isOpen;
|
|
9
8
|
constructor(title: string, variant: Operation);
|
|
10
|
-
/**
|
|
11
|
-
* Document click event handler.
|
|
12
|
-
* This method checks if the <details> element is open and if the click event occurred outside of it.
|
|
13
|
-
* If so, it closes the <details> element and updates the 'isOpen' state.
|
|
14
|
-
*
|
|
15
|
-
* @param event - The mouse event triggered by clicking on the document.
|
|
16
|
-
*/
|
|
17
|
-
private onDocumentClick;
|
|
18
9
|
/**
|
|
19
10
|
* Toggle event handler for the <details> element.
|
|
20
|
-
* This method updates the 'isOpen' state based on the <details> element's state.
|
|
21
|
-
* If the <details> element is open, the 'isOpen' property is set to true.
|
|
22
|
-
* If the <details> element is closed, the 'isOpen' property is set to false.
|
|
23
11
|
*/
|
|
24
12
|
private onToggle;
|
|
25
13
|
/**
|
|
26
14
|
* Closes an operationVartiant
|
|
27
15
|
*/
|
|
16
|
+
private open;
|
|
28
17
|
private close;
|
|
29
18
|
/**
|
|
30
19
|
* Initialzes current state
|
|
@@ -4,6 +4,7 @@ export declare class ToolButton implements IViewerHtmlElement {
|
|
|
4
4
|
private readonly element;
|
|
5
5
|
private style;
|
|
6
6
|
constructor(title: string);
|
|
7
|
+
onClick(): void;
|
|
7
8
|
activate(): void;
|
|
8
9
|
deactivate(): void;
|
|
9
10
|
addEventCallback(eventType: ViewerEventType, callback: (e: any) => void): void;
|
|
@@ -14,6 +14,7 @@ export declare class ToolsetPanel implements IViewerHtmlElement, IMethodGroup {
|
|
|
14
14
|
private createdContainers;
|
|
15
15
|
private openedPanelWithButton;
|
|
16
16
|
constructor(title: string);
|
|
17
|
+
onToggle(): void;
|
|
17
18
|
private addSummary;
|
|
18
19
|
private addButtonContainer;
|
|
19
20
|
private buttonClickCallback;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import * as THREE from '../../../../../three/build/three.module';
|
|
1
2
|
import { IViewerHtmlElement } from "../MainMenuComponents/HtmlElementInterface";
|
|
2
3
|
import { Button } from "./Button";
|
|
3
4
|
import { ModelData } from '../../../../../DataStorage/ModelData/Index';
|
|
4
5
|
export type EntityDropDownMenuType = {
|
|
5
|
-
id?:
|
|
6
|
+
id?: number;
|
|
6
7
|
title?: string;
|
|
7
8
|
name?: string;
|
|
8
9
|
limit?: string | number;
|
|
9
|
-
|
|
10
|
+
selectionColor?: THREE.Vector3;
|
|
11
|
+
enabledEntity?: ModelData.dataTypes;
|
|
10
12
|
items?: Button[];
|
|
13
|
+
onClickHandler?: (entityButton: EntityButton) => void;
|
|
11
14
|
onChangeHandler?: (type: ModelData.dataTypes) => void;
|
|
12
15
|
};
|
|
13
16
|
export declare class EntityButton implements IViewerHtmlElement {
|
|
@@ -15,11 +18,12 @@ export declare class EntityButton implements IViewerHtmlElement {
|
|
|
15
18
|
private readonly onChangeHandler;
|
|
16
19
|
private readonly onClickHandler;
|
|
17
20
|
private readonly buttons;
|
|
18
|
-
|
|
21
|
+
readonly button: Button;
|
|
19
22
|
private readonly element;
|
|
20
23
|
private contentContainer;
|
|
21
|
-
private count;
|
|
22
24
|
private isOpened;
|
|
25
|
+
selectionColor: THREE.Vector3;
|
|
26
|
+
enabledEntity: ModelData.dataTypes;
|
|
23
27
|
private style;
|
|
24
28
|
constructor(config: EntityDropDownMenuType);
|
|
25
29
|
private initContentContainer;
|
|
@@ -31,7 +35,6 @@ export declare class EntityButton implements IViewerHtmlElement {
|
|
|
31
35
|
*
|
|
32
36
|
* @param event - The mouse event triggered by clicking on the document.
|
|
33
37
|
*/
|
|
34
|
-
private onDocumentClick;
|
|
35
38
|
private handleOnChange;
|
|
36
39
|
private open;
|
|
37
40
|
private close;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Operation } from "../../../../BuildingBlocks/MainMenuComponents/Operation";
|
|
2
2
|
type OnPreviewHandler = (entity: string) => void;
|
|
3
|
-
type OnAcceptHandler = (
|
|
3
|
+
type OnAcceptHandler = (data: {}, tolerance: number) => void;
|
|
4
4
|
type OnRejectHandler = (entity: string) => void;
|
|
5
5
|
export declare class EditingToolsByElements extends Operation {
|
|
6
|
+
private readonly OnPreviewHandler;
|
|
6
7
|
private readonly onAcceptHandler;
|
|
7
8
|
private readonly onRejectHandler;
|
|
8
9
|
private readonly buttonsContainer;
|
|
@@ -33,5 +34,9 @@ export declare class EditingToolsByElements extends Operation {
|
|
|
33
34
|
* Resets the gui elements (fields, entity buttons, dropdown buttons ... to default)
|
|
34
35
|
*/
|
|
35
36
|
reset(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Extracts the selected entities from dict 'selected' and starts the attached task
|
|
39
|
+
*/
|
|
40
|
+
private onAccept;
|
|
36
41
|
}
|
|
37
42
|
export {};
|
|
@@ -3,6 +3,7 @@ type OnPreviewHandler = (entity: string) => void;
|
|
|
3
3
|
type OnAcceptHandler = (data: {}) => void;
|
|
4
4
|
type OnRejectHandler = (entity: string) => void;
|
|
5
5
|
export declare class EditingToolsByNodes extends Operation {
|
|
6
|
+
private readonly OnPreviewHandler;
|
|
6
7
|
private readonly onAcceptHandler;
|
|
7
8
|
private readonly onRejectHandler;
|
|
8
9
|
private readonly buttonsContainer;
|
|
@@ -10,7 +11,6 @@ export declare class EditingToolsByNodes extends Operation {
|
|
|
10
11
|
private availableEntities_2;
|
|
11
12
|
private entityDropDownMenu_1;
|
|
12
13
|
private entityDropDownMenu_2;
|
|
13
|
-
private entity;
|
|
14
14
|
constructor(onPreview?: OnPreviewHandler, onAccept?: OnAcceptHandler, onReject?: OnRejectHandler);
|
|
15
15
|
private setEnabledEntity;
|
|
16
16
|
private setActiveButton;
|