@sapui5/sap.ui.vk 1.136.2 → 1.136.3

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 (176) hide show
  1. package/package.json +1 -1
  2. package/src/sap/ui/vk/.library +1 -1
  3. package/src/sap/ui/vk/AnimationPlayback.js +1 -1
  4. package/src/sap/ui/vk/AnimationPlayer.js +1 -1
  5. package/src/sap/ui/vk/AnimationSequence.js +1 -1
  6. package/src/sap/ui/vk/AnimationTimeSlider.js +1 -1
  7. package/src/sap/ui/vk/AnimationTrack.js +1 -1
  8. package/src/sap/ui/vk/Annotation.js +1 -1
  9. package/src/sap/ui/vk/BaseNodeProxy.js +1 -1
  10. package/src/sap/ui/vk/Camera.js +1 -1
  11. package/src/sap/ui/vk/ContentConnector.js +19 -15
  12. package/src/sap/ui/vk/ContentManager.js +1 -1
  13. package/src/sap/ui/vk/ContentResource.js +3 -2
  14. package/src/sap/ui/vk/Core.js +1 -1
  15. package/src/sap/ui/vk/DownloadManager.js +1 -1
  16. package/src/sap/ui/vk/DrawerToolbar.js +140 -19
  17. package/src/sap/ui/vk/DrawerToolbarButton.js +5 -1
  18. package/src/sap/ui/vk/DvlException.js +1 -1
  19. package/src/sap/ui/vk/FlexibleControl.js +1 -1
  20. package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -1
  21. package/src/sap/ui/vk/Highlight.js +1 -1
  22. package/src/sap/ui/vk/ImageContentManager.js +1 -1
  23. package/src/sap/ui/vk/JointUtils.js +1 -1
  24. package/src/sap/ui/vk/LayerProxy.js +1 -1
  25. package/src/sap/ui/vk/Loco.js +1 -1
  26. package/src/sap/ui/vk/Material.js +1 -1
  27. package/src/sap/ui/vk/NativeViewport.js +1 -1
  28. package/src/sap/ui/vk/NodeHierarchy.js +1 -1
  29. package/src/sap/ui/vk/NodeProxy.js +1 -1
  30. package/src/sap/ui/vk/NodeUtils.js +1 -1
  31. package/src/sap/ui/vk/Notifications.js +1 -1
  32. package/src/sap/ui/vk/OrthographicCamera.js +1 -1
  33. package/src/sap/ui/vk/PerspectiveCamera.js +1 -1
  34. package/src/sap/ui/vk/ProgressIndicator.js +1 -1
  35. package/src/sap/ui/vk/RedlineCollaboration.js +1 -1
  36. package/src/sap/ui/vk/RedlineConversation.js +1 -1
  37. package/src/sap/ui/vk/RedlineDesign.js +1 -1
  38. package/src/sap/ui/vk/RedlineElement.js +1 -1
  39. package/src/sap/ui/vk/RedlineElementComment.js +1 -1
  40. package/src/sap/ui/vk/RedlineElementEllipse.js +1 -1
  41. package/src/sap/ui/vk/RedlineElementFreehand.js +1 -1
  42. package/src/sap/ui/vk/RedlineElementLine.js +1 -1
  43. package/src/sap/ui/vk/RedlineElementRectangle.js +1 -1
  44. package/src/sap/ui/vk/RedlineElementText.js +1 -1
  45. package/src/sap/ui/vk/RedlineSurface.js +1 -1
  46. package/src/sap/ui/vk/SafeArea.js +1 -1
  47. package/src/sap/ui/vk/Scene.js +16 -1
  48. package/src/sap/ui/vk/SceneTree.js +3 -4
  49. package/src/sap/ui/vk/StepNavigation.js +1 -2
  50. package/src/sap/ui/vk/Texture.js +1 -1
  51. package/src/sap/ui/vk/ToggleMenuButton.js +1 -1
  52. package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
  53. package/src/sap/ui/vk/Toolbar.js +68 -102
  54. package/src/sap/ui/vk/View.js +1 -1
  55. package/src/sap/ui/vk/ViewGallery.js +1 -1
  56. package/src/sap/ui/vk/ViewGalleryThumbnail.js +1 -1
  57. package/src/sap/ui/vk/ViewGroup.js +1 -1
  58. package/src/sap/ui/vk/ViewManager.js +1 -1
  59. package/src/sap/ui/vk/ViewStateManager.js +1 -1
  60. package/src/sap/ui/vk/ViewStateManagerBase.js +1 -1
  61. package/src/sap/ui/vk/Viewer.js +469 -234
  62. package/src/sap/ui/vk/Viewport.js +1 -1
  63. package/src/sap/ui/vk/ViewportBase.js +1 -1
  64. package/src/sap/ui/vk/dvl/BaseNodeProxy.js +1 -1
  65. package/src/sap/ui/vk/dvl/ContentManager.js +1 -1
  66. package/src/sap/ui/vk/dvl/GraphicsCore.js +1 -1
  67. package/src/sap/ui/vk/dvl/LayerProxy.js +1 -1
  68. package/src/sap/ui/vk/dvl/NodeHierarchy.js +1 -1
  69. package/src/sap/ui/vk/dvl/NodeProxy.js +1 -1
  70. package/src/sap/ui/vk/dvl/Scene.js +1 -1
  71. package/src/sap/ui/vk/dvl/ViewStateManager.js +1 -1
  72. package/src/sap/ui/vk/dvl/Viewport.js +1 -1
  73. package/src/sap/ui/vk/ecad/ElementsPanel.js +984 -212
  74. package/src/sap/ui/vk/ecad/LayersPanel.js +283 -145
  75. package/src/sap/ui/vk/i18n/messagebundle.properties +64 -37
  76. package/src/sap/ui/vk/library.js +11 -4
  77. package/src/sap/ui/vk/measurements/Angle.js +1 -1
  78. package/src/sap/ui/vk/measurements/Area.js +1 -1
  79. package/src/sap/ui/vk/measurements/Distance.js +1 -1
  80. package/src/sap/ui/vk/measurements/Edge.js +1 -1
  81. package/src/sap/ui/vk/measurements/Face.js +1 -1
  82. package/src/sap/ui/vk/measurements/Feature.js +1 -1
  83. package/src/sap/ui/vk/measurements/Vertex.js +1 -1
  84. package/src/sap/ui/vk/pdf/ContentManager.js +1 -1
  85. package/src/sap/ui/vk/pdf/Viewport.js +5 -8
  86. package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
  87. package/src/sap/ui/vk/svg/ContentDeliveryService.js +1 -1
  88. package/src/sap/ui/vk/svg/ContentManager.js +2 -1
  89. package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
  90. package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
  91. package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
  92. package/src/sap/ui/vk/svg/Scene.js +1 -1
  93. package/src/sap/ui/vk/svg/SceneBuilder.js +12 -4
  94. package/src/sap/ui/vk/svg/ViewStateManager.js +2 -2
  95. package/src/sap/ui/vk/svg/Viewport.js +192 -2
  96. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.8.woff2 +0 -0
  97. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.8.woff2 +0 -0
  98. package/src/sap/ui/vk/themes/base/library.source.less +1 -1
  99. package/src/sap/ui/vk/themes/sap_belize_base/library.source.less +1 -1
  100. package/src/sap/ui/vk/themes/sap_bluecrystal_base/library.source.less +1 -1
  101. package/src/sap/ui/vk/themes/sap_hcb/library.source.less +1 -1
  102. package/src/sap/ui/vk/themes/sap_horizon/library.source.less +0 -5
  103. package/src/sap/ui/vk/themes/sap_horizon_dark/library.source.less +0 -5
  104. package/src/sap/ui/vk/themes/sap_horizon_hcb/library.source.less +0 -5
  105. package/src/sap/ui/vk/themes/sap_horizon_hcw/library.source.less +0 -5
  106. package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
  107. package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -1
  108. package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
  109. package/src/sap/ui/vk/threejs/Billboard.js +1 -1
  110. package/src/sap/ui/vk/threejs/Callout.js +1 -1
  111. package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
  112. package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
  113. package/src/sap/ui/vk/threejs/DetailView.js +1 -1
  114. package/src/sap/ui/vk/threejs/HighlightPlayer.js +1 -1
  115. package/src/sap/ui/vk/threejs/Material.js +1 -1
  116. package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
  117. package/src/sap/ui/vk/threejs/NodeProxy.js +1 -1
  118. package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
  119. package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
  120. package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -1
  121. package/src/sap/ui/vk/threejs/Scene.js +1 -1
  122. package/src/sap/ui/vk/threejs/SceneBuilder.js +12 -1
  123. package/src/sap/ui/vk/threejs/Texture.js +1 -1
  124. package/src/sap/ui/vk/threejs/Thrustline.js +1 -1
  125. package/src/sap/ui/vk/threejs/ViewStateManager.js +1 -1
  126. package/src/sap/ui/vk/threejs/Viewport.js +1 -1
  127. package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +1 -1
  128. package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
  129. package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +1 -1
  130. package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -1
  131. package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
  132. package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
  133. package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +1 -1
  134. package/src/sap/ui/vk/tools/CreateParametricGizmo.js +1 -1
  135. package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
  136. package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +1 -1
  137. package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
  138. package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +1 -1
  139. package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
  140. package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +1 -1
  141. package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
  142. package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +1 -1
  143. package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
  144. package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +1 -1
  145. package/src/sap/ui/vk/tools/ExplodeTool.js +1 -1
  146. package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +1 -1
  147. package/src/sap/ui/vk/tools/Gizmo.js +1 -1
  148. package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
  149. package/src/sap/ui/vk/tools/MoveTool.js +1 -1
  150. package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
  151. package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
  152. package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
  153. package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
  154. package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
  155. package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
  156. package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
  157. package/src/sap/ui/vk/tools/RotateTool.js +1 -1
  158. package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
  159. package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
  160. package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
  161. package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
  162. package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
  163. package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +1 -1
  164. package/src/sap/ui/vk/tools/Tool.js +1 -1
  165. package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
  166. package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
  167. package/src/sap/ui/vk/tools/TooltipToolHandler.js +5 -0
  168. package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
  169. package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
  170. package/src/sap/ui/vk/totara/TotaraLoader.js +4 -0
  171. package/src/sap/ui/vk/ToolbarRenderer.js +0 -41
  172. package/src/sap/ui/vk/ViewerRenderer.js +0 -48
  173. package/src/sap/ui/vk/ecad/ElementsPanelRenderer.js +0 -41
  174. package/src/sap/ui/vk/ecad/LayersPanelRenderer.js +0 -41
  175. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.4.woff2 +0 -0
  176. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.4.woff2 +0 -0
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  *
31
31
  * @public
