@sapui5/sap.ui.vk 1.136.2 → 1.136.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/vk/.library +1 -1
- package/src/sap/ui/vk/AnimationPlayback.js +1 -1
- package/src/sap/ui/vk/AnimationPlayer.js +1 -1
- package/src/sap/ui/vk/AnimationSequence.js +1 -1
- package/src/sap/ui/vk/AnimationTimeSlider.js +1 -1
- package/src/sap/ui/vk/AnimationTrack.js +1 -1
- package/src/sap/ui/vk/Annotation.js +1 -1
- package/src/sap/ui/vk/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/Camera.js +1 -1
- package/src/sap/ui/vk/ContentConnector.js +19 -15
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +3 -2
- package/src/sap/ui/vk/Core.js +1 -1
- package/src/sap/ui/vk/DownloadManager.js +1 -1
- package/src/sap/ui/vk/DrawerToolbar.js +140 -19
- package/src/sap/ui/vk/DrawerToolbarButton.js +5 -1
- package/src/sap/ui/vk/DvlException.js +1 -1
- package/src/sap/ui/vk/FlexibleControl.js +1 -1
- package/src/sap/ui/vk/FlexibleControlLayoutData.js +1 -1
- package/src/sap/ui/vk/Highlight.js +1 -1
- package/src/sap/ui/vk/ImageContentManager.js +1 -1
- package/src/sap/ui/vk/JointUtils.js +1 -1
- package/src/sap/ui/vk/LayerProxy.js +1 -1
- package/src/sap/ui/vk/Loco.js +1 -1
- package/src/sap/ui/vk/Material.js +1 -1
- package/src/sap/ui/vk/NativeViewport.js +1 -1
- package/src/sap/ui/vk/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/NodeProxy.js +1 -1
- package/src/sap/ui/vk/NodeUtils.js +1 -1
- package/src/sap/ui/vk/Notifications.js +1 -1
- package/src/sap/ui/vk/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/ProgressIndicator.js +1 -1
- package/src/sap/ui/vk/RedlineCollaboration.js +1 -1
- package/src/sap/ui/vk/RedlineConversation.js +1 -1
- package/src/sap/ui/vk/RedlineDesign.js +1 -1
- package/src/sap/ui/vk/RedlineElement.js +1 -1
- package/src/sap/ui/vk/RedlineElementComment.js +1 -1
- package/src/sap/ui/vk/RedlineElementEllipse.js +1 -1
- package/src/sap/ui/vk/RedlineElementFreehand.js +1 -1
- package/src/sap/ui/vk/RedlineElementLine.js +1 -1
- package/src/sap/ui/vk/RedlineElementRectangle.js +1 -1
- package/src/sap/ui/vk/RedlineElementText.js +1 -1
- package/src/sap/ui/vk/RedlineSurface.js +1 -1
- package/src/sap/ui/vk/SafeArea.js +1 -1
- package/src/sap/ui/vk/Scene.js +16 -1
- package/src/sap/ui/vk/SceneTree.js +3 -4
- package/src/sap/ui/vk/StepNavigation.js +1 -2
- package/src/sap/ui/vk/Texture.js +1 -1
- package/src/sap/ui/vk/ToggleMenuButton.js +1 -1
- package/src/sap/ui/vk/ToggleMenuItem.js +1 -1
- package/src/sap/ui/vk/Toolbar.js +68 -102
- package/src/sap/ui/vk/View.js +1 -1
- package/src/sap/ui/vk/ViewGallery.js +1 -1
- package/src/sap/ui/vk/ViewGalleryThumbnail.js +1 -1
- package/src/sap/ui/vk/ViewGroup.js +1 -1
- package/src/sap/ui/vk/ViewManager.js +1 -1
- package/src/sap/ui/vk/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/ViewStateManagerBase.js +1 -1
- package/src/sap/ui/vk/Viewer.js +469 -234
- package/src/sap/ui/vk/Viewport.js +1 -1
- package/src/sap/ui/vk/ViewportBase.js +1 -1
- package/src/sap/ui/vk/dvl/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/dvl/ContentManager.js +1 -1
- package/src/sap/ui/vk/dvl/GraphicsCore.js +1 -1
- package/src/sap/ui/vk/dvl/LayerProxy.js +1 -1
- package/src/sap/ui/vk/dvl/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/dvl/NodeProxy.js +1 -1
- package/src/sap/ui/vk/dvl/Scene.js +1 -1
- package/src/sap/ui/vk/dvl/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/dvl/Viewport.js +1 -1
- package/src/sap/ui/vk/ecad/ElementsPanel.js +984 -212
- package/src/sap/ui/vk/ecad/LayersPanel.js +283 -145
- package/src/sap/ui/vk/i18n/messagebundle.properties +64 -37
- package/src/sap/ui/vk/library.js +11 -4
- package/src/sap/ui/vk/measurements/Angle.js +1 -1
- package/src/sap/ui/vk/measurements/Area.js +1 -1
- package/src/sap/ui/vk/measurements/Distance.js +1 -1
- package/src/sap/ui/vk/measurements/Edge.js +1 -1
- package/src/sap/ui/vk/measurements/Face.js +1 -1
- package/src/sap/ui/vk/measurements/Feature.js +1 -1
- package/src/sap/ui/vk/measurements/Vertex.js +1 -1
- package/src/sap/ui/vk/pdf/ContentManager.js +1 -1
- package/src/sap/ui/vk/pdf/Viewport.js +5 -8
- package/src/sap/ui/vk/svg/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/svg/ContentDeliveryService.js +1 -1
- package/src/sap/ui/vk/svg/ContentManager.js +2 -1
- package/src/sap/ui/vk/svg/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/svg/NodeProxy.js +1 -1
- package/src/sap/ui/vk/svg/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/svg/Scene.js +1 -1
- package/src/sap/ui/vk/svg/SceneBuilder.js +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 +1 -1
- package/src/sap/ui/vk/threejs/Callout.js +1 -1
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +1 -1
- package/src/sap/ui/vk/threejs/ContentManager.js +1 -1
- package/src/sap/ui/vk/threejs/DetailView.js +1 -1
- package/src/sap/ui/vk/threejs/HighlightPlayer.js +1 -1
- package/src/sap/ui/vk/threejs/Material.js +1 -1
- package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/threejs/NodeProxy.js +1 -1
- package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -1
- package/src/sap/ui/vk/threejs/Scene.js +1 -1
- package/src/sap/ui/vk/threejs/SceneBuilder.js +12 -1
- package/src/sap/ui/vk/threejs/Texture.js +1 -1
- package/src/sap/ui/vk/threejs/Thrustline.js +1 -1
- package/src/sap/ui/vk/threejs/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/threejs/Viewport.js +1 -1
- package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
- package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -1
- package/src/sap/ui/vk/tools/AxisAngleRotationToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateEllipseTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateEllipseToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateParametricGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
- package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
- package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/ExplodeTool.js +1 -1
- package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/Gizmo.js +1 -1
- package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
- package/src/sap/ui/vk/tools/MoveTool.js +1 -1
- package/src/sap/ui/vk/tools/MoveToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/PointCloudSelectionTool.js +1 -1
- package/src/sap/ui/vk/tools/PointCloudSelectionToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RectSelectTool.js +1 -1
- package/src/sap/ui/vk/tools/RedlineTool.js +1 -1
- package/src/sap/ui/vk/tools/RedlineToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RotateOrbitTool.js +1 -1
- package/src/sap/ui/vk/tools/RotateTool.js +1 -1
- package/src/sap/ui/vk/tools/RotateToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/RotateTurntableTool.js +1 -1
- package/src/sap/ui/vk/tools/ScaleTool.js +1 -1
- package/src/sap/ui/vk/tools/ScaleToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/SceneOrientationTool.js +1 -1
- package/src/sap/ui/vk/tools/SceneOrientationToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/Tool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/TooltipToolHandler.js +5 -0
- package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/totara/TotaraLoader.js +4 -0
- package/src/sap/ui/vk/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/package.json
CHANGED
package/src/sap/ui/vk/.library
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.136.
|
|
34
|
+
* @version 1.136.3
|
|
35
35
|
* @extends sap.ui.core.Element
|
|
36
36
|
* @alias sap.ui.vk.AnimationPlayer
|
|
37
37
|
* @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.136.
|
|
43
|
+
* @version 1.136.3
|
|
44
44
|
* @extends sap.ui.core.Control
|
|
45
45
|
* @alias sap.ui.vk.Annotation
|
|
46
46
|
* @experimental Since 1.76.0 This class is experimental and might be modified or removed in future versions.
|
package/src/sap/ui/vk/Camera.js
CHANGED
|
@@ -7,25 +7,23 @@
|
|
|
7
7
|
|
|
8
8
|
// Provides object sap.ui.vk.ContentConnector.
|
|
9
9
|
sap.ui.define([
|
|
10
|
-
"sap/
|
|
10
|
+
"sap/base/Log",
|
|
11
11
|
"sap/ui/base/ManagedObjectObserver",
|
|
12
12
|
"sap/ui/core/Element",
|
|
13
|
-
"./Messages",
|
|
14
|
-
"./getResourceBundle",
|
|
15
13
|
"./ContentResource",
|
|
16
14
|
"./ContentType",
|
|
17
15
|
"./Core",
|
|
18
|
-
"
|
|
16
|
+
"./getResourceBundle",
|
|
17
|
+
"./Messages"
|
|
19
18
|
], function(
|
|
20
|
-
|
|
19
|
+
Log,
|
|
21
20
|
ManagedObjectObserver,
|
|
22
21
|
Element,
|
|
23
|
-
Messages,
|
|
24
|
-
getResourceBundle,
|
|
25
22
|
ContentResource,
|
|
26
23
|
ContentType,
|
|
27
24
|
vkCore,
|
|
28
|
-
|
|
25
|
+
getResourceBundle,
|
|
26
|
+
Messages
|
|
29
27
|
) {
|
|
30
28
|
"use strict";
|
|
31
29
|
|
|
@@ -42,7 +40,7 @@ sap.ui.define([
|
|
|
42
40
|
* @param {object} [mSettings] Initial settings for the new ContentConnector object.
|
|
43
41
|
* @public
|
|
44
42
|
* @author SAP SE
|
|
45
|
-
* @version 1.136.
|
|
43
|
+
* @version 1.136.3
|
|
46
44
|
* @extends sap.ui.core.Element
|
|
47
45
|
* @alias sap.ui.vk.ContentConnector
|
|
48
46
|
*/
|
|
@@ -764,18 +762,24 @@ sap.ui.define([
|
|
|
764
762
|
};
|
|
765
763
|
|
|
766
764
|
case ContentType.DRAWING2D:
|
|
767
|
-
|
|
768
|
-
|
|
765
|
+
case ContentType.ECAD:
|
|
766
|
+
contentResource.setEffectiveSourceType(contentType === ContentType.ECAD
|
|
767
|
+
? "ecad"
|
|
768
|
+
: "stream2d"
|
|
769
|
+
);
|
|
769
770
|
|
|
770
771
|
return {
|
|
771
772
|
dimension: 2,
|
|
772
773
|
contentManagerClassName: "sap.ui.vk.svg.ContentManager"
|
|
773
774
|
};
|
|
774
775
|
|
|
775
|
-
case ContentType.ECAD:
|
|
776
776
|
case ContentType.PDF:
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
contentResource.setEffectiveSourceType("stream");
|
|
778
|
+
|
|
779
|
+
return {
|
|
780
|
+
dimension: 2,
|
|
781
|
+
contentManagerClassName: "sap.ui.vk.pdf.ContentManager"
|
|
782
|
+
};
|
|
779
783
|
|
|
780
784
|
default:
|
|
781
785
|
return null;
|
|
@@ -804,7 +808,7 @@ sap.ui.define([
|
|
|
804
808
|
contentManagerClassName: "sap.ui.vk.ImageContentManager"
|
|
805
809
|
},
|
|
806
810
|
{
|
|
807
|
-
pattern: /^(stream2d|vds4-2d)$/,
|
|
811
|
+
pattern: /^(stream2d|vds4-2d|ecad)$/,
|
|
808
812
|
dimension: 2,
|
|
809
813
|
contentManagerClassName: "sap.ui.vk.svg.ContentManager"
|
|
810
814
|
},
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [oScope] scope An object for resolving string-based type and formatter references in bindings.
|
|
28
28
|
* @public
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.136.
|
|
30
|
+
* @version 1.136.3
|
|
31
31
|
* @extends sap.ui.base.ManagedObject
|
|
32
32
|
* @alias sap.ui.vk.ContentResource
|
|
33
33
|
*/
|
|
@@ -43,7 +43,8 @@ sap.ui.define([
|
|
|
43
43
|
source: "any",
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
|
|
46
|
+
* The source type of the content resource. Valid types:
|
|
47
|
+
*
|
|
47
48
|
* <ul>
|
|
48
49
|
* <li>vds</li>
|
|
49
50
|
* <li>vds4</li>
|
package/src/sap/ui/vk/Core.js
CHANGED
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* If left undefined, the number of retry attempts will default to 1. Passing in 0 disables any retry attempts.
|
|
38
38
|
* @private
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.136.
|
|
40
|
+
* @version 1.136.3
|
|
41
41
|
* @extends sap.ui.base.EventProvider
|
|
42
42
|
* @alias sap.ui.vk.DownloadManager
|
|
43
43
|
* @since 1.32.0
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @extends sap.ui.core.Control
|
|
118
118
|
*
|
|
119
119
|
* @author SAP
|
|
120
|
-
* @version 1.136.
|
|
120
|
+
* @version 1.136.3
|
|
121
121
|
*
|
|
122
122
|
* @public
|
|
123
123
|
* @alias sap.ui.vk.DrawerToolbar
|
|
@@ -279,6 +279,30 @@ sap.ui.define([
|
|
|
279
279
|
{
|
|
280
280
|
name: "fit-to-width",
|
|
281
281
|
unicode: "e96f"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "flip-board-vertically",
|
|
285
|
+
unicode: "e973"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "flip-board-horizontally",
|
|
289
|
+
unicode: "f976"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: "partially-visible-layer",
|
|
293
|
+
unicode: "e974"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "partially-visible-element",
|
|
297
|
+
unicode: "f975"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "rotate-board-cw",
|
|
301
|
+
unicode: "e970"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "rotate-board-ccw",
|
|
305
|
+
unicode: "e971"
|
|
282
306
|
}
|
|
283
307
|
];
|
|
284
308
|
var collectionName = "vk-icons";
|
|
@@ -541,6 +565,9 @@ sap.ui.define([
|
|
|
541
565
|
return viewport ? viewport.getMetadata().getName() === "sap.ui.vk.pdf.Viewport" : false;
|
|
542
566
|
}
|
|
543
567
|
|
|
568
|
+
function isECAD(viewport) {
|
|
569
|
+
return viewport ? (isSvgViewport(viewport) && viewport.isECAD()) : false;
|
|
570
|
+
}
|
|
544
571
|
|
|
545
572
|
function isView3D(viewport) {
|
|
546
573
|
var view = viewport.getCurrentView && viewport.getCurrentView();
|
|
@@ -713,7 +740,7 @@ sap.ui.define([
|
|
|
713
740
|
});
|
|
714
741
|
hide.vitId = DrawerToolbarButton.Hide;
|
|
715
742
|
|
|
716
|
-
|
|
743
|
+
this._fitToView = new OverflowToolbarButton({
|
|
717
744
|
icon: visIconPath + "fit-to-view",
|
|
718
745
|
type: ButtonType.Transparent,
|
|
719
746
|
text: resourceBundle.getText("FIT_TO_VIEW"),
|
|
@@ -726,7 +753,8 @@ sap.ui.define([
|
|
|
726
753
|
}
|
|
727
754
|
}
|
|
728
755
|
});
|
|
729
|
-
|
|
756
|
+
this._fitToView.vitId = DrawerToolbarButton.FitToView;
|
|
757
|
+
this._fitToViewSeparator = new ToolbarSeparator();
|
|
730
758
|
|
|
731
759
|
this._rectSelectionButton = new OverflowToolbarToggleButton({
|
|
732
760
|
icon: visIconPath + "rectangular-selection",
|
|
@@ -1024,10 +1052,10 @@ sap.ui.define([
|
|
|
1024
1052
|
});
|
|
1025
1053
|
this._pageNavigation.vitId = DrawerToolbarButton.PageNavigation;
|
|
1026
1054
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1055
|
+
this._measurementsSeparator = new ToolbarSeparator();
|
|
1056
|
+
this._measurementsSeparator.vitId = DrawerToolbarButton.MeasurementsSeparator;
|
|
1029
1057
|
|
|
1030
|
-
|
|
1058
|
+
this._togglePmiButton = new OverflowToolbarToggleButton({
|
|
1031
1059
|
pressed: true,
|
|
1032
1060
|
icon: visIconPath + "toggle-pmi",
|
|
1033
1061
|
type: ButtonType.Transparent,
|
|
@@ -1041,19 +1069,59 @@ sap.ui.define([
|
|
|
1041
1069
|
}
|
|
1042
1070
|
}
|
|
1043
1071
|
});
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1072
|
+
this._togglePmiButton.vitId = DrawerToolbarButton.PMI;
|
|
1073
|
+
this._togglePmiButtonSeparator = new ToolbarSeparator();
|
|
1074
|
+
this._togglePmiButtonSeparator.vitId = DrawerToolbarButton.PMISeparator;
|
|
1075
|
+
|
|
1076
|
+
var rotateCW = new OverflowToolbarButton({
|
|
1077
|
+
type: ButtonType.Transparent,
|
|
1078
|
+
tooltip: resourceBundle.getText("ROTATE_BOARD_CW"),
|
|
1079
|
+
icon: "sap-icon://vk-icons/rotate-board-cw",
|
|
1080
|
+
press: function() {
|
|
1081
|
+
if (isECAD(that._getViewport())) {
|
|
1082
|
+
that._getViewport().rotatePcbCW();
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
rotateCW.vitId = DrawerToolbarButton.RotateCW;
|
|
1087
|
+
|
|
1088
|
+
var rotateCCW = new OverflowToolbarButton({
|
|
1089
|
+
type: ButtonType.Transparent,
|
|
1090
|
+
tooltip: resourceBundle.getText("ROTATE_BOARD_CCW"),
|
|
1091
|
+
icon: "sap-icon://vk-icons/rotate-board-ccw",
|
|
1092
|
+
press: function() {
|
|
1093
|
+
if (isECAD(that._getViewport())) {
|
|
1094
|
+
that._getViewport().rotatePcbCCW();
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
rotateCCW.vitId = DrawerToolbarButton.RotateCCW;
|
|
1099
|
+
|
|
1100
|
+
var flip = new OverflowToolbarButton({
|
|
1101
|
+
type: ButtonType.Transparent,
|
|
1102
|
+
tooltip: resourceBundle.getText("FLIP_BOARD"),
|
|
1103
|
+
icon: "sap-icon://vk-icons/flip-board-horizontally",
|
|
1104
|
+
press: function() {
|
|
1105
|
+
if (isECAD(that._getViewport())) {
|
|
1106
|
+
that._getViewport().flipPcb();
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
flip.vitId = DrawerToolbarButton.Flip;
|
|
1111
|
+
|
|
1112
|
+
var ecadSeparator = new ToolbarSeparator();
|
|
1113
|
+
ecadSeparator.vitId = DrawerToolbarButton.EcadSeparator;
|
|
1047
1114
|
|
|
1048
1115
|
var crossSectionSeparator = new ToolbarSeparator();
|
|
1049
1116
|
var predefinedViewsSeparator = new ToolbarSeparator();
|
|
1050
1117
|
|
|
1051
1118
|
var showHideSeparator = new ToolbarSeparator();
|
|
1052
|
-
|
|
1053
|
-
this._itemsShowHideSelect = [show, hide, showHideSeparator, this._rectSelectionButton,
|
|
1119
|
+
this._rectSelectSeparator = new ToolbarSeparator();
|
|
1120
|
+
this._itemsShowHideSelect = [show, hide, showHideSeparator, this._rectSelectionButton, this._rectSelectSeparator];
|
|
1054
1121
|
|
|
1055
1122
|
this._itemTurntable = this._gestureButtons[0];
|
|
1056
1123
|
this._itemPan = this._gestureButtons[2];
|
|
1124
|
+
this._itemZoom = this._gestureButtons[3];
|
|
1057
1125
|
|
|
1058
1126
|
this._pdfItems = [this._zoomInButton, this._zoomOutButton, this._zoomToFitPageButton, this._zoomToFitPageWidthButton, pageNavigationSeparator, this._pageNavigation];
|
|
1059
1127
|
|
|
@@ -1065,23 +1133,29 @@ sap.ui.define([
|
|
|
1065
1133
|
predefinedViewsSeparator
|
|
1066
1134
|
];
|
|
1067
1135
|
|
|
1136
|
+
this._gestureButtonsSeparator = new ToolbarSeparator();
|
|
1137
|
+
|
|
1068
1138
|
var items = [
|
|
1069
1139
|
show,
|
|
1070
1140
|
hide,
|
|
1071
1141
|
showHideSeparator,
|
|
1072
|
-
|
|
1073
|
-
|
|
1142
|
+
this._togglePmiButton,
|
|
1143
|
+
this._togglePmiButtonSeparator,
|
|
1074
1144
|
this._gestureButtons[0], // turntable
|
|
1075
1145
|
this._gestureButtons[1], // orbit
|
|
1076
1146
|
this._gestureButtons[2], // pan
|
|
1077
1147
|
this._gestureButtons[3], // zoom
|
|
1078
|
-
|
|
1148
|
+
this._gestureButtonsSeparator,
|
|
1079
1149
|
this._measurementsToggleButton,
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1150
|
+
this._measurementsSeparator,
|
|
1151
|
+
rotateCCW,
|
|
1152
|
+
rotateCW,
|
|
1153
|
+
flip,
|
|
1154
|
+
ecadSeparator,
|
|
1155
|
+
this._fitToView,
|
|
1156
|
+
this._fitToViewSeparator,
|
|
1083
1157
|
this._rectSelectionButton,
|
|
1084
|
-
|
|
1158
|
+
this._rectSelectSeparator,
|
|
1085
1159
|
crossSectionToggleButton,
|
|
1086
1160
|
crossSectionSeparator,
|
|
1087
1161
|
predefinedViews,
|
|
@@ -1095,7 +1169,46 @@ sap.ui.define([
|
|
|
1095
1169
|
this._pageNavigation
|
|
1096
1170
|
];
|
|
1097
1171
|
|
|
1098
|
-
this._notPdfItems = [
|
|
1172
|
+
this._notPdfItems = [
|
|
1173
|
+
zoom,
|
|
1174
|
+
this._gestureButtonsSeparator,
|
|
1175
|
+
this._fitToViewSeparator,
|
|
1176
|
+
this._togglePmiButton,
|
|
1177
|
+
this._togglePmiButtonSeparator,
|
|
1178
|
+
this._measurementsSeparator,
|
|
1179
|
+
this._measurementsToggleButton,
|
|
1180
|
+
this._fitToView,
|
|
1181
|
+
this._fitToViewSeparator,
|
|
1182
|
+
this._rectSelectionButton,
|
|
1183
|
+
this._rectSelectSeparator,
|
|
1184
|
+
fullscreen
|
|
1185
|
+
];
|
|
1186
|
+
|
|
1187
|
+
this._ecadItems = [
|
|
1188
|
+
rotateCCW,
|
|
1189
|
+
rotateCW,
|
|
1190
|
+
flip,
|
|
1191
|
+
ecadSeparator
|
|
1192
|
+
];
|
|
1193
|
+
|
|
1194
|
+
this._notEcadItems = [
|
|
1195
|
+
this._togglePmiButton,
|
|
1196
|
+
this._togglePmiButtonSeparator,
|
|
1197
|
+
this._gestureButtons[0], // turntable
|
|
1198
|
+
this._gestureButtons[1], // orbit
|
|
1199
|
+
this._measurementsToggleButton,
|
|
1200
|
+
this._measurementsSeparator,
|
|
1201
|
+
crossSectionToggleButton,
|
|
1202
|
+
crossSectionSeparator,
|
|
1203
|
+
predefinedViews,
|
|
1204
|
+
predefinedViewsSeparator,
|
|
1205
|
+
this._zoomInButton,
|
|
1206
|
+
this._zoomOutButton,
|
|
1207
|
+
this._zoomToFitPageButton,
|
|
1208
|
+
this._zoomToFitPageWidthButton,
|
|
1209
|
+
pageNavigationSeparator,
|
|
1210
|
+
this._pageNavigation
|
|
1211
|
+
];
|
|
1099
1212
|
|
|
1100
1213
|
items.forEach(function(item) {
|
|
1101
1214
|
this._itemsVisibility.set(item, true);
|
|
@@ -1312,6 +1425,7 @@ sap.ui.define([
|
|
|
1312
1425
|
var isPanoramic = isViewport3D(viewport) && viewport._isPanoramicActivated();
|
|
1313
1426
|
var isNative = isNativeViewport(viewport); // no scene tree, show/hide/selection not supported
|
|
1314
1427
|
var isPdf = isPdfViewport(viewport);
|
|
1428
|
+
var isEcad = isECAD(viewport);
|
|
1315
1429
|
|
|
1316
1430
|
this._ignoreVisibilityChange = true;
|
|
1317
1431
|
|
|
@@ -1334,6 +1448,13 @@ sap.ui.define([
|
|
|
1334
1448
|
i.setVisible(!isPdf && this._itemsVisibility.get(i));
|
|
1335
1449
|
});
|
|
1336
1450
|
|
|
1451
|
+
// show ECAD controls for ECAD scenes and hide for other scene types
|
|
1452
|
+
this._ecadItems.forEach((item) => item.setVisible(isEcad && this._itemsVisibility.get(item)));
|
|
1453
|
+
// for ECAD scenes -> hide non ECAD controls and don't touch them otherwise
|
|
1454
|
+
if (isEcad) {
|
|
1455
|
+
this._notEcadItems.forEach((item) => item.setVisible(false));
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1337
1458
|
this._ignoreVisibilityChange = false;
|
|
1338
1459
|
|
|
1339
1460
|
if (is3D && !isPanoramic) {
|
|
@@ -39,7 +39,11 @@ sap.ui.define([
|
|
|
39
39
|
ZoomOut: "VIT-Zoom-Out",
|
|
40
40
|
FitToPage: "VIT-Fit-To-Page",
|
|
41
41
|
FitToWidth: "VIT-Fit-To-Width",
|
|
42
|
-
PageNavigation: "VIT-Page-Navigation"
|
|
42
|
+
PageNavigation: "VIT-Page-Navigation",
|
|
43
|
+
RotateCW: "VIT-Rotate-CW",
|
|
44
|
+
RotateCCW: "VIT-Rotate-CCW",
|
|
45
|
+
Flip: "VIT-Flip",
|
|
46
|
+
EcadSeparator: "VIT-ECAD-Separator"
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
DataType.registerEnum("sap.ui.vk.DrawerToolbarButton", DrawerToolbarButton);
|
|
@@ -18,7 +18,7 @@ sap.ui.define(["sap/ui/base/Exception"], function(Exception) {
|
|
|
18
18
|
* @param {string} message The error message.
|
|
19
19
|
* @private
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.136.
|
|
21
|
+
* @version 1.136.3
|
|
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.136.
|
|
30
|
+
* @version 1.136.3
|
|
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.136.
|
|
32
|
+
* @version 1.136.3
|
|
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.136.
|
|
48
|
+
* @version 1.136.3
|
|
49
49
|
* @extends sap.ui.core.Control
|
|
50
50
|
* @alias sap.ui.vk.Notifications
|
|
51
51
|
* @since 1.38.0
|