fcs-core-viewer 0.14.0 → 0.14.2
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/CloudViewer/Settings/StyleSettings.d.ts +9 -0
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/Operations/Custom/CustomOperation.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/UserInterfaces/IMethod.d.ts +2 -2
- package/fcs-core-viewer@types/Workspace/StyleHandler.d.ts +0 -4
- package/fcs-core-viewer@types/Workspace/ViewerWrapper.d.ts +3 -1
- package/package.json +1 -1
|
@@ -53,6 +53,10 @@ export declare namespace StyleSettings {
|
|
|
53
53
|
* Widget control. ToDo: Separate into functional settings.
|
|
54
54
|
*/
|
|
55
55
|
presetStyle: PresetStyles;
|
|
56
|
+
/**
|
|
57
|
+
* If set to True, T labels will be visible.
|
|
58
|
+
*/
|
|
59
|
+
showTLabels: boolean;
|
|
56
60
|
/**
|
|
57
61
|
* Sets the background top color of the canvas.
|
|
58
62
|
* @param {Femsolve.Color} backgroundTopColor - The color of the upper segment of the screen.
|
|
@@ -74,5 +78,10 @@ export declare namespace StyleSettings {
|
|
|
74
78
|
* @param {PresetStyles} style Preset style for initialisation
|
|
75
79
|
*/
|
|
76
80
|
setPresetStyle(style: PresetStyles): void;
|
|
81
|
+
/**
|
|
82
|
+
* Controls if triade labels should be visible.
|
|
83
|
+
* @param show If set to True, the XYZ labels are shown
|
|
84
|
+
*/
|
|
85
|
+
showTriadeLabels(show: boolean): void;
|
|
77
86
|
}
|
|
78
87
|
}
|
|
@@ -7,8 +7,8 @@ export declare class CustomOperation extends Operation implements IMethod {
|
|
|
7
7
|
private uiComponents;
|
|
8
8
|
constructor(id: string);
|
|
9
9
|
addContainer(styles: Partial<CSSStyleDeclaration>): HTMLDivElement;
|
|
10
|
-
addParagraph(text: string, styles: Partial<CSSStyleDeclaration
|
|
11
|
-
addButton(callback: () => void, title: string, container?: HTMLElement, buttonStyles?: Partial<CSSStyleDeclaration
|
|
10
|
+
addParagraph(text: string, styles: Partial<CSSStyleDeclaration>, container?: HTMLElement): void;
|
|
11
|
+
addButton(callback: () => void, title: string, container?: HTMLElement, buttonStyles?: Partial<CSSStyleDeclaration>, className?: string): void;
|
|
12
12
|
addButton_FileBrowser(labelConfig?: LabelConfig, onChangeHandler?: (file: FileList) => void): void;
|
|
13
13
|
addField(inputConfig?: InputConfig, labelConfig?: LabelConfig, container?: HTMLElement): void;
|
|
14
14
|
addSelect<T>(options?: {
|
package/fcs-core-viewer@types/UserInterface/UIComponents/MainMenu/UserInterfaces/IMethod.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { LabelConfig } from "../BuildingBlocks/OperationPanelComponents/Label";
|
|
|
3
3
|
import { ModelData } from "../../../../DataStorage/ModelData/Index";
|
|
4
4
|
export interface IMethod {
|
|
5
5
|
addButton_FileBrowser: (labelConfig?: LabelConfig, onChangeHandler?: (files: FileList) => void) => void;
|
|
6
|
-
addButton: (callback: () => void, title: string, container?: HTMLElement, buttonStyles?: Partial<CSSStyleDeclaration
|
|
6
|
+
addButton: (callback: () => void, title: string, container?: HTMLElement, buttonStyles?: Partial<CSSStyleDeclaration>, className?: string) => void;
|
|
7
7
|
addField: (inputConfig?: InputConfig, labelConfig?: LabelConfig, container?: HTMLElement) => void;
|
|
8
8
|
addSelect: <T>(options?: {
|
|
9
9
|
label: string;
|
|
@@ -11,7 +11,7 @@ export interface IMethod {
|
|
|
11
11
|
}[], onChangeHandler?: (option: T) => void, label?: string) => void;
|
|
12
12
|
addEntityButton: (config: EntityDropDownMenu, availableEntities: ModelData.dataTypes[]) => void;
|
|
13
13
|
addContainer: (styles: Partial<CSSStyleDeclaration>) => HTMLElement;
|
|
14
|
-
addParagraph: (text: string, styles?: Partial<CSSStyleDeclaration
|
|
14
|
+
addParagraph: (text: string, styles?: Partial<CSSStyleDeclaration>, container?: HTMLElement) => void;
|
|
15
15
|
}
|
|
16
16
|
type EntityDropDownMenu = {
|
|
17
17
|
title?: string;
|
|
@@ -32,11 +32,13 @@ import { UIDGenerator } from '../Common/UIDGenerator/UIDGenerator';
|
|
|
32
32
|
import { MaterialData } from '../DataStorage/MaterialData';
|
|
33
33
|
import { ModelData } from '../DataStorage/ModelData/Index';
|
|
34
34
|
import { SelectionData } from '../DataStorage/SelectionData';
|
|
35
|
+
import { StyleSettings } from '../CloudViewer/Settings/StyleSettings';
|
|
35
36
|
/**
|
|
36
37
|
* Main wrapper for 3D viewer.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ViewerWrapper {
|
|
39
40
|
licenseToken: string;
|
|
41
|
+
viewerStyleSettings: StyleSettings.ViewerStyleSettings;
|
|
40
42
|
ThreeJsExtensions: ThreeJsExtensions;
|
|
41
43
|
MAIN_CONTAINER: HTMLDivElement;
|
|
42
44
|
myCanvas: HTMLCanvasElement;
|
|
@@ -154,7 +156,7 @@ export declare class ViewerWrapper {
|
|
|
154
156
|
* Constructor.
|
|
155
157
|
* @param htmlElement The canvas element that will host the viewer.
|
|
156
158
|
*/
|
|
157
|
-
constructor(licenseToken: string, htmlCanvasElement: HTMLCanvasElement, presetStyleIndex: number);
|
|
159
|
+
constructor(licenseToken: string, htmlCanvasElement: HTMLCanvasElement, presetStyleIndex: number, viewerStyleSettings?: StyleSettings.ViewerStyleSettings);
|
|
158
160
|
/**
|
|
159
161
|
* Initializes all required ThreeJS dependent elements.
|
|
160
162
|
*/
|