@sapui5/sap.ui.vk 1.121.1 → 1.123.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 (204) 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 +4 -6
  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 +10 -10
  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/ContainerBase.js +1 -1
  12. package/src/sap/ui/vk/ContainerContent.js +1 -1
  13. package/src/sap/ui/vk/ContentConnector.js +6 -1
  14. package/src/sap/ui/vk/ContentManager.js +1 -1
  15. package/src/sap/ui/vk/ContentResource.js +2 -2
  16. package/src/sap/ui/vk/ContentResourceSourceCategory.js +1 -1
  17. package/src/sap/ui/vk/Core.js +7 -7
  18. package/src/sap/ui/vk/DownloadManager.js +1 -1
  19. package/src/sap/ui/vk/DrawerToolbar.js +67 -18
  20. package/src/sap/ui/vk/DrawerToolbarButton.js +3 -1
  21. package/src/sap/ui/vk/DvlException.js +1 -1
  22. package/src/sap/ui/vk/FlexibleControl.js +1 -1
  23. package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -1
  24. package/src/sap/ui/vk/Highlight.js +7 -10
  25. package/src/sap/ui/vk/ImageContentManager.js +1 -1
  26. package/src/sap/ui/vk/JointUtils.js +1 -1
  27. package/src/sap/ui/vk/LayerProxy.js +1 -1
  28. package/src/sap/ui/vk/LegendItem.js +1 -1
  29. package/src/sap/ui/vk/ListPanel.js +1 -1
  30. package/src/sap/ui/vk/ListPanelStack.js +1 -1
  31. package/src/sap/ui/vk/Loco.js +1 -1
  32. package/src/sap/ui/vk/MapContainer.js +4 -2
  33. package/src/sap/ui/vk/MapContainerButtonType.js +1 -1
  34. package/src/sap/ui/vk/Material.js +334 -132
  35. package/src/sap/ui/vk/NativeViewport.js +2 -2
  36. package/src/sap/ui/vk/NodeContentType.js +5 -0
  37. package/src/sap/ui/vk/NodeHierarchy.js +1 -1
  38. package/src/sap/ui/vk/NodeProxy.js +1 -1
  39. package/src/sap/ui/vk/NodeUtils.js +1 -1
  40. package/src/sap/ui/vk/Notifications.js +1 -1
  41. package/src/sap/ui/vk/OrthographicCamera.js +1 -1
  42. package/src/sap/ui/vk/Overlay.js +1 -0
  43. package/src/sap/ui/vk/OverlayArea.js +1 -0
  44. package/src/sap/ui/vk/OverlayRenderer.js +1 -0
  45. package/src/sap/ui/vk/PerspectiveCamera.js +1 -1
  46. package/src/sap/ui/vk/ProgressIndicator.js +1 -1
  47. package/src/sap/ui/vk/RedlineCollaboration.js +29 -31
  48. package/src/sap/ui/vk/RedlineConversation.js +1 -1
  49. package/src/sap/ui/vk/RedlineDesign.js +1 -1
  50. package/src/sap/ui/vk/RedlineDesignHandler.js +5 -5
  51. package/src/sap/ui/vk/RedlineElement.js +1 -1
  52. package/src/sap/ui/vk/RedlineElementComment.js +1 -1
  53. package/src/sap/ui/vk/RedlineElementEllipse.js +1 -1
  54. package/src/sap/ui/vk/RedlineElementFreehand.js +1 -1
  55. package/src/sap/ui/vk/RedlineElementLine.js +1 -1
  56. package/src/sap/ui/vk/RedlineElementRectangle.js +1 -1
  57. package/src/sap/ui/vk/RedlineElementText.js +1 -1
  58. package/src/sap/ui/vk/RedlineGesturesHandler.js +5 -5
  59. package/src/sap/ui/vk/RedlineSurface.js +1 -1
  60. package/src/sap/ui/vk/SafeArea.js +1 -1
  61. package/src/sap/ui/vk/Scene.js +1 -1
  62. package/src/sap/ui/vk/SceneTree.js +1 -1
  63. package/src/sap/ui/vk/StepNavigation.js +2 -2
  64. package/src/sap/ui/vk/Texture.js +1 -1
  65. package/src/sap/ui/vk/ToggleMenuButton.js +18 -12
  66. package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
  67. package/src/sap/ui/vk/Toolbar.js +10 -10
  68. package/src/sap/ui/vk/View.js +1 -1
  69. package/src/sap/ui/vk/ViewGallery.js +11 -7
  70. package/src/sap/ui/vk/ViewGalleryThumbnail.js +1 -1
  71. package/src/sap/ui/vk/ViewGroup.js +1 -1
  72. package/src/sap/ui/vk/ViewManager.js +7 -9
  73. package/src/sap/ui/vk/ViewStateManager.js +8 -8
  74. package/src/sap/ui/vk/ViewStateManagerBase.js +2 -2
  75. package/src/sap/ui/vk/Viewer.js +9 -7
  76. package/src/sap/ui/vk/Viewport.js +24 -1
  77. package/src/sap/ui/vk/ViewportBase.js +10 -10
  78. package/src/sap/ui/vk/dvl/BaseNodeProxy.js +2 -2
  79. package/src/sap/ui/vk/dvl/ContentManager.js +2 -2
  80. package/src/sap/ui/vk/dvl/GraphicsCore.js +4 -4
  81. package/src/sap/ui/vk/dvl/GraphicsCoreApi.js +1 -1
  82. package/src/sap/ui/vk/dvl/LayerProxy.js +2 -2
  83. package/src/sap/ui/vk/dvl/NodeHierarchy.js +2 -2
  84. package/src/sap/ui/vk/dvl/NodeProxy.js +2 -2
  85. package/src/sap/ui/vk/dvl/Scene.js +2 -2
  86. package/src/sap/ui/vk/dvl/ViewStateManager.js +3 -3
  87. package/src/sap/ui/vk/dvl/Viewport.js +5 -5
  88. package/src/sap/ui/vk/getResourceBundle.js +5 -3
  89. package/src/sap/ui/vk/i18n/messagebundle.properties +11 -0
  90. package/src/sap/ui/vk/library.js +5 -6
  91. package/src/sap/ui/vk/matai/MataiLoader.js +5 -5
  92. package/src/sap/ui/vk/matai/MataiLoaderWorker.js +19 -5
  93. package/src/sap/ui/vk/measurements/Angle.js +1 -1
  94. package/src/sap/ui/vk/measurements/Area.js +1 -1
  95. package/src/sap/ui/vk/measurements/Distance.js +1 -1
  96. package/src/sap/ui/vk/measurements/Edge.js +1 -1
  97. package/src/sap/ui/vk/measurements/Face.js +1 -1
  98. package/src/sap/ui/vk/measurements/Feature.js +1 -1
  99. package/src/sap/ui/vk/measurements/Surface.js +3 -3
  100. package/src/sap/ui/vk/measurements/Vertex.js +1 -1
  101. package/src/sap/ui/vk/pdf/ContentManager.js +147 -0
  102. package/src/sap/ui/vk/pdf/Document.js +52 -0
  103. package/src/sap/ui/vk/pdf/Page.js +128 -0
  104. package/src/sap/ui/vk/pdf/Utils.js +44 -0
  105. package/src/sap/ui/vk/pdf/Viewport.js +850 -0
  106. package/src/sap/ui/vk/pdf/ViewportRenderer.js +89 -0
  107. package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
  108. package/src/sap/ui/vk/svg/ContentDeliveryService.js +4 -3
  109. package/src/sap/ui/vk/svg/ContentManager.js +1 -1
  110. package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
  111. package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
  112. package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
  113. package/src/sap/ui/vk/svg/Scene.js +1 -1
  114. package/src/sap/ui/vk/svg/SceneBuilder.js +13 -26
  115. package/src/sap/ui/vk/svg/ViewStateManager.js +7 -7
  116. package/src/sap/ui/vk/svg/Viewport.js +10 -8
  117. package/src/sap/ui/vk/themes/base/ContainerBase.less +6 -2
  118. package/src/sap/ui/vk/themes/base/DrawerToolbar.less +6 -3
  119. package/src/sap/ui/vk/themes/base/PDFViewport.less +53 -0
  120. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.3.woff2 +0 -0
  121. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.3.woff2 +0 -0
  122. package/src/sap/ui/vk/themes/base/library.source.less +2 -1
  123. package/src/sap/ui/vk/themes/sap_horizon/library.source.less +1 -1
  124. package/src/sap/ui/vk/themes/sap_horizon_dark/library.source.less +1 -1
  125. package/src/sap/ui/vk/themes/sap_horizon_hcb/library.source.less +1 -1
  126. package/src/sap/ui/vk/themes/sap_horizon_hcw/library.source.less +1 -1
  127. package/src/sap/ui/vk/thirdparty/BufferGeometryUtils.js +23 -27
  128. package/src/sap/ui/vk/thirdparty/pdf.js +18150 -0
  129. package/src/sap/ui/vk/thirdparty/pdf.worker.js +57170 -0
  130. package/src/sap/ui/vk/thirdparty/three.js +2540 -841
  131. package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -1
  132. package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
  133. package/src/sap/ui/vk/threejs/Billboard.js +1 -1
  134. package/src/sap/ui/vk/threejs/Callout.js +1 -1
  135. package/src/sap/ui/vk/threejs/ContentDeliveryService.js +4 -3
  136. package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
  137. package/src/sap/ui/vk/threejs/DetailView.js +1 -1
  138. package/src/sap/ui/vk/threejs/HighlightPlayer.js +1 -1
  139. package/src/sap/ui/vk/threejs/Material.js +1 -1
  140. package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
  141. package/src/sap/ui/vk/threejs/NodeProxy.js +1 -1
  142. package/src/sap/ui/vk/threejs/NodesTransitionHelper.js +1 -1
  143. package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
  144. package/src/sap/ui/vk/threejs/ParametricGenerators.js +4 -2
  145. package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
  146. package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -1
  147. package/src/sap/ui/vk/threejs/Scene.js +1 -1
  148. package/src/sap/ui/vk/threejs/SceneBuilder.js +33 -33
  149. package/src/sap/ui/vk/threejs/Texture.js +1 -1
  150. package/src/sap/ui/vk/threejs/ThreeUtils.js +5 -2
  151. package/src/sap/ui/vk/threejs/Thrustline.js +5 -5
  152. package/src/sap/ui/vk/threejs/ViewStateManager.js +7 -7
  153. package/src/sap/ui/vk/threejs/Viewport.js +29 -23
  154. package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +2 -2
  155. package/src/sap/ui/vk/tools/AnchorPointTool.js +2 -2
  156. package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +1 -1
  157. package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -1
  158. package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
  159. package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
  160. package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +1 -1
  161. package/src/sap/ui/vk/tools/CreateParametricGizmo.js +1 -1
  162. package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
  163. package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +1 -1
  164. package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
  165. package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +1 -1
  166. package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
  167. package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +1 -1
  168. package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
  169. package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +1 -1
  170. package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
  171. package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +1 -1
  172. package/src/sap/ui/vk/tools/ExplodeTool.js +1 -1
  173. package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +4 -4
  174. package/src/sap/ui/vk/tools/Gizmo.js +1 -1
  175. package/src/sap/ui/vk/tools/HitTestTool.js +2 -36
  176. package/src/sap/ui/vk/tools/MeasurementToolGizmo.js +5 -5
  177. package/src/sap/ui/vk/tools/MoveTool.js +1 -1
  178. package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
  179. package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
  180. package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
  181. package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
  182. package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
  183. package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
  184. package/src/sap/ui/vk/tools/RedlineToolHandler.js +3 -3
  185. package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
  186. package/src/sap/ui/vk/tools/RotateTool.js +1 -1
  187. package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
  188. package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
  189. package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
  190. package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
  191. package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
  192. package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +1 -1
  193. package/src/sap/ui/vk/tools/Tool.js +1 -1
  194. package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
  195. package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
  196. package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
  197. package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
  198. package/src/sap/ui/vk/totara/TotaraLoader.js +7 -5
  199. package/src/sap/ui/vk/ve/dvl.wasm +0 -0
  200. package/src/sap/ui/vk/ve/matai.js +1 -1
  201. package/src/sap/ui/vk/ve/matai.wasm +0 -0
  202. package/ui5.yaml +4 -0
  203. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.2.woff2 +0 -0
  204. package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.2.woff2 +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.vk",
