@sapui5/sap.ui.vk 1.134.0 → 1.135.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 (173) 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 +1 -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/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/library.js +3 -2
  74. package/src/sap/ui/vk/matai/MataiLoaderWorker.js +4 -0
  75. package/src/sap/ui/vk/measurements/Angle.js +1 -1
  76. package/src/sap/ui/vk/measurements/Area.js +1 -1
  77. package/src/sap/ui/vk/measurements/Distance.js +1 -1
  78. package/src/sap/ui/vk/measurements/Edge.js +1 -1
  79. package/src/sap/ui/vk/measurements/Face.js +1 -1
  80. package/src/sap/ui/vk/measurements/Feature.js +1 -1
  81. package/src/sap/ui/vk/measurements/Surface.js +1 -1
  82. package/src/sap/ui/vk/measurements/Vertex.js +1 -1
  83. package/src/sap/ui/vk/pdf/ContentManager.js +1 -1
  84. package/src/sap/ui/vk/pdf/Viewport.js +1 -1
  85. package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
  86. package/src/sap/ui/vk/svg/ContentDeliveryService.js +1 -1
  87. package/src/sap/ui/vk/svg/ContentManager.js +1 -1
  88. package/src/sap/ui/vk/svg/HotspotHelper.js +2 -4
  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 +1 -2
  94. package/src/sap/ui/vk/svg/ViewStateManager.js +1 -2
  95. package/src/sap/ui/vk/svg/Viewport.js +1 -1
  96. package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
  97. package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -2
  98. package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
  99. package/src/sap/ui/vk/threejs/Billboard.js +1 -2
  100. package/src/sap/ui/vk/threejs/Callout.js +1 -2
  101. package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
  102. package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
  103. package/src/sap/ui/vk/threejs/DetailView.js +1 -2
  104. package/src/sap/ui/vk/threejs/HighlightPlayer.js +18 -25
  105. package/src/sap/ui/vk/threejs/Material.js +1 -4
  106. package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
  107. package/src/sap/ui/vk/threejs/NodeProxy.js +7 -26
  108. package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
  109. package/src/sap/ui/vk/threejs/ParametricGenerators.js +1 -1
  110. package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
  111. package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -2
  112. package/src/sap/ui/vk/threejs/PolylineGeometry.js +29 -1
  113. package/src/sap/ui/vk/threejs/Scene.js +83 -76
  114. package/src/sap/ui/vk/threejs/SceneBuilder.js +7 -22
  115. package/src/sap/ui/vk/threejs/Texture.js +1 -4
  116. package/src/sap/ui/vk/threejs/ThreeExtensions.js +21 -74
  117. package/src/sap/ui/vk/threejs/ThreeUtils.js +1 -1
  118. package/src/sap/ui/vk/threejs/Thrustline.js +1 -4
  119. package/src/sap/ui/vk/threejs/ViewStateManager.js +7 -8
  120. package/src/sap/ui/vk/threejs/Viewport.js +1 -3
  121. package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +12 -29
  122. package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
  123. package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +11 -3
  124. package/src/sap/ui/vk/tools/AngleMeasurementToolGizmo.js +2 -1
  125. package/src/sap/ui/vk/tools/AreaMeasurementToolGizmo.js +2 -1
  126. package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -7
  127. package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
  128. package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
  129. package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +3 -2
  130. package/src/sap/ui/vk/tools/CreateParametricGizmo.js +3 -2
  131. package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
  132. package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +3 -2
  133. package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
  134. package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +3 -2
  135. package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
  136. package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +12 -1
  137. package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
  138. package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +11 -1
  139. package/src/sap/ui/vk/tools/DistanceMeasurementToolGizmo.js +2 -1
  140. package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
  141. package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +3 -2
  142. package/src/sap/ui/vk/tools/ExplodeItemGroup.js +1 -1
  143. package/src/sap/ui/vk/tools/ExplodeTool.js +3 -3
  144. package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +3 -2
  145. package/src/sap/ui/vk/tools/Gizmo.js +2 -5
  146. package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
  147. package/src/sap/ui/vk/tools/MeasurementToolGizmo.js +2 -1
  148. package/src/sap/ui/vk/tools/MoveTool.js +1 -1
  149. package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
  150. package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
  151. package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
  152. package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
  153. package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
  154. package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
  155. package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
  156. package/src/sap/ui/vk/tools/RotateTool.js +1 -1
  157. package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
  158. package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
  159. package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
  160. package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
  161. package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
  162. package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +13 -1
  163. package/src/sap/ui/vk/tools/Tool.js +1 -1
  164. package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
  165. package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
  166. package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
  167. package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
  168. package/src/sap/ui/vk/ve/matai.js +1 -1
  169. package/src/sap/ui/vk/ve/matai.wasm +0 -0
  170. package/src/sap/ui/vk/tools/AnchorPointToolGizmoRenderer.js +0 -40
  171. package/src/sap/ui/vk/tools/CreateTextToolGizmoRenderer.js +0 -41
  172. package/src/sap/ui/vk/tools/CrossSectionToolGizmoRenderer.js +0 -40
  173. package/src/sap/ui/vk/tools/SceneOrientationToolGizmoRenderer.js +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.vk",
