@sapui5/sap.ui.vk 1.122.0 → 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 (185) hide show
  1. package/package.json +1 -1
  2. package/src/sap/ui/vk/.library +1 -1
  3. package/src/sap/ui/vk/AnimationPlayback.js +1 -1
  4. package/src/sap/ui/vk/AnimationPlayer.js +1 -1
  5. package/src/sap/ui/vk/AnimationSequence.js +1 -1
  6. package/src/sap/ui/vk/AnimationTimeSlider.js +1 -1
  7. package/src/sap/ui/vk/AnimationTrack.js +1 -1
  8. package/src/sap/ui/vk/Annotation.js +1 -1
  9. package/src/sap/ui/vk/BaseNodeProxy.js +1 -1
  10. package/src/sap/ui/vk/Camera.js +1 -1
  11. package/src/sap/ui/vk/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 +1 -1
  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 +1 -1
  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 +1 -1
  33. package/src/sap/ui/vk/MapContainerButtonType.js +1 -1
  34. package/src/sap/ui/vk/Material.js +1 -1
  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 +1 -1
  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/RedlineElement.js +1 -1
  51. package/src/sap/ui/vk/RedlineElementComment.js +1 -1
  52. package/src/sap/ui/vk/RedlineElementEllipse.js +1 -1
  53. package/src/sap/ui/vk/RedlineElementFreehand.js +1 -1
  54. package/src/sap/ui/vk/RedlineElementLine.js +1 -1
  55. package/src/sap/ui/vk/RedlineElementRectangle.js +1 -1
  56. package/src/sap/ui/vk/RedlineElementText.js +1 -1
  57. package/src/sap/ui/vk/RedlineSurface.js +1 -1
  58. package/src/sap/ui/vk/SafeArea.js +1 -1
  59. package/src/sap/ui/vk/Scene.js +1 -1
  60. package/src/sap/ui/vk/SceneTree.js +1 -1
  61. package/src/sap/ui/vk/StepNavigation.js +2 -2
  62. package/src/sap/ui/vk/Texture.js +1 -1
  63. package/src/sap/ui/vk/ToggleMenuButton.js +13 -7
  64. package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
  65. package/src/sap/ui/vk/Toolbar.js +1 -1
  66. package/src/sap/ui/vk/View.js +1 -1
  67. package/src/sap/ui/vk/ViewGallery.js +2 -1
  68. package/src/sap/ui/vk/ViewGalleryThumbnail.js +1 -1
  69. package/src/sap/ui/vk/ViewGroup.js +1 -1
  70. package/src/sap/ui/vk/ViewManager.js +1 -1
  71. package/src/sap/ui/vk/ViewStateManager.js +2 -2
  72. package/src/sap/ui/vk/ViewStateManagerBase.js +2 -2
  73. package/src/sap/ui/vk/Viewer.js +3 -3
  74. package/src/sap/ui/vk/Viewport.js +24 -1
  75. package/src/sap/ui/vk/ViewportBase.js +1 -1
  76. package/src/sap/ui/vk/dvl/BaseNodeProxy.js +2 -2
  77. package/src/sap/ui/vk/dvl/ContentManager.js +2 -2
  78. package/src/sap/ui/vk/dvl/GraphicsCore.js +4 -4
  79. package/src/sap/ui/vk/dvl/GraphicsCoreApi.js +1 -1
  80. package/src/sap/ui/vk/dvl/LayerProxy.js +2 -2
  81. package/src/sap/ui/vk/dvl/NodeHierarchy.js +2 -2
  82. package/src/sap/ui/vk/dvl/NodeProxy.js +2 -2
  83. package/src/sap/ui/vk/dvl/Scene.js +2 -2
  84. package/src/sap/ui/vk/dvl/ViewStateManager.js +3 -3
  85. package/src/sap/ui/vk/dvl/Viewport.js +5 -5
  86. package/src/sap/ui/vk/i18n/messagebundle.properties +11 -0
  87. package/src/sap/ui/vk/library.js +2 -2
  88. package/src/sap/ui/vk/matai/MataiLoaderWorker.js +19 -5
  89. package/src/sap/ui/vk/measurements/Angle.js +1 -1
  90. package/src/sap/ui/vk/measurements/Area.js +1 -1
  91. package/src/sap/ui/vk/measurements/Distance.js +1 -1
  92. package/src/sap/ui/vk/measurements/Edge.js +1 -1
  93. package/src/sap/ui/vk/measurements/Face.js +1 -1
  94. package/src/sap/ui/vk/measurements/Feature.js +1 -1
  95. package/src/sap/ui/vk/measurements/Vertex.js +1 -1
  96. package/src/sap/ui/vk/pdf/ContentManager.js +147 -0
  97. package/src/sap/ui/vk/pdf/Document.js +52 -0
  98. package/src/sap/ui/vk/pdf/Page.js +128 -0
  99. package/src/sap/ui/vk/pdf/Utils.js +44 -0
  100. package/src/sap/ui/vk/pdf/Viewport.js +850 -0
  101. package/src/sap/ui/vk/pdf/ViewportRenderer.js +89 -0
  102. package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
  103. package/src/sap/ui/vk/svg/ContentDeliveryService.js +1 -1
  104. package/src/sap/ui/vk/svg/ContentManager.js +1 -1
  105. package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
  106. package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
  107. package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
  108. package/src/sap/ui/vk/svg/Scene.js +1 -1
  109. package/src/sap/ui/vk/svg/SceneBuilder.js +1 -1
  110. package/src/sap/ui/vk/svg/ViewStateManager.js +2 -2
  111. package/src/sap/ui/vk/svg/Viewport.js +2 -2
  112. package/src/sap/ui/vk/themes/base/DrawerToolbar.less +6 -3
  113. package/src/sap/ui/vk/themes/base/PDFViewport.less +53 -0
  114. package/src/sap/ui/vk/themes/base/library.source.less +1 -0
  115. package/src/sap/ui/vk/thirdparty/BufferGeometryUtils.js +23 -27
  116. package/src/sap/ui/vk/thirdparty/pdf.js +18150 -0
  117. package/src/sap/ui/vk/thirdparty/pdf.worker.js +57170 -0
  118. package/src/sap/ui/vk/thirdparty/three.js +2540 -841
  119. package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -1
  120. package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
  121. package/src/sap/ui/vk/threejs/Billboard.js +1 -1
  122. package/src/sap/ui/vk/threejs/Callout.js +1 -1
  123. package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
  124. package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
  125. package/src/sap/ui/vk/threejs/DetailView.js +1 -1
  126. package/src/sap/ui/vk/threejs/HighlightPlayer.js +1 -1
  127. package/src/sap/ui/vk/threejs/Material.js +1 -1
  128. package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
  129. package/src/sap/ui/vk/threejs/NodeProxy.js +1 -1
  130. package/src/sap/ui/vk/threejs/NodesTransitionHelper.js +1 -1
  131. package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
  132. package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
  133. package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -1
  134. package/src/sap/ui/vk/threejs/Scene.js +1 -1
  135. package/src/sap/ui/vk/threejs/SceneBuilder.js +18 -5
  136. package/src/sap/ui/vk/threejs/Texture.js +1 -1
  137. package/src/sap/ui/vk/threejs/ThreeUtils.js +4 -1
  138. package/src/sap/ui/vk/threejs/Thrustline.js +3 -16
  139. package/src/sap/ui/vk/threejs/ViewStateManager.js +2 -2
  140. package/src/sap/ui/vk/threejs/Viewport.js +15 -13
  141. package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +2 -2
  142. package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
  143. package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +1 -1
  144. package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -1
  145. package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
  146. package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
  147. package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +1 -1
  148. package/src/sap/ui/vk/tools/CreateParametricGizmo.js +1 -1
  149. package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
  150. package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +1 -1
  151. package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
  152. package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +1 -1
  153. package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
  154. package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +1 -1
  155. package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
  156. package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +1 -1
  157. package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
  158. package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +1 -1
  159. package/src/sap/ui/vk/tools/ExplodeTool.js +1 -1
  160. package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +1 -1
  161. package/src/sap/ui/vk/tools/Gizmo.js +1 -1
  162. package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
  163. package/src/sap/ui/vk/tools/MoveTool.js +1 -1
  164. package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
  165. package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
  166. package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
  167. package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
  168. package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
  169. package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
  170. package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
  171. package/src/sap/ui/vk/tools/RotateTool.js +1 -1
  172. package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
  173. package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
  174. package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
  175. package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
  176. package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
  177. package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +1 -1
  178. package/src/sap/ui/vk/tools/Tool.js +1 -1
  179. package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
  180. package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
  181. package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
  182. package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
  183. package/src/sap/ui/vk/ve/matai.js +1 -1
  184. package/src/sap/ui/vk/ve/matai.wasm +0 -0
  185. package/ui5.yaml +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.vk",
