@sapui5/sap.ui.vk 1.134.0 → 1.136.0

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 (182) 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 -2
  4. package/src/sap/ui/vk/AnimationPlayer.js +1 -1
  5. package/src/sap/ui/vk/AnimationSequence.js +1 -5
  6. package/src/sap/ui/vk/AnimationTimeSlider.js +1 -2
  7. package/src/sap/ui/vk/AnimationTrack.js +2 -4
  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 +1 -1
  12. package/src/sap/ui/vk/ContentManager.js +1 -1
  13. package/src/sap/ui/vk/ContentResource.js +9 -1
  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 +1 -1
  17. package/src/sap/ui/vk/DvlException.js +1 -1
  18. package/src/sap/ui/vk/FlexibleControl.js +1 -1
  19. package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -1
  20. package/src/sap/ui/vk/Highlight.js +40 -318
  21. package/src/sap/ui/vk/ImageContentManager.js +1 -1
  22. package/src/sap/ui/vk/JointUtils.js +1 -2
  23. package/src/sap/ui/vk/LayerProxy.js +1 -1
  24. package/src/sap/ui/vk/Loco.js +1 -1
  25. package/src/sap/ui/vk/Material.js +1 -1
  26. package/src/sap/ui/vk/NativeViewport.js +1 -1
  27. package/src/sap/ui/vk/NodeHierarchy.js +1 -1
  28. package/src/sap/ui/vk/NodeProxy.js +1 -1
  29. package/src/sap/ui/vk/NodeUtils.js +1 -2
  30. package/src/sap/ui/vk/Notifications.js +1 -1
  31. package/src/sap/ui/vk/OrthographicCamera.js +1 -1
  32. package/src/sap/ui/vk/OutputSettings.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 +1 -1
  48. package/src/sap/ui/vk/SceneTree.js +1 -1
  49. package/src/sap/ui/vk/StepNavigation.js +1 -1
  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 +1 -1
  54. package/src/sap/ui/vk/View.js +57 -75
  55. package/src/sap/ui/vk/ViewGallery.js +10 -2
  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 -5
  60. package/src/sap/ui/vk/ViewStateManagerBase.js +1 -3
  61. package/src/sap/ui/vk/Viewer.js +1 -131
  62. package/src/sap/ui/vk/Viewport.js +1 -1
  63. package/src/sap/ui/vk/ViewportBase.js +3 -1
  64. package/src/sap/ui/vk/VisibilityMode.js +2 -1
  65. package/src/sap/ui/vk/dvl/BaseNodeProxy.js +1 -1
  66. package/src/sap/ui/vk/dvl/ContentManager.js +1 -1
  67. package/src/sap/ui/vk/dvl/GraphicsCore.js +1 -1
  68. package/src/sap/ui/vk/dvl/LayerProxy.js +1 -1
  69. package/src/sap/ui/vk/dvl/NodeHierarchy.js +1 -1
  70. package/src/sap/ui/vk/dvl/NodeProxy.js +1 -1
  71. package/src/sap/ui/vk/dvl/Scene.js +1 -1
  72. package/src/sap/ui/vk/dvl/ViewStateManager.js +1 -1
  73. package/src/sap/ui/vk/dvl/Viewport.js +1 -1
  74. package/src/sap/ui/vk/ecad/ElementsPanel.js +469 -0
  75. package/src/sap/ui/vk/{tools/AnchorPointToolGizmoRenderer.js → ecad/ElementsPanelRenderer.js} +13 -12
  76. package/src/sap/ui/vk/ecad/LayersPanel.js +440 -0
  77. package/src/sap/ui/vk/{tools/CrossSectionToolGizmoRenderer.js → ecad/LayersPanelRenderer.js} +13 -12
  78. package/src/sap/ui/vk/ecad/VisibilityType.js +31 -0
  79. package/src/sap/ui/vk/i18n/messagebundle.properties +50 -0
  80. package/src/sap/ui/vk/library.js +5 -3
  81. package/src/sap/ui/vk/matai/MataiLoaderWorker.js +4 -0
  82. package/src/sap/ui/vk/measurements/Angle.js +1 -1
  83. package/src/sap/ui/vk/measurements/Area.js +1 -1
  84. package/src/sap/ui/vk/measurements/Distance.js +1 -1
  85. package/src/sap/ui/vk/measurements/Edge.js +1 -1
  86. package/src/sap/ui/vk/measurements/Face.js +1 -1
  87. package/src/sap/ui/vk/measurements/Feature.js +1 -1
  88. package/src/sap/ui/vk/measurements/Surface.js +1 -1
  89. package/src/sap/ui/vk/measurements/Vertex.js +1 -1
  90. package/src/sap/ui/vk/pdf/ContentManager.js +1 -1
  91. package/src/sap/ui/vk/pdf/PageGallery.js +3 -5
  92. package/src/sap/ui/vk/pdf/Viewport.js +1 -1
  93. package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
  94. package/src/sap/ui/vk/svg/ContentDeliveryService.js +2 -1
  95. package/src/sap/ui/vk/svg/ContentManager.js +2 -1
  96. package/src/sap/ui/vk/svg/HotspotHelper.js +2 -4
  97. package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
  98. package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
  99. package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
  100. package/src/sap/ui/vk/svg/Scene.js +1 -1
  101. package/src/sap/ui/vk/svg/SceneBuilder.js +1 -2
  102. package/src/sap/ui/vk/svg/ViewStateManager.js +1 -2
  103. package/src/sap/ui/vk/svg/Viewport.js +1 -1
  104. package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
  105. package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -2
  106. package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
  107. package/src/sap/ui/vk/threejs/Billboard.js +2 -3
  108. package/src/sap/ui/vk/threejs/Callout.js +1 -2
  109. package/src/sap/ui/vk/threejs/ContentDeliveryService.js +2 -1
  110. package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
  111. package/src/sap/ui/vk/threejs/DetailView.js +1 -2
  112. package/src/sap/ui/vk/threejs/HighlightPlayer.js +18 -25
  113. package/src/sap/ui/vk/threejs/Material.js +1 -4
  114. package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
  115. package/src/sap/ui/vk/threejs/NodeProxy.js +7 -26
  116. package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
  117. package/src/sap/ui/vk/threejs/ParametricGenerators.js +1 -1
  118. package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
  119. package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -2
  120. package/src/sap/ui/vk/threejs/PolylineGeometry.js +29 -1
  121. package/src/sap/ui/vk/threejs/Scene.js +83 -76
  122. package/src/sap/ui/vk/threejs/SceneBuilder.js +8 -23
  123. package/src/sap/ui/vk/threejs/Texture.js +1 -4
  124. package/src/sap/ui/vk/threejs/ThreeExtensions.js +30 -75
  125. package/src/sap/ui/vk/threejs/ThreeUtils.js +1 -1
  126. package/src/sap/ui/vk/threejs/Thrustline.js +1 -4
  127. package/src/sap/ui/vk/threejs/ViewStateManager.js +7 -8
  128. package/src/sap/ui/vk/threejs/Viewport.js +1 -3
  129. package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +12 -29
  130. package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
  131. package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +11 -3
  132. package/src/sap/ui/vk/tools/AngleMeasurementToolGizmo.js +2 -1
  133. package/src/sap/ui/vk/tools/AreaMeasurementToolGizmo.js +2 -1
  134. package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -7
  135. package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
  136. package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
  137. package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +3 -2
  138. package/src/sap/ui/vk/tools/CreateParametricGizmo.js +3 -2
  139. package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
  140. package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +3 -2
  141. package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
  142. package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +3 -2
  143. package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
  144. package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +12 -1
  145. package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
  146. package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +11 -1
  147. package/src/sap/ui/vk/tools/DistanceMeasurementToolGizmo.js +2 -1
  148. package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
  149. package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +3 -2
  150. package/src/sap/ui/vk/tools/ExplodeItemGroup.js +1 -1
  151. package/src/sap/ui/vk/tools/ExplodeTool.js +3 -3
  152. package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +3 -2
  153. package/src/sap/ui/vk/tools/Gizmo.js +2 -5
  154. package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
  155. package/src/sap/ui/vk/tools/MeasurementToolGizmo.js +2 -1
  156. package/src/sap/ui/vk/tools/MoveTool.js +1 -1
  157. package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
  158. package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
  159. package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
  160. package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
  161. package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
  162. package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
  163. package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
  164. package/src/sap/ui/vk/tools/RotateTool.js +1 -1
  165. package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
  166. package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
  167. package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
  168. package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
  169. package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
  170. package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +13 -1
  171. package/src/sap/ui/vk/tools/Tool.js +1 -1
  172. package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
  173. package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
  174. package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
  175. package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
  176. package/src/sap/ui/vk/totara/TotaraUtils.js +5 -0
  177. package/src/sap/ui/vk/ve/dvl.js +1 -1
  178. package/src/sap/ui/vk/ve/dvl.wasm +0 -0
  179. package/src/sap/ui/vk/ve/matai.js +1 -1
  180. package/src/sap/ui/vk/ve/matai.wasm +0 -0
  181. package/src/sap/ui/vk/tools/CreateTextToolGizmoRenderer.js +0 -41
  182. package/src/sap/ui/vk/tools/SceneOrientationToolGizmoRenderer.js +0 -39