32
32
  * @author SAP SE
33
- * @version 1.136.2s
33
+ * @version 1.136.3s
34
34
  * @extends sap.ui.core.Element
35
35
  * @alias sap.ui.vk.RedlineCollaboration
36
36
  * @since 1.89.0
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * @public
29
29
  * @author SAP SE
30
- * @version 1.136.2
30
+ * @version 1.136.3
31
31
  * @extends sap.ui.core.Element
32
32
  * @alias sap.ui.vk.RedlineConversation
33
33
  * @since 1.89.0
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  *
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.136.2
34
+ * @version 1.136.3
35
35
  * @extends sap.ui.vk.RedlineSurface
36
36
  * @alias sap.ui.vk.RedlineDesign
37
37
  * @since 1.40.0
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @public
23
23
  * @author SAP SE
24
- * @version 1.136.2
24
+ * @version 1.136.3
25
25
  * @extends sap.ui.core.Element
26
26
  * @alias sap.ui.vk.RedlineElement
27
27
  * @since 1.40.0
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @public
24
24
  * @author SAP SE
25
- * @version 1.136.2
25
+ * @version 1.136.3
26
26
  * @extends sap.ui.core.Element
27
27
  * @alias sap.ui.vk.RedlineElementComment
28
28
  * @since 1.89.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.vk.RedlineElement
