@sapui5/sap.ui.vk 1.135.0 → 1.138.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +13 -1
- package/src/sap/ui/vk/Core.js +1 -3
- package/src/sap/ui/vk/DownloadManager.js +1 -1
- package/src/sap/ui/vk/DrawerToolbar.js +142 -76
- package/src/sap/ui/vk/DrawerToolbarButton.js +12 -1
- package/src/sap/ui/vk/DvlException.js +1 -1
- package/src/sap/ui/vk/FlexibleControl.js +1 -2
- package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -2
- 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/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/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/OutputSettings.js +0 -1
- package/src/sap/ui/vk/Overlay.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 +2 -2
- package/src/sap/ui/vk/SafeArea.js +1 -1
- package/src/sap/ui/vk/Scene.js +12 -1
- package/src/sap/ui/vk/SceneTree.js +4 -7
- package/src/sap/ui/vk/StepNavigation.js +1 -2
- package/src/sap/ui/vk/Texture.js +2 -2
- package/src/sap/ui/vk/ToggleMenuButton.js +1 -1
- package/src/sap/ui/vk/ToggleMenuItem.js +7 -4
- package/src/sap/ui/vk/ToggleMenuItemRenderer.js +224 -0
- package/src/sap/ui/vk/Toolbar.js +69 -115
- package/src/sap/ui/vk/View.js +7 -13
- package/src/sap/ui/vk/ViewGallery.js +2 -2
- 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 +2 -2
- package/src/sap/ui/vk/ViewStateManagerBase.js +3 -3
- package/src/sap/ui/vk/Viewer.js +467 -304
- package/src/sap/ui/vk/Viewport.js +2 -2
- package/src/sap/ui/vk/ViewportBase.js +46 -3
- package/src/sap/ui/vk/VisibilityMode.js +2 -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 +1 -1
- package/src/sap/ui/vk/ecad/ElementsPanel.js +991 -0
- package/src/sap/ui/vk/ecad/LayersPanel.js +573 -0
- package/src/sap/ui/vk/ecad/VisibilityType.js +31 -0
- package/src/sap/ui/vk/i18n/messagebundle.properties +85 -0
- package/src/sap/ui/vk/i18n/messagebundle_ar.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_bg.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_ca.properties +35 -1
- package/src/sap/ui/vk/i18n/messagebundle_cnr.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_cs.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_cy.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_da.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_de.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_el.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_en.properties +348 -0
- package/src/sap/ui/vk/i18n/messagebundle_en_GB.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_en_US_saprigi.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_es.properties +36 -2
- package/src/sap/ui/vk/i18n/messagebundle_es_MX.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_et.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_fi.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_fr.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_fr_CA.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_hi.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_hr.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_hu.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_id.properties +35 -1
- package/src/sap/ui/vk/i18n/messagebundle_it.properties +36 -2
- package/src/sap/ui/vk/i18n/messagebundle_iw.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_ja.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_kk.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_ko.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_lt.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_lv.properties +36 -2
- package/src/sap/ui/vk/i18n/messagebundle_mk.properties +36 -2
- package/src/sap/ui/vk/i18n/messagebundle_ms.properties +39 -5
- package/src/sap/ui/vk/i18n/messagebundle_nl.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_no.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_pl.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_pt.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_pt_PT.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_ro.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_ru.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_sh.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_sk.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_sl.properties +37 -3
- package/src/sap/ui/vk/i18n/messagebundle_sr.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_sv.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_th.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_tr.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_uk.properties +35 -1
- package/src/sap/ui/vk/i18n/messagebundle_vi.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_zh_CN.properties +34 -0
- package/src/sap/ui/vk/i18n/messagebundle_zh_TW.properties +34 -0
- package/src/sap/ui/vk/library.js +7 -3
- 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/PageGallery.js +3 -5
- 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 +2 -1
- package/src/sap/ui/vk/svg/ContentManager.js +4 -1
- package/src/sap/ui/vk/svg/HotspotHelper.js +2 -2
- 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 +12 -4
- package/src/sap/ui/vk/svg/ViewStateManager.js +2 -2
- package/src/sap/ui/vk/svg/Viewport.js +199 -2
- package/src/sap/ui/vk/themes/base/DrawerToolbar.less +8 -0
- package/src/sap/ui/vk/themes/base/Viewer.less +9 -12
- 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/Viewer.less +1 -12
- package/src/sap/ui/vk/themes/sap_belize_base/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_bluecrystal_base/Viewer.less +1 -12
- package/src/sap/ui/vk/themes/sap_bluecrystal_base/library.source.less +1 -1
- package/src/sap/ui/vk/themes/sap_hcb/base_Viewer.less +1 -12
- 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 +11 -1
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +2 -1
- package/src/sap/ui/vk/threejs/ContentManager.js +2 -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 +2 -2
- 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 +18 -2
- package/src/sap/ui/vk/threejs/Texture.js +2 -2
- package/src/sap/ui/vk/threejs/ThreeExtensions.js +9 -1
- package/src/sap/ui/vk/threejs/Thrustline.js +1 -1
- package/src/sap/ui/vk/threejs/ViewStateManager.js +2 -2
- package/src/sap/ui/vk/threejs/Viewport.js +9 -3
- 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/ExplodeItemGroup.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 +2 -2
- 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/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/totara/TotaraUtils.js +5 -0
- package/src/sap/ui/vk/ve/dvl.js +1 -1
- 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/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/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.
|
|
50
|
+
* @version 1.138.0
|
|
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,39 +125,12 @@ 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._onFullScreen = function() {
|
|
175
|
-
this.
|
|
176
|
-
if (this.oViewer != null) {
|
|
177
|
-
var newStateFullScreenButton = this._enterFullScreenButton.getPressed();
|
|
178
|
-
this.oViewer.activateFullScreenMode(newStateFullScreenButton);
|
|
179
|
-
}
|
|
133
|
+
this._getViewer()?.activateFullScreenMode();
|
|
180
134
|
};
|
|
181
135
|
|
|
182
136
|
Toolbar.prototype._fullScreenHandler = function(event) {
|
|
@@ -195,54 +149,70 @@ sap.ui.define([
|
|
|
195
149
|
Control.prototype.init.apply(this);
|
|
196
150
|
}
|
|
197
151
|
|
|
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
152
|
this._stepNavigationButton = new ToggleButton({
|
|
206
153
|
icon: "sap-icon://step",
|
|
207
154
|
type: ButtonType.Transparent,
|
|
208
|
-
enabled: false,
|
|
209
155
|
tooltip: getResourceBundle().getText("STEP_NAV_MENUBUTTONTOOLTIP"),
|
|
210
|
-
|
|
156
|
+
visible: "{= ${_internal>/stepNavigation/enabled} === true && ${_internal>/stepNavigation/supported} === true }",
|
|
157
|
+
pressed: "{_internal>/stepNavigation/visible}"
|
|
211
158
|
}).data("help-id", "sapUiVkStepNavigationBtn", true);
|
|
212
|
-
this.setAggregation("_stepNavigationButton", this._stepNavigationButton);
|
|
213
159
|
|
|
214
160
|
this._sceneTreeButton = new ToggleButton({
|
|
215
161
|
icon: "sap-icon://tree",
|
|
216
162
|
type: ButtonType.Transparent,
|
|
217
163
|
tooltip: getResourceBundle().getText("SCENETREE_MENUBUTTONTOOLTIP"),
|
|
218
|
-
|
|
164
|
+
visible: "{= ${_internal>/sceneTree/enabled} === true && ${_internal>/sceneTree/supported} === true }",
|
|
165
|
+
pressed: "{_internal>/sceneTree/visible}"
|
|
219
166
|
}).data("help-id", "sapUiVkSceneTreeBtn", true);
|
|
220
|
-
|
|
167
|
+
|
|
168
|
+
this._layersPanelButton = new ToggleButton({
|
|
169
|
+
icon: "sap-icon://dimension",
|
|
170
|
+
type: ButtonType.Transparent,
|
|
171
|
+
tooltip: getResourceBundle().getText("LAYERS_BUTTONTOOLTIP"),
|
|
172
|
+
visible: "{= ${_internal>/layersPanel/enabled} === true && ${_internal>/layersPanel/supported} === true }",
|
|
173
|
+
pressed: "{_internal>/layersPanel/visible}"
|
|
174
|
+
}).data("help-id", "sapUiVkLayersBtn", true);
|
|
175
|
+
|
|
176
|
+
this._elementsPanelButton = new ToggleButton({
|
|
177
|
+
icon: "sap-icon://group-2",
|
|
178
|
+
type: ButtonType.Transparent,
|
|
179
|
+
tooltip: getResourceBundle().getText("ELEMENTS_BUTTONTOOLTIP"),
|
|
180
|
+
visible: "{= ${_internal>/elementsPanel/enabled} === true && ${_internal>/elementsPanel/supported} === true }",
|
|
181
|
+
pressed: "{_internal>/elementsPanel/visible}"
|
|
182
|
+
}).data("help-id", "sapUiVkElementsBtn", true);
|
|
183
|
+
|
|
184
|
+
this._pageGalleryButton = new ToggleButton({
|
|
185
|
+
icon: "sap-icon://documents",
|
|
186
|
+
type: ButtonType.Transparent,
|
|
187
|
+
tooltip: getResourceBundle().getText("PAGE_GALLERY_BUTTONTOOLTIP"),
|
|
188
|
+
visible: "{= ${_internal>/pageGallery/enabled} === true && ${_internal>/pageGallery/supported} === true }",
|
|
189
|
+
pressed: "{_internal>/pageGallery/visible}"
|
|
190
|
+
}).data("help-id", "sapUiVkPageGalleryBtn", true);
|
|
221
191
|
|
|
222
192
|
this._miniMapButton = new ToggleButton({
|
|
223
193
|
icon: "sap-icon://map-3",
|
|
224
194
|
type: ButtonType.Transparent,
|
|
225
195
|
tooltip: getResourceBundle().getText("MINIMAP_BUTTONTOOLTIP"),
|
|
226
|
-
|
|
196
|
+
visible: "{= ${_internal>/miniMap/enabled} === true && ${_internal>/miniMap/supported} === true }",
|
|
197
|
+
pressed: "{_internal>/miniMap/visible}"
|
|
227
198
|
}).data("help-id", "sapUiVkMiniMapBtn", true);
|
|
228
199
|
|
|
200
|
+
this._toggleHotspotsButton = new ToggleButton({
|
|
201
|
+
icon: "sap-icon://example",
|
|
202
|
+
type: ButtonType.Transparent,
|
|
203
|
+
tooltip: getResourceBundle().getText("TOGGLE_HOTSPOTS_BUTTONTOOLTIP"),
|
|
204
|
+
visible: "{= ${_internal>/hotspots/supported} === true && ${_internal>/hotspots/enabled} === true }",
|
|
205
|
+
pressed: "{_internal>/hotspots/showAll}"
|
|
206
|
+
}).data("help-id", "sapUiVkToolgeHotspotsBtn", true);
|
|
207
|
+
|
|
229
208
|
this._toolbarTitle = new Title();
|
|
230
|
-
this.setAggregation("_toolbarTitle", this._toolbarTitle);
|
|
231
209
|
|
|
232
|
-
this._enterFullScreenButton = new
|
|
210
|
+
this._enterFullScreenButton = new Button({
|
|
233
211
|
icon: "sap-icon://full-screen",
|
|
234
212
|
type: ButtonType.Transparent,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}).data("help-id", "sapUiVkEnterFullScreenBtn", true);
|
|
238
|
-
this.setAggregation("_enterFullScreenButton", this._enterFullScreenButton);
|
|
239
|
-
|
|
240
|
-
var _exitFullScreenButton = new Button({
|
|
241
|
-
icon: "sap-icon://exit-full-screen",
|
|
242
|
-
type: ButtonType.Transparent,
|
|
243
|
-
tooltip: getResourceBundle().getText("VIEWER_FULLSCREENBUTTONTOOLTIP")
|
|
244
|
-
}).data("help-id", "sapUiVkExitFullScreenBtn", true);
|
|
245
|
-
this.setAggregation("_exitFullScreenButton", _exitFullScreenButton);
|
|
213
|
+
press: this._onFullScreen.bind(this),
|
|
214
|
+
tooltip: getResourceBundle().getText("ENTER_FULLSCREEN")
|
|
215
|
+
}).data("help-id", "sapUiVkEnterFullScreenBtn", true).addStyleClass("sapUiVkFullScreenToolbarButton");
|
|
246
216
|
|
|
247
217
|
var toolbarContent = [
|
|
248
218
|
new ToolbarSpacer(),
|
|
@@ -250,6 +220,10 @@ sap.ui.define([
|
|
|
250
220
|
new ToolbarSpacer(),
|
|
251
221
|
this._sceneTreeButton,
|
|
252
222
|
this._stepNavigationButton,
|
|
223
|
+
this._layersPanelButton,
|
|
224
|
+
this._elementsPanelButton,
|
|
225
|
+
this._pageGalleryButton,
|
|
226
|
+
this._toggleHotspotsButton,
|
|
253
227
|
this._miniMapButton,
|
|
254
228
|
new ToolbarSeparator(),
|
|
255
229
|
this._enterFullScreenButton
|
|
@@ -263,10 +237,7 @@ sap.ui.define([
|
|
|
263
237
|
};
|
|
264
238
|
|
|
265
239
|
Toolbar.prototype.exit = function() {
|
|
266
|
-
this.
|
|
267
|
-
if (this.oViewer) {
|
|
268
|
-
this.oViewer.detachFullScreen(this._fullScreenHandler.bind(this));
|
|
269
|
-
}
|
|
240
|
+
this._getViewer()?.detachFullScreen(this._fullScreenHandler, this);
|
|
270
241
|
};
|
|
271
242
|
|
|
272
243
|
Toolbar.prototype.onBeforeRendering = function() {
|
|
@@ -274,23 +245,6 @@ sap.ui.define([
|
|
|
274
245
|
this._toolbarTitle.setText(this.getTitle());
|
|
275
246
|
};
|
|
276
247
|
|
|
277
|
-
Toolbar.prototype.refresh = function() {
|
|
278
|
-
this.oViewer = Element.getElementById(this.getViewer());
|
|
279
|
-
this._stepNavigationButton.setPressed(this.oViewer.getShowStepNavigation());
|
|
280
|
-
this._stepNavigationButton.setEnabled(this.oViewer.getEnableStepNavigation());
|
|
281
|
-
this._sceneTreeButton.setPressed(this.oViewer.getShowSceneTree());
|
|
282
|
-
this._sceneTreeButton.setEnabled(this.oViewer.getEnableSceneTree());
|
|
283
|
-
this._miniMapButton.setPressed(this.oViewer.getShowMiniMap());
|
|
284
|
-
this._miniMapButton.setVisible(this.oViewer.getEnableMiniMap());
|
|
285
|
-
|
|
286
|
-
this.oViewer.attachFullScreen(this._fullScreenHandler.bind(this));
|
|
287
|
-
return true;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
Toolbar.prototype.onAfterRendering = function() {
|
|
291
|
-
this.refresh();
|
|
292
|
-
};
|
|
293
|
-
|
|
294
248
|
return Toolbar;
|
|
295
249
|
|
|
296
250
|
});
|
package/src/sap/ui/vk/View.js
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.138.0
|
|
35
35
|
* @extends sap.ui.base.ManagedObject
|
|
36
36
|
* @implements sap.ui.vk.IPlaybackCollection
|
|
37
37
|
* @alias sap.ui.vk.View
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
*
|
|
125
125
|
* @returns {sap.ui.vk.Camera} View camera
|
|
126
126
|
* @public
|
|
127
|
-
* @
|
|
127
|
+
* @since 1.73.0
|
|
128
128
|
*/
|
|
129
129
|
View.prototype.getCamera = function() {
|
|
130
130
|
return this._camera;
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
* @param {sap.ui.vk.Camera} camera View camera
|
|
138
138
|
* @return {sap.ui.vk.View} return this
|
|
139
139
|
* @public
|
|
140
|
-
* @
|
|
140
|
+
* @since 1.73.0
|
|
141
141
|
*/
|
|
142
142
|
View.prototype.setCamera = function(camera) {
|
|
143
143
|
this._camera = camera;
|
|
@@ -492,8 +492,7 @@ sap.ui.define([
|
|
|
492
492
|
* }
|
|
493
493
|
* </pre>
|
|
494
494
|
* @public
|
|
495
|
-
*
|
|
496
|
-
* @experimental Since 1.73.0 This class is experimental and might be modified or removed in future versions.
|
|
495
|
+
* @since 1.73.0
|
|
497
496
|
*/
|
|
498
497
|
View.prototype.getNodeInfos = function() {
|
|
499
498
|
return this._nodeInfos ? this._nodeInfos : [];
|
|
@@ -510,12 +509,9 @@ sap.ui.define([
|
|
|
510
509
|
* @param {boolean} infos[].visible - Node visibility
|
|
511
510
|
* @param {float} infos[].opacity - Node opacity
|
|
512
511
|
* @param {float} infos[].annotationId - Optional, annotation id
|
|
513
|
-
*
|
|
514
512
|
* @returns {this} Reference to this in order to allow method chaining
|
|
515
|
-
*
|
|
516
513
|
* @public
|
|
517
|
-
*
|
|
518
|
-
* @experimental Since 1.73.0 This class is experimental and might be modified or removed in future versions.
|
|
514
|
+
* @since 1.73.0
|
|
519
515
|
*/
|
|
520
516
|
View.prototype.setNodeInfos = function(infos) {
|
|
521
517
|
this._nodeInfos = infos;
|
|
@@ -533,10 +529,8 @@ sap.ui.define([
|
|
|
533
529
|
* @param {boolean} update[].visible - Node visibility
|
|
534
530
|
* @param {float} update[].opacity - Node opacity
|
|
535
531
|
* @returns {this} Reference to this in order to allow method chaining
|
|
536
|
-
*
|
|
537
532
|
* @public
|
|
538
|
-
*
|
|
539
|
-
* @experimental Since 1.73.0 This class is experimental and might be modified or removed in future versions.
|
|
533
|
+
* @since 1.73.0
|
|
540
534
|
*/
|
|
541
535
|
View.prototype.updateNodeInfos = function(update) {
|
|
542
536
|
var currentData = this.getNodeInfos();
|
|
@@ -574,7 +568,7 @@ sap.ui.define([
|
|
|
574
568
|
*
|
|
575
569
|
* @return {sap.ui.model.Model} returns the model for this view.
|
|
576
570
|
* @public
|
|
577
|
-
* @
|
|
571
|
+
* @since 1.76.0
|
|
578
572
|
*/
|
|
579
573
|
View.prototype.getModel = function() {
|
|
580
574
|
return this._model;
|
|
@@ -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.
|
|
98
|
+
* @version 1.138.0
|
|
99
99
|
* @extends sap.ui.core.Control
|
|
100
100
|
* @alias sap.ui.vk.ViewGallery
|
|
101
101
|
* @since 1.62.0
|
|
@@ -440,7 +440,7 @@ sap.ui.define([
|
|
|
440
440
|
};
|
|
441
441
|
|
|
442
442
|
ViewGallery.prototype._updateAnimationTimeSlider = function(viewGroup) {
|
|
443
|
-
const hasAnimatedView = viewGroup.views
|
|
443
|
+
const hasAnimatedView = viewGroup.views?.some(view => view.animated === true);
|
|
444
444
|
this.setShowAnimationTimeSlider(hasAnimatedView);
|
|
445
445
|
};
|
|
446
446
|
|
|
@@ -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.
|
|
30
|
+
* @version 1.138.0
|
|
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.
|
|
30
|
+
* @version 1.138.0
|
|
31
31
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @alias sap.ui.vk.ViewStateManager
|
|
33
33
|
* @since 1.32.0
|
|
@@ -1123,7 +1123,7 @@ sap.ui.define([
|
|
|
1123
1123
|
* @param {string} nodeId node Id string, optional
|
|
1124
1124
|
* @returns {any[]} An array of nodes
|
|
1125
1125
|
* @public
|
|
1126
|
-
* @
|
|
1126
|
+
* @since 1.82.0
|
|
1127
1127
|
*/
|
|
1128
1128
|
ViewStateManager.prototype.getSymbolNodes = function(nodeId) {
|
|
1129
1129
|
if (this._implementation && this._implementation.getSymbolNodes) {
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @public
|
|
27
27
|
* @abstract
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.138.0
|
|
30
30
|
* @extends sap.ui.core.Element
|
|
31
31
|
* @alias sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @since 1.32.0
|
|
@@ -919,7 +919,7 @@ sap.ui.define([
|
|
|
919
919
|
* @returns {float|float[]} A single value or an array of values. Value <code>null</code> means that the node's own
|
|
920
920
|
* <code>selectable</code> property should be used.
|
|
921
921
|
* @public
|
|
922
|
-
* @
|
|
922
|
+
* @since 1.111.0
|
|
923
923
|
*/
|
|
924
924
|
ViewStateManagerBase.prototype.getSelectable = function(nodeRefs) {
|
|
925
925
|
// Return default value which is `true`.
|
|
@@ -950,7 +950,7 @@ sap.ui.define([
|
|
|
950
950
|
* node's own <code>selectable</code> property is in use.
|
|
951
951
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
952
952
|
* @public
|
|
953
|
-
* @
|
|
953
|
+
* @since 1.111.0
|
|
954
954
|
*/
|
|
955
955
|
ViewStateManagerBase.prototype.setSelectable = function(nodeRefs, selectable) {
|
|
956
956
|
// Do nothing.
|