fcs-core-viewer 0.2.2 → 0.2.4

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.
Files changed (159) hide show
  1. package/fcs-core-viewer@types/Addins/CustomScript.d.ts +11 -11
  2. package/fcs-core-viewer@types/Addins/Index.d.ts +1 -1
  3. package/fcs-core-viewer@types/Api.d.ts +10 -10
  4. package/fcs-core-viewer@types/BackendEvents/BackendEvents.d.ts +218 -218
  5. package/fcs-core-viewer@types/BackendEvents/TaskExecutionResponse.d.ts +22 -22
  6. package/fcs-core-viewer@types/CloudViewer/CoreInterfaces.d.ts +12 -12
  7. package/fcs-core-viewer@types/CloudViewer/FcsViewer.d.ts +379 -379
  8. package/fcs-core-viewer@types/CloudViewer/Index.d.ts +1 -1
  9. package/fcs-core-viewer@types/CloudViewer/Settings/CameraSettings.d.ts +44 -44
  10. package/fcs-core-viewer@types/CloudViewer/Settings/Index.d.ts +11 -11
  11. package/fcs-core-viewer@types/CloudViewer/Settings/SelectionSettings.d.ts +78 -78
  12. package/fcs-core-viewer@types/CloudViewer/Settings/StyleSettings.d.ts +71 -71
  13. package/fcs-core-viewer@types/CloudViewer/Settings/VisibilitySettings.d.ts +19 -19
  14. package/fcs-core-viewer@types/CloudViewer/TypesFcs.d.ts +12 -12
  15. package/fcs-core-viewer@types/Common/CommsChannels/BackendClient.d.ts +47 -47
  16. package/fcs-core-viewer@types/Common/CommsChannels/Socket.d.ts +34 -34
  17. package/fcs-core-viewer@types/Common/Diagnostics/Exceptions.d.ts +26 -26
  18. package/fcs-core-viewer@types/Common/Diagnostics/StatusDialog.d.ts +72 -72
  19. package/fcs-core-viewer@types/Common/Diagnostics/WebLogger.d.ts +21 -21
  20. package/fcs-core-viewer@types/Common/Index.d.ts +6 -6
  21. package/fcs-core-viewer@types/Common/LocalStorage/localStorage.d.ts +2 -2
  22. package/fcs-core-viewer@types/Common/UIDGenerator/UIDGenerator.d.ts +15 -15
  23. package/fcs-core-viewer@types/Foundations/Index.d.ts +5 -5
  24. package/fcs-core-viewer@types/Foundations/VectorGeometry.d.ts +30 -30
  25. package/fcs-core-viewer@types/FrontendEvents/MenuEvents.d.ts +132 -132
  26. package/fcs-core-viewer@types/FrontendEvents/OptionsEvents.d.ts +21 -21
  27. package/fcs-core-viewer@types/FrontendEvents/SidebarEvents.d.ts +23 -23
  28. package/fcs-core-viewer@types/FrontendEvents/TopbarEvents.d.ts +124 -124
  29. package/fcs-core-viewer@types/FrontendEvents/TreeEvents.d.ts +47 -47
  30. package/fcs-core-viewer@types/Loader/LoadEdge.d.ts +47 -47
  31. package/fcs-core-viewer@types/Loader/LoadSTEP.d.ts +68 -68
  32. package/fcs-core-viewer@types/Loader/LoadVertex.d.ts +41 -41
  33. package/fcs-core-viewer@types/Loader/Loader.d.ts +67 -67
  34. package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +234 -234
  35. package/fcs-core-viewer@types/Model/ActiveCloudDocument.d.ts +84 -84
  36. package/fcs-core-viewer@types/Model/Index.d.ts +9 -9
  37. package/fcs-core-viewer@types/Model/MeshWrapper.d.ts +87 -87
  38. package/fcs-core-viewer@types/Model/SceneWrapper.d.ts +171 -171
  39. package/fcs-core-viewer@types/SelectionTools/SelectEntities/SelectItem.d.ts +38 -38
  40. package/fcs-core-viewer@types/SelectionTools/Selection.d.ts +83 -83
  41. package/fcs-core-viewer@types/SelectionTools/SelectionEdge.d.ts +25 -25
  42. package/fcs-core-viewer@types/SelectionTools/SelectionEdgeByID.d.ts +29 -29
  43. package/fcs-core-viewer@types/SelectionTools/SelectionFace.d.ts +42 -42
  44. package/fcs-core-viewer@types/SelectionTools/SelectionFaceByID.d.ts +26 -26
  45. package/fcs-core-viewer@types/SelectionTools/SelectionUtils.d.ts +71 -71
  46. package/fcs-core-viewer@types/SelectionTools/SelectionValidation.d.ts +63 -63
  47. package/fcs-core-viewer@types/SelectionTools/SelectionVertex.d.ts +26 -26
  48. package/fcs-core-viewer@types/SelectionTools/SelectionVertexByID.d.ts +26 -26
  49. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectActive.d.ts +12 -12
  50. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectAll.d.ts +23 -23
  51. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectEdge.d.ts +7 -7
  52. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectFace.d.ts +7 -7
  53. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectItem.d.ts +14 -14
  54. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectVertex.d.ts +8 -8
  55. package/fcs-core-viewer@types/SelectionTools/Unselection.d.ts +81 -81
  56. package/fcs-core-viewer@types/StyleHandler/TreeStyle.d.ts +23 -23
  57. package/fcs-core-viewer@types/TaskHandler/Context/Context.d.ts +80 -80
  58. package/fcs-core-viewer@types/TaskHandler/Merge/Merge.d.ts +9 -9
  59. package/fcs-core-viewer@types/TaskHandler/Model/RequestHandler/CollaborationTool_req.d.ts +15 -15
  60. package/fcs-core-viewer@types/TaskHandler/Model/ResponseHandler/CollaborationTool_res.d.ts +11 -11
  61. package/fcs-core-viewer@types/TaskHandler/Options/Options.d.ts +31 -31
  62. package/fcs-core-viewer@types/TaskHandler/Output/Output.d.ts +14 -14
  63. package/fcs-core-viewer@types/TaskHandler/TaskHandler.d.ts +325 -325
  64. package/fcs-core-viewer@types/TaskHandler/TaskUtils.d.ts +54 -54
  65. package/fcs-core-viewer@types/TaskHandler/Topbar/Delete/Delete.d.ts +89 -89
  66. package/fcs-core-viewer@types/TaskHandler/Topbar/Display/Display.d.ts +31 -31
  67. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Find.d.ts +86 -86
  68. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Measurement.d.ts +26 -26
  69. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Transformation.d.ts +35 -35
  70. package/fcs-core-viewer@types/TaskHandler/Topbar/View/CutView.d.ts +85 -85
  71. package/fcs-core-viewer@types/TaskHandler/Topbar/View/ExplodedView.d.ts +38 -38
  72. package/fcs-core-viewer@types/TaskHandler/Topbar/View/GeomVisualisation.d.ts +46 -46
  73. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Rotate.d.ts +54 -54
  74. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Screenshot.d.ts +41 -41
  75. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Views.d.ts +22 -22
  76. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddContainer.d.ts +16 -16
  77. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFile.d.ts +18 -18
  78. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFolder.d.ts +16 -16
  79. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/ITaskDefinition.d.ts +5 -5
  80. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/Interactions.d.ts +47 -47
  81. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/RemoveFile.d.ts +6 -6
  82. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/AddTreeItem.d.ts +14 -14
  83. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/Interactions.d.ts +3 -3
  84. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/RemoveTreeItem.d.ts +10 -10
  85. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler.d.ts +5 -5
  86. package/fcs-core-viewer@types/TaskHandler/Tree/Tree.d.ts +236 -236
  87. package/fcs-core-viewer@types/Tree/TreeStructure/TreeStructure.d.ts +68 -68
  88. package/fcs-core-viewer@types/Tree/TreeView/TreeCore.d.ts +175 -175
  89. package/fcs-core-viewer@types/Tree/TreeView/TreeCoreUtils.d.ts +82 -82
  90. package/fcs-core-viewer@types/UserInterface/EventListeners/EventListeners.d.ts +32 -32
  91. package/fcs-core-viewer@types/UserInterface/EventListeners/ModelEvents.d.ts +13 -13
  92. package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +15 -15
  93. package/fcs-core-viewer@types/UserInterface/UIComponents/Model.d.ts +33 -33
  94. package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView.d.ts +52 -52
  95. package/fcs-core-viewer@types/UserInterface/UIComponents/UIComponents.d.ts +32 -32
  96. package/fcs-core-viewer@types/UserInterface/UIComponents.d.ts +44 -44
  97. package/fcs-core-viewer@types/UserInterface/UIDefinition.d.ts +37 -37
  98. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiBaseComponent.d.ts +6 -6
  99. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiFunctionGroup.d.ts +14 -14
  100. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiInputCollector.d.ts +10 -10
  101. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiPushButton.d.ts +8 -8
  102. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiSlider.d.ts +3 -3
  103. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiStatusBar.d.ts +27 -27
  104. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiTreeView.d.ts +3 -3
  105. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAE.d.ts +48 -48
  106. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyActions.d.ts +10 -10
  107. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyAssets.d.ts +10 -10
  108. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +3 -3
  109. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +6 -6
  110. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiContextMenu.d.ts +3 -3
  111. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockPanel.d.ts +7 -7
  112. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockedQuickMenu.d.ts +10 -10
  113. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDropButton.d.ts +5 -5
  114. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiHowerPanel.d.ts +3 -3
  115. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiMainComponent.d.ts +2 -2
  116. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiQuickOptionsMenu.d.ts +12 -12
  117. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiButtonStyle.d.ts +22 -22
  118. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiPositions.d.ts +20 -20
  119. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiSizing.d.ts +4 -4
  120. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiBinder.d.ts +6 -6
  121. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiDefinition.d.ts +8 -8
  122. package/fcs-core-viewer@types/ViewerEntities/AbstractEntities.d.ts +76 -76
  123. package/fcs-core-viewer@types/ViewerEntities/ContainerEntities.d.ts +27 -27
  124. package/fcs-core-viewer@types/ViewerEntities/Index.d.ts +11 -11
  125. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/AnnotationEntities.d.ts +79 -79
  126. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/CollaborationEntities.d.ts +125 -125
  127. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/GeometricEntities.d.ts +20 -20
  128. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/Index.d.ts +7 -7
  129. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/TemporaryEntities.d.ts +15 -15
  130. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/VisibleBaseEntities.d.ts +38 -38
  131. package/fcs-core-viewer@types/ViewerSetup.d.ts +5 -5
  132. package/fcs-core-viewer@types/Workspace/StyleHandler.d.ts +133 -133
  133. package/fcs-core-viewer@types/Workspace/ThreeJsExtensions.d.ts +47 -47
  134. package/fcs-core-viewer@types/Workspace/ViewerWrapper.d.ts +215 -215
  135. package/package.json +1 -1
  136. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiBaseComponent.d.ts +0 -6
  137. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiFunctionGroup.d.ts +0 -14
  138. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiInputCollector.d.ts +0 -10
  139. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiPushButton.d.ts +0 -8
  140. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiSlider.d.ts +0 -3
  141. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiStatusBar.d.ts +0 -27
  142. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiTreeView.d.ts +0 -3
  143. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAE.d.ts +0 -48
  144. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyActions.d.ts +0 -10
  145. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyAssets.d.ts +0 -10
  146. package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +0 -3
  147. package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +0 -6
  148. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiContextMenu.d.ts +0 -3
  149. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockPanel.d.ts +0 -7
  150. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockedQuickMenu.d.ts +0 -10
  151. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDropButton.d.ts +0 -5
  152. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiHowerPanel.d.ts +0 -3
  153. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiMainComponent.d.ts +0 -2
  154. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiQuickOptionsMenu.d.ts +0 -12
  155. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiButtonStyle.d.ts +0 -22
  156. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiPositions.d.ts +0 -20
  157. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiSizing.d.ts +0 -4
  158. package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiBinder.d.ts +0 -6
  159. package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiDefinition.d.ts +0 -8