29
29
  * @alias sap.ui.vk.RedlineElementEllipse
30
30
  * @since 1.40.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.vk.RedlineElement
29
29
  * @alias sap.ui.vk.RedlineElementFreehand
30
30
  * @since 1.40.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.vk.RedlineElement
29
29
  * @alias sap.ui.vk.RedlineElementLine
30
30
  * @since 1.40.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.vk.RedlineElement
29
29
  * @alias sap.ui.vk.RedlineElementRectangle
30
30
  * @since 1.40.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.vk.RedlineElement
29
29
  * @alias sap.ui.vk.RedlineElementText
30
30
  * @since 1.40.0
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  *
33
33
  * @public
34
34
  * @author SAP SE
35
- * @version 1.136.2
35
+ * @version 1.136.3
36
36
  * @extends sap.ui.core.Control
37
37
  * @alias sap.ui.vk.RedlineSurface
38
38
  * @since 1.40.0
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  * @extends sap.ui.core.Control
29
29
  * @alias sap.ui.vk.SafeArea
30
30
  */
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @public
38
38
  * @abstract
39
39
  * @author SAP SE
40
- * @version 1.136.2
40
+ * @version 1.136.3
41
41
  * @extends sap.ui.base.ManagedObject
42
42
  * @alias sap.ui.vk.Scene
