@sapui5/sap.ui.vk 1.136.1 → 1.139.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 +9 -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 +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/ContentType.js +1 -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 +152 -19
- 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 +16 -1
- package/src/sap/ui/vk/SceneTree.js +23 -9
- 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 +62 -100
- 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 +4 -11
- package/src/sap/ui/vk/ViewStateManagerBase.js +4 -4
- package/src/sap/ui/vk/Viewer.js +408 -234
- package/src/sap/ui/vk/Viewport.js +2 -2
- package/src/sap/ui/vk/ViewportBase.js +24 -70
- 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 +627 -132
- package/src/sap/ui/vk/ecad/LayersPanel.js +247 -131
- package/src/sap/ui/vk/i18n/messagebundle.properties +70 -38
- package/src/sap/ui/vk/i18n/messagebundle_ar.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_bg.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ca.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_cnr.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_cs.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_cy.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_da.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_de.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_el.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_en.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_en_GB.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_en_US_saprigi.properties +31 -12
- package/src/sap/ui/vk/i18n/messagebundle_es.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_es_MX.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_et.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_fi.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_fr.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_fr_CA.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_hi.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_hr.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_hu.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_id.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_it.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_iw.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ja.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_kk.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ko.properties +27 -9
- package/src/sap/ui/vk/i18n/messagebundle_lt.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_lv.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_mk.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ms.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_nl.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_no.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_pl.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_pt.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_pt_PT.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ro.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_ru.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_sh.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_sk.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_sl.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_sr.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_sv.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_th.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_tr.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_uk.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_vi.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_zh_CN.properties +30 -12
- package/src/sap/ui/vk/i18n/messagebundle_zh_TW.properties +30 -12
- package/src/sap/ui/vk/library.js +7 -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/Page.js +9 -10
- package/src/sap/ui/vk/pdf/Utils.js +4 -2
- 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 +2 -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 +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 +23 -11
- package/src/sap/ui/vk/threejs/Callout.js +11 -1
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
- package/src/sap/ui/vk/threejs/ContentManager.js +3 -2
- package/src/sap/ui/vk/threejs/DetailView.js +1 -1
- package/src/sap/ui/vk/threejs/HighlightPlayer.js +14 -22
- 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 +9 -11
- package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/threejs/OutlineRenderer.js +4 -10
- 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 -15
- package/src/sap/ui/vk/threejs/SceneBuilder.js +17 -4
- package/src/sap/ui/vk/threejs/Texture.js +2 -2
- package/src/sap/ui/vk/threejs/ThreeExtensions.js +10 -174
- package/src/sap/ui/vk/threejs/ThreeUtils.js +7 -18
- package/src/sap/ui/vk/threejs/Thrustline.js +1 -1
- package/src/sap/ui/vk/threejs/ViewStateManager.js +752 -447
- package/src/sap/ui/vk/threejs/Viewport.js +43 -33
- 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/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 +5 -1
- package/src/sap/ui/vk/ve/matai.js +1 -1
- package/src/sap/ui/vk/ve/matai.wasm +0 -0
- package/ui5.yaml +5 -3
- 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/threejs/v2/ViewStateManager.js +0 -1445
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// This is a copy of MenuItemRenderer from openUi5, just with the name changed to ToggleMenuItemRenderer.
|
|
9
|
+
// This is required because older versions of ui5 (e.g. 1.120) do not have the MenuItemRenderer class
|
|
10
|
+
|
|
11
|
+
sap.ui.define([
|
|
12
|
+
"sap/ui/core/library"
|
|
13
|
+
], function(
|
|
14
|
+
coreLibrary
|
|
15
|
+
) {
|
|
16
|
+
"use strict";
|
|
17
|
+
|
|
18
|
+
// Shortcut for sap.ui.core.ItemSelectionMode
|
|
19
|
+
const ItemSelectionMode = coreLibrary.ItemSelectionMode;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* ToggleMenuItemRenderer renderer.
|
|
23
|
+
* @namespace
|
|
24
|
+
*/
|
|
25
|
+
const ToggleMenuItemRenderer = {
|
|
26
|
+
apiVersion: 2
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Renders the HTML for the given control, using the provided
|
|
31
|
+
* {@link sap.ui.core.RenderManager}.
|
|
32
|
+
*
|
|
33
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
34
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
35
|
+
*/
|
|
36
|
+
ToggleMenuItemRenderer.render = function(oRm, oItem) {
|
|
37
|
+
const bHasSubmenu = !!oItem._getVisibleItems().length;
|
|
38
|
+
|
|
39
|
+
oRm.openStart("li", oItem);
|
|
40
|
+
|
|
41
|
+
// HTML attributes
|
|
42
|
+
this.renderAttributes(oRm, oItem);
|
|
43
|
+
// CSS classes
|
|
44
|
+
this.renderStyleClasses(oRm, oItem);
|
|
45
|
+
// Inline styles
|
|
46
|
+
this.renderInlineStyles(oRm, oItem);
|
|
47
|
+
// Add ARIA attributes
|
|
48
|
+
this.setAccessibilityAttributes(oRm, oItem);
|
|
49
|
+
|
|
50
|
+
oRm.openEnd();
|
|
51
|
+
|
|
52
|
+
// Icon column
|
|
53
|
+
this.renderIcon(oRm, oItem);
|
|
54
|
+
// Text column
|
|
55
|
+
this.renderText(oRm, oItem);
|
|
56
|
+
|
|
57
|
+
if (bHasSubmenu) {
|
|
58
|
+
// Submenu arrow column
|
|
59
|
+
this.renderSubmenuArrow(oRm, oItem);
|
|
60
|
+
} else {
|
|
61
|
+
// Shortcut column
|
|
62
|
+
this.renderShortcut(oRm, oItem);
|
|
63
|
+
// End content column
|
|
64
|
+
this.renderEndContent(oRm, oItem);
|
|
65
|
+
// Selection mark column
|
|
66
|
+
this.renderSelectionMark(oRm, oItem);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
oRm.close("li");
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Renders the HTML attributes for the given control.
|
|
74
|
+
*
|
|
75
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
76
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
77
|
+
*/
|
|
78
|
+
ToggleMenuItemRenderer.renderAttributes = function(oRm, oItem) {
|
|
79
|
+
if (oItem.getTooltip_AsString()) {
|
|
80
|
+
oRm.attr("title", oItem.getTooltip_AsString());
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (oItem.getVisible() && oItem.isFocusable && oItem.isFocusable()) {
|
|
84
|
+
oRm.attr("tabindex", "0");
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Renders the CSS classes for the given control.
|
|
90
|
+
*
|
|
91
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
92
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
93
|
+
*/
|
|
94
|
+
ToggleMenuItemRenderer.renderStyleClasses = function(oRm, oItem) {
|
|
95
|
+
const bIsEnabled = oItem.getEnabled();
|
|
96
|
+
|
|
97
|
+
oRm.class("sapMMenuItem");
|
|
98
|
+
if (!bIsEnabled) {
|
|
99
|
+
oRm.class("sapMMenuItemDisabled");
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Hook for rendering the inline styles of the control.
|
|
105
|
+
* Hook for the subclasses.
|
|
106
|
+
*
|
|
107
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
108
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
109
|
+
*/
|
|
110
|
+
ToggleMenuItemRenderer.renderInlineStyles = function(oRm, oItem) {
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets the accessibility attributes for the given control.
|
|
115
|
+
*
|
|
116
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
117
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
118
|
+
*/
|
|
119
|
+
ToggleMenuItemRenderer.setAccessibilityAttributes = function(oRm, oItem) {
|
|
120
|
+
oRm.accessibilityState(oItem._getAccessibilityAttributes());
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Renders the icon column for the given control.
|
|
125
|
+
*
|
|
126
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
127
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
128
|
+
*/
|
|
129
|
+
ToggleMenuItemRenderer.renderIcon = function(oRm, oItem) {
|
|
130
|
+
oRm.openStart("div");
|
|
131
|
+
oRm.class("sapMMenuItemIcon");
|
|
132
|
+
oRm.openEnd();
|
|
133
|
+
|
|
134
|
+
if (oItem.getIcon()) {
|
|
135
|
+
const oIcon = oItem._getIcon();
|
|
136
|
+
oRm.renderControl(oIcon);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
oRm.close("div");
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Renders the text column for the given control.
|
|
144
|
+
*
|
|
145
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
146
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
147
|
+
*/
|
|
148
|
+
ToggleMenuItemRenderer.renderText = function(oRm, oItem) {
|
|
149
|
+
oRm.openStart("div", `${oItem.getId()}-txt`);
|
|
150
|
+
oRm.class("sapMMenuItemText");
|
|
151
|
+
oRm.openEnd();
|
|
152
|
+
oRm.text(oItem.getText());
|
|
153
|
+
oRm.close("div");
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Renders the shortcut column for the given control (if necessary).
|
|
158
|
+
*
|
|
159
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
160
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
161
|
+
*/
|
|
162
|
+
ToggleMenuItemRenderer.renderShortcut = function(oRm, oItem) {
|
|
163
|
+
const sShortcutText = oItem.getShortcutText();
|
|
164
|
+
|
|
165
|
+
if (sShortcutText) {
|
|
166
|
+
oRm.openStart("div", `${oItem.getId()}-scuttxt`);
|
|
167
|
+
oRm.class("sapMMenuItemShortcut");
|
|
168
|
+
oRm.openEnd();
|
|
169
|
+
oRm.text(sShortcutText);
|
|
170
|
+
oRm.close("div");
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Renders the submenu arrow column for the given control.
|
|
176
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
177
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
178
|
+
*/
|
|
179
|
+
ToggleMenuItemRenderer.renderSubmenuArrow = function(oRm, oItem) {
|
|
180
|
+
oRm.openStart("div");
|
|
181
|
+
oRm.class("sapMMenuItemSubMenu");
|
|
182
|
+
oRm.openEnd();
|
|
183
|
+
oRm.openStart("div");
|
|
184
|
+
oRm.class("sapUiIconMirrorInRTL");
|
|
185
|
+
oRm.openEnd();
|
|
186
|
+
oRm.close("div");
|
|
187
|
+
oRm.close("div");
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Renders the end content column for the given control (if necessary).
|
|
192
|
+
*
|
|
193
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
194
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
195
|
+
*/
|
|
196
|
+
ToggleMenuItemRenderer.renderEndContent = function(oRm, oItem) {
|
|
197
|
+
const aEndContent = oItem.getEndContent();
|
|
198
|
+
|
|
199
|
+
if (aEndContent.length) {
|
|
200
|
+
oRm.openStart("div", `${oItem.getId()}-endContent`);
|
|
201
|
+
oRm.class("sapMMenuEndContent");
|
|
202
|
+
oRm.openEnd();
|
|
203
|
+
aEndContent.forEach((oControl) => oRm.renderControl(oControl));
|
|
204
|
+
oRm.close("div");
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Renders the selection mark column for the given control (if necessary).
|
|
210
|
+
*
|
|
211
|
+
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the Render-Output-Buffer
|
|
212
|
+
* @param {sap.m.MenuItem} oItem the menu item to be rendered
|
|
213
|
+
*/
|
|
214
|
+
ToggleMenuItemRenderer.renderSelectionMark = function(oRm, oItem) {
|
|
215
|
+
if (oItem.getSelected() && oItem._getItemSelectionMode() !== ItemSelectionMode.None) {
|
|
216
|
+
oRm.openStart("div", `${oItem.getId()}-sel`);
|
|
217
|
+
oRm.class("sapMMenuItemSelected");
|
|
218
|
+
oRm.openEnd();
|
|
219
|
+
oRm.close("div");
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
return ToggleMenuItemRenderer;
|
|
224
|
+
}, /* bExport= */ true);
|
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.139.0
|
|
53
51
|
*
|
|
54
52
|
* @constructor
|
|
55
53
|
* @public
|
|
@@ -100,75 +98,31 @@ 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
|
}
|
|
140
|
-
}
|
|
141
|
-
});
|
|
103
|
+
},
|
|
142
104
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
};
|
|
105
|
+
constructor: function(id, settings) {
|
|
106
|
+
Control.apply(this, arguments);
|
|
146
107
|
|
|
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
|
-
};
|
|
108
|
+
this._getViewer()?.attachFullScreen(this._fullScreenHandler, this);
|
|
109
|
+
},
|
|
157
110
|
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
};
|
|
111
|
+
renderer: {
|
|
112
|
+
apiVersion: 2,
|
|
165
113
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
+
}
|
|
171
121
|
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
Toolbar.prototype._getToolbar = function() {
|
|
125
|
+
return this._toolbar;
|
|
172
126
|
};
|
|
173
127
|
|
|
174
128
|
Toolbar.prototype._getViewer = function() {
|
|
@@ -195,39 +149,63 @@ 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
210
|
this._enterFullScreenButton = new Button({
|
|
233
211
|
icon: "sap-icon://full-screen",
|
|
@@ -242,6 +220,10 @@ sap.ui.define([
|
|
|
242
220
|
new ToolbarSpacer(),
|
|
243
221
|
this._sceneTreeButton,
|
|
244
222
|
this._stepNavigationButton,
|
|
223
|
+
this._layersPanelButton,
|
|
224
|
+
this._elementsPanelButton,
|
|
225
|
+
this._pageGalleryButton,
|
|
226
|
+
this._toggleHotspotsButton,
|
|
245
227
|
this._miniMapButton,
|
|
246
228
|
new ToolbarSeparator(),
|
|
247
229
|
this._enterFullScreenButton
|
|
@@ -255,10 +237,7 @@ sap.ui.define([
|
|
|
255
237
|
};
|
|
256
238
|
|
|
257
239
|
Toolbar.prototype.exit = function() {
|
|
258
|
-
this.
|
|
259
|
-
if (this.oViewer) {
|
|
260
|
-
this.oViewer.detachFullScreen(this._fullScreenHandler.bind(this));
|
|
261
|
-
}
|
|
240
|
+
this._getViewer()?.detachFullScreen(this._fullScreenHandler, this);
|
|
262
241
|
};
|
|
263
242
|
|
|
264
243
|
Toolbar.prototype.onBeforeRendering = function() {
|
|
@@ -266,23 +245,6 @@ sap.ui.define([
|
|
|
266
245
|
this._toolbarTitle.setText(this.getTitle());
|
|
267
246
|
};
|
|
268
247
|
|
|
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
248
|
return Toolbar;
|
|
287
249
|
|
|
288
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.139.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.139.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.139.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.139.0
|
|
31
31
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @alias sap.ui.vk.ViewStateManager
|
|
33
33
|
* @since 1.32.0
|
|
@@ -89,14 +89,11 @@ sap.ui.define([
|
|
|
89
89
|
|
|
90
90
|
ViewStateManager.prototype._setScene = function(scene) {
|
|
91
91
|
if (scene?.isA(["sap.ui.vk.Scene", "sap.ui.vk.pdf.Document"])) {
|
|
92
|
-
var withMultipleViewports = (this.getFeatures() || []).includes("MultipleViewports");
|
|
93
92
|
var sceneType = scene.getMetadata().getName();
|
|
94
93
|
var implementationType = this._implementation?.getMetadata().getName();
|
|
95
94
|
var reuseImplementation =
|
|
96
95
|
sceneType === "sap.ui.vk.dvl.Scene" && implementationType === "sap.ui.vk.dvl.ViewStateManager"
|
|
97
|
-
|| sceneType === "sap.ui.vk.threejs.Scene" &&
|
|
98
|
-
implementationType === "sap.ui.vk.threejs.ViewStateManager" && !withMultipleViewports
|
|
99
|
-
|| implementationType === "sap.ui.vk.threejs.v2.ViewStateManager" && withMultipleViewports)
|
|
96
|
+
|| sceneType === "sap.ui.vk.threejs.Scene" && implementationType === "sap.ui.vk.threejs.ViewStateManager"
|
|
100
97
|
|| sceneType === "sap.ui.vk.svg.Scene" && implementationType === "sap.ui.vk.svg.ViewStateManager"
|
|
101
98
|
|| sceneType === "sap.ui.vk.pdf.Document" && implementationType === "sap.ui.vk.pdf.ViewStateManager";
|
|
102
99
|
|
|
@@ -110,11 +107,7 @@ sap.ui.define([
|
|
|
110
107
|
newImplementationType = "sap.ui.vk.dvl.ViewStateManager";
|
|
111
108
|
break;
|
|
112
109
|
case "sap.ui.vk.threejs.Scene":
|
|
113
|
-
|
|
114
|
-
newImplementationType = "sap.ui.vk.threejs.v2.ViewStateManager";
|
|
115
|
-
} else {
|
|
116
|
-
newImplementationType = "sap.ui.vk.threejs.ViewStateManager";
|
|
117
|
-
}
|
|
110
|
+
newImplementationType = "sap.ui.vk.threejs.ViewStateManager";
|
|
118
111
|
break;
|
|
119
112
|
case "sap.ui.vk.svg.Scene":
|
|
120
113
|
newImplementationType = "sap.ui.vk.svg.ViewStateManager";
|
|
@@ -1123,7 +1116,7 @@ sap.ui.define([
|
|
|
1123
1116
|
* @param {string} nodeId node Id string, optional
|
|
1124
1117
|
* @returns {any[]} An array of nodes
|
|
1125
1118
|
* @public
|
|
1126
|
-
* @
|
|
1119
|
+
* @since 1.82.0
|
|
1127
1120
|
*/
|
|
1128
1121
|
ViewStateManager.prototype.getSymbolNodes = function(nodeId) {
|
|
1129
1122
|
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.139.0
|
|
30
30
|
* @extends sap.ui.core.Element
|
|
31
31
|
* @alias sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @since 1.32.0
|
|
@@ -500,7 +500,7 @@ sap.ui.define([
|
|
|
500
500
|
* @function
|
|
501
501
|
* @name sap.ui.vk.ViewStateManagerBase#getOpacity
|
|
502
502
|
* @param {any|any[]} nodeRefs The node reference or the array of node references.
|
|
503
|
-
* @returns {float|float[]} A single value or an array of values. Value <code>null</code> means that the node's own opacity should be used.
|
|
503
|
+
* @returns {float|float[]|null|null[]} A single value or an array of values. Value <code>null</code> means that the node's own opacity should be used.
|
|
504
504
|
* @public
|
|
505
505
|
*/
|
|
506
506
|
|
|
@@ -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.
|