3
- "version": "1.134.0",
3
+ "version": "1.135.0",
4
4
  "description": "SAPUI5 Library sap.ui.vk",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.134.0</version>
10
+ <version>1.135.0</version>
11
11
 
12
12
  <documentation>SAPUI5 Visualization Toolkit.</documentation>
13
13
 
@@ -27,10 +27,9 @@ sap.ui.define([
27
27
  *
28
28
  * @private
29
29
  * @author SAP SE
30
- * @version 1.134.0
30
+ * @version 1.135.0
31
31
  * @extends sap.ui.base.EventProvider
32
32
  * @alias sap.ui.vk.AnimationPlayback
33
- * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
34
33
  */
35
34
  var AnimationPlayback = EventProvider.extend("sap.ui.vk.AnimationPlayback", /** @lends sap.ui.vk.AnimationPlayback.prototype */ {
36
35
 
@@ -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.135.0
35
35
  * @extends sap.ui.core.Element
36
36
  * @alias sap.ui.vk.AnimationPlayer
37
37
  * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
@@ -33,11 +33,10 @@ sap.ui.define([
33
33
  *
34
34
  * @private
35
35
  * @author SAP SE
36
- * @version 1.134.0
36
+ * @version 1.135.0
37
37
  * @extends sap.ui.base.Object
38
38
  * @alias sap.ui.vk.AnimationSequence
39
39
  * @implements sap.ui.vk.IJointCollection
40
- * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
41
40
  */
42
41
  var AnimationSequence = BaseObject.extend("sap.ui.vk.AnimationSequence", /** @lends sap.ui.vk.AnimationSequence.prototype */ {
43
42
 
@@ -150,7 +149,6 @@ sap.ui.define([
150
149
  * @param {boolean} blockSequenceChangedEvent block event for sequence changed
151
150
  * @returns {this} <code>this</code> to allow method chaining.
152
151
  *
153
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
154
152
  * @private
155
153
  */
156
154
  AnimationSequence.prototype.setJoint = function(jointData, blockSequenceChangedEvent) {
@@ -198,7 +196,6 @@ sap.ui.define([
198
196
  *
199
197
  * @returns {any|any[]} Object(s) containing joint and positioning data or <code>undefined</code> if no such joint present.
200
198
  *
201
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
202
199
  * @private
203
200
  */
204
201
  AnimationSequence.prototype.getJoint = function(jointData) {
@@ -236,7 +233,6 @@ sap.ui.define([
236
233
  *
237
234
  * @returns {this} <code>this</code> to allow method chaining.
238
235
  *
239
- * @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
240
236
  * @private
241
237
  */
242
238
  AnimationSequence.prototype.removeJoint = function(jointData) {
@@ -26,12 +26,11 @@ sap.ui.define([
26
26
  * @extends sap.m.Slider
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.134.0
29
+ * @version 1.135.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
33
33
  * @alias sap.ui.vk.AnimationTimeSlider
34
- * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
35
34
  */
36
35
  var AnimationTimeSlider = Slider.extend("sap.ui.vk.AnimationTimeSlider", /** @lends sap.ui.vk.AnimationTimeSlider.prototype */ {
37
36
  metadata: {
@@ -32,12 +32,11 @@ sap.ui.define([
32
32
  * @param {boolean} parameters.infinite infinite flag
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.134.0
35
+ * @version 1.135.0
36
36
  * @extends sap.ui.base.Object
37
37
  * @alias sap.ui.vk.AnimationTrack
38
38
  *
39
39
  * @private
40
- * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
41
40
  */
42
41
  var AnimationTrack = BaseObject.extend("sap.ui.vk.AnimationTrack", /** @lends sap.ui.vk.AnimationTrack.prototype */ {
43
42
 
@@ -72,7 +71,7 @@ sap.ui.define([
72
71
  * @returns {boolean} is absolute value.
73
72
  * @public
74
73
  */
75
- AnimationTrack.prototype.getIsAbsoluteValue = function() {
74
+ AnimationTrack.prototype.getIsAbsoluteValue = function() {
76
75
  return this._jsonData._isAbsoluteValue;
77
76
  };
78
77
 
@@ -334,4 +333,3 @@ sap.ui.define([
334
333
 
335
334
  return AnimationTrack;
336
335
  });
337
-
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  *
41
41
  * @public
42
42
  * @author SAP SE
43
- * @version 1.134.0
43
+ * @version 1.135.0
44
44
  * @extends sap.ui.core.Control
45
45
  * @alias sap.ui.vk.Annotation
46
46
  * @experimental Since 1.76.0 This class is experimental and might be modified or removed in future versions.
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @public
37
37
  * @abstract
38
38
  * @author SAP SE
39
- * @version 1.134.0
39
+ * @version 1.135.0
40
40
  * @extends sap.ui.base.Object
41
41
  * @implements sap.ui.base.Poolable, sap.ui.vk.BaseNodeProxy
42
42
  * @alias sap.ui.vk.BaseNodeProxy
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @public
24
24
  * @abstract
25
25
  * @author SAP SE
26
- * @version 1.134.0
26
+ * @version 1.135.0
27
27
  * @extends sap.ui.base.ManagedObject
28
28
  * @alias sap.ui.vk.Camera
29
29
  * @since 1.52.0
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @param {object} [mSettings] Initial settings for the new ContentConnector object.
41
41
  * @public
42
42
  * @author SAP SE
43
- * @version 1.134.0
43
+ * @version 1.135.0
44
44
  * @extends sap.ui.core.Element
45
45
  * @alias sap.ui.vk.ContentConnector
46
46
  */
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @protected
27
27
  * @abstract
28
28
  * @author SAP SE
29
- * @version 1.134.0
29
+ * @version 1.135.0
30
30
  * @extends sap.ui.base.ManagedObject
31
31
  * @alias sap.ui.vk.ContentManager
32
32
  * @since 1.50.0
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @param {object} [oScope] scope An object for resolving string-based type and formatter references in bindings.
28
28
  * @public
29
29
  * @author SAP SE
30
- * @version 1.134.0
30
+ * @version 1.135.0
31
31
  * @extends sap.ui.base.ManagedObject
32
32
  * @alias sap.ui.vk.ContentResource
33
33
  */
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @final
40
40
  * @private
41
41
  * @author SAP SE
42
- * @version 1.134.0
42
+ * @version 1.135.0
43
43
  * @extends sap.ui.base.ManagedObject
44
44
  * @alias sap.ui.vk.Core
45
45
  * @since 1.50.0
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * If left undefined, the number of retry attempts will default to 1. Passing in 0 disables any retry attempts.
38
38
  * @private
39
39
  * @author SAP SE
40
- * @version 1.134.0
40
+ * @version 1.135.0
41
41
  * @extends sap.ui.base.EventProvider
42
42
  * @alias sap.ui.vk.DownloadManager
43
43
  * @since 1.32.0
@@ -117,7 +117,7 @@ sap.ui.define([
117
117
  * @extends sap.ui.core.Control
118
118
  *
119
119
  * @author SAP
120
- * @version 1.134.0
120
+ * @version 1.135.0
121
121
  *
122
122
  * @public
123
123
  * @alias sap.ui.vk.DrawerToolbar
@@ -18,7 +18,7 @@ sap.ui.define(["sap/ui/base/Exception"], function(Exception) {
18
18
  * @param {string} message The error message.
19
19
  * @private
20
20
  * @author SAP SE
21
- * @version 1.134.0
21
+ * @version 1.135.0
22
22
  * @extends sap.ui.base.Exception
23
23
  * @alias sap.ui.vk.DvlException
24
24
  */
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.134.0
33
+ * @version 1.135.0
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * (The CSS value "auto" is used internally to recalculate the size of the content
28
28
  * dynamically and is not directly set as style property.)
29
29
  * @extends sap.ui.core.LayoutData
30
- * @version 1.134.0
30
+ * @version 1.135.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -26,11 +26,10 @@ sap.ui.define([
26
26
  *
27
27
  * @private
28
28
  * @author SAP SE
29
- * @version 1.134.0
29
+ * @version 1.135.0
30
30
  * @extends sap.ui.base.Object
31
31
  * @alias sap.ui.vk.Highlight
32
32
  * @since 1.73.0
33
- * @experimental This class is experimental and might be modified or removed in future versions.
34
33
  */
35
34
  var Highlight = BaseObject.extend("sap.ui.vk.Highlight", /** @lends sap.ui.vk.Highlight.prototype */ {
36
35
 
@@ -40,342 +39,65 @@ sap.ui.define([
40
39
  this._name = parameters && parameters.name ? parameters.name : "";
41
40
  this._duration = parameters && parameters.duration ? parameters.duration : 0.0;
42
41
  this._cycles = parameters && parameters.cycles ? parameters.cycles : 0;
43
- this._colours = parameters && parameters.colours ? parameters.colours : [];
44
- this._opacities = parameters && parameters.opacities ? parameters.opacities : [];
45
-
46
- this._fadeOut = parameters && parameters.fadeOut ? parameters.fadeOut : false;
47
-
48
- this._reset();
42
+ this._colours = parameters?.colours ?? []; // [mid-cycle color, start color]
43
+ this._opacities = parameters?.opacities ?? []; // [mid-cycle opacity, start opacity]
44
+ this._type = parameters?.type;
49
45
  }
50
46
  });
51
47
 
52
- /**
53
- * Gets the highlight ID.
54
- * @returns {string} The highlight ID.
55
- * @public
56
- */
57
- Highlight.prototype.getId = function() {
58
- return this._id;
59
- };
60
-
61
- /**
62
- * Gets the highlight name.
63
- * @returns {string} The highlight name.
64
- * @public
65
- */
66
- Highlight.prototype.getName = function() {
67
- return this._name;
68
- };
69
-
70
- /**
71
- * Sets the highlight name.
72
- * @param {string} name The highlight name.
73
- * @returns {this} <code>this</code> to allow method chaining.
74
- * @public
75
- */
76
- Highlight.prototype.setName = function(name) {
77
- this._name = name;
78
- return this;
79
- };
80
-
81
- /**
82
- * Gets the highlight duration.
83
- * @returns {float} The highlight duration.
84
- * @public
85
- */
86
- Highlight.prototype.getDuration = function() {
87
- return this._duration;
88
- };
89
-
90
- /**
91
- * Sets the highlight duration.
92
- * @param {float} duration The highlight duration.
93
- * @returns {this} <code>this</code> to allow method chaining.
94
- * @public
95
- */
96
- Highlight.prototype.setDuration = function(duration) {
97
- this._duration = duration;
98
- this._reset();
99
- return this;
100
- };
101
-
102
- /**
103
- * Gets the highlight cycles.
104
- * @returns {IntersectionObserverEntryInit} The highlight cycles.
105
- * @public
106
- */
107
- Highlight.prototype.getCycles = function() {
108
- return this._cycles;
109
- };
110
-
111
- /**
112
- * Sets the highlight cycles.
113
- * @param {int} cycles The highlight cycles.
114
- * @returns {this} <code>this</code> to allow method chaining.
115
- * @public
116
- */
117
- Highlight.prototype.setCycles = function(cycles) {
118
- this._cycles = cycles;
119
- this._reset();
120
- return this;
121
- };
122
-
123
- /**
124
- * Gets the highlight opacities.
125
- * @returns {float[]} The highlight opacities.
126
- * @public
127
- */
128
- Highlight.prototype.getOpacities = function() {
129
- return this._opacities;
130
- };
131
-
132
- /**
133
- * Sets the highlight opacities.
134
- * @param {float[]} opacities The highlight opacities.
135
- * @returns {this} <code>this</code> to allow method chaining.
136
- * @public
137
- */
138
- Highlight.prototype.setOpacities = function(opacities) {
139
- this._opacities = opacities;
140
- this._reset();
141
- return this;
142
- };
143
-
144
- /**
145
- * Gets the highlight colours.
146
- * @returns {array[]} The highlight colours [[r1, g1, b1, a1], [r2, g2, b2, a2], ...]
147
- * @public
148
- */
149
- Highlight.prototype.getColours = function() {
150
- return this._colours;
151
- };
152
-
153
- /**
154
- * Sets the highlight colours.
155
- * @param {array[]} colours The highlight colours [[r1, g1, b1, a1], [r2, g2, b2, a2], ...]
156
- * @returns {this} <code>this</code> to allow method chaining.
157
- * @public
158
- */
159
- Highlight.prototype.setColours = function(colours) {
160
- this._colours = colours;
161
- this._reset();
162
- return this;
163
- };
164
-
165
- const minDuration = 0.001; // duration less than 1 ms is definitely not noticeable
48
+ function timeToBlendFactor(time, duration) {
49
+ const f = (time % duration) / duration;
50
+ return f < 0.5 ? f * 2 : 2 - f * 2;
51
+ }
166
52
 
167
- Highlight.prototype._reset = function() {
53
+ Highlight.prototype.evaluate = function(time) {
54
+ const res = { isCompleted: true };
168
55
 
169
- var ki, oi, timeInterval;
170
-
171
- var needOpacity = false;
172
- if (this._opacities && this._opacities.length) {
173
- for (var i = 0; i < this._opacities.length; i++) {
174
- if (this._opacities[i] < 0.999) {
175
- needOpacity = true;
176
- break;
177
- }
178
- }
179
- }
180
- if (needOpacity) {
181
- if (this._duration < minDuration || this._opacities.length === 1) { // static
182
- this._adjustedOpacities = [this._opacities[0]];
183
- this._opacityTimes = [0.0];
184
- } else if (this._cycles > 0) { // finite
185
- timeInterval = this._duration / this._opacities.length;
186
- this._adjustedOpacities = [];
187
- this._opacityTimes = [];
188
- for (ki = 0; ki < this._cycles; ki++) {
189
- for (oi = 0; oi < this._opacities.length; oi++) {
190
- this._adjustedOpacities.push(this._opacities[oi]);
191
- this._opacityTimes.push(timeInterval * (ki * this._opacities.length + oi));
192
- }
193
- }
194
- } else { // infinite
195
- timeInterval = this._duration / this._opacities.length;
196
- this._adjustedOpacities = [];
197
- this._opacityTimes = [];
198
- for (oi = 0; oi < this._opacities.length; oi++) {
199
- this._adjustedOpacities.push(this._opacities[oi]);
200
- this._opacityTimes.push(timeInterval * oi);
201
- }
202
-
203
- this._adjustedOpacities.push(this._opacities[0]);
204
- this._opacityTimes.push(timeInterval * this._opacities.length);
205
- }
206
- } else {
207
- this._adjustedOpacities = [];
208
- this._opacityTimes = [];
209
- }
210
-
211
- var needColour = true;
212
-
213
- if (this._colours && this._colours.length) {
214
- for (var j = 0; j < this._colours.length; j++) {
215
- if (this._colours[j][3] < 0) {
216
- needColour = false;
217
- break;
218
- }
219
- }
220
- } else {
221
- needColour = false;
222
- }
223
-
224
- if (needColour) {
225
- if (this._cycles === 0 && this._duration > 0.0) { // infinite highlight
226
- if (this._colours.length === 1) {
227
- this._colours.push([0, 0, 0, 0]);
228
- }
229
- }
230
-
231
- if (this._duration < minDuration || this._colours.length === 1) { // static
232
- this._adjustedColours = [this._colours[0]];
233
- this._colourTimes = [0.0];
234
- } else if (this._cycles > 0) { // finite
235
- timeInterval = this._duration / this._colours.length;
236
- this._adjustedColours = [];
237
- this._colourTimes = [];
238
- for (ki = 0; ki < this._cycles; ki++) {
239
- for (oi = 0; oi < this._colours.length; oi++) {
240
- this._adjustedColours.push(this._colours[oi]);
241
- this._colourTimes.push(timeInterval * (ki * this._colours.length + oi));
242
- }
243
- }
244
- } else { // infinite
245
- timeInterval = this._duration / this._colours.length;
246
- this._adjustedColours = [];
247
- this._colourTimes = [];
248
- for (oi = 0; oi < this._colours.length; oi++) {
249
- this._adjustedColours.push(this._colours[oi]);
250
- this._colourTimes.push(timeInterval * oi);
251
- }
252
-
253
- this._adjustedColours.push(this._colours[0]);
254
- this._colourTimes.push(timeInterval * this._colours.length);
56
+ let f = 1;
57
+ if (this._duration > 0) {
58
+ if (this._cycles > 0 && time >= this._duration * this._cycles) {
59
+ f = timeToBlendFactor(this._duration * this._cycles, this._duration);
60
+ } else {
61
+ f = timeToBlendFactor(time, this._duration);
62
+ res.isCompleted = false;
255
63
  }
256
- } else {
257
- this._adjustedColours = [];
258
- this._colourTimes = [];
259
- }
260
- };
261
-
262
- /**
263
- * Gets the highlight opacity at the specified time.
264
- * @param {float} time Time from beginning of the highlight animation
265
- * @returns {object} <code>undefined</code> if highlight opacity does not exist or object with two properties:
266
- * <ul>
267
- * <li>{float | undefined} result.opacity, if undefined the original opacity of object should be restored</li>
268
- * <li>{boolean} result.isCompleted, true if highlight is completed</li>
269
- * </ul>
270
- * @public
271
- */
272
- Highlight.prototype.getOpacity = function(time) {
273
- if (!this._adjustedOpacities || !this._adjustedOpacities.length) {
274
- return undefined;
275
64
  }
276
65
 
277
- var result = {};
278
- if (this._adjustedOpacities.length === 1) { // static highlight or single opacity
279
- result.opacity = this._adjustedOpacities[0];
280
- result.isCompleted = true;
281
- return result;
282
- }
283
-
284
- var duration = this._opacityTimes[this._opacityTimes.length - 1];
285
-
286
- var currentTime = time;
287
- if (this._cycles === 0) { // infinite highlight
288
- currentTime %= duration;
289
- }
290
-
291
- if (currentTime >= duration) {
292
- if (this._cycles > 0) { // finite highlight, need to use the original opacity
293
- result.isCompleted = true;
294
- result.opacity = undefined;
66
+ if (this._opacities?.length > 0) {
67
+ if (f >= 1 || this._opacities.length < 2) {
68
+ res.opacity = this._opacities[0];
69
+ } else if (f <= 0) {
70
+ res.opacity = this._opacities[1];
295
71
  } else {
296
- result.isCompleted = false;
297
- result.opacity = this._adjustedOpacities[this._adjustedOpacities.length - 1];
72
+ res.opacity = this._opacities[0] * f + this._opacities[1] * (1 - f);
298
73
  }
299
- return result;
300
74
  }
301
75
 
302
- var timeInterval = this._opacityTimes[1] - this._opacityTimes[0];
303
-
304
- var ratio = currentTime / timeInterval;
305
- var index1 = Math.floor(ratio);
306
- var intepolateRatio = ratio - index1;
307
- result.opacity = this._adjustedOpacities[index1] * (1 - intepolateRatio) + this._adjustedOpacities[index1 + 1] * intepolateRatio;
308
- result.isCompleted = false;
309
- return result;
310
- };
311
-
312
- /**
313
- * Gets the highlight colour at the specified time.
314
- * @param {float} time the time from highlight starts
315
- * @returns {undefined | object} <code>undefined</code> if highlight colour does not exist or object with two properties:
316
- * <ul>
317
- * <li>{float[] | undefined} result.colour in form [r,g,b,a], if undefined the original colour of object should be restored</li>
318
- * <li>{boolean} result.isCompleted, true if highlight is completed</li>
319
- * </ul>
320
- * @public
321
- */
322
- Highlight.prototype.getColour = function(time) {
323
- if (!this._adjustedColours || !this._adjustedColours.length) {
324
- return undefined;
325
- }
326
-
327
- var result = {};
328
- if (this._adjustedColours.length === 1) { // static highlight or single colours
329
- result.colour = this._adjustedColours[0];
330
- result.isCompleted = true;
331
- return result;
332
- }
333
-
334
- var duration = this._colourTimes[this._colourTimes.length - 1];
335
-
336
- var currentTime = time;
337
- if (this._cycles === 0) { // infinite highlight
338
- currentTime %= duration;
339
- }
340
-
341
- if (currentTime >= duration) {
342
- if (this._cycles > 0) { // finite highlight, need to use the original colour
343
- result.isCompleted = true;
344
- result.colour = undefined;
76
+ if (this._colours?.length > 0) {
77
+ if (f >= 1 || this._colours.length < 2) {
78
+ res.color = this._colours[0];
79
+ } else if (f <= 0) {
80
+ res.color = this._colours[1];
345
81
  } else {
346
- result.isCompleted = false;
347
- result.colour = this._adjustedColours[this._adjustedColours.length - 1];
82
+ res.color = [
83
+ this._colours[0][0] * f + this._colours[1][0] * (1 - f),
84
+ this._colours[0][1] * f + this._colours[1][1] * (1 - f),
85
+ this._colours[0][2] * f + this._colours[1][2] * (1 - f),
86
+ this._colours[0][3] * f + this._colours[1][3] * (1 - f)
87
+ ];
348
88
  }
349
- return result;
350
89
  }
351
90
 
352
- var timeInterval = this._colourTimes[1] - this._colourTimes[0];
353
-
354
- var ratio = currentTime / timeInterval;
355
- var index = Math.floor(ratio);
356
- var intepolateRatio = ratio - index;
357
-
358
- var r = this._adjustedColours[index][0] * (1 - intepolateRatio) + this._adjustedColours[index + 1][0] * intepolateRatio;
359
- var g = this._adjustedColours[index][1] * (1 - intepolateRatio) + this._adjustedColours[index + 1][1] * intepolateRatio;
360
- var b = this._adjustedColours[index][2] * (1 - intepolateRatio) + this._adjustedColours[index + 1][2] * intepolateRatio;
361
- var a = this._adjustedColours[index][3] * (1 - intepolateRatio) + this._adjustedColours[index + 1][3] * intepolateRatio;
362
-
363
- result.colour = [r, g, b, a]; // finite highlight outside playing cycles
364
- result.isCompleted = false;
365
- return result;
91
+ return res;
366
92
  };
367
93
 
368
94
  /**
369
- * Gets the last opacity value.
370
- * @returns {float} last opacity value
95
+ * Gets if the highlighted nodes are fading in or fading out.
96
+ * @returns {boolean} true if the highlighted nodes fade in or fade out at the end
371
97
  * @public
372
98
  */
373
- Highlight.prototype.getLastOpacity = function() {
374
- var result;
375
- if (this._opacities && this._opacities.length > 0) {
376
- result = this._opacities[this._opacities.length - 1];
377
- }
378
- return result;
99
+ Highlight.prototype.isFadeInOut = function() {
100
+ return this._type?.startsWith("Fade") === true;
379
101
  };
380
102
 
381
103
  /**
@@ -384,7 +106,7 @@ sap.ui.define([
384
106
  * @public
385
107
  */
386
108
  Highlight.prototype.isFadeOut = function() {
387
- return this._fadeOut;
109
+ return this._type === "FadeOut";
388
110
  };
389
111
 
390
112
  return Highlight;
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @param {object} [mSettings] Initial settings for the new ImageContentManager object.
30
30
  * @public
31
31
  * @author SAP SE
32
- * @version 1.134.0
32
+ * @version 1.135.0
33
33
  * @extends sap.ui.vk.ContentManager
34
34
  * @alias sap.ui.vk.ImageContentManager
35
35
  * @since 1.50.0
@@ -20,10 +20,9 @@ sap.ui.define([
20
20
  *
21
21
  * @private
22
22
  * @author SAP SE
23
- * @version 1.134.0
23
+ * @version 1.135.0
24
24
  * @alias sap.ui.vk.JointUtils
25
25
  * @since 1.74
26
- * @experimental Since 1.74 This class is experimental and might be modified or removed in future versions.
27
26
  */
28
27
  var JointUtils = {
29
28
  /**
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @public
31
31
  * @abstract
32
32
  * @author SAP SE
33
- * @version 1.134.0
33
+ * @version 1.135.0
34
34
  * @extends sap.ui.base.Object
35
35
  * @alias sap.ui.vk.LayerProxy
36
36
  */