43
43
  */
@@ -628,5 +628,20 @@ sap.ui.define([
628
628
  return this;
629
629
  };
630
630
 
631
+ Scene.prototype._metadata = null;
632
+
633
+ Scene.prototype.setSceneMetadata = function(metadata) {
634
+ this._metadata = metadata;
635
+ return this;
636
+ };
637
+
638
+ Scene.prototype.getSceneMetadata = function(metadata) {
639
+ return this._metadata;
640
+ };
641
+
642
+ Scene.prototype.isECADScene = function() {
643
+ return this._metadata?.some(({ category, tag, value }) => category === "ecad" && tag === "version" && value === "8");
644
+ };
645
+
631
646
  return Scene;
632
647
  });
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @extends sap.ui.core.Control
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.136.2
68
+ * @version 1.136.3
69
69
  *
70
70
  * @constructor
71
71
  * @public
@@ -522,13 +522,12 @@ sap.ui.define([
522
522
  };
523
523
 
524
524
  SceneTree.prototype.refresh = function() {
525
- if (!this._scene || !this._viewStateManager || !this._viewStateManager.getNodeHierarchy()) {
525
+ const nodeHierarchy = this._scene?.getDefaultNodeHierarchy?.();
526
+ if (!nodeHierarchy || !this._viewStateManager?.getNodeHierarchy()) {
526
527
  this._model.setData([]);
527
528
  return;
528
529
  }
529
530
 
530
- var nodeHierarchy = this._scene.getDefaultNodeHierarchy();
531
-
532
531
  // building the tree model which is going to be passed to the TreeTable control.
533
532
  var tree = [];
534
533
  var getChildrenRecursively = function(tree, nodeRefs) {
@@ -79,7 +79,7 @@ sap.ui.define([
79
79
  * @param {object} [mSettings] Initial settings for the new Step Navigation control.
80
80
  * @public
81
81
  * @author SAP SE
82
- * @version 1.136.2
82
+ * @version 1.136.3
83
83
  * @extends sap.ui.core.Control
84
84
  * @alias sap.ui.vk.StepNavigation
85
85
  * @deprecated Since version 1.72.0. This class is used only with DVL namespace which will be removed in future. Use {@link sap.ui.vk.ViewGallery} instead.
@@ -335,7 +335,6 @@ sap.ui.define([
335
335
 
336
336
  // Create JSON data model
337
337
  this.oModel = new JSONModel();
338
- this.setModel(this.oModel);
339
338
 
340
339
  // Create layout panel
341
340
  this._layout = new Toolbar({
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @public
24
24
  * @author SAP SE
25
- * @version 1.136.2
25
+ * @version 1.136.3
26
26
  * @extends sap.ui.base.ManagedObject
27
27
  * @alias sap.ui.vk.Texture
28
28
  * @experimental Since 1.58.0 This class is experimental and might be modified or removed in future versions.
@@ -61,7 +61,7 @@ sap.ui.define([
61
61
  *
62
62
  * @public
63
63
  * @author SAP SE
64
- * @version 1.136.2
64
+ * @version 1.136.3
65
65
  * @extends sap.ui.core.Control
66
66
  * @alias sap.ui.vk.ToggleMenuButton
67
67
  */
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.m.MenuItem
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.136.2
27
+ * @version 1.136.3
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -8,7 +8,6 @@
8
8
  // Provides control sap.ui.vk.Toolbar.
9
9
  sap.ui.define([
10
10
  "./library",
11
- "./ToolbarRenderer",
12
11
  "./getResourceBundle",
13
12
  "sap/ui/core/Control",
14
13
  "sap/m/library",
@@ -21,7 +20,6 @@ sap.ui.define([
21
20
  "sap/ui/core/Element"
22
21
  ], function(
23
22
  vkLibrary,
24
- ToolbarRenderer,
25
23
  getResourceBundle,
26
24
  Control,
27
25
  mobileLibrary,
@@ -49,7 +47,7 @@ sap.ui.define([
49
47
  * @extends sap.ui.core.Control
50
48
  *
51
49
  * @author SAP SE
52
- * @version 1.136.2
50
+ * @version 1.136.3
53
51
  *
54
52
  * @constructor
55
53
  * @public
@@ -100,43 +98,26 @@ sap.ui.define([
100
98
  type: "sap.m.Toolbar",
101
99
  multiple: false,
102
100
  visibility: "hidden"
103
- },
104
- _helpButton: {
105
- type: "sap.m.Button",
106
- multiple: false,
107
- visibility: "hidden"
108
- },
109
- _stepNavigationButton: {
110
- type: "sap.m.ToggleButton",
111
- multiple: false,
112
- visibility: "hidden"
113
- },
114
- _sceneTreeButton: {
115
- type: "sap.m.ToggleButton",
116
- multiple: false,
117
- visibility: "hidden"
118
- },
119
- _miniMapButton: {
120
- type: "sap.m.ToggleButton",
121
- multiple: false,
122
- visibility: "hidden"
123
- },
124
- _enterFullScreenButton: {
125
- type: "sap.m.ToggleButton",
126
- multiple: false,
127
- visibility: "hidden"
128
- },
129
- _exitFullScreenButton: {
130
- type: "sap.m.Button",
131
- multiple: false,
132
- visibility: "hidden"
133
- },
134
- _toolbarTitle: {
135
- type: "sap.m.Title",
136
- multiple: false,
137
- visibility: "hidden"
138
101
  }
139
102
  }
103
+ },
104
+
105
+ constructor: function(id, settings) {
106
+ Control.apply(this, arguments);
107
+
108
+ this._getViewer()?.attachFullScreen(this._fullScreenHandler, this);
109
+ },
110
+
111
+ renderer: {
112
+ apiVersion: 2,
113
+
114
+ render: function(rm, control) {
115
+ rm.openStart("div", control);
116
+ rm.class("sapVizKitToolbar");
117
+ rm.openEnd();
118
+ rm.renderControl(control.getAggregation("_toolbar"));
119
+ rm.close("div");
120
+ }
140
121
  }
141
122
  });
142
123
 
@@ -144,31 +125,8 @@ sap.ui.define([
144
125
  return this._toolbar;
145
126
  };
146
127
 
147
- /*
148
- * Toggles the step navigation control visibility and updates its button
149
- */
150
- Toolbar.prototype._onSceneTree = function() {
151
- this.oViewer = Element.getElementById(this.getViewer());
152
- if (this.oViewer != null) {
153
- this.oViewer._componentsState.sceneTree.userInteractionShow = this._sceneTreeButton.getPressed();
154
- this.oViewer.setShowSceneTree(this.oViewer._componentsState.sceneTree.userInteractionShow);
155
- }
156
- };
157
-
158
- Toolbar.prototype._onStepNavigation = function() {
159
- this.oViewer = Element.getElementById(this.getViewer());
160
- if (this.oViewer != null) {
161
- this.oViewer._componentsState.stepNavigation.userInteractionShow = this._stepNavigationButton.getPressed();
162
- this.oViewer.setShowStepNavigation(this.oViewer._componentsState.stepNavigation.userInteractionShow);
163
- }
164
- };
165
-
166
- Toolbar.prototype._onMiniMap = function() {
167
- this.oViewer = Element.getElementById(this.getViewer());
168
- if (this.oViewer != null) {
169
- this.oViewer._componentsState.miniMap.userInteractionShow = this._miniMapButton.getPressed();
170
- this.oViewer.setShowMiniMap(this.oViewer._componentsState.miniMap.userInteractionShow);
171
- }
128
+ Toolbar.prototype._getViewer = function() {
129
+ return Element.getElementById(this.getViewer());
172
130
  };
173
131
 
174
132
  Toolbar.prototype._getViewer = function() {
@@ -176,7 +134,7 @@ sap.ui.define([
176
134
  };
177
135
 
178
136
  Toolbar.prototype._onFullScreen = function() {
179
- this._getViewer()?.activateFullScreenMode();
137
+ this._getViewer()?.activateFullScreenMode(this._enterFullScreenButton.getPressed());
180
138
  };
181
139
 
182
140
  Toolbar.prototype._fullScreenHandler = function(event) {
@@ -195,46 +153,70 @@ sap.ui.define([
195
153
  Control.prototype.init.apply(this);
196
154
  }
197
155
 
198
- var _helpButton = new Button({
199
- icon: "sap-icon://sys-help",
200
- type: ButtonType.Transparent,
201
- tooltip: getResourceBundle().getText("VIEWER_HELPBUTTONTOOLTIP")
202
- });
203
- this.setAggregation("_helpButton", _helpButton);
204
-
205
156
  this._stepNavigationButton = new ToggleButton({
206
157
  icon: "sap-icon://step",
207
158
  type: ButtonType.Transparent,
208
- enabled: false,
209
159
  tooltip: getResourceBundle().getText("STEP_NAV_MENUBUTTONTOOLTIP"),
210
- press: this._onStepNavigation.bind(this)
160
+ visible: "{= ${_internal>/stepNavigation/enabled} === true && ${_internal>/stepNavigation/supported} === true }",
161
+ pressed: "{_internal>/stepNavigation/visible}"
211
162
  }).data("help-id", "sapUiVkStepNavigationBtn", true);
212
- this.setAggregation("_stepNavigationButton", this._stepNavigationButton);
213
163
 
214
164
  this._sceneTreeButton = new ToggleButton({
215
165
  icon: "sap-icon://tree",
216
166
  type: ButtonType.Transparent,
217
167
  tooltip: getResourceBundle().getText("SCENETREE_MENUBUTTONTOOLTIP"),
218
- press: this._onSceneTree.bind(this)
168
+ visible: "{= ${_internal>/sceneTree/enabled} === true && ${_internal>/sceneTree/supported} === true }",
169
+ pressed: "{_internal>/sceneTree/visible}"
219
170
  }).data("help-id", "sapUiVkSceneTreeBtn", true);
220
- this.setAggregation("_sceneTreeButton", this._sceneTreeButton);
171
+
172
+ this._layersPanelButton = new ToggleButton({
173
+ icon: "sap-icon://dimension",
174
+ type: ButtonType.Transparent,
175
+ tooltip: getResourceBundle().getText("LAYERS_BUTTONTOOLTIP"),
176
+ visible: "{= ${_internal>/layersPanel/enabled} === true && ${_internal>/layersPanel/supported} === true }",
177
+ pressed: "{_internal>/layersPanel/visible}"
178
+ }).data("help-id", "sapUiVkLayersBtn", true);
179
+
180
+ this._elementsPanelButton = new ToggleButton({
181
+ icon: "sap-icon://group-2",
182
+ type: ButtonType.Transparent,
183
+ tooltip: getResourceBundle().getText("ELEMENTS_BUTTONTOOLTIP"),
184
+ visible: "{= ${_internal>/elementsPanel/enabled} === true && ${_internal>/elementsPanel/supported} === true }",
185
+ pressed: "{_internal>/elementsPanel/visible}"
186
+ }).data("help-id", "sapUiVkElementsBtn", true);
187
+
188
+ this._pageGalleryButton = new ToggleButton({
189
+ icon: "sap-icon://documents",
190
+ type: ButtonType.Transparent,
191
+ tooltip: getResourceBundle().getText("PAGE_GALLERY_BUTTONTOOLTIP"),
192
+ visible: "{= ${_internal>/pageGallery/enabled} === true && ${_internal>/pageGallery/supported} === true }",
193
+ pressed: "{_internal>/pageGallery/visible}"
194
+ }).data("help-id", "sapUiVkPageGalleryBtn", true);
221
195
 
222
196
  this._miniMapButton = new ToggleButton({
223
197
  icon: "sap-icon://map-3",
224
198
  type: ButtonType.Transparent,
225
199
  tooltip: getResourceBundle().getText("MINIMAP_BUTTONTOOLTIP"),
226
- press: this._onMiniMap.bind(this)
200
+ visible: "{= ${_internal>/miniMap/enabled} === true && ${_internal>/miniMap/supported} === true }",
201
+ pressed: "{_internal>/miniMap/visible}"
227
202
  }).data("help-id", "sapUiVkMiniMapBtn", true);
228
203
 
204
+ this._toggleHotspotsButton = new ToggleButton({
205
+ icon: "sap-icon://example",
206
+ type: ButtonType.Transparent,
207
+ tooltip: getResourceBundle().getText("TOGGLE_HOTSPOTS_BUTTONTOOLTIP"),
208
+ visible: "{= ${_internal>/hotspots/supported} === true && ${_internal>/hotspots/enabled} === true }",
209
+ pressed: "{_internal>/hotspots/showAll}"
210
+ }).data("help-id", "sapUiVkToolgeHotspotsBtn", true);
211
+
229
212
  this._toolbarTitle = new Title();
230
- this.setAggregation("_toolbarTitle", this._toolbarTitle);
231
213
 
232
214
  this._enterFullScreenButton = new Button({
233
215
  icon: "sap-icon://full-screen",
234
216
  type: ButtonType.Transparent,
235
- press: this._onFullScreen.bind(this),
236
- tooltip: getResourceBundle().getText("ENTER_FULLSCREEN")
237
- }).data("help-id", "sapUiVkEnterFullScreenBtn", true).addStyleClass("sapUiVkFullScreenToolbarButton");
217
+ tooltip: getResourceBundle().getText("VIEWER_FULLSCREENBUTTONTOOLTIP"),
218
+ press: this._onFullScreen.bind(this)
219
+ }).data("help-id", "sapUiVkEnterFullScreenBtn", true);
238
220
 
239
221
  var toolbarContent = [
240
222
  new ToolbarSpacer(),
@@ -242,6 +224,10 @@ sap.ui.define([
242
224
  new ToolbarSpacer(),
243
225
  this._sceneTreeButton,
244
226
  this._stepNavigationButton,
227
+ this._layersPanelButton,
228
+ this._elementsPanelButton,
229
+ this._pageGalleryButton,
230
+ this._toggleHotspotsButton,
245
231
  this._miniMapButton,
246
232
  new ToolbarSeparator(),
247
233
  this._enterFullScreenButton
@@ -255,10 +241,7 @@ sap.ui.define([
255
241
  };
256
242
 
257
243
  Toolbar.prototype.exit = function() {
258
- this.oViewer = Element.getElementById(this.getViewer());
259
- if (this.oViewer) {
260
- this.oViewer.detachFullScreen(this._fullScreenHandler.bind(this));
261
- }
244
+ this._getViewer()?.detachFullScreen(this._fullScreenHandler, this);
262
245
  };
263
246
 
264
247
  Toolbar.prototype.onBeforeRendering = function() {
@@ -266,23 +249,6 @@ sap.ui.define([
266
249
  this._toolbarTitle.setText(this.getTitle());
267
250
  };
268
251
 
269
- Toolbar.prototype.refresh = function() {
270
- this.oViewer = Element.getElementById(this.getViewer());
271
- this._stepNavigationButton.setPressed(this.oViewer.getShowStepNavigation());
272
- this._stepNavigationButton.setEnabled(this.oViewer.getEnableStepNavigation());
273
- this._sceneTreeButton.setPressed(this.oViewer.getShowSceneTree());
274
- this._sceneTreeButton.setEnabled(this.oViewer.getEnableSceneTree());
275
- this._miniMapButton.setPressed(this.oViewer.getShowMiniMap());
276
- this._miniMapButton.setVisible(this.oViewer.getEnableMiniMap());
277
-
278
- this.oViewer.attachFullScreen(this._fullScreenHandler.bind(this));
279
- return true;
280
- };
281
-
282
- Toolbar.prototype.onAfterRendering = function() {
283
- this.refresh();
284
- };
285
-
286
252
  return Toolbar;
287
253
 
288
254
  });
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  *
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.136.2
34
+ * @version 1.136.3
35
35
  * @extends sap.ui.base.ManagedObject
36
36
  * @implements sap.ui.vk.IPlaybackCollection
37
37
  * @alias sap.ui.vk.View
@@ -95,7 +95,7 @@ sap.ui.define([
95
95
  * @param {object} [mSettings] Initial settings for the new View Gallery control.
96
96
  * @public
97
97
  * @author SAP SE
98
- * @version 1.136.2
98
+ * @version 1.136.3
99
99
  * @extends sap.ui.core.Control
100
100
  * @alias sap.ui.vk.ViewGallery
101
101
  * @since 1.62.0
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @param {object} [mSettings] Initial settings for the new ViewGalleryThumbnail.
28
28
  * @private
29
29
  * @author SAP SE
30
- * @version 1.136.2
30
+ * @version 1.136.3
31
31
  * @extends sap.m.Image
32
32
  * @alias sap.ui.vk.ViewGalleryThumbnail
33
33
  * @since 1.72.0
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  *
24
24
  * @public
25
25
  * @author SAP SE
26
- * @version 1.136.2
26
+ * @version 1.136.3
27
27
  * @extends sap.ui.base.ManagedObject
28
28
  * @alias sap.ui.vk.ViewGroup
29
29
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @param {object} [mSettings] Initial settings for the new ViewManager object.
29
29
  * @public
30
30
  * @author SAP SE
31
- * @version 1.136.2
31
+ * @version 1.136.3
32
32
  * @extends sap.ui.core.Element
33
33
  * @alias sap.ui.vk.ViewManager
34
34
  */
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @param {object} [mSettings] Initial settings for the new ViewStateManager object.
28
28
  * @public
29
29
  * @author SAP SE
30
- * @version 1.136.2
30
+ * @version 1.136.3
31
31
  * @extends sap.ui.vk.ViewStateManagerBase
32
32
  * @alias sap.ui.vk.ViewStateManager
33
33
  * @since 1.32.0
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @public
27
27
  * @abstract
28
28
  * @author SAP SE
29
- * @version 1.136.2
29
+ * @version 1.136.3
30
30
  * @extends sap.ui.core.Element
31
31
  * @alias sap.ui.vk.ViewStateManagerBase
32
32
  * @since 1.32.0