@sapui5/sap.ui.vk 1.136.1 → 1.136.3
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 +1 -1
- 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 +1 -1
- package/src/sap/ui/vk/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/Camera.js +1 -1
- package/src/sap/ui/vk/ContentConnector.js +19 -15
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +3 -2
- package/src/sap/ui/vk/Core.js +1 -1
- package/src/sap/ui/vk/DownloadManager.js +1 -1
- package/src/sap/ui/vk/DrawerToolbar.js +140 -19
- package/src/sap/ui/vk/DrawerToolbarButton.js +5 -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 +1 -1
- 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/Loco.js +1 -1
- package/src/sap/ui/vk/Material.js +1 -1
- package/src/sap/ui/vk/NativeViewport.js +1 -1
- 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/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/ProgressIndicator.js +1 -1
- package/src/sap/ui/vk/RedlineCollaboration.js +1 -1
- package/src/sap/ui/vk/RedlineConversation.js +1 -1
- package/src/sap/ui/vk/RedlineDesign.js +1 -1
- 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/RedlineSurface.js +1 -1
- package/src/sap/ui/vk/SafeArea.js +1 -1
- package/src/sap/ui/vk/Scene.js +16 -1
- package/src/sap/ui/vk/SceneTree.js +3 -4
- package/src/sap/ui/vk/StepNavigation.js +1 -2
- package/src/sap/ui/vk/Texture.js +1 -1
- package/src/sap/ui/vk/ToggleMenuButton.js +1 -1
- package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
- package/src/sap/ui/vk/Toolbar.js +68 -102
- package/src/sap/ui/vk/View.js +1 -1
- package/src/sap/ui/vk/ViewGallery.js +1 -1
- 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 +1 -1
- package/src/sap/ui/vk/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/ViewStateManagerBase.js +1 -1
- package/src/sap/ui/vk/Viewer.js +469 -234
- package/src/sap/ui/vk/Viewport.js +1 -1
- package/src/sap/ui/vk/ViewportBase.js +1 -1
- package/src/sap/ui/vk/dvl/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/dvl/ContentManager.js +1 -1
- package/src/sap/ui/vk/dvl/GraphicsCore.js +1 -1
- package/src/sap/ui/vk/dvl/LayerProxy.js +1 -1
- package/src/sap/ui/vk/dvl/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/dvl/NodeProxy.js +1 -1
- package/src/sap/ui/vk/dvl/Scene.js +1 -1
- package/src/sap/ui/vk/dvl/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/dvl/Viewport.js +2 -2
- package/src/sap/ui/vk/ecad/ElementsPanel.js +984 -212
- package/src/sap/ui/vk/ecad/LayersPanel.js +283 -145
- package/src/sap/ui/vk/i18n/messagebundle.properties +64 -37
- package/src/sap/ui/vk/i18n/messagebundle_id.properties +1 -1
- package/src/sap/ui/vk/i18n/messagebundle_iw.properties +1 -1
- package/src/sap/ui/vk/i18n/messagebundle_ja.properties +2 -2
- package/src/sap/ui/vk/i18n/messagebundle_no.properties +1 -1
- package/src/sap/ui/vk/i18n/messagebundle_vi.properties +1 -1
- package/src/sap/ui/vk/library.js +11 -4
- 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/Vertex.js +1 -1
- package/src/sap/ui/vk/pdf/ContentManager.js +1 -1
- package/src/sap/ui/vk/pdf/Viewport.js +5 -8
- package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/svg/ContentDeliveryService.js +1 -1
- package/src/sap/ui/vk/svg/ContentManager.js +3 -1
- package/src/sap/ui/vk/svg/Element.js +1 -0
- 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 +44 -8
- package/src/sap/ui/vk/svg/ViewStateManager.js +2 -2
- package/src/sap/ui/vk/svg/Viewport.js +192 -2
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.8.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.8.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_belize_base/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_bluecrystal_base/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_horizon/library.source.less +0 -5
- package/src/sap/ui/vk/themes/sap_horizon_dark/library.source.less +0 -5
- package/src/sap/ui/vk/themes/sap_horizon_hcb/library.source.less +0 -5
- package/src/sap/ui/vk/themes/sap_horizon_hcw/library.source.less +0 -5
- package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
- 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 +1 -1
- 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/OrthographicCamera.js +1 -1
- 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 +12 -1
- package/src/sap/ui/vk/threejs/Texture.js +1 -1
- package/src/sap/ui/vk/threejs/Thrustline.js +1 -1
- package/src/sap/ui/vk/threejs/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/threejs/Viewport.js +1 -1
- package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
- 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 +1 -1
- package/src/sap/ui/vk/tools/Gizmo.js +1 -1
- package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
- 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/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/TooltipToolHandler.js +5 -0
- 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 +4 -0
- 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/src/sap/ui/vk/ToolbarRenderer.js +0 -41
- package/src/sap/ui/vk/ViewerRenderer.js +0 -48
- package/src/sap/ui/vk/ecad/ElementsPanelRenderer.js +0 -41
- package/src/sap/ui/vk/ecad/LayersPanelRenderer.js +0 -41
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-bold-v1.4.woff2 +0 -0
- package/src/sap/ui/vk/themes/base/fonts/SAP-VE-icons-regular-v1.4.woff2 +0 -0
package/src/sap/ui/vk/Scene.js
CHANGED
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @public
|
|
38
38
|
* @abstract
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.136.
|
|
40
|
+
* @version 1.136.3
|
|
41
41
|
* @extends sap.ui.base.ManagedObject
|
|
42
42
|
* @alias sap.ui.vk.Scene
|
|
43
43
|
*/
|
|
@@ -628,5 +628,20 @@ sap.ui.define([
|
|
|
628
628
|
return this;
|
|
629
629
|
};
|
|
630
630
|
|
|
631
|
+
Scene.prototype._metadata = null;
|
|
632
|
+
|
|
633
|
+
Scene.prototype.setSceneMetadata = function(metadata) {
|
|
634
|
+
this._metadata = metadata;
|
|
635
|
+
return this;
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
Scene.prototype.getSceneMetadata = function(metadata) {
|
|
639
|
+
return this._metadata;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
Scene.prototype.isECADScene = function() {
|
|
643
|
+
return this._metadata?.some(({ category, tag, value }) => category === "ecad" && tag === "version" && value === "8");
|
|
644
|
+
};
|
|
645
|
+
|
|
631
646
|
return Scene;
|
|
632
647
|
});
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* @extends sap.ui.core.Control
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.136.
|
|
68
|
+
* @version 1.136.3
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -522,13 +522,12 @@ sap.ui.define([
|
|
|
522
522
|
};
|
|
523
523
|
|
|
524
524
|
SceneTree.prototype.refresh = function() {
|
|
525
|
-
|
|
525
|
+
const nodeHierarchy = this._scene?.getDefaultNodeHierarchy?.();
|
|
526
|
+
if (!nodeHierarchy || !this._viewStateManager?.getNodeHierarchy()) {
|
|
526
527
|
this._model.setData([]);
|
|
527
528
|
return;
|
|
528
529
|
}
|
|
529
530
|
|
|
530
|
-
var nodeHierarchy = this._scene.getDefaultNodeHierarchy();
|
|
531
|
-
|
|
532
531
|
// building the tree model which is going to be passed to the TreeTable control.
|
|
533
532
|
var tree = [];
|
|
534
533
|
var getChildrenRecursively = function(tree, nodeRefs) {
|
|
@@ -79,7 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
* @param {object} [mSettings] Initial settings for the new Step Navigation control.
|
|
80
80
|
* @public
|
|
81
81
|
* @author SAP SE
|
|
82
|
-
* @version 1.136.
|
|
82
|
+
* @version 1.136.3
|
|
83
83
|
* @extends sap.ui.core.Control
|
|
84
84
|
* @alias sap.ui.vk.StepNavigation
|
|
85
85
|
* @deprecated Since version 1.72.0. This class is used only with DVL namespace which will be removed in future. Use {@link sap.ui.vk.ViewGallery} instead.
|
|
@@ -335,7 +335,6 @@ sap.ui.define([
|
|
|
335
335
|
|
|
336
336
|
// Create JSON data model
|
|
337
337
|
this.oModel = new JSONModel();
|
|
338
|
-
this.setModel(this.oModel);
|
|
339
338
|
|
|
340
339
|
// Create layout panel
|
|
341
340
|
this._layout = new Toolbar({
|
package/src/sap/ui/vk/Texture.js
CHANGED
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.136.
|
|
25
|
+
* @version 1.136.3
|
|
26
26
|
* @extends sap.ui.base.ManagedObject
|
|
27
27
|
* @alias sap.ui.vk.Texture
|
|
28
28
|
* @experimental Since 1.58.0 This class is experimental and might be modified or removed in future versions.
|
package/src/sap/ui/vk/Toolbar.js
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
// Provides control sap.ui.vk.Toolbar.
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"./library",
|
|
11
|
-
"./ToolbarRenderer",
|
|
12
11
|
"./getResourceBundle",
|
|
13
12
|
"sap/ui/core/Control",
|
|
14
13
|
"sap/m/library",
|
|
@@ -21,7 +20,6 @@ sap.ui.define([
|
|
|
21
20
|
"sap/ui/core/Element"
|
|
22
21
|
], function(
|
|
23
22
|
vkLibrary,
|
|
24
|
-
ToolbarRenderer,
|
|
25
23
|
getResourceBundle,
|
|
26
24
|
Control,
|
|
27
25
|
mobileLibrary,
|
|
@@ -49,7 +47,7 @@ sap.ui.define([
|
|
|
49
47
|
* @extends sap.ui.core.Control
|
|
50
48
|
*
|
|
51
49
|
* @author SAP SE
|
|
52
|
-
* @version 1.136.
|
|
50
|
+
* @version 1.136.3
|
|
53
51
|
*
|
|
54
52
|
* @constructor
|
|
55
53
|
* @public
|
|
@@ -100,43 +98,26 @@ sap.ui.define([
|
|
|
100
98
|
type: "sap.m.Toolbar",
|
|
101
99
|
multiple: false,
|
|
102
100
|
visibility: "hidden"
|
|
103
|
-
},
|
|
104
|
-
_helpButton: {
|
|
105
|
-
type: "sap.m.Button",
|
|
106
|
-
multiple: false,
|
|
107
|
-
visibility: "hidden"
|
|
108
|
-
},
|
|
109
|
-
_stepNavigationButton: {
|
|
110
|
-
type: "sap.m.ToggleButton",
|
|
111
|
-
multiple: false,
|
|
112
|
-
visibility: "hidden"
|
|
113
|
-
},
|
|
114
|
-
_sceneTreeButton: {
|
|
115
|
-
type: "sap.m.ToggleButton",
|
|
116
|
-
multiple: false,
|
|
117
|
-
visibility: "hidden"
|
|
118
|
-
},
|
|
119
|
-
_miniMapButton: {
|
|
120
|
-
type: "sap.m.ToggleButton",
|
|
121
|
-
multiple: false,
|
|
122
|
-
visibility: "hidden"
|
|
123
|
-
},
|
|
124
|
-
_enterFullScreenButton: {
|
|
125
|
-
type: "sap.m.ToggleButton",
|
|
126
|
-
multiple: false,
|
|
127
|
-
visibility: "hidden"
|
|
128
|
-
},
|
|
129
|
-
_exitFullScreenButton: {
|
|
130
|
-
type: "sap.m.Button",
|
|
131
|
-
multiple: false,
|
|
132
|
-
visibility: "hidden"
|
|
133
|
-
},
|
|
134
|
-
_toolbarTitle: {
|
|
135
|
-
type: "sap.m.Title",
|
|
136
|
-
multiple: false,
|
|
137
|
-
visibility: "hidden"
|
|
138
101
|
}
|
|
139
102
|
}
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
constructor: function(id, settings) {
|
|
106
|
+
Control.apply(this, arguments);
|
|
107
|
+
|
|
108
|
+
this._getViewer()?.attachFullScreen(this._fullScreenHandler, this);
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
renderer: {
|
|
112
|
+
apiVersion: 2,
|
|
113
|
+
|
|
114
|
+
render: function(rm, control) {
|
|
115
|
+
rm.openStart("div", control);
|
|
116
|
+
rm.class("sapVizKitToolbar");
|
|
117
|
+
rm.openEnd();
|
|
118
|
+
rm.renderControl(control.getAggregation("_toolbar"));
|
|
119
|
+
rm.close("div");
|
|
120
|
+
}
|
|
140
121
|
}
|
|
141
122
|
});
|
|
142
123
|
|
|
@@ -144,31 +125,8 @@ sap.ui.define([
|
|
|
144
125
|
return this._toolbar;
|
|
145
126
|
};
|
|
146
127
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*/
|
|
150
|
-
Toolbar.prototype._onSceneTree = function() {
|
|
151
|
-
this.oViewer = Element.getElementById(this.getViewer());
|
|
152
|
-
if (this.oViewer != null) {
|
|
153
|
-
this.oViewer._componentsState.sceneTree.userInteractionShow = this._sceneTreeButton.getPressed();
|
|
154
|
-
this.oViewer.setShowSceneTree(this.oViewer._componentsState.sceneTree.userInteractionShow);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
Toolbar.prototype._onStepNavigation = function() {
|
|
159
|
-
this.oViewer = Element.getElementById(this.getViewer());
|
|
160
|
-
if (this.oViewer != null) {
|
|
161
|
-
this.oViewer._componentsState.stepNavigation.userInteractionShow = this._stepNavigationButton.getPressed();
|
|
162
|
-
this.oViewer.setShowStepNavigation(this.oViewer._componentsState.stepNavigation.userInteractionShow);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
Toolbar.prototype._onMiniMap = function() {
|
|
167
|
-
this.oViewer = Element.getElementById(this.getViewer());
|
|
168
|
-
if (this.oViewer != null) {
|
|
169
|
-
this.oViewer._componentsState.miniMap.userInteractionShow = this._miniMapButton.getPressed();
|
|
170
|
-
this.oViewer.setShowMiniMap(this.oViewer._componentsState.miniMap.userInteractionShow);
|
|
171
|
-
}
|
|
128
|
+
Toolbar.prototype._getViewer = function() {
|
|
129
|
+
return Element.getElementById(this.getViewer());
|
|
172
130
|
};
|
|
173
131
|
|
|
174
132
|
Toolbar.prototype._getViewer = function() {
|
|
@@ -176,7 +134,7 @@ sap.ui.define([
|
|
|
176
134
|
};
|
|
177
135
|
|
|
178
136
|
Toolbar.prototype._onFullScreen = function() {
|
|
179
|
-
this._getViewer()?.activateFullScreenMode();
|
|
137
|
+
this._getViewer()?.activateFullScreenMode(this._enterFullScreenButton.getPressed());
|
|
180
138
|
};
|
|
181
139
|
|
|
182
140
|
Toolbar.prototype._fullScreenHandler = function(event) {
|
|
@@ -195,46 +153,70 @@ sap.ui.define([
|
|
|
195
153
|
Control.prototype.init.apply(this);
|
|
196
154
|
}
|
|
197
155
|
|
|
198
|
-
var _helpButton = new Button({
|
|
199
|
-
icon: "sap-icon://sys-help",
|
|
200
|
-
type: ButtonType.Transparent,
|
|
201
|
-
tooltip: getResourceBundle().getText("VIEWER_HELPBUTTONTOOLTIP")
|
|
202
|
-
});
|
|
203
|
-
this.setAggregation("_helpButton", _helpButton);
|
|
204
|
-
|
|
205
156
|
this._stepNavigationButton = new ToggleButton({
|
|
206
157
|
icon: "sap-icon://step",
|
|
207
158
|
type: ButtonType.Transparent,
|
|
208
|
-
enabled: false,
|
|
209
159
|
tooltip: getResourceBundle().getText("STEP_NAV_MENUBUTTONTOOLTIP"),
|
|
210
|
-
|
|
160
|
+
visible: "{= ${_internal>/stepNavigation/enabled} === true && ${_internal>/stepNavigation/supported} === true }",
|
|
161
|
+
pressed: "{_internal>/stepNavigation/visible}"
|
|
211
162
|
}).data("help-id", "sapUiVkStepNavigationBtn", true);
|
|
212
|
-
this.setAggregation("_stepNavigationButton", this._stepNavigationButton);
|
|
213
163
|
|
|
214
164
|
this._sceneTreeButton = new ToggleButton({
|
|
215
165
|
icon: "sap-icon://tree",
|
|
216
166
|
type: ButtonType.Transparent,
|
|
217
167
|
tooltip: getResourceBundle().getText("SCENETREE_MENUBUTTONTOOLTIP"),
|
|
218
|
-
|
|
168
|
+
visible: "{= ${_internal>/sceneTree/enabled} === true && ${_internal>/sceneTree/supported} === true }",
|
|
169
|
+
pressed: "{_internal>/sceneTree/visible}"
|
|
219
170
|
}).data("help-id", "sapUiVkSceneTreeBtn", true);
|
|
220
|
-
|
|
171
|
+
|
|
172
|
+
this._layersPanelButton = new ToggleButton({
|
|
173
|
+
icon: "sap-icon://dimension",
|
|
174
|
+
type: ButtonType.Transparent,
|
|
175
|
+
tooltip: getResourceBundle().getText("LAYERS_BUTTONTOOLTIP"),
|
|
176
|
+
visible: "{= ${_internal>/layersPanel/enabled} === true && ${_internal>/layersPanel/supported} === true }",
|
|
177
|
+
pressed: "{_internal>/layersPanel/visible}"
|
|
178
|
+
}).data("help-id", "sapUiVkLayersBtn", true);
|
|
179
|
+
|
|
180
|
+
this._elementsPanelButton = new ToggleButton({
|
|
181
|
+
icon: "sap-icon://group-2",
|
|
182
|
+
type: ButtonType.Transparent,
|
|
183
|
+
tooltip: getResourceBundle().getText("ELEMENTS_BUTTONTOOLTIP"),
|
|
184
|
+
visible: "{= ${_internal>/elementsPanel/enabled} === true && ${_internal>/elementsPanel/supported} === true }",
|
|
185
|
+
pressed: "{_internal>/elementsPanel/visible}"
|
|
186
|
+
}).data("help-id", "sapUiVkElementsBtn", true);
|
|
187
|
+
|
|
188
|
+
this._pageGalleryButton = new ToggleButton({
|
|
189
|
+
icon: "sap-icon://documents",
|
|
190
|
+
type: ButtonType.Transparent,
|
|
191
|
+
tooltip: getResourceBundle().getText("PAGE_GALLERY_BUTTONTOOLTIP"),
|
|
192
|
+
visible: "{= ${_internal>/pageGallery/enabled} === true && ${_internal>/pageGallery/supported} === true }",
|
|
193
|
+
pressed: "{_internal>/pageGallery/visible}"
|
|
194
|
+
}).data("help-id", "sapUiVkPageGalleryBtn", true);
|
|
221
195
|
|
|
222
196
|
this._miniMapButton = new ToggleButton({
|
|
223
197
|
icon: "sap-icon://map-3",
|
|
224
198
|
type: ButtonType.Transparent,
|
|
225
199
|
tooltip: getResourceBundle().getText("MINIMAP_BUTTONTOOLTIP"),
|
|
226
|
-
|
|
200
|
+
visible: "{= ${_internal>/miniMap/enabled} === true && ${_internal>/miniMap/supported} === true }",
|
|
201
|
+
pressed: "{_internal>/miniMap/visible}"
|
|
227
202
|
}).data("help-id", "sapUiVkMiniMapBtn", true);
|
|
228
203
|
|
|
204
|
+
this._toggleHotspotsButton = new ToggleButton({
|
|
205
|
+
icon: "sap-icon://example",
|
|
206
|
+
type: ButtonType.Transparent,
|
|
207
|
+
tooltip: getResourceBundle().getText("TOGGLE_HOTSPOTS_BUTTONTOOLTIP"),
|
|
208
|
+
visible: "{= ${_internal>/hotspots/supported} === true && ${_internal>/hotspots/enabled} === true }",
|
|
209
|
+
pressed: "{_internal>/hotspots/showAll}"
|
|
210
|
+
}).data("help-id", "sapUiVkToolgeHotspotsBtn", true);
|
|
211
|
+
|
|
229
212
|
this._toolbarTitle = new Title();
|
|
230
|
-
this.setAggregation("_toolbarTitle", this._toolbarTitle);
|
|
231
213
|
|
|
232
214
|
this._enterFullScreenButton = new Button({
|
|
233
215
|
icon: "sap-icon://full-screen",
|
|
234
216
|
type: ButtonType.Transparent,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}).data("help-id", "sapUiVkEnterFullScreenBtn", true)
|
|
217
|
+
tooltip: getResourceBundle().getText("VIEWER_FULLSCREENBUTTONTOOLTIP"),
|
|
218
|
+
press: this._onFullScreen.bind(this)
|
|
219
|
+
}).data("help-id", "sapUiVkEnterFullScreenBtn", true);
|
|
238
220
|
|
|
239
221
|
var toolbarContent = [
|
|
240
222
|
new ToolbarSpacer(),
|
|
@@ -242,6 +224,10 @@ sap.ui.define([
|
|
|
242
224
|
new ToolbarSpacer(),
|
|
243
225
|
this._sceneTreeButton,
|
|
244
226
|
this._stepNavigationButton,
|
|
227
|
+
this._layersPanelButton,
|
|
228
|
+
this._elementsPanelButton,
|
|
229
|
+
this._pageGalleryButton,
|
|
230
|
+
this._toggleHotspotsButton,
|
|
245
231
|
this._miniMapButton,
|
|
246
232
|
new ToolbarSeparator(),
|
|
247
233
|
this._enterFullScreenButton
|
|
@@ -255,10 +241,7 @@ sap.ui.define([
|
|
|
255
241
|
};
|
|
256
242
|
|
|
257
243
|
Toolbar.prototype.exit = function() {
|
|
258
|
-
this.
|
|
259
|
-
if (this.oViewer) {
|
|
260
|
-
this.oViewer.detachFullScreen(this._fullScreenHandler.bind(this));
|
|
261
|
-
}
|
|
244
|
+
this._getViewer()?.detachFullScreen(this._fullScreenHandler, this);
|
|
262
245
|
};
|
|
263
246
|
|
|
264
247
|
Toolbar.prototype.onBeforeRendering = function() {
|
|
@@ -266,23 +249,6 @@ sap.ui.define([
|
|
|
266
249
|
this._toolbarTitle.setText(this.getTitle());
|
|
267
250
|
};
|
|
268
251
|
|
|
269
|
-
Toolbar.prototype.refresh = function() {
|
|
270
|
-
this.oViewer = Element.getElementById(this.getViewer());
|
|
271
|
-
this._stepNavigationButton.setPressed(this.oViewer.getShowStepNavigation());
|
|
272
|
-
this._stepNavigationButton.setEnabled(this.oViewer.getEnableStepNavigation());
|
|
273
|
-
this._sceneTreeButton.setPressed(this.oViewer.getShowSceneTree());
|
|
274
|
-
this._sceneTreeButton.setEnabled(this.oViewer.getEnableSceneTree());
|
|
275
|
-
this._miniMapButton.setPressed(this.oViewer.getShowMiniMap());
|
|
276
|
-
this._miniMapButton.setVisible(this.oViewer.getEnableMiniMap());
|
|
277
|
-
|
|
278
|
-
this.oViewer.attachFullScreen(this._fullScreenHandler.bind(this));
|
|
279
|
-
return true;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
Toolbar.prototype.onAfterRendering = function() {
|
|
283
|
-
this.refresh();
|
|
284
|
-
};
|
|
285
|
-
|
|
286
252
|
return Toolbar;
|
|
287
253
|
|
|
288
254
|
});
|
package/src/sap/ui/vk/View.js
CHANGED
|
@@ -95,7 +95,7 @@ sap.ui.define([
|
|
|
95
95
|
* @param {object} [mSettings] Initial settings for the new View Gallery control.
|
|
96
96
|
* @public
|
|
97
97
|
* @author SAP SE
|
|
98
|
-
* @version 1.136.
|
|
98
|
+
* @version 1.136.3
|
|
99
99
|
* @extends sap.ui.core.Control
|
|
100
100
|
* @alias sap.ui.vk.ViewGallery
|
|
101
101
|
* @since 1.62.0
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] Initial settings for the new ViewGalleryThumbnail.
|
|
28
28
|
* @private
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.136.
|
|
30
|
+
* @version 1.136.3
|
|
31
31
|
* @extends sap.m.Image
|
|
32
32
|
* @alias sap.ui.vk.ViewGalleryThumbnail
|
|
33
33
|
* @since 1.72.0
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] Initial settings for the new ViewStateManager object.
|
|
28
28
|
* @public
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.136.
|
|
30
|
+
* @version 1.136.3
|
|
31
31
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @alias sap.ui.vk.ViewStateManager
|
|
33
33
|
* @since 1.32.0
|