@@ -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.134.0
98
+ * @version 1.136.0
99
99
  * @extends sap.ui.core.Control
100
100
  * @alias sap.ui.vk.ViewGallery
101
101
  * @since 1.62.0
@@ -439,6 +439,11 @@ sap.ui.define([
439
439
  this._setupAnimationSlider();
440
440
  };
441
441
 
442
+ ViewGallery.prototype._updateAnimationTimeSlider = function(viewGroup) {
443
+ const hasAnimatedView = viewGroup.views.some(view => view.animated === true);
444
+ this.setShowAnimationTimeSlider(hasAnimatedView);
445
+ };
446
+
442
447
  ViewGallery.prototype.getAnimationTimeSlider = function() {
443
448
  return this.getAggregation("animationTimeSlider");
444
449
  };
@@ -655,7 +660,7 @@ sap.ui.define([
655
660
  this._playButton.setTooltip(getResourceBundle().getText("STEP_NAV_PLAYMENU_PAUSE"));
656
661
  } else {
657
662
  this._playButton.setIcon("sap-icon://media-play");
658
- this._playButton.setTooltip(getResourceBundle().getText("STEP_NAV_PLAYMENU_PLAY"));
663
+ this._playButton.setTooltip(getResourceBundle().getText("STEP_NAV_PLAYMENU_PLAYALLREMAINING"));
659
664
  }
660
665
  }
661
666
  };