3
- "version": "1.122.0",
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.122.0</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.122.0
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.
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  *
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.122.0
34
+ * @version 1.123.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,7 +33,7 @@ sap.ui.define([
33
33
  *
34
34
  * @private
35
35
  * @author SAP SE
36
- * @version 1.122.0
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.122.0
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.122.0
35
+ * @version 1.123.0
36
36
  * @extends sap.ui.base.Object
37
37
  * @alias sap.ui.vk.AnimationTrack
38
38
  *
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  *
41
41
  * @public
42
42
  * @author SAP SE
43
- * @version 1.122.0
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.
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @public
37
37
  * @abstract
38
38
  * @author SAP SE
39
- * @version 1.122.0
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.122.0
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.122.0
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.122.0
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.122.0
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
  /**
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @final
40
40
  * @private
41
41
  * @author SAP SE
42
- * @version 1.122.0
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
@@ -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.122.0
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.122.0
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.122.0
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.122.0
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.122.0
30
+ * @version 1.123.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  *
27
27
  * @private
28
28
  * @author SAP SE
29
- * @version 1.122.0
29
+ * @version 1.123.0
30
30
  * @extends sap.ui.base.Object
31
31
  * @alias sap.ui.vk.Highlight
32
32
  * @since 1.73.0
@@ -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.122.0
32
+ * @version 1.123.0
33
33
  * @extends sap.ui.vk.ContentManager
34
34
  * @alias sap.ui.vk.ImageContentManager
35
35
  * @since 1.50.0
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @private
22
22
  * @author SAP SE
23
- * @version 1.122.0
23
+ * @version 1.123.0
24
24
  * @alias sap.ui.vk.JointUtils
25
25
  * @since 1.74
26
26
  * @experimental Since 1.74 This class is experimental and might be modified or removed in future versions.
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @public
31
31
  * @abstract
32
32
  * @author SAP SE
33
- * @version 1.122.0
33
+ * @version 1.123.0
34
34
  * @extends sap.ui.base.Object
35
35
  * @alias sap.ui.vk.LayerProxy
36
36
  */
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @alias sap.ui.vk.LegendItem
28
28
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
29
29
  * @experimental Since 1.38.0 This class is experimental and might be modified or removed in future versions.
30
- * @deprecated As of version 1.120.2
30
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.ContainerLegendItem}
31
31
  */
32
32
  var LegendItem = StandardListItem.extend("sap.ui.vk.LegendItem", /** @lends sap.ui.vk.LegendItem.prototype */ {
33
33
  metadata: {
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @alias sap.ui.vk.ListPanel
42
42
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
43
43
  * @experimental Since 1.38.0 This class is experimental and might be modified or removed in future versions.
44
- * @deprecated As of version 1.120.2
44
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.ListPanel}
45
45
  */
46
46
  var ListPanel = Control.extend("sap.ui.vk.ListPanel", /** @lends sap.ui.vk.ListPanel.prototype */ {
47
47
  metadata: {
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @alias sap.ui.vk.ListPanelStack
34
34
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
35
35
  * @experimental Since 1.38.0 This class is experimental and might be modified or removed in future versions.
36
- * @deprecated As of version 1.120.2
36
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.ListPanelStack}
37
37
  */
38
38
  var ListPanelStack = Control.extend("sap.ui.vk.ListPanelStack", /** @lends sap.ui.vk.ListPanelStack.prototype */ {
39
39
  metadata: {
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.base.EventProvider
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.122.0
38
+ * @version 1.123.0
39
39
  *
40
40
  * @constructor
41
41
  * @public
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @public
60
60
  * @alias sap.ui.vk.MapContainer
61
61
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
62
- * @deprecated As of version 1.120.2
62
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.MapContainer}
63
63
  */
64
64
  var MapContainer = ContainerBase.extend("sap.ui.vk.MapContainer", /** @lends sap.ui.vk.MapContainer.prototype */ {
65
65
  metadata: {
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @readonly
20
20
  * @alias sap.ui.vk.MapContainerButtonType
21
21
  * @public
22
- * @deprecated As of version 1.120.2
22
+ * @deprecated As of version 1.120.2. This object is moved to sap.ui.vbm namespace, see {@link sap.ui.vbm.MapContainerButtonType}
23
23
  */
24
24
  var MapContainerButtonType = {
25
25
  Click: "Click",
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @public
25
25
  * @abstract
26
26
  * @author SAP SE
27
- * @version 1.122.0
27
+ * @version 1.123.0
28
28
  * @extends sap.ui.base.Object
29
29
  * @alias sap.ui.vk.Material
30
30
  */
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  *
49
49
  * @extends sap.ui.vk.ViewportBase
50
50
  * @author SAP SE
51
- * @version 1.122.0
51
+ * @version 1.123.0
52
52
  * @constructor
53
53
  * @public
54
54
  * @alias sap.ui.vk.NativeViewport
@@ -283,7 +283,7 @@ sap.ui.define([
283
283
  * @param {array} resourceType - an array of type of resources to load.
284
284
  * @return {sap.ui.vk.NativeViewport} this
285
285
  * @public
286
- * @deprecated Since version 1.50.0.
286
+ * @deprecated Since version 1.50.0. Use {@link sap.ui.vk.ContentResource} and {@link sap.ui.vk.ContentConnector#contentResources} aggregation instead.
287
287
  */
288
288
  NativeViewport.prototype.loadUrl = function(url, onload, onerror, onprogress, resourceType) {
289
289
 
@@ -51,6 +51,11 @@ sap.ui.define([
51
51
  * @public
52
52
  */
53
53
  Hotspot: "Hotspot",
54
+ /**
55
+ * PMI node
56
+ * @public
57
+ */
58
+ PMI: "PMI",
54
59
  /**
55
60
  * Point cloud group node
56
61
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @public
37
37
  * @abstract
38
38
  * @author SAP SE
39
- * @version 1.122.0
39
+ * @version 1.123.0
40
40
  * @extends sap.ui.base.ManagedObject
41
41
  * @alias sap.ui.vk.NodeHierarchy
42
42
  */
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @public
26
26
  * @author SAP SE
27
- * @version 1.122.0
27
+ * @version 1.123.0
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @alias sap.ui.vk.NodeProxy
30
30
  * @since 1.32.0
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  *
16
16
  * @private
17
17
  * @author SAP SE
18
- * @version 1.122.0
18
+ * @version 1.123.0
19
19
  * @alias sap.ui.vk.NodeUtils
20
20
  * @since 1.74
21
21
  * @experimental Since 1.74 This class is experimental and might be modified or removed in future versions.