@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.
- package/package.json +1 -1
- package/src/sap/ui/vk/.library +1 -1
- package/src/sap/ui/vk/AnimationPlayback.js +1 -1
- package/src/sap/ui/vk/AnimationPlayer.js +4 -6
- package/src/sap/ui/vk/AnimationSequence.js +1 -1
- package/src/sap/ui/vk/AnimationTimeSlider.js +1 -1
- package/src/sap/ui/vk/AnimationTrack.js +1 -1
- package/src/sap/ui/vk/Annotation.js +10 -10
- package/src/sap/ui/vk/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/Camera.js +1 -1
- package/src/sap/ui/vk/ContainerBase.js +1 -1
- package/src/sap/ui/vk/ContainerContent.js +1 -1
- package/src/sap/ui/vk/ContentConnector.js +6 -1
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +2 -2
- package/src/sap/ui/vk/ContentResourceSourceCategory.js +1 -1
- package/src/sap/ui/vk/Core.js +7 -7
- package/src/sap/ui/vk/DownloadManager.js +1 -1
- package/src/sap/ui/vk/DrawerToolbar.js +67 -18
- package/src/sap/ui/vk/DrawerToolbarButton.js +3 -1
- package/src/sap/ui/vk/DvlException.js +1 -1
- package/src/sap/ui/vk/FlexibleControl.js +1 -1
- package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -1
- package/src/sap/ui/vk/Highlight.js +7 -10
- package/src/sap/ui/vk/ImageContentManager.js +1 -1
- package/src/sap/ui/vk/JointUtils.js +1 -1
- package/src/sap/ui/vk/LayerProxy.js +1 -1
- package/src/sap/ui/vk/LegendItem.js +1 -1
- package/src/sap/ui/vk/ListPanel.js +1 -1
- package/src/sap/ui/vk/ListPanelStack.js +1 -1
- package/src/sap/ui/vk/Loco.js +1 -1
- package/src/sap/ui/vk/MapContainer.js +4 -2
- package/src/sap/ui/vk/MapContainerButtonType.js +1 -1
- package/src/sap/ui/vk/Material.js +334 -132
- package/src/sap/ui/vk/NativeViewport.js +2 -2
- package/src/sap/ui/vk/NodeContentType.js +5 -0
- package/src/sap/ui/vk/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/NodeProxy.js +1 -1
- package/src/sap/ui/vk/NodeUtils.js +1 -1
- package/src/sap/ui/vk/Notifications.js +1 -1
- package/src/sap/ui/vk/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/Overlay.js +1 -0
- package/src/sap/ui/vk/OverlayArea.js +1 -0
- package/src/sap/ui/vk/OverlayRenderer.js +1 -0
- package/src/sap/ui/vk/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/ProgressIndicator.js +1 -1
- package/src/sap/ui/vk/RedlineCollaboration.js +29 -31
- package/src/sap/ui/vk/RedlineConversation.js +1 -1
- package/src/sap/ui/vk/RedlineDesign.js +1 -1
- package/src/sap/ui/vk/RedlineDesignHandler.js +5 -5
- package/src/sap/ui/vk/RedlineElement.js +1 -1
- package/src/sap/ui/vk/RedlineElementComment.js +1 -1
- package/src/sap/ui/vk/RedlineElementEllipse.js +1 -1
- package/src/sap/ui/vk/RedlineElementFreehand.js +1 -1
- package/src/sap/ui/vk/RedlineElementLine.js +1 -1
- package/src/sap/ui/vk/RedlineElementRectangle.js +1 -1
- package/src/sap/ui/vk/RedlineElementText.js +1 -1
- package/src/sap/ui/vk/RedlineGesturesHandler.js +5 -5
- package/src/sap/ui/vk/RedlineSurface.js +1 -1
- package/src/sap/ui/vk/SafeArea.js +1 -1
- package/src/sap/ui/vk/Scene.js +1 -1
- package/src/sap/ui/vk/SceneTree.js +1 -1
- package/src/sap/ui/vk/StepNavigation.js +2 -2
- package/src/sap/ui/vk/Texture.js +1 -1
- package/src/sap/ui/vk/ToggleMenuButton.js +18 -12
- package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
- package/src/sap/ui/vk/Toolbar.js +10 -10
- package/src/sap/ui/vk/View.js +1 -1
- package/src/sap/ui/vk/ViewGallery.js +11 -7
- package/src/sap/ui/vk/ViewGalleryThumbnail.js +1 -1
- package/src/sap/ui/vk/ViewGroup.js +1 -1
- package/src/sap/ui/vk/ViewManager.js +7 -9
- package/src/sap/ui/vk/ViewStateManager.js +8 -8
- package/src/sap/ui/vk/ViewStateManagerBase.js +2 -2
- package/src/sap/ui/vk/Viewer.js +9 -7
- package/src/sap/ui/vk/Viewport.js +24 -1
- package/src/sap/ui/vk/ViewportBase.js +10 -10
- package/src/sap/ui/vk/dvl/BaseNodeProxy.js +2 -2
- package/src/sap/ui/vk/dvl/ContentManager.js +2 -2
- package/src/sap/ui/vk/dvl/GraphicsCore.js +4 -4
- package/src/sap/ui/vk/dvl/GraphicsCoreApi.js +1 -1
- package/src/sap/ui/vk/dvl/LayerProxy.js +2 -2
- package/src/sap/ui/vk/dvl/NodeHierarchy.js +2 -2
- package/src/sap/ui/vk/dvl/NodeProxy.js +2 -2
- package/src/sap/ui/vk/dvl/Scene.js +2 -2
- package/src/sap/ui/vk/dvl/ViewStateManager.js +3 -3
- package/src/sap/ui/vk/dvl/Viewport.js +5 -5
- package/src/sap/ui/vk/getResourceBundle.js +5 -3
- package/src/sap/ui/vk/i18n/messagebundle.properties +11 -0
- package/src/sap/ui/vk/library.js +5 -6
- package/src/sap/ui/vk/matai/MataiLoader.js +5 -5
- package/src/sap/ui/vk/matai/MataiLoaderWorker.js +19 -5
- package/src/sap/ui/vk/measurements/Angle.js +1 -1
- package/src/sap/ui/vk/measurements/Area.js +1 -1
- package/src/sap/ui/vk/measurements/Distance.js +1 -1
- package/src/sap/ui/vk/measurements/Edge.js +1 -1
- package/src/sap/ui/vk/measurements/Face.js +1 -1
- package/src/sap/ui/vk/measurements/Feature.js +1 -1
- package/src/sap/ui/vk/measurements/Surface.js +3 -3
- package/src/sap/ui/vk/measurements/Vertex.js +1 -1
- package/src/sap/ui/vk/pdf/ContentManager.js +147 -0
- package/src/sap/ui/vk/pdf/Document.js +52 -0
- package/src/sap/ui/vk/pdf/Page.js +128 -0
- package/src/sap/ui/vk/pdf/Utils.js +44 -0
- package/src/sap/ui/vk/pdf/Viewport.js +850 -0
- package/src/sap/ui/vk/pdf/ViewportRenderer.js +89 -0
- package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/svg/ContentDeliveryService.js +4 -3
- package/src/sap/ui/vk/svg/ContentManager.js +1 -1
- package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
- package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/svg/Scene.js +1 -1
- package/src/sap/ui/vk/svg/SceneBuilder.js +13 -26
- package/src/sap/ui/vk/svg/ViewStateManager.js +7 -7
- package/src/sap/ui/vk/svg/Viewport.js +10 -8
- package/src/sap/ui/vk/themes/base/ContainerBase.less +6 -2
- package/src/sap/ui/vk/themes/base/DrawerToolbar.less +6 -3
- package/src/sap/ui/vk/themes/base/PDFViewport.less +53 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.3.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.3.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/library.source.less +2 -1
- package/src/sap/ui/vk/themes/sap_horizon/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_horizon_dark/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_horizon_hcb/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_horizon_hcw/library.source.less +1 -1
- package/src/sap/ui/vk/thirdparty/BufferGeometryUtils.js +23 -27
- package/src/sap/ui/vk/thirdparty/pdf.js +18150 -0
- package/src/sap/ui/vk/thirdparty/pdf.worker.js +57170 -0
- package/src/sap/ui/vk/thirdparty/three.js +2540 -841
- package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -1
- package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/threejs/Billboard.js +1 -1
- package/src/sap/ui/vk/threejs/Callout.js +1 -1
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +4 -3
- package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
- package/src/sap/ui/vk/threejs/DetailView.js +1 -1
- package/src/sap/ui/vk/threejs/HighlightPlayer.js +1 -1
- package/src/sap/ui/vk/threejs/Material.js +1 -1
- package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/threejs/NodeProxy.js +1 -1
- package/src/sap/ui/vk/threejs/NodesTransitionHelper.js +1 -1
- package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/threejs/ParametricGenerators.js +4 -2
- package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -1
- package/src/sap/ui/vk/threejs/Scene.js +1 -1
- package/src/sap/ui/vk/threejs/SceneBuilder.js +33 -33
- package/src/sap/ui/vk/threejs/Texture.js +1 -1
- package/src/sap/ui/vk/threejs/ThreeUtils.js +5 -2
- package/src/sap/ui/vk/threejs/Thrustline.js +5 -5
- package/src/sap/ui/vk/threejs/ViewStateManager.js +7 -7
- package/src/sap/ui/vk/threejs/Viewport.js +29 -23
- package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +2 -2
- package/src/sap/ui/vk/tools/AnchorPointTool.js +2 -2
- package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -1
- package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateParametricGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
- package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
- package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/ExplodeTool.js +1 -1
- package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +4 -4
- package/src/sap/ui/vk/tools/Gizmo.js +1 -1
- package/src/sap/ui/vk/tools/HitTestTool.js +2 -36
- package/src/sap/ui/vk/tools/MeasurementToolGizmo.js +5 -5
- package/src/sap/ui/vk/tools/MoveTool.js +1 -1
- package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
- package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
- package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
- package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RedlineToolHandler.js +3 -3
- package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
- package/src/sap/ui/vk/tools/RotateTool.js +1 -1
- package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
- package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
- package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
- package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/Tool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/totara/TotaraLoader.js +7 -5
- package/src/sap/ui/vk/ve/dvl.wasm +0 -0
- package/src/sap/ui/vk/ve/matai.js +1 -1
- package/src/sap/ui/vk/ve/matai.wasm +0 -0
- package/ui5.yaml +4 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.2.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.2.woff2 +0 -0
package/package.json
CHANGED
package/src/sap/ui/vk/.library
CHANGED
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 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.
|
|
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 ?
|
|
99
|
+
return vsm ? Element.getElementById(vsm) : undefined;
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
AnimationPlayer.prototype.init = function() {
|
|
@@ -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.
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
package/src/sap/ui/vk/Camera.js
CHANGED
|
@@ -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.
|
|
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
|
|
|
@@ -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.
|
|
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
|
/**
|
package/src/sap/ui/vk/Core.js
CHANGED
|
@@ -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/
|
|
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
|
-
|
|
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.
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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.
|
|
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/
|
|
22
|
+
"sap/m/OverflowToolbarButton",
|
|
22
23
|
"sap/m/ToolbarSeparator",
|
|
23
|
-
"sap/m/
|
|
24
|
-
"sap/m/
|
|
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
|
-
|
|
60
|
+
OverflowToolbarButton,
|
|
59
61
|
ToolbarSeparator,
|
|
60
|
-
|
|
61
|
-
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
21
|
+
* @version 1.123.0
|
|
22
22
|
* @extends sap.ui.base.Exception
|
|
23
23
|
* @alias sap.ui.vk.DvlException
|
|
24
24
|
*/
|
|
@@ -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.
|
|
30
|
+
* @version 1.123.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|