3
- "version": "1.121.1",
3
+ "version": "1.123.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.121.1</version>
10
+ <version>1.123.0</version>
11
11
 
12
12
  <documentation>SAPUI5 Visualization Toolkit.</documentation>
13
13
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * @private
29
29
  * @author SAP SE
30
- * @version 1.121.1
30
+ * @version 1.123.0
31
31
  * @extends sap.ui.base.EventProvider
32
32
  * @alias sap.ui.vk.AnimationPlayback
33
33
  * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
@@ -11,16 +11,14 @@ sap.ui.define([
11
11
  "./AnimationMath",
12
12
  "./AnimationTrackType",
13
13
  "./AnimationTrackValueType",
14
- "./glMatrix",
15
- "sap/ui/core/Core"
14
+ "./glMatrix"
16
15
  ], function(
17
16
  Element,
18
17
  vkCore,
19
18
  AnimationMath,
20
19
  AnimationTrackType,
21
20
  AnimationTrackValueType,
22
- glMatrix,
23
- core
21
+ glMatrix
24
22
  ) {
25
23
  "use strict";
26
24
 
@@ -33,7 +31,7 @@ sap.ui.define([
33
31
  *
34
32
  * @public
35
33
  * @author SAP SE
36
- * @version 1.121.1
34
+ * @version 1.123.0
37
35
  * @extends sap.ui.core.Element
38
36
  * @alias sap.ui.vk.AnimationPlayer
39
37
  * @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
@@ -98,7 +96,7 @@ sap.ui.define([
98
96
 
99
97
  AnimationPlayer.prototype._getViewStateManager = function() {
100
98
  var vsm = this.getViewStateManager();
101
- return vsm ? core.byId(vsm) : undefined;
99
+ return vsm ? Element.getElementById(vsm) : undefined;
102
100
  };
103
101
 
104
102
  AnimationPlayer.prototype.init = function() {
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  *
34
34
  * @private
35
35
  * @author SAP SE
36
- * @version 1.121.1
36
+ * @version 1.123.0
37
37
  * @extends sap.ui.base.Object
38
38
  * @alias sap.ui.vk.AnimationSequence
39
39
  * @implements sap.ui.vk.IJointCollection
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.m.Slider
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.121.1
29
+ * @version 1.123.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @param {boolean} parameters.infinite infinite flag
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.121.1
35
+ * @version 1.123.0
36
36
  * @extends sap.ui.base.Object
37
37
  * @alias sap.ui.vk.AnimationTrack
38
38
  *
@@ -13,10 +13,10 @@ sap.ui.define([
13
13
  "./NodeUtils",
14
14
  "./TransformationMatrix",
15
15
  "sap/m/FormattedText",
16
+ "sap/ui/core/Element",
16
17
  "sap/ui/richtexteditor/RichTextEditor",
17
18
  "sap/ui/richtexteditor/library",
18
- "./AnnotationRenderer",
19
- "sap/ui/core/Core"
19
+ "./AnnotationRenderer"
20
20
 
21
21
  ], function(
22
22
  Control,
@@ -25,10 +25,10 @@ sap.ui.define([
25
25
  NodeUtils,
26
26
  TransformationMatrix,
27
27
  FormattedText,
28
+ Element,
28
29
  RTE,
29
30
  rteLibrary,
30
- AnnotationRenderer,
31
- core
31
+ AnnotationRenderer
32
32
  ) {
33
33
  "use strict";
34
34
 
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  *
41
41
  * @public
42
42
  * @author SAP SE
43
- * @version 1.121.1
43
+ * @version 1.123.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.
@@ -190,7 +190,7 @@ sap.ui.define([
190
190
  Annotation.prototype.setViewport = function(vp) {
191
191
  this.setAssociation("viewport", vp);
192
192
 
193
- this._viewport = core.byId(this.getViewport());
193
+ this._viewport = Element.getElementById(this.getViewport());
194
194
  // Get the normalized visible range (x: _leftLimit and y: _topLimit) based on the current viewport.
195
195
  if (this._viewport.getSafeArea().getDomRef()) {
196
196
  var safeBox = this._viewport.getSafeArea().getDomRef().getBoundingClientRect();
@@ -250,7 +250,7 @@ sap.ui.define([
250
250
 
251
251
  Annotation.prototype.getDisplay = function() {
252
252
  if (this.getNodeRef()) {
253
- var vsm = core.byId(this._viewport.getViewStateManager());
253
+ var vsm = Element.getElementById(this._viewport.getViewStateManager());
254
254
  return vsm.getVisibilityState(this.getNodeRef());
255
255
  }
256
256
  // We can't use property "visible" as it's already used by sap.ui.core.Control to control rendering
@@ -274,7 +274,7 @@ sap.ui.define([
274
274
 
275
275
  Annotation.prototype.getSelected = function() {
276
276
  if (this.getNodeRef()) {
277
- var vsm = core.byId(this._viewport.getViewStateManager());
277
+ var vsm = Element.getElementById(this._viewport.getViewStateManager());
278
278
  return vsm.getSelectionState(this.getNodeRef());
279
279
  }
280
280
  return this.getProperty("selected");
@@ -286,7 +286,7 @@ sap.ui.define([
286
286
  if (selected) {
287
287
  this._setMaxZ();
288
288
  }
289
- var vsm = core.byId(this._viewport.getViewStateManager());
289
+ var vsm = Element.getElementById(this._viewport.getViewStateManager());
290
290
  var nodeRef = this.getNodeRef();
291
291
  if (vsm.getSelectionState(nodeRef) !== selected) {
292
292
  if (selected) {
@@ -401,7 +401,7 @@ sap.ui.define([
401
401
  // Display annotation when hit node is the target node
402
402
  annotation.style.visibility = "visible";
403
403
  } else {
404
- var vsm = core.byId(viewport.getViewStateManager());
404
+ var vsm = Element.getElementById(viewport.getViewStateManager());
405
405
  var worldPos = vsm.getTransformationWorld(hitNode.object).translation;
406
406
  var hitPos = viewport.projectToScreen(worldPos[0], worldPos[1], worldPos[2], viewport.getCamera());
407
407
  // Hide annotation when target node is deeper than the hit node
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @public
37
37
  * @abstract
38
38
  * @author SAP SE
39
- * @version 1.121.1
39
+ * @version 1.123.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.121.1
26
+ * @version 1.123.0
27
27
  * @extends sap.ui.base.ManagedObject
28
28
  * @alias sap.ui.vk.Camera
29
29
  * @since 1.52.0
@@ -70,7 +70,7 @@ sap.ui.define([
70
70
  * @alias sap.ui.vk.ContainerBase
71
71
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
72
72
  * @since 1.38.0
73
- * @deprecated As of version 1.120.2
73
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.ContainerBase}
74
74
  */
75
75
  var ContainerBase = Control.extend("sap.ui.vk.ContainerBase", /** @lends sap.ui.vk.ContainerBase.prototype */ {
76
76
  metadata: {
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @alias sap.ui.vk.ContainerContent
30
30
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
31
31
  * @since 1.38.0
32
- * @deprecated As of version 1.120.2
32
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.ContainerContent}
33
33
  */
34
34
  var ContainerContent = Control.extend("sap.ui.vk.ContainerContent", /** @lends sap.ui.vk.ContainerContent.prototype */ {
35
35
  metadata: {
@@ -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.121.1
43
+ * @version 1.123.0
44
44
  * @extends sap.ui.core.Element
45
45
  * @alias sap.ui.vk.ContentConnector
46
46
  */
@@ -711,6 +711,11 @@ sap.ui.define([
711
711
  pattern: /^(stream2d|vds4-2d)$/,
712
712
  dimension: 2,
713
713
  contentManagerClassName: "sap.ui.vk.svg.ContentManager"
714
+ },
715
+ {
716
+ pattern: /^(pdf)$/,
717
+ dimension: 2,
718
+ contentManagerClassName: "sap.ui.vk.pdf.ContentManager"
714
719
  }
715
720
  ];
716
721
 
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @protected
27
27
  * @abstract
28
28
  * @author SAP SE
29
- * @version 1.121.1
29
+ * @version 1.123.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.121.1
30
+ * @version 1.123.0
31
31
  * @extends sap.ui.base.ManagedObject
32
32
  * @alias sap.ui.vk.ContentResource
33
33
  */
@@ -272,7 +272,7 @@ sap.ui.define([
272
272
  * @returns {sap.ui.vk.ContentResourceSourceCategory[]} The array of distinct content resource categories.
273
273
  * @static
274
274
  * @public
275
- * @deprecated Since version 1.50.0.
275
+ * @deprecated Since version 1.50.0. Content resource categories shall not be used anymore. See {@link sap.ui.vk.ContentResource#sourceType} property for selection of content type.
276
276
  */
277
277
  ContentResource.collectCategories = function(resources) {
278
278
  var categories = [];
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @readonly
20
20
  * @public
21
21
  * @alias sap.ui.vk.ContentResourceSourceCategory
22
- * @deprecated Since version 1.50.0.
22
+ * @deprecated Since version 1.50.0. Content resource categories shall not be used anymore. See {@link sap.ui.vk.ContentResource#sourceType} property for selection of content type.
23
23
  */
24
24
  var ContentResourceSourceCategory = {
25
25
  /**
@@ -10,7 +10,7 @@ sap.ui.define([
10
10
  "sap/base/util/each",
11
11
  "sap/ui/base/ManagedObject",
12
12
  "sap/ui/base/ManagedObjectObserver",
13
- "sap/ui/core/Core",
13
+ "sap/ui/core/Element",
14
14
  "sap/ui/core/EventBus",
15
15
  "./library"
16
16
  ], function(
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  each,
19
19
  ManagedObject,
20
20
  ManagedObjectObserver,
21
- core,
21
+ Element,
22
22
  EventBus,
23
23
  vkLibrary
24
24
  ) {
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @final
40
40
  * @private
41
41
  * @author SAP SE
42
- * @version 1.121.1
42
+ * @version 1.123.0
43
43
  * @extends sap.ui.base.ManagedObject
44
44
  * @alias sap.ui.vk.Core
45
45
  * @since 1.50.0
@@ -313,11 +313,11 @@ sap.ui.define([
313
313
  if (typeof method === "function") {
314
314
  if (Array.isArray(change.ids)) {
315
315
  change.ids
316
- .map(function(id) { return core.byId(id); })
316
+ .map(function(id) { return Element.getElementById(id); })
317
317
  .filter(function(associatedObject) { return associatedObject != null; })
318
318
  .forEach(method.bind(change.object));
319
319
  } else {
320
- var associatedObject = core.byId(change.ids);
320
+ var associatedObject = Element.getElementById(change.ids);
321
321
  if (associatedObject) {
322
322
  method.call(change.object, associatedObject);
323
323
  }
@@ -338,11 +338,11 @@ sap.ui.define([
338
338
  if (typeof method === "function") {
339
339
  var ids = object["get" + capitalize(associationName)]();
340
340
  if (Array.isArray(ids)) {
341
- ids.map(function(id) { return core.byId(id); })
341
+ ids.map(function(id) { return Element.getElementById(id); })
342
342
  .filter(function(associatedObject) { return associatedObject != null; })
343
343
  .forEach(method.bind(object));
344
344
  } else {
345
- var associatedObject = core.byId(ids);
345
+ var associatedObject = Element.getElementById(ids);
346
346
  if (associatedObject) {
347
347
  method.call(object, associatedObject);
348
348
  }
@@ -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.121.1
40
+ * @version 1.123.0
41
41
  * @extends sap.ui.base.EventProvider
42
42
  * @alias sap.ui.vk.DownloadManager
43
43
  * @since 1.32.0
@@ -13,15 +13,16 @@ sap.ui.define([
13
13
  "./DrawerToolbarRenderer",
14
14
  "sap/ui/core/Control",
15
15
  "sap/ui/core/IconPool",
16
+ "sap/ui/core/ResizeHandler",
16
17
  "sap/ui/Device",
17
18
  "sap/m/VBox",
18
19
  "sap/m/FlexItemData",
19
20
  "sap/m/OverflowToolbar",
20
21
  "sap/ui/core/Icon",
21
- "sap/m/Button",
22
+ "sap/m/OverflowToolbarButton",
22
23
  "sap/m/ToolbarSeparator",
23
- "sap/m/ToggleButton",
24
- "sap/m/MenuButton",
24
+ "sap/m/OverflowToolbarToggleButton",
25
+ "sap/m/OverflowToolbarMenuButton",
25
26
  "./tools/RectSelectTool",
26
27
  "./tools/CrossSectionTool",
27
28
  "sap/m/Menu",
@@ -50,15 +51,16 @@ sap.ui.define([
50
51
  DrawerToolbarRenderer,
51
52
  Control,
52
53
  IconPool,
54
+ ResizeHandler,
53
55
  Device,
54
56
  VBox,
55
57
  FlexItemData,
56
58
  OverflowToolbar,
57
59
  Icon,
58
- Button,
60
+ OverflowToolbarButton,
59
61
  ToolbarSeparator,
60
- ToggleButton,
61
- MenuButton,
62
+ OverflowToolbarToggleButton,
63
+ OverflowToolbarMenuButton,
62
64
  RectSelectTool,
63
65
  CrossSectionTool,
64
66
  Menu,
@@ -109,7 +111,7 @@ sap.ui.define([
109
111
  * @extends sap.ui.core.Control
110
112
  *
111
113
  * @author SAP
112
- * @version 1.121.1
114
+ * @version 1.123.0
113
115
  *
114
116
  * @public
115
117
  * @alias sap.ui.vk.DrawerToolbar
@@ -260,6 +262,9 @@ sap.ui.define([
260
262
  }, {
261
263
  name: "calibrate-distance",
262
264
  unicode: "e968"
265
+ }, {
266
+ name: "toggle-pmi",
267
+ unicode: "e96d"
263
268
  }
264
269
  ];
265
270
  var collectionName = "vk-icons";
@@ -295,7 +300,7 @@ sap.ui.define([
295
300
  shrinkFactor: 0
296
301
  }),
297
302
  content: this.createButtons()
298
- });
303
+ }).addStyleClass("drawerToolbarMaxWidth");
299
304
 
300
305
  this._toolbar.ontouchstart = function(event) {
301
306
  event.setMarked(); // disable the viewport touchstart event under the toolbar
@@ -405,6 +410,8 @@ sap.ui.define([
405
410
  };
406
411
 
407
412
  DrawerToolbar.prototype.exit = function() {
413
+ Element.getElementById(this.getViewport())?.detachResize(this._onViewportResize, this);
414
+
408
415
  var eventBus = vkCore.getEventBus();
409
416
  eventBus.unsubscribe("sap.ui.vk", "readyForAnimation", this._onReadyForAnimation, this);
410
417
  eventBus.unsubscribe("sap.ui.vk", "viewActivated", this._onViewActivated, this);
@@ -436,6 +443,18 @@ sap.ui.define([
436
443
  this._toolbar = null;
437
444
  };
438
445
 
446
+ DrawerToolbar.prototype._onViewportResize = function(event) {
447
+ this._toolbar.onLayoutDataChange();
448
+ };
449
+
450
+ DrawerToolbar.prototype.setViewport = function(viewport) {
451
+ Element.getElementById(this.getViewport())?.dettachResize(this._onViewportResize, this);
452
+
453
+ this.setAssociation("viewport", viewport);
454
+
455
+ viewport?.attachResize(this._onViewportResize, this);
456
+ };
457
+
439
458
  DrawerToolbar.prototype._toolbarContentChanged = function() {
440
459
  var content = this._toolbar.getContent();
441
460
  for (var i = 0; i < content.length; i++) {
@@ -548,9 +567,10 @@ sap.ui.define([
548
567
  });
549
568
  crossSectionToggleButton.vitId = DrawerToolbarButton.CrossSection;
550
569
 
551
- var turntable = new ToggleButton({
570
+ var turntable = new OverflowToolbarToggleButton({
552
571
  icon: visIconPath + "turntable",
553
572
  type: ButtonType.Transparent,
573
+ text: resourceBundle.getText("TURNTABLE_TOOLTIP"),
554
574
  tooltip: resourceBundle.getText("TURNTABLE_TOOLTIP"),
555
575
  press: function(event) {
556
576
  that.setNavigationMode(NavigationMode.Turntable);
@@ -558,9 +578,10 @@ sap.ui.define([
558
578
  });
559
579
  turntable.vitId = DrawerToolbarButton.Turntable;
560
580
 
561
- var orbit = new ToggleButton({
581
+ var orbit = new OverflowToolbarToggleButton({
562
582
  icon: visIconPath + "orbit",
563
583
  type: ButtonType.Transparent,
584
+ text: resourceBundle.getText("ORBIT_TOOLTIP"),
564
585
  tooltip: resourceBundle.getText("ORBIT_TOOLTIP"),
565
586
  pressed: false,
566
587
  press: function(event) {
@@ -569,9 +590,10 @@ sap.ui.define([
569
590
  });
570
591
  orbit.vitId = DrawerToolbarButton.Orbit;
571
592
 
572
- var pan = new ToggleButton({
593
+ var pan = new OverflowToolbarToggleButton({
573
594
  icon: visIconPath + "pan",
574
595
  type: ButtonType.Transparent,
596
+ text: resourceBundle.getText("PAN_TOOLTIP"),
575
597
  tooltip: resourceBundle.getText("PAN_TOOLTIP"),
576
598
  press: function(event) {
577
599
  that.setNavigationMode(NavigationMode.Pan);
@@ -579,9 +601,10 @@ sap.ui.define([
579
601
  });
580
602
  pan.vitId = DrawerToolbarButton.Pan;
581
603
 
582
- var zoom = new ToggleButton({
604
+ var zoom = new OverflowToolbarToggleButton({
583
605
  icon: visIconPath + "zoom",
584
606
  type: ButtonType.Transparent,
607
+ text: resourceBundle.getText("ZOOM_TOOLTIP"),
585
608
  tooltip: resourceBundle.getText("ZOOM_TOOLTIP"),
586
609
  press: function() {
587
610
  that.setNavigationMode(NavigationMode.Zoom);
@@ -596,9 +619,10 @@ sap.ui.define([
596
619
  zoom
597
620
  ];
598
621
 
599
- var show = new Button({
622
+ var show = new OverflowToolbarButton({
600
623
  icon: visIconPath + "show",
601
624
  type: ButtonType.Transparent,
625
+ text: resourceBundle.getText("SHOW_TOOLTIP"),
602
626
  tooltip: resourceBundle.getText("SHOW_TOOLTIP"),
603
627
  press: function() {
604
628
  var vsm = that._getViewStateManager();
@@ -613,9 +637,10 @@ sap.ui.define([
613
637
  });
614
638
  show.vitId = DrawerToolbarButton.Show;
615
639
 
616
- var hide = new Button({
640
+ var hide = new OverflowToolbarButton({
617
641
  icon: visIconPath + "hide",
618
642
  type: ButtonType.Transparent,
643
+ text: resourceBundle.getText("HIDE_TOOLTIP"),
619
644
  tooltip: resourceBundle.getText("HIDE_TOOLTIP"),
620
645
  press: function() {
621
646
  var vsm = that._getViewStateManager();
@@ -630,9 +655,10 @@ sap.ui.define([
630
655
  });
631
656
  hide.vitId = DrawerToolbarButton.Hide;
632
657
 
633
- var fitToView = new Button({
658
+ var fitToView = new OverflowToolbarButton({
634
659
  icon: visIconPath + "fit-to-view",
635
660
  type: ButtonType.Transparent,
661
+ text: resourceBundle.getText("FIT_TO_VIEW"),
636
662
  tooltip: resourceBundle.getText("FIT_TO_VIEW"),
637
663
  press: function() {
638
664
  var viewport = Element.getElementById(that.getViewport());
@@ -644,17 +670,19 @@ sap.ui.define([
644
670
  });
645
671
  fitToView.vitId = DrawerToolbarButton.FitToView;
646
672
 
647
- this._rectSelectionButton = new ToggleButton({
673
+ this._rectSelectionButton = new OverflowToolbarToggleButton({
648
674
  icon: visIconPath + "rectangular-selection",
649
675
  type: ButtonType.Transparent,
676
+ text: resourceBundle.getText("RECTANGULAR_SELECTION_TOOLTIP"),
650
677
  tooltip: resourceBundle.getText("RECTANGULAR_SELECTION_TOOLTIP")
651
678
  });
652
679
  this._rectSelectionButton.vitId = DrawerToolbarButton.RectangularSelection;
653
680
 
654
- var predefinedViews = new MenuButton({
681
+ var predefinedViews = new OverflowToolbarMenuButton({
655
682
  icon: visIconPath + "predefined-views",
656
683
  activeIcon: visIconPath + "predefined-views",
657
684
  type: ButtonType.Transparent,
685
+ text: resourceBundle.getText("PREDEFINED_VIEW_MENUBUTTONTOOLTIP"),
658
686
  tooltip: resourceBundle.getText("PREDEFINED_VIEW_MENUBUTTONTOOLTIP"),
659
687
  menu: new Menu({
660
688
  items: [
@@ -677,9 +705,10 @@ sap.ui.define([
677
705
  });
678
706
  predefinedViews.vitId = DrawerToolbarButton.PredefinedViews;
679
707
 
680
- var fullscreen = new ToggleButton({
708
+ var fullscreen = new OverflowToolbarToggleButton({
681
709
  icon: "sap-icon://full-screen",
682
710
  type: ButtonType.Transparent,
711
+ text: resourceBundle.getText("VIEWER_FULLSCREENBUTTONTOOLTIP"),
683
712
  tooltip: resourceBundle.getText("VIEWER_FULLSCREENBUTTONTOOLTIP"),
684
713
  press: function(event) {
685
714
  var viewport = that._getViewport();
@@ -846,6 +875,24 @@ sap.ui.define([
846
875
  var measurementsSeparator = new ToolbarSeparator();
847
876
  measurementsSeparator.vitId = DrawerToolbarButton.MeasurementsSeparator;
848
877
 
878
+ var togglePmiButton = new OverflowToolbarToggleButton({
879
+ pressed: true,
880
+ icon: visIconPath + "toggle-pmi",
881
+ type: ButtonType.Transparent,
882
+ text: resourceBundle.getText("PMI_TOOLTIP"),
883
+ tooltip: resourceBundle.getText("PMI_TOOLTIP"),
884
+ press: function() {
885
+ var viewport = that._getViewport();
886
+ if (viewport) {
887
+ viewport.setShowPMI(this.getPressed());
888
+ viewport.setShouldRenderFrame();
889
+ }
890
+ }
891
+ });
892
+ togglePmiButton.vitId = DrawerToolbarButton.PMI;
893
+ var togglePmiButtonSeparator = new ToolbarSeparator();
894
+ togglePmiButtonSeparator.vitId = DrawerToolbarButton.PMISeparator;
895
+
849
896
  var crossSectionSeparator = new ToolbarSeparator();
850
897
  var predefinedViewsSeparator = new ToolbarSeparator();
851
898
 
@@ -868,6 +915,8 @@ sap.ui.define([
868
915
  show,
869
916
  hide,
870
917
  showHideSeparator,
918
+ togglePmiButton,
919
+ togglePmiButtonSeparator,
871
920
  this._gestureButtons[0], // turntable
872
921
  this._gestureButtons[1], // orbit
873
922
  this._gestureButtons[2], // pan
@@ -32,7 +32,9 @@ sap.ui.define([
32
32
  PredefinedViews: "VIT-Predefined-Views",
33
33
  FullScreen: "VIT-Fullscreen",
34
34
  Measurements: "VIT-Measurements",
35
- MeasurementsSeparator: "VIT-Measurements-Separator"
35
+ MeasurementsSeparator: "VIT-Measurements-Separator",
36
+ PMI: "VIT-PMI",
37
+ PMISeparator: "VIT-PMI-Separator"
36
38
  };
37
39
 
38
40
  DataType.registerEnum("sap.ui.vk.DrawerToolbarButton", DrawerToolbarButton);
@@ -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.121.1
21
+ * @version 1.123.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.121.1
33
+ * @version 1.123.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.121.1
30
+ * @version 1.123.0
31
31
  *
32
32
  * @constructor
33
33
  * @public