@@ -1427,6 +1432,7 @@ sap.ui.define([
1427
1432
  this._loader.requestViewGroup(sceneId, id, false).then(function(views) {
1428
1433
  that._refreshItems();
1429
1434
  that.setSelectedViewIndex(viewIndex);
1435
+ that._updateAnimationTimeSlider(viewGroups[index]);
1430
1436
  }).catch(function(error) {
1431
1437
  Log.error(error);
1432
1438
  });
@@ -1434,11 +1440,13 @@ sap.ui.define([
1434
1440
  this._cdsLoader.loadViewGroup(sceneId, id).then(function(views) {
1435
1441
  that._refreshItems();
1436
1442
  that.setSelectedViewIndex(viewIndex);
1443
+ that._updateAnimationTimeSlider(viewGroups[index]);
1437
1444
  });
1438
1445
  }
1439
1446
  } else {
1440
1447
  this._refreshItems();
1441
1448
  this.setSelectedViewIndex(viewIndex);
1449
+ this._updateAnimationTimeSlider(viewGroups[index]);
1442
1450
  }
1443
1451
  }
1444
1452
  };
@@ -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.134.0
30
+ * @version 1.136.0
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.134.0
26
+ * @version 1.136.0
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.134.0
31
+ * @version 1.136.0
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.134.0
30
+ * @version 1.136.0
31
31
  * @extends sap.ui.vk.ViewStateManagerBase
