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.
@@ -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>): void;
11
- addButton(callback: () => void, title: string, container?: HTMLElement, buttonStyles?: Partial<CSSStyleDeclaration>): void;
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?: {
@@ -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>) => void;
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>) => void;
14
+ addParagraph: (text: string, styles?: Partial<CSSStyleDeclaration>, container?: HTMLElement) => void;
15
15
  }
16
16
  type EntityDropDownMenu = {
17
17
  title?: string;
@@ -142,8 +142,4 @@ export declare class StyleHandler {
142
142
  * the bottom left corner.
143
143
  */
144
144
  private _pinTriadToBottomLeftCorner;
145
- /**
146
- * Contains the registration of all event listeners.
147
- */
148
- private _registerEventListeners;
149
145
  }
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcs-core-viewer",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "3D Viewer in the Cloud",
5
5
  "author": {
6
6
  "name": "Femsolve Kft."