@sapui5/sap.ui.vk 1.138.0 → 1.140.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 +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 +3 -3
- 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 +149 -95
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +26 -7
- package/src/sap/ui/vk/ContentType.js +41 -0
- 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 +46 -19
- 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 +5 -1
- package/src/sap/ui/vk/SceneTree.js +20 -3
- package/src/sap/ui/vk/StepNavigation.js +1 -1
- 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 +1 -1
- 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 +3 -10
- package/src/sap/ui/vk/ViewStateManagerBase.js +2 -2
- package/src/sap/ui/vk/Viewer.js +13 -3
- package/src/sap/ui/vk/Viewport.js +1 -1
- 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 +408 -385
- package/src/sap/ui/vk/ecad/LayersPanel.js +95 -99
- package/src/sap/ui/vk/i18n/messagebundle.properties +44 -46
- package/src/sap/ui/vk/i18n/messagebundle_ar.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_bg.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_ca.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_cnr.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_cs.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_cy.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_da.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_de.properties +28 -14
- package/src/sap/ui/vk/i18n/messagebundle_el.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_en.properties +27 -327
- package/src/sap/ui/vk/i18n/messagebundle_en_GB.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_en_US_saprigi.properties +24 -12
- package/src/sap/ui/vk/i18n/messagebundle_es.properties +29 -15
- package/src/sap/ui/vk/i18n/messagebundle_es_MX.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_et.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_fi.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_fr.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_fr_CA.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_hi.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_hr.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_hu.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_id.properties +29 -15
- package/src/sap/ui/vk/i18n/messagebundle_it.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_iw.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_ja.properties +29 -15
- package/src/sap/ui/vk/i18n/messagebundle_kk.properties +39 -25
- package/src/sap/ui/vk/i18n/messagebundle_ko.properties +24 -10
- package/src/sap/ui/vk/i18n/messagebundle_lt.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_lv.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_mk.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_ms.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_nl.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_no.properties +28 -14
- package/src/sap/ui/vk/i18n/messagebundle_pl.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_pt.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_pt_PT.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_ro.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_ru.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_sh.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_sk.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_sl.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_sr.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_sv.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_th.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_tr.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_uk.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_vi.properties +28 -14
- package/src/sap/ui/vk/i18n/messagebundle_zh_CN.properties +27 -13
- package/src/sap/ui/vk/i18n/messagebundle_zh_TW.properties +27 -13
- package/src/sap/ui/vk/library.js +5 -5
- package/src/sap/ui/vk/measurements/Angle.js +1 -1
- package/src/sap/ui/vk/measurements/Area.js +1 -1
- package/src/sap/ui/vk/measurements/Distance.js +1 -1
- package/src/sap/ui/vk/measurements/Edge.js +1 -1
- package/src/sap/ui/vk/measurements/Face.js +1 -1
- package/src/sap/ui/vk/measurements/Feature.js +1 -1
- package/src/sap/ui/vk/measurements/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 +1 -1
- 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 +4 -5
- 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 +1 -1
- package/src/sap/ui/vk/svg/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/svg/Viewport.js +11 -18
- package/src/sap/ui/vk/thirdparty/BufferGeometryUtils.js +86 -27
- package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
- package/src/sap/ui/vk/thirdparty/three.js +54501 -32246
- 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 +1 -1
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
- package/src/sap/ui/vk/threejs/ContentManager.js +2 -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 +1 -1
- 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 +1 -4
- package/src/sap/ui/vk/threejs/Texture.js +1 -1
- 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 +755 -451
- package/src/sap/ui/vk/threejs/Viewport.js +47 -35
- 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 +4 -3
- 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/SceneContext.js +3 -1
- package/src/sap/ui/vk/totara/TotaraLoader.js +2 -2
- package/src/sap/ui/vk/totara/TotaraLoaderWorker.js +18 -21
- package/src/sap/ui/vk/ve/dvl.wasm +0 -0
- package/ui5.yaml +5 -3
- package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +0 -1445
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @extends sap.ui.core.Control
|
|
118
118
|
*
|
|
119
119
|
* @author SAP
|
|
120
|
-
* @version 1.
|
|
120
|
+
* @version 1.140.0
|
|
121
121
|
*
|
|
122
122
|
* @public
|
|
123
123
|
* @alias sap.ui.vk.DrawerToolbar
|
|
@@ -1116,8 +1116,6 @@ sap.ui.define([
|
|
|
1116
1116
|
var ecadSeparator = new ToolbarSeparator();
|
|
1117
1117
|
ecadSeparator.vitId = DrawerToolbarButton.EcadSeparator;
|
|
1118
1118
|
|
|
1119
|
-
this._ecadItems = [rotateCCW, rotateCW, flip, ecadSeparator];
|
|
1120
|
-
|
|
1121
1119
|
var crossSectionSeparator = new ToolbarSeparator();
|
|
1122
1120
|
crossSectionSeparator.vitId = DrawerToolbarButton.CrossSectionSeparator;
|
|
1123
1121
|
|
|
@@ -1183,7 +1181,46 @@ sap.ui.define([
|
|
|
1183
1181
|
this._pageNavigation
|
|
1184
1182
|
];
|
|
1185
1183
|
|
|
1186
|
-
this._notPdfItems = [
|
|
1184
|
+
this._notPdfItems = [
|
|
1185
|
+
zoom,
|
|
1186
|
+
this._gestureButtonsSeparator,
|
|
1187
|
+
this._fitToViewSeparator,
|
|
1188
|
+
this._togglePmiButton,
|
|
1189
|
+
this._togglePmiButtonSeparator,
|
|
1190
|
+
this._measurementsSeparator,
|
|
1191
|
+
this._measurementsToggleButton,
|
|
1192
|
+
this._fitToView,
|
|
1193
|
+
this._fitToViewSeparator,
|
|
1194
|
+
this._rectSelectionButton,
|
|
1195
|
+
this._rectSelectSeparator,
|
|
1196
|
+
fullscreen
|
|
1197
|
+
];
|
|
1198
|
+
|
|
1199
|
+
this._ecadItems = [
|
|
1200
|
+
rotateCCW,
|
|
1201
|
+
rotateCW,
|
|
1202
|
+
flip,
|
|
1203
|
+
ecadSeparator
|
|
1204
|
+
];
|
|
1205
|
+
|
|
1206
|
+
this._notEcadItems = [
|
|
1207
|
+
this._togglePmiButton,
|
|
1208
|
+
this._togglePmiButtonSeparator,
|
|
1209
|
+
this._gestureButtons[0], // turntable
|
|
1210
|
+
this._gestureButtons[1], // orbit
|
|
1211
|
+
this._measurementsToggleButton,
|
|
1212
|
+
this._measurementsSeparator,
|
|
1213
|
+
crossSectionToggleButton,
|
|
1214
|
+
crossSectionSeparator,
|
|
1215
|
+
predefinedViews,
|
|
1216
|
+
predefinedViewsSeparator,
|
|
1217
|
+
this._zoomInButton,
|
|
1218
|
+
this._zoomOutButton,
|
|
1219
|
+
this._zoomToFitPageButton,
|
|
1220
|
+
this._zoomToFitPageWidthButton,
|
|
1221
|
+
pageNavigationSeparator,
|
|
1222
|
+
this._pageNavigation
|
|
1223
|
+
];
|
|
1187
1224
|
|
|
1188
1225
|
items.forEach(function(item) {
|
|
1189
1226
|
this._itemsVisibility.set(item, true);
|
|
@@ -1409,7 +1446,7 @@ sap.ui.define([
|
|
|
1409
1446
|
}.bind(this));
|
|
1410
1447
|
|
|
1411
1448
|
this._itemTurntable.setVisible(is3D && this._itemsVisibility.get(this._itemTurntable));
|
|
1412
|
-
this._itemPan.setVisible(!isPanoramic && !isPdf &&
|
|
1449
|
+
this._itemPan.setVisible(!isPanoramic && !isPdf && this._itemsVisibility.get(this._itemPan));
|
|
1413
1450
|
|
|
1414
1451
|
this._items3D.forEach(function(item) {
|
|
1415
1452
|
item.setVisible(is3D && !isPanoramic && this._itemsVisibility.get(item));
|
|
@@ -1423,22 +1460,12 @@ sap.ui.define([
|
|
|
1423
1460
|
i.setVisible(!isPdf && this._itemsVisibility.get(i));
|
|
1424
1461
|
});
|
|
1425
1462
|
|
|
1463
|
+
// show ECAD controls for ECAD scenes and hide for other scene types
|
|
1464
|
+
this._ecadItems.forEach((item) => item.setVisible(isEcad && this._itemsVisibility.get(item)));
|
|
1465
|
+
// for ECAD scenes -> hide non ECAD controls and don't touch them otherwise
|
|
1426
1466
|
if (isEcad) {
|
|
1427
|
-
this.
|
|
1428
|
-
this._fitToView.setVisible(false);
|
|
1429
|
-
this._fitToViewSeparator.setVisible(false);
|
|
1430
|
-
this._togglePmiButton.setVisible(false);
|
|
1431
|
-
this._togglePmiButtonSeparator.setVisible(false);
|
|
1432
|
-
this._gestureButtonsSeparator.setVisible(false);
|
|
1433
|
-
this._measurementsToggleButton.setVisible(false);
|
|
1434
|
-
this._measurementsSeparator.setVisible(false);
|
|
1435
|
-
this._rectSelectionButton.setVisible(false);
|
|
1436
|
-
this._rectSelectSeparator.setVisible(false);
|
|
1467
|
+
this._notEcadItems.forEach((item) => item.setVisible(false));
|
|
1437
1468
|
}
|
|
1438
|
-
this._ecadItems.forEach(function(item) {
|
|
1439
|
-
item.setVisible(isEcad);
|
|
1440
|
-
});
|
|
1441
|
-
|
|
1442
1469
|
|
|
1443
1470
|
this._ignoreVisibilityChange = false;
|
|
1444
1471
|
|
|
@@ -18,7 +18,7 @@ sap.ui.define(["sap/ui/base/Exception"], function(Exception) {
|
|
|
18
18
|
* @param {string} message The error message.
|
|
19
19
|
* @private
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.140.0
|
|
22
22
|
* @extends sap.ui.base.Exception
|
|
23
23
|
* @alias sap.ui.vk.DvlException
|
|
24
24
|
*/
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* (The CSS value "auto" is used internally to recalculate the size of the content
|
|
28
28
|
* dynamically and is not directly set as style property.)
|
|
29
29
|
* @extends sap.ui.core.LayoutData
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.140.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @param {object} [mSettings] Initial settings for the new ImageContentManager object.
|
|
30
30
|
* @public
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.140.0
|
|
33
33
|
* @extends sap.ui.vk.ContentManager
|
|
34
34
|
* @alias sap.ui.vk.ImageContentManager
|
|
35
35
|
* @since 1.50.0
|
package/src/sap/ui/vk/Loco.js
CHANGED
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @param {object} [mSettings] Initial settings for the new Notifications control.
|
|
46
46
|
* @public
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.140.0
|
|
49
49
|
* @extends sap.ui.core.Control
|
|
50
50
|
* @alias sap.ui.vk.Notifications
|
|
51
51
|
* @since 1.38.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.
|
|
40
|
+
* @version 1.140.0
|
|
41
41
|
* @extends sap.ui.base.ManagedObject
|
|
42
42
|
* @alias sap.ui.vk.Scene
|
|
43
43
|
*/
|
|
@@ -639,5 +639,9 @@ sap.ui.define([
|
|
|
639
639
|
return this._metadata;
|
|
640
640
|
};
|
|
641
641
|
|
|
642
|
+
Scene.prototype.isECADScene = function() {
|
|
643
|
+
return this._metadata?.some(({ category, tag, value }) => category === "ecad" && tag === "version" && value === "8");
|
|
644
|
+
};
|
|
645
|
+
|
|
642
646
|
return Scene;
|
|
643
647
|
});
|
|
@@ -28,7 +28,8 @@ sap.ui.define([
|
|
|
28
28
|
"./ViewStateManager",
|
|
29
29
|
"./SceneTreeRenderer",
|
|
30
30
|
"./getResourceBundle",
|
|
31
|
-
"sap/ui/core/library"
|
|
31
|
+
"sap/ui/core/library",
|
|
32
|
+
"sap/m/library"
|
|
32
33
|
], function(
|
|
33
34
|
vkLibrary,
|
|
34
35
|
Control,
|
|
@@ -51,7 +52,8 @@ sap.ui.define([
|
|
|
51
52
|
ViewStateManager,
|
|
52
53
|
SceneTreeRenderer,
|
|
53
54
|
getResourceBundle,
|
|
54
|
-
coreLibrary
|
|
55
|
+
coreLibrary,
|
|
56
|
+
MLibrary
|
|
55
57
|
) {
|
|
56
58
|
"use strict";
|
|
57
59
|
|
|
@@ -65,7 +67,7 @@ sap.ui.define([
|
|
|
65
67
|
* @extends sap.ui.core.Control
|
|
66
68
|
*
|
|
67
69
|
* @author SAP SE
|
|
68
|
-
* @version 1.
|
|
70
|
+
* @version 1.140.0
|
|
69
71
|
*
|
|
70
72
|
* @constructor
|
|
71
73
|
* @public
|
|
@@ -206,6 +208,7 @@ sap.ui.define([
|
|
|
206
208
|
}
|
|
207
209
|
});
|
|
208
210
|
vsm.setSelectionStates(selected, unselected, false);
|
|
211
|
+
that._treeItemCountText.setText(getResourceBundle().getText("SCENETREE_SELECTED_SCENE_TREE_ITEM_INFO", [selected.length]));
|
|
209
212
|
}
|
|
210
213
|
}
|
|
211
214
|
});
|
|
@@ -286,6 +289,17 @@ sap.ui.define([
|
|
|
286
289
|
});
|
|
287
290
|
|
|
288
291
|
this.setAggregation("treeTable", this._tree);
|
|
292
|
+
this._treeItemCountText = new Text({
|
|
293
|
+
text: getResourceBundle().getText("SCENETREE_SELECTED_SCENE_TREE_ITEM_INFO", [this._tree.getSelectedIndices().length])
|
|
294
|
+
}).addStyleClass("sapUiTinyMargin");
|
|
295
|
+
const infoBar = new Toolbar({
|
|
296
|
+
design: MLibrary.ToolbarDesign.Info,
|
|
297
|
+
content: [
|
|
298
|
+
this._treeItemCountText
|
|
299
|
+
]
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
this._tree.addExtension(infoBar);
|
|
289
303
|
|
|
290
304
|
this.attachContentChanged(function(event) {
|
|
291
305
|
visibilityColumnHeader.setSrc(iconShow);
|
|
@@ -361,6 +375,8 @@ sap.ui.define([
|
|
|
361
375
|
}
|
|
362
376
|
|
|
363
377
|
this._viewStateManager.setSelectionStates(selected, deselected);
|
|
378
|
+
const selectedItems = this._tree.getBinding("rows").getSelectedContexts();
|
|
379
|
+
this._treeItemCountText.setText(getResourceBundle().getText("SCENETREE_SELECTED_SCENE_TREE_ITEM_INFO", [selectedItems.length]));
|
|
364
380
|
};
|
|
365
381
|
|
|
366
382
|
SceneTree.prototype._onSelectionChanged = function(event) {
|
|
@@ -382,6 +398,7 @@ sap.ui.define([
|
|
|
382
398
|
}
|
|
383
399
|
|
|
384
400
|
var selected = event.getParameter("selected");
|
|
401
|
+
this._treeItemCountText.setText(getResourceBundle().getText("SCENETREE_SELECTED_SCENE_TREE_ITEM_INFO", [selected.length]));
|
|
385
402
|
if (selected.length === 1 && !isTreeNodeVisible(this._tree, selected[0])) {
|
|
386
403
|
if (this._updateSelectionTimer > 0) {
|
|
387
404
|
clearTimeout(this._updateSelectionTimer);
|
|
@@ -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.
|
|
82
|
+
* @version 1.140.0
|
|
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.
|
package/src/sap/ui/vk/Texture.js
CHANGED
package/src/sap/ui/vk/Toolbar.js
CHANGED
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.
|
|
98
|
+
* @version 1.140.0
|
|
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.
|
|
30
|
+
* @version 1.140.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.140.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";
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @public
|
|
27
27
|
* @abstract
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.140.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
|
|