32
32
  * @alias sap.ui.vk.ViewStateManager
33
33
  * @since 1.32.0
@@ -441,7 +441,6 @@ sap.ui.define([
441
441
  * @returns {any[]} array of joints or <code>undefined</code>
442
442
  * @see {@link sap.ui.vk.AnimationSequence.getJoint} for joint definition
443
443
  *
444
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
445
444
  * @private
446
445
  */
447
446
  ViewStateManager.prototype.getJoints = function() {
@@ -458,7 +457,6 @@ sap.ui.define([
458
457
  * @see {@link sap.ui.vk.AnimationSequence.setJoint} for joint definition
459
458
  * @returns {this} <code>this</code> to allow method chaining.
460
459
  *
461
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
462
460
  * @private
463
461
  */
464
462
  ViewStateManager.prototype.setJoints = function(joints, playback) {
@@ -1139,7 +1137,6 @@ sap.ui.define([
1139
1137
  *
1140
1138
  * @returns {?string} Image type string, or null
1141
1139
  * @private
1142
- * @experimental Since 1.82.0 This method is experimental and might be modified or removed in future versions
1143
1140
  */
1144
1141
  ViewStateManager.prototype.getBackgroundImageType = function() {
1145
1142
  if (this._implementation && this._implementation.getBackgroundImageType) {
@@ -1154,7 +1151,6 @@ sap.ui.define([
1154
1151
  * @param {string} imageType Image type string
1155
1152
  * @returns {object} Background node object
1156
1153
  * @private
1157
- * @experimental Since 1.82.0 This method is experimental and might be modified or removed in future versions
1158
1154
  */
1159
1155
  ViewStateManager.prototype.setBackgroundImageType = function(imageType) {
1160
1156
  if (this._implementation && this._implementation.setBackgroundImageType) {
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @public
27
27
  * @abstract
28
28
  * @author SAP SE
29
- * @version 1.134.0
29
+ * @version 1.136.0
30
30
  * @extends sap.ui.core.Element
31
31
  * @alias sap.ui.vk.ViewStateManagerBase
32
32
  * @since 1.32.0
@@ -628,7 +628,6 @@ sap.ui.define([
628
628
  * @param {sap.ui.vk.AnimationPlayback} playback animation playback containing the sequence the joints belong to, optional
629
629
  * @returns {this} <code>this</code> to allow method chaining.
630
630
  *
631
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
632
631
  * @private
633
632
  */
634
633
 
@@ -639,7 +638,6 @@ sap.ui.define([
639
638
  *
640
639
  * @returns {any[]} Object(s) containing joint and positioning data or <code>undefined</code> if no such joint present.
641
640
  *
642
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
643
641
  * @private
644
642
  */
645
643
 
@@ -91,7 +91,7 @@ sap.ui.define([
91
91
  * @param {object} [mSettings] initial settings for the new Viewer control
92
92
  * @public
93
93
  * @author SAP SE
94
- * @version 1.134.0
94
+ * @version 1.136.0
95
95
  * @since 1.32.0
96
96
  * @extends sap.ui.core.Control
97
97
  * @alias sap.ui.vk.Viewer
@@ -101,13 +101,6 @@ sap.ui.define([
101
101
  library: "sap.ui.vk",
102
102
 
103
103
  properties: {
104
- /**
105
- * Enables or disables the Overlay control
106
- */
107
- enableOverlay: {
108
- type: "boolean",
109
- defaultValue: false
110
- },
111
104
  /**
112
105
  * Disables the scene tree control Button on the menu
113
106
  */
@@ -296,11 +289,6 @@ sap.ui.define([
296
289
  }
297
290
  },
298
291
 
299
- overlay: {
300
- type: "sap.ui.vk.Overlay",
301
- multiple: false
302
- },
303
-
304
292
  progressIndicator: {
305
293
  type: "sap.m.ProgressIndicator",
306
294
  multiple: false,
@@ -531,31 +519,6 @@ sap.ui.define([
531
519
  this._stepNavigation = null;
532
520
  this._sceneTree = null;
533
521
  this._drawerToolbar = null;
534
- this._overlayManager = {
535
- initialized: false,
536
- changed: false,
537
- control: null,
538
- // Event handler for Native Viewport zoom & pan
539
- onNativeViewportMove: function(event) {
540
- var oPan = event.getParameter("pan");
541
- var zoomFactor = event.getParameter("zoom");
542
- this.control.setPanAndZoom(oPan.x, oPan.y, zoomFactor);
543
- },
544
- // Event handler for Viewport zoom
545
- onViewportZoom: function(event) {
546
- var zoomFactor = event.getParameter("zoomFactor");
547
- this.control.setPanAndZoom(0, 0, zoomFactor);
548
- },
549
- // Event handler for Viewport pan
550
- onViewportPan: function(event) {
551
- var dx = event.getParameter("dx");
552
- var dy = event.getParameter("dy");
553
- this.control.setPanAndZoom(dx, dy, 1);
554
- }
555
- };
556
- this._overlayManager.delegate = {
557
- onAfterRendering: this._onAfterRenderingOverlay.bind(this, this._viewport, this._nativeViewport, this._overlayManager)
558
- };
559
522
 
560
523
  this._toolbar = new Toolbar({
561
524
  title: this.getToolbarTitle(),
@@ -787,20 +750,6 @@ sap.ui.define([
787
750
  return this._redlineDesign;
788
751
  };
789
752
 
790
- Viewer.prototype.getOverlay = function() {
791
- // overlay control is not stored in overlay aggregation, since it may be aggregated by the stacked viewport
792
- // therefore we keep an additional reference in the _overlayManager
793
- return this._overlayManager.control;
794
- };
795
-
796
- Viewer.prototype.setEnableOverlay = function(oProperty) {
797
- if (oProperty !== this.getProperty("enableOverlay")) {
798
- this.setProperty("enableOverlay", oProperty);
799
- this._overlayManager.changed = true;
800
- }
801
- return this;
802
- };
803
-
804
753
  Viewer.prototype.setEnableSceneTree = function(oProperty) {
805
754
  this.setProperty("enableSceneTree", oProperty, true);
806
755
  if (!oProperty) {
@@ -1052,10 +1001,6 @@ sap.ui.define([
1052
1001
  // END: forward access to the contentResources aggregation to the content connector.
1053
1002
  ////////////////////////////////////////////////////////////////////////////
1054
1003
 
1055
- Viewer.prototype.onBeforeRendering = function() {
1056
- this._showOverlay();
1057
- };
1058
-
1059
1004
  Viewer.prototype.isTreeBinding = function(name) {
1060
1005
  return name === "contentResources";
1061
1006
  };
@@ -1203,81 +1148,6 @@ sap.ui.define([
1203
1148
  return this;
1204
1149
  };
1205
1150
 
1206
- Viewer.prototype._showOverlay = function() {
1207
- var oOverlayManager = this._overlayManager;
1208
- if (oOverlayManager.changed) {
1209
- var oOverlay;
1210
- if (this.getEnableOverlay()) {
1211
- sap.ui.require(["sap/ui/vk/Overlay"], function(Overlay) {
1212
- if (!oOverlayManager.initialized) {
1213
- // overlay not yet initialized -> check if overlay is given
1214
- if (!(oOverlay = this.getAggregation("overlay"))) {
1215
- // no Overlay control given -> create one
1216
- oOverlay = new Overlay();
1217
- }
1218
- oOverlay.setZoomOnResize(false);
1219
- oOverlayManager.control = oOverlay;
1220
- oOverlayManager.initialized = true;
1221
- } else {
1222
- oOverlay = oOverlayManager.control;
1223
- oOverlay.reset();
1224
- }
1225
- // The Overlay needs to be appended to either Viewport or Native Viewport
1226
- // so we check which one is active.
1227
- if (this._nativeViewport && this._nativeViewport.getVisible()) {
1228
- oOverlay.setTarget(this._nativeViewport);
1229
- // set zoom restriction
1230
- oOverlayManager.savedLimitZoomOutState = this._nativeViewport.getLimitZoomOut();
1231
- this._nativeViewport.setLimitZoomOut(true);
1232
- // register move event of native Viewport to adapt pan and zoom state
1233
- this._nativeViewport.attachEvent("move", oOverlayManager.onNativeViewportMove, oOverlayManager);
1234
- } else if (this._viewport && this._viewport.getVisible()) {
1235
- oOverlay.setTarget(this._viewport);
1236
- oOverlayManager.savedLimitZoomOutState = false;
1237
- // Capturing the Viewport zooming and panning events so we can pass them
1238
- // through to the Overlay so it can zoom and pan the overlay areas (hotspots).
1239
- this._viewport.attachEvent("zoom", oOverlayManager.onViewportZoom, oOverlayManager);
1240
- this._viewport.attachEvent("pan", oOverlayManager.onViewportPan, oOverlayManager);
1241
- }
1242
-
1243
- // add Overlay to stacked Viewport
1244
- this._stackedViewport.addContent(oOverlay);
1245
- this._stackedViewport.addDelegate(oOverlayManager.delegate);
1246
- }.bind(this));
1247
- } else {
1248
- // de-register move event of native Viewport to adapt pan and zoom state
1249
- this._nativeViewport.detachEvent("move", oOverlayManager.onNativeViewportMove, oOverlayManager);
1250
- // remove Overlay from stacked Viewport
1251
- this._stackedViewport.removeDelegate(oOverlayManager.delegate);
1252
- this._stackedViewport.removeContent(oOverlayManager.control);
1253
- // remove zoom restriction
1254
- this._nativeViewport.setLimitZoomOut(oOverlayManager.savedLimitZoomOutState);
1255
- }
1256
- oOverlayManager.changed = false;
1257
- }
1258
- };
1259
-
1260
- Viewer.prototype._onAfterRenderingOverlay = function(oEvent) {
1261
- // manipulate DOM tree after rendering of stacked viewport
1262
- var overlayDiv = this._overlayManager.control.getDomRef();
1263
-
1264
- if (overlayDiv && (this._nativeViewport || this._viewport)) {
1265
- // viewportToAppend is the domRef to either viewport or nativeViewport
1266
- var viewportToAppend = this._nativeViewport && this._nativeViewport.getVisible() ? this._nativeViewport.getDomRef() : this._viewport.getDomRef();
1267
-
1268
- if (overlayDiv.parentNode !== viewportToAppend) {
1269
- // Do not display the content div the overlay belongs to;
1270
- // otherwise it would receive all events we expect on the overlay
1271
- overlayDiv.parentNode.style.display = "none";
1272
- }
1273
- // make overlay a child of viewport/nativeViewport to get event bubbling right
1274
- viewportToAppend.appendChild(overlayDiv);
1275
- // adapt overlay size to parent node
1276
- overlayDiv.style.width = "100%";
1277
- overlayDiv.style.height = "100%";
1278
- }
1279
- };
1280
-
1281
1151
  /**
1282
1152
  * Sets an object that decrypts content of encrypted models.
1283
1153
  *
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @param {object} [mSettings] Initial settings for the new Viewport control.
38
38
  * @public
39
39
  * @author SAP SE
40
- * @version 1.134.0
40
+ * @version 1.136.0
41
41
  * @extends sap.ui.vk.ViewportBase
42
42
  * @alias sap.ui.vk.Viewport
43
43
  * @since 1.50.0
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @public
41
41
  * @abstract
42
42
  * @author SAP SE
43
- * @version 1.134.0
43
+ * @version 1.136.0
44
44
  * @extends sap.ui.core.Control
45
45
  * @alias sap.ui.vk.ViewportBase
46
46
  * @since 1.50.0
@@ -383,6 +383,8 @@ sap.ui.define([
383
383
  }
384
384
  },
385
385
 
386
+ renderer: null,
387
+
386
388
  constructor: function(sId, mSettings) {
387
389
  Control.apply(this, arguments);
388
390
  vkCore.observeAssociations(this);
@@ -18,7 +18,8 @@ sap.ui.define([
18
18
  * @enum {string}
19
19
  * @readonly
20
20
  * @alias sap.ui.vk.VisibilityMode
21
- * @public
21
+ * @private
22
+ * @since 1.136.0
22
23
  */
23
24
  var VisibilityMode = {
24
25
  /**
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  *
38
38
  * @public
39
39
  * @author SAP SE
40
- * @version 1.134.0
40
+ * @version 1.136.0
41
41
  * @extends sap.ui.vk.BaseNodeProxy
42
42
  * @implements sap.ui.base.Poolable
43
43
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.BaseNodeProxy} instead.
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @param {object} [mSettings] Initial settings for the new ContentManager object.
26
26
  * @public
27
27
  * @author SAP SE
28
- * @version 1.134.0
28
+ * @version 1.136.0
29
29
  * @extends sap.ui.vk.ContentManager
30
30
  * @alias sap.ui.vk.dvl.ContentManager
31
31
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ContentManager} instead.
@@ -279,7 +279,7 @@ sap.ui.define([
279
279
  * @param {object} webGLContextAttributes The WebGL context attributes. See {@link https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2 WebGL context attributes}.
280
280
  * @public
281
281
  * @author SAP SE
282
- * @version 1.134.0
282
+ * @version 1.136.0
283
283
  * @extends sap.ui.base.EventProvider
284
284
  * @alias sap.ui.vk.dvl.GraphicsCore
285
285
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ContentConnector} instead.
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  *
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.134.0
34
+ * @version 1.136.0
35
35
  * @extends sap.ui.vk.LayerProxy
36
36
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.LayerProxy} instead.
37
37
  * @alias sap.ui.vk.dvl.LayerProxy
@@ -71,7 +71,7 @@ sap.ui.define([
71
71
  *
72
72
  * @public
73
73
  * @author SAP SE
74
- * @version 1.134.0
74
+ * @version 1.136.0
75
75
  * @extends sap.ui.vk.NodeHierarchy
76
76
  * @alias sap.ui.vk.dvl.NodeHierarchy
77
77
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.NodeHierarchy} instead.
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  *
37
37
  * @public
38
38
  * @author SAP SE
39
- * @version 1.134.0
39
+ * @version 1.136.0
40
40
  * @extends sap.ui.vk.NodeProxy
41
41
  * @alias sap.ui.vk.dvl.NodeProxy
42
42
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.NodeProxy} instead.
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  *
31
31
  * @public
32
32
  * @author SAP SE
33
- * @version 1.134.0
33
+ * @version 1.136.0
34
34
  * @extends sap.ui.vk.Scene
35
35
  * @alias sap.ui.vk.dvl.Scene
36
36
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.Scene} instead.
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @param {object} [mSettings] Initial settings for the new ViewStateManager object.
42
42
  * @public
43
43
  * @author SAP SE
44
- * @version 1.134.0
44
+ * @version 1.136.0
45
45
  * @extends sap.ui.vk.ViewStateManagerBase
46
46
  * @alias sap.ui.vk.dvl.ViewStateManager
47
47
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ViewStateManager} instead.
@@ -115,7 +115,7 @@ sap.ui.define([
115
115
  * @param {object} [mSettings] Initial settings for the new Viewport control.
116
116
  * @public
117
117
  * @author SAP SE
118
- * @version 1.134.0
118
+ * @version 1.136.0
119
119
  * @extends sap.ui.vk.ViewportBase
120
120
  * @alias sap.ui.vk.dvl.Viewport
121
121
  * @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.Viewport} instead.