@@ -1,79 +1,79 @@
1
- import { VectorGeometry } from "../../Foundations/VectorGeometry";
2
- export type THREE_CSS3DObject = any;
3
- export type THREE_Vector3 = any;
4
- export declare namespace AnnotationEntities {
5
- /**
6
- * Types of annotation we distinguish.
7
- */
8
- enum AnnotationType {
9
- TEXT = 0,
10
- LINEAR_DIMENSION = 1,
11
- ANGULAR_DIMENSION = 2,
12
- IMAGE = 3
13
- }
14
- /**
15
- * All annotation type elements.
16
- */
17
- class AnnotationElement {
18
- vPosition: THREE_Vector3;
19
- vNormal: THREE_Vector3;
20
- vDirection: THREE_Vector3;
21
- annotationId: BigInt;
22
- isVisible: boolean;
23
- /**
24
- * The ThreeJS entity that is operated on.
25
- */
26
- protected _threeJsObject: THREE_CSS3DObject;
27
- constructor(vPosition?: THREE_Vector3, vNormal?: THREE_Vector3, vDirection?: THREE_Vector3);
28
- getRenderableObject(): THREE_CSS3DObject;
29
- modifyStartPosition(newInsertionPoint: THREE_Vector3): void;
30
- modifyDirection(newTextDirection: THREE_Vector3): void;
31
- /**
32
- *
33
- * @param toggle
34
- */
35
- toggleAnnotation(toggle?: boolean): void;
36
- /**
37
- *
38
- */
39
- private _applyVisibility;
40
- }
41
- /**
42
- * Text based annotations.
43
- */
44
- class TextAnnotation3D extends AnnotationElement {
45
- id: string;
46
- text: string;
47
- fontSize: number;
48
- /**
49
- * Constructor contains all required arguments to place the text.
50
- * @param id
51
- * @param text
52
- * @param vPosition - az annotation szoveg kozeppontja
53
- * @param vNormal - a szoveg sikjara meroleges vektor
54
- * @param vDirection - a szoveg iranyat megado vektor
55
- */
56
- constructor(id: string, text: string, vPosition: VectorGeometry.Vector3D, vNormal: VectorGeometry.Vector3D, vDirection: VectorGeometry.Vector3D);
57
- /**
58
- * Adjusts the insertion point of the text object.
59
- * @param vPosition
60
- */
61
- setPosition(vPosition: VectorGeometry.Vector3D): void;
62
- /**
63
- * Adjusts the text to be shown.
64
- * @param text
65
- */
66
- setText(text: string): void;
67
- /**
68
- * Sets the font size.
69
- * @param fontSize Defaults to 12.
70
- */
71
- setFontSize(fontSize?: number): void;
72
- /**
73
- * Private method that creates the annotation object.
74
- * @param text
75
- * @param vPosition
76
- */
77
- private _createAnnotationObject;
78
- }
79
- }
1
+ import { VectorGeometry } from "../../Foundations/VectorGeometry";
2
+ export type THREE_CSS3DObject = any;
3
+ export type THREE_Vector3 = any;
4
+ export declare namespace AnnotationEntities {
5
+ /**
6
+ * Types of annotation we distinguish.
7
+ */
8
+ enum AnnotationType {
9
+ TEXT = 0,
10
+ LINEAR_DIMENSION = 1,
11
+ ANGULAR_DIMENSION = 2,
12
+ IMAGE = 3
13
+ }
14
+ /**
15
+ * All annotation type elements.
16
+ */
17
+ class AnnotationElement {
18
+ vPosition: THREE_Vector3;
19
+ vNormal: THREE_Vector3;
20
+ vDirection: THREE_Vector3;
21
+ annotationId: BigInt;
22
+ isVisible: boolean;
23
+ /**
24
+ * The ThreeJS entity that is operated on.
25
+ */
26
+ protected _threeJsObject: THREE_CSS3DObject;
27
+ constructor(vPosition?: THREE_Vector3, vNormal?: THREE_Vector3, vDirection?: THREE_Vector3);
28
+ getRenderableObject(): THREE_CSS3DObject;
29
+ modifyStartPosition(newInsertionPoint: THREE_Vector3): void;
30
+ modifyDirection(newTextDirection: THREE_Vector3): void;
31
+ /**
32
+ *
33
+ * @param toggle
34
+ */
35
+ toggleAnnotation(toggle?: boolean): void;
36
+ /**
37
+ *
38
+ */
39
+ private _applyVisibility;
40
+ }
41
+ /**
42
+ * Text based annotations.
43
+ */
44
+ class TextAnnotation3D extends AnnotationElement {
45
+ id: string;
46
+ text: string;
47
+ fontSize: number;
48
+ /**
49
+ * Constructor contains all required arguments to place the text.
50
+ * @param id
51
+ * @param text
52
+ * @param vPosition - az annotation szoveg kozeppontja
53
+ * @param vNormal - a szoveg sikjara meroleges vektor
54
+ * @param vDirection - a szoveg iranyat megado vektor
55
+ */
56
+ constructor(id: string, text: string, vPosition: VectorGeometry.Vector3D, vNormal: VectorGeometry.Vector3D, vDirection: VectorGeometry.Vector3D);
57
+ /**
58
+ * Adjusts the insertion point of the text object.
59
+ * @param vPosition
60
+ */
61
+ setPosition(vPosition: VectorGeometry.Vector3D): void;
62
+ /**
63
+ * Adjusts the text to be shown.
64
+ * @param text
65
+ */
66
+ setText(text: string): void;
67
+ /**
68
+ * Sets the font size.
69
+ * @param fontSize Defaults to 12.
70
+ */
71
+ setFontSize(fontSize?: number): void;
72
+ /**
73
+ * Private method that creates the annotation object.
74
+ * @param text
75
+ * @param vPosition
76
+ */
77
+ private _createAnnotationObject;
78
+ }
79
+ }
@@ -1,125 +1,125 @@
1
- import { AbstractEntities } from "../AbstractEntities";
2
- import { VisibleEntity } from "./VisibleBaseEntities";
3
- export declare namespace CollaborationEntities {
4
- /**
5
- * Push Pin's have inner body fill colors and rim colors.
6
- * Furthermore, we can define a highlight state styling for the
7
- * pushpin when we click into it, for example.
8
- */
9
- class PushPinStyleSettings {
10
- readonly TitleColor: AbstractEntities.Color;
11
- readonly BodyColor: AbstractEntities.Color;
12
- readonly RimColor: AbstractEntities.Color;
13
- readonly HighlightTitleColor: AbstractEntities.Color;
14
- readonly HighlightBodyColor: AbstractEntities.Color;
15
- readonly HighlightRimColor: AbstractEntities.Color;
16
- constructor(titleColor?: AbstractEntities.Color, bodyColor?: AbstractEntities.Color, rimColor?: AbstractEntities.Color, highlightTitleColor?: AbstractEntities.Color, highlightBodyColor?: AbstractEntities.Color, highlightRimColor?: AbstractEntities.Color);
17
- }
18
- /**
19
- * 2D circular object placed in the 3D space to pinpoint model informations.
20
- */
21
- class PushPin extends VisibleEntity {
22
- /**
23
- * Defines the coloring of the pushpin.
24
- */
25
- protected _pushPinStyle: PushPinStyleSettings;
26
- /**
27
- * Title text that is shown in the pushpin.
28
- */
29
- title: string;
30
- /**
31
- * Where is the pushpin inserted?
32
- */
33
- protected X: number;
34
- protected Y: number;
35
- protected Z: number;
36
- /**
37
- * Is set to true when we add the PushPin to the viewer's scene.
38
- */
39
- private _wasAddedToScene;
40
- /**
41
- * STATIC PushPin tracker containers/methods
42
- */
43
- private static _onPushPinCreated;
44
- static setOnPushPinCreated(handler: (pushPin: PushPin) => void): void;
45
- private static _storedIds;
46
- static fireOnPushPinCreatedEvent(pushPin: PushPin): void;
47
- /**
48
- * Constructor will set the color and define a unique identifier for the push pin.
49
- */
50
- constructor(x: number, y: number, z: number, pushPinStyle?: PushPinStyleSettings, fireOnCreationEvent?: boolean);
51
- /**
52
- * Moves the pushpin to predefined location
53
- * @param x X global coordinate
54
- * @param y Y global coordinate
55
- * @param z Z global coordinate
56
- */
57
- moveTo(x: number, y: number, z: number): void;
58
- /**
59
- * Shows push pin (toggles on visibility).
60
- */
61
- show(): void;
62
- /**
63
- * Hides push pin (toggles off visibility).
64
- */
65
- hide(): void;
66
- /**
67
- * Overrides the style of the pushpin.
68
- * ToDo: This may not work as expected, more update mechanics will be required.
69
- */
70
- updateStyle(pushPinStyle: PushPinStyleSettings): void;
71
- /**
72
- * Method that will highlight the pushpin, by simply changing
73
- * The highlight mechanism is also triggered if the user selects it.
74
- */
75
- highlight(): void;
76
- /**
77
- * Resets the color back to its original state.
78
- */
79
- unhighlight(): void;
80
- /**
81
- * Attaches an on click event
82
- * @param callbackFn Method to be called when we click on the html element
83
- */
84
- addOnClickEvent(callbackFn: (event: MouseEvent) => void): void;
85
- /**
86
- * Attaches an on double click event
87
- * @param callbackFn Method to be called when we double-click on the html element
88
- */
89
- addOnDoubleClickEvent(callbackFn: (event: MouseEvent) => void): void;
90
- /**
91
- * Sets the title for the push pin element.
92
- * @param {string} title - The new title to set for the push pin.
93
- */
94
- setTitle(title: string): void;
95
- /**
96
- * Implementation of constructing the HTML element of the push pin.
97
- */
98
- protected _constructHtmlElement(): void;
99
- /**
100
- * Calculates the required font size so that it fits nicely inside the
101
- * created pushpin entity.
102
- * @param title The title we want to set inside the push-pin.
103
- */
104
- protected _calculateFontSizeForTitle(title: string): string;
105
- }
106
- class CameraPushPin extends PushPin {
107
- /**
108
- * Constructor.
109
- * @param x X-coordinate of push pin
110
- * @param y Y-coordinate of push pin
111
- * @param z Z-coordinate of push pin
112
- * @param pushPinStyle Coloring of the camera push pin
113
- * @param fireOnCreationEvent Do we want to fire an assigned 'on created' event if it exists?
114
- */
115
- constructor(x: number, y: number, z: number, pushPinStyle?: PushPinStyleSettings, fireOnCreationEvent?: boolean);
116
- /**
117
- * Animates the pushpin to move to a predefined global location
118
- * @param x X global coordinate
119
- * @param y Y global coordinate
120
- * @param z Z global coordinate
121
- * @param duration Duration of the travel in milliseconds
122
- */
123
- travelTo(x: number, y: number, z: number, duration?: number): void;
124
- }
125
- }
1
+ import { AbstractEntities } from "../AbstractEntities";
2
+ import { VisibleEntity } from "./VisibleBaseEntities";
3
+ export declare namespace CollaborationEntities {
4
+ /**
5
+ * Push Pin's have inner body fill colors and rim colors.
6
+ * Furthermore, we can define a highlight state styling for the
7
+ * pushpin when we click into it, for example.
8
+ */
9
+ class PushPinStyleSettings {
10
+ readonly TitleColor: AbstractEntities.Color;
11
+ readonly BodyColor: AbstractEntities.Color;
12
+ readonly RimColor: AbstractEntities.Color;
13
+ readonly HighlightTitleColor: AbstractEntities.Color;
14
+ readonly HighlightBodyColor: AbstractEntities.Color;
15
+ readonly HighlightRimColor: AbstractEntities.Color;
16
+ constructor(titleColor?: AbstractEntities.Color, bodyColor?: AbstractEntities.Color, rimColor?: AbstractEntities.Color, highlightTitleColor?: AbstractEntities.Color, highlightBodyColor?: AbstractEntities.Color, highlightRimColor?: AbstractEntities.Color);
17
+ }
18
+ /**
19
+ * 2D circular object placed in the 3D space to pinpoint model informations.
20
+ */
21
+ class PushPin extends VisibleEntity {
22
+ /**
23
+ * Defines the coloring of the pushpin.
24
+ */
25
+ protected _pushPinStyle: PushPinStyleSettings;
26
+ /**
27
+ * Title text that is shown in the pushpin.
28
+ */
29
+ title: string;
30
+ /**
31
+ * Where is the pushpin inserted?
32
+ */
33
+ protected X: number;
34
+ protected Y: number;
35
+ protected Z: number;
36
+ /**
37
+ * Is set to true when we add the PushPin to the viewer's scene.
38
+ */
39
+ private _wasAddedToScene;
40
+ /**
41
+ * STATIC PushPin tracker containers/methods
42
+ */
43
+ private static _onPushPinCreated;
44
+ static setOnPushPinCreated(handler: (pushPin: PushPin) => void): void;
45
+ private static _storedIds;
46
+ static fireOnPushPinCreatedEvent(pushPin: PushPin): void;
47
+ /**
48
+ * Constructor will set the color and define a unique identifier for the push pin.
49
+ */
50
+ constructor(x: number, y: number, z: number, pushPinStyle?: PushPinStyleSettings, fireOnCreationEvent?: boolean);
51
+ /**
52
+ * Moves the pushpin to predefined location
53
+ * @param x X global coordinate
54
+ * @param y Y global coordinate
55
+ * @param z Z global coordinate
56
+ */
57
+ moveTo(x: number, y: number, z: number): void;
58
+ /**
59
+ * Shows push pin (toggles on visibility).
60
+ */
61
+ show(): void;
62
+ /**
63
+ * Hides push pin (toggles off visibility).
64
+ */
65
+ hide(): void;
66
+ /**
67
+ * Overrides the style of the pushpin.
68
+ * ToDo: This may not work as expected, more update mechanics will be required.
69
+ */
70
+ updateStyle(pushPinStyle: PushPinStyleSettings): void;
71
+ /**
72
+ * Method that will highlight the pushpin, by simply changing
73
+ * The highlight mechanism is also triggered if the user selects it.
74
+ */
75
+ highlight(): void;
76
+ /**
77
+ * Resets the color back to its original state.
78
+ */
79
+ unhighlight(): void;
80
+ /**
81
+ * Attaches an on click event
82
+ * @param callbackFn Method to be called when we click on the html element
83
+ */
84
+ addOnClickEvent(callbackFn: (event: MouseEvent) => void): void;
85
+ /**
86
+ * Attaches an on double click event
87
+ * @param callbackFn Method to be called when we double-click on the html element
88
+ */
89
+ addOnDoubleClickEvent(callbackFn: (event: MouseEvent) => void): void;
90
+ /**
91
+ * Sets the title for the push pin element.
92
+ * @param {string} title - The new title to set for the push pin.
93
+ */
94
+ setTitle(title: string): void;
95
+ /**
96
+ * Implementation of constructing the HTML element of the push pin.
97
+ */
98
+ protected _constructHtmlElement(): void;
99
+ /**
100
+ * Calculates the required font size so that it fits nicely inside the
101
+ * created pushpin entity.
102
+ * @param title The title we want to set inside the push-pin.
103
+ */
104
+ protected _calculateFontSizeForTitle(title: string): string;
105
+ }
106
+ class CameraPushPin extends PushPin {
107
+ /**
108
+ * Constructor.
109
+ * @param x X-coordinate of push pin
110
+ * @param y Y-coordinate of push pin
111
+ * @param z Z-coordinate of push pin
112
+ * @param pushPinStyle Coloring of the camera push pin
113
+ * @param fireOnCreationEvent Do we want to fire an assigned 'on created' event if it exists?
114
+ */
115
+ constructor(x: number, y: number, z: number, pushPinStyle?: PushPinStyleSettings, fireOnCreationEvent?: boolean);
116
+ /**
117
+ * Animates the pushpin to move to a predefined global location
118
+ * @param x X global coordinate
119
+ * @param y Y global coordinate
120
+ * @param z Z global coordinate
121
+ * @param duration Duration of the travel in milliseconds
122
+ */
123
+ travelTo(x: number, y: number, z: number, duration?: number): void;
124
+ }
125
+ }
@@ -1,20 +1,20 @@
1
- export declare namespace GeometricEntities {
2
- class GeometryElement {
3
- opacity: number;
4
- meshObject: any;
5
- setOpacity(opacity: number): void;
6
- getBoundingSphereRadius(): number;
7
- getBoundingBoxDimensions(): number[];
8
- getMesh(): any;
9
- }
10
- /**
11
- * A cylinder geometric element definition.
12
- */
13
- class Cylinder extends GeometryElement {
14
- width: number;
15
- diameter: number;
16
- cog_xyz: number[];
17
- axisUnit_xyz: number[];
18
- constructor(width: number, diameter: number, cog_xyz: number[], axisUnit_xyz: number[]);
19
- }
20
- }
1
+ export declare namespace GeometricEntities {
2
+ class GeometryElement {
3
+ opacity: number;
4
+ meshObject: any;
5
+ setOpacity(opacity: number): void;
6
+ getBoundingSphereRadius(): number;
7
+ getBoundingBoxDimensions(): number[];
8
+ getMesh(): any;
9
+ }
10
+ /**
11
+ * A cylinder geometric element definition.
12
+ */
13
+ class Cylinder extends GeometryElement {
14
+ width: number;
15
+ diameter: number;
16
+ cog_xyz: number[];
17
+ axisUnit_xyz: number[];
18
+ constructor(width: number, diameter: number, cog_xyz: number[], axisUnit_xyz: number[]);
19
+ }
20
+ }
@@ -1,7 +1,7 @@
1
- import * as CollaborationEntities from "./CollaborationEntities";
2
- import * as TemporaryEntities from './TemporaryEntities';
3
- declare const VisibleEntities: {
4
- TemporaryEntities: typeof TemporaryEntities.TemporaryEntities;
5
- CollaborationEntities: typeof CollaborationEntities.CollaborationEntities;
6
- };
7
- export { VisibleEntities };
1
+ import * as CollaborationEntities from "./CollaborationEntities";
2
+ import * as TemporaryEntities from './TemporaryEntities';
3
+ declare const VisibleEntities: {
4
+ TemporaryEntities: typeof TemporaryEntities.TemporaryEntities;
5
+ CollaborationEntities: typeof CollaborationEntities.CollaborationEntities;
6
+ };
7
+ export { VisibleEntities };
@@ -1,15 +1,15 @@
1
- import { SceneWrapper } from "../../Model/SceneWrapper";
2
- import { GeometricEntities } from "./GeometricEntities";
3
- export declare namespace TemporaryEntities {
4
- /**
5
- * Collection of temporary object that serve to provide additional information
6
- * to the user but are not persisted in the binary source file of the model.
7
- */
8
- class TemporaryGroup {
9
- grTemp: any;
10
- sceneWrapper: SceneWrapper;
11
- constructor(sceneWrapper: SceneWrapper);
12
- addToGroup(object: GeometricEntities.GeometryElement): void;
13
- clearGroup(): void;
14
- }
15
- }
1
+ import { SceneWrapper } from "../../Model/SceneWrapper";
2
+ import { GeometricEntities } from "./GeometricEntities";
3
+ export declare namespace TemporaryEntities {
4
+ /**
5
+ * Collection of temporary object that serve to provide additional information
6
+ * to the user but are not persisted in the binary source file of the model.
7
+ */
8
+ class TemporaryGroup {
9
+ grTemp: any;
10
+ sceneWrapper: SceneWrapper;
11
+ constructor(sceneWrapper: SceneWrapper);
12
+ addToGroup(object: GeometricEntities.GeometryElement): void;
13
+ clearGroup(): void;
14
+ }
15
+ }
@@ -1,38 +1,38 @@
1
- import { CSS2DObject } from "../../three/examples/jsm/renderers/CSS2DRenderer.js";
2
- import { CloudViewer } from "../../Api.js";
3
- /**
4
- * Base class to all visible entities.
5
- */
6
- export declare abstract class VisibleEntity {
7
- /**
8
- * Underlying associated element.
9
- */
10
- protected _viewer: CloudViewer.Generic3DViewer;
11
- protected _htmlElement: HTMLDivElement | null;
12
- protected _cssObject: CSS2DObject | null;
13
- /**
14
- * Unique identifier of a given entity.
15
- */
16
- protected _uniqueId: number;
17
- protected abstract _constructHtmlElement(): void;
18
- /**
19
- * Visibility related methods.
20
- */
21
- abstract highlight(): void;
22
- abstract unhighlight(): void;
23
- /**
24
- * Setting the unique Id
25
- * @param uniqueId
26
- */
27
- setId(uniqueId: number): void;
28
- /**
29
- * Getter for Id.
30
- * @returns The associated unique ID
31
- */
32
- getId(): number;
33
- /**
34
- * Sets the viewer instance that is to visualize this PushPin.
35
- * @param viewer A generic 3D viewer instance.
36
- */
37
- setViewerInstance(viewer: CloudViewer.Generic3DViewer): void;
38
- }
1
+ import { CSS2DObject } from "../../three/examples/jsm/renderers/CSS2DRenderer.js";
2
+ import { CloudViewer } from "../../Api.js";
3
+ /**
4
+ * Base class to all visible entities.
5
+ */
6
+ export declare abstract class VisibleEntity {
7
+ /**
8
+ * Underlying associated element.
9
+ */
10
+ protected _viewer: CloudViewer.Generic3DViewer;
11
+ protected _htmlElement: HTMLDivElement | null;
12
+ protected _cssObject: CSS2DObject | null;
13
+ /**
14
+ * Unique identifier of a given entity.
15
+ */
16
+ protected _uniqueId: number;
17
+ protected abstract _constructHtmlElement(): void;
18
+ /**
19
+ * Visibility related methods.
20
+ */
21
+ abstract highlight(): void;
22
+ abstract unhighlight(): void;
23
+ /**
24
+ * Setting the unique Id
25
+ * @param uniqueId
26
+ */
27
+ setId(uniqueId: number): void;
28
+ /**
29
+ * Getter for Id.
30
+ * @returns The associated unique ID
31
+ */
32
+ getId(): number;
33
+ /**
34
+ * Sets the viewer instance that is to visualize this PushPin.
35
+ * @param viewer A generic 3D viewer instance.
36
+ */
37
+ setViewerInstance(viewer: CloudViewer.Generic3DViewer): void;
38
+ }
@@ -1,5 +1,5 @@
1
- import '../Assets/styles/style.css';
2
- /**
3
- * Initializes and configures the 3D viewer.
4
- */
5
- export declare function initializeViewerElements(): void;
1
+ import '../Assets/styles/style.css';
2
+ /**
3
+ * Initializes and configures the 3D viewer.
4
+ */
5
+ export declare function initializeViewerElements(): void;