@sapui5/sap.ui.vk 1.134.0 → 1.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/vk/.library +1 -1
- package/src/sap/ui/vk/AnimationPlayback.js +1 -2
- package/src/sap/ui/vk/AnimationPlayer.js +1 -1
- package/src/sap/ui/vk/AnimationSequence.js +1 -5
- package/src/sap/ui/vk/AnimationTimeSlider.js +1 -2
- package/src/sap/ui/vk/AnimationTrack.js +2 -4
- 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 +1 -1
- package/src/sap/ui/vk/ContentManager.js +1 -1
- package/src/sap/ui/vk/ContentResource.js +1 -1
- 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 +1 -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 +40 -318
- package/src/sap/ui/vk/ImageContentManager.js +1 -1
- package/src/sap/ui/vk/JointUtils.js +1 -2
- 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 -2
- 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 +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 +1 -1
- package/src/sap/ui/vk/SceneTree.js +1 -1
- 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 +57 -75
- package/src/sap/ui/vk/ViewGallery.js +10 -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 +1 -5
- package/src/sap/ui/vk/ViewStateManagerBase.js +1 -3
- package/src/sap/ui/vk/Viewer.js +1 -131
- package/src/sap/ui/vk/Viewport.js +1 -1
- package/src/sap/ui/vk/ViewportBase.js +3 -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/library.js +3 -2
- package/src/sap/ui/vk/matai/MataiLoaderWorker.js +4 -0
- 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/Surface.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 +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 +1 -1
- package/src/sap/ui/vk/svg/HotspotHelper.js +2 -4
- 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 -2
- package/src/sap/ui/vk/svg/ViewStateManager.js +1 -2
- package/src/sap/ui/vk/svg/Viewport.js +1 -1
- package/src/sap/ui/vk/thirdparty/pdf.worker.js +1 -1
- package/src/sap/ui/vk/threejs/AnimationHelper.js +1 -2
- package/src/sap/ui/vk/threejs/BaseNodeProxy.js +1 -1
- package/src/sap/ui/vk/threejs/Billboard.js +1 -2
- package/src/sap/ui/vk/threejs/Callout.js +1 -2
- 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 -2
- package/src/sap/ui/vk/threejs/HighlightPlayer.js +18 -25
- package/src/sap/ui/vk/threejs/Material.js +1 -4
- package/src/sap/ui/vk/threejs/NodeHierarchy.js +1 -1
- package/src/sap/ui/vk/threejs/NodeProxy.js +7 -26
- package/src/sap/ui/vk/threejs/OrthographicCamera.js +1 -1
- package/src/sap/ui/vk/threejs/ParametricGenerators.js +1 -1
- package/src/sap/ui/vk/threejs/PerspectiveCamera.js +1 -1
- package/src/sap/ui/vk/threejs/PointCloudGroup.js +1 -2
- package/src/sap/ui/vk/threejs/PolylineGeometry.js +29 -1
- package/src/sap/ui/vk/threejs/Scene.js +83 -76
- package/src/sap/ui/vk/threejs/SceneBuilder.js +7 -22
- package/src/sap/ui/vk/threejs/Texture.js +1 -4
- package/src/sap/ui/vk/threejs/ThreeExtensions.js +21 -74
- package/src/sap/ui/vk/threejs/ThreeUtils.js +1 -1
- package/src/sap/ui/vk/threejs/Thrustline.js +1 -4
- package/src/sap/ui/vk/threejs/ViewStateManager.js +7 -8
- package/src/sap/ui/vk/threejs/Viewport.js +1 -3
- package/src/sap/ui/vk/threejs/v2/ViewStateManager.js +12 -29
- package/src/sap/ui/vk/tools/AnchorPointTool.js +1 -1
- package/src/sap/ui/vk/tools/AnchorPointToolGizmo.js +11 -3
- package/src/sap/ui/vk/tools/AngleMeasurementToolGizmo.js +2 -1
- package/src/sap/ui/vk/tools/AreaMeasurementToolGizmo.js +2 -1
- package/src/sap/ui/vk/tools/AxisAngleRotationTool.js +1 -7
- 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 +3 -2
- package/src/sap/ui/vk/tools/CreateParametricGizmo.js +3 -2
- package/src/sap/ui/vk/tools/CreatePathTool.js +1 -1
- package/src/sap/ui/vk/tools/CreatePathToolGizmo.js +3 -2
- package/src/sap/ui/vk/tools/CreateRectangleTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateRectangleToolGizmo.js +3 -2
- package/src/sap/ui/vk/tools/CreateTextTool.js +1 -1
- package/src/sap/ui/vk/tools/CreateTextToolGizmo.js +12 -1
- package/src/sap/ui/vk/tools/CrossSectionTool.js +1 -1
- package/src/sap/ui/vk/tools/CrossSectionToolGizmo.js +11 -1
- package/src/sap/ui/vk/tools/DistanceMeasurementToolGizmo.js +2 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/DuplicateSvgElementToolGizmo.js +3 -2
- package/src/sap/ui/vk/tools/ExplodeItemGroup.js +1 -1
- package/src/sap/ui/vk/tools/ExplodeTool.js +3 -3
- package/src/sap/ui/vk/tools/ExplodeToolGizmo.js +3 -2
- package/src/sap/ui/vk/tools/Gizmo.js +2 -5
- package/src/sap/ui/vk/tools/HitTestTool.js +1 -1
- package/src/sap/ui/vk/tools/MeasurementToolGizmo.js +2 -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 +13 -1
- package/src/sap/ui/vk/tools/Tool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipTool.js +1 -1
- package/src/sap/ui/vk/tools/TooltipToolGizmo.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/ve/matai.js +1 -1
- package/src/sap/ui/vk/ve/matai.wasm +0 -0
- package/src/sap/ui/vk/tools/AnchorPointToolGizmoRenderer.js +0 -40
- package/src/sap/ui/vk/tools/CreateTextToolGizmoRenderer.js +0 -41
- package/src/sap/ui/vk/tools/CrossSectionToolGizmoRenderer.js +0 -40
- package/src/sap/ui/vk/tools/SceneOrientationToolGizmoRenderer.js +0 -39
|
@@ -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.135.0
|
|
31
31
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @alias sap.ui.vk.ViewStateManager
|
|
33
33
|
* @since 1.32.0
|
|
@@ -441,7 +441,6 @@ sap.ui.define([
|
|
|
441
441
|
* @returns {any[]} array of joints or <code>undefined</code>
|
|
442
442
|
* @see {@link sap.ui.vk.AnimationSequence.getJoint} for joint definition
|
|
443
443
|
*
|
|
444
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
445
444
|
* @private
|
|
446
445
|
*/
|
|
447
446
|
ViewStateManager.prototype.getJoints = function() {
|
|
@@ -458,7 +457,6 @@ sap.ui.define([
|
|
|
458
457
|
* @see {@link sap.ui.vk.AnimationSequence.setJoint} for joint definition
|
|
459
458
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
460
459
|
*
|
|
461
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
462
460
|
* @private
|
|
463
461
|
*/
|
|
464
462
|
ViewStateManager.prototype.setJoints = function(joints, playback) {
|
|
@@ -1139,7 +1137,6 @@ sap.ui.define([
|
|
|
1139
1137
|
*
|
|
1140
1138
|
* @returns {?string} Image type string, or null
|
|
1141
1139
|
* @private
|
|
1142
|
-
* @experimental Since 1.82.0 This method is experimental and might be modified or removed in future versions
|
|
1143
1140
|
*/
|
|
1144
1141
|
ViewStateManager.prototype.getBackgroundImageType = function() {
|
|
1145
1142
|
if (this._implementation && this._implementation.getBackgroundImageType) {
|
|
@@ -1154,7 +1151,6 @@ sap.ui.define([
|
|
|
1154
1151
|
* @param {string} imageType Image type string
|
|
1155
1152
|
* @returns {object} Background node object
|
|
1156
1153
|
* @private
|
|
1157
|
-
* @experimental Since 1.82.0 This method is experimental and might be modified or removed in future versions
|
|
1158
1154
|
*/
|
|
1159
1155
|
ViewStateManager.prototype.setBackgroundImageType = function(imageType) {
|
|
1160
1156
|
if (this._implementation && this._implementation.setBackgroundImageType) {
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @public
|
|
27
27
|
* @abstract
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.135.0
|
|
30
30
|
* @extends sap.ui.core.Element
|
|
31
31
|
* @alias sap.ui.vk.ViewStateManagerBase
|
|
32
32
|
* @since 1.32.0
|
|
@@ -628,7 +628,6 @@ sap.ui.define([
|
|
|
628
628
|
* @param {sap.ui.vk.AnimationPlayback} playback animation playback containing the sequence the joints belong to, optional
|
|
629
629
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
630
630
|
*
|
|
631
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
632
631
|
* @private
|
|
633
632
|
*/
|
|
634
633
|
|
|
@@ -639,7 +638,6 @@ sap.ui.define([
|
|
|
639
638
|
*
|
|
640
639
|
* @returns {any[]} Object(s) containing joint and positioning data or <code>undefined</code> if no such joint present.
|
|
641
640
|
*
|
|
642
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
643
641
|
* @private
|
|
644
642
|
*/
|
|
645
643
|
|
package/src/sap/ui/vk/Viewer.js
CHANGED
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
* @param {object} [mSettings] initial settings for the new Viewer control
|
|
92
92
|
* @public
|
|
93
93
|
* @author SAP SE
|
|
94
|
-
* @version 1.
|
|
94
|
+
* @version 1.135.0
|
|
95
95
|
* @since 1.32.0
|
|
96
96
|
* @extends sap.ui.core.Control
|
|
97
97
|
* @alias sap.ui.vk.Viewer
|
|
@@ -101,13 +101,6 @@ sap.ui.define([
|
|
|
101
101
|
library: "sap.ui.vk",
|
|
102
102
|
|
|
103
103
|
properties: {
|
|
104
|
-
/**
|
|
105
|
-
* Enables or disables the Overlay control
|
|
106
|
-
*/
|
|
107
|
-
enableOverlay: {
|
|
108
|
-
type: "boolean",
|
|
109
|
-
defaultValue: false
|
|
110
|
-
},
|
|
111
104
|
/**
|
|
112
105
|
* Disables the scene tree control Button on the menu
|
|
113
106
|
*/
|
|
@@ -296,11 +289,6 @@ sap.ui.define([
|
|
|
296
289
|
}
|
|
297
290
|
},
|
|
298
291
|
|
|
299
|
-
overlay: {
|
|
300
|
-
type: "sap.ui.vk.Overlay",
|
|
301
|
-
multiple: false
|
|
302
|
-
},
|
|
303
|
-
|
|
304
292
|
progressIndicator: {
|
|
305
293
|
type: "sap.m.ProgressIndicator",
|
|
306
294
|
multiple: false,
|
|
@@ -531,31 +519,6 @@ sap.ui.define([
|
|
|
531
519
|
this._stepNavigation = null;
|
|
532
520
|
this._sceneTree = null;
|
|
533
521
|
this._drawerToolbar = null;
|
|
534
|
-
this._overlayManager = {
|
|
535
|
-
initialized: false,
|
|
536
|
-
changed: false,
|
|
537
|
-
control: null,
|
|
538
|
-
// Event handler for Native Viewport zoom & pan
|
|
539
|
-
onNativeViewportMove: function(event) {
|
|
540
|
-
var oPan = event.getParameter("pan");
|
|
541
|
-
var zoomFactor = event.getParameter("zoom");
|
|
542
|
-
this.control.setPanAndZoom(oPan.x, oPan.y, zoomFactor);
|
|
543
|
-
},
|
|
544
|
-
// Event handler for Viewport zoom
|
|
545
|
-
onViewportZoom: function(event) {
|
|
546
|
-
var zoomFactor = event.getParameter("zoomFactor");
|
|
547
|
-
this.control.setPanAndZoom(0, 0, zoomFactor);
|
|
548
|
-
},
|
|
549
|
-
// Event handler for Viewport pan
|
|
550
|
-
onViewportPan: function(event) {
|
|
551
|
-
var dx = event.getParameter("dx");
|
|
552
|
-
var dy = event.getParameter("dy");
|
|
553
|
-
this.control.setPanAndZoom(dx, dy, 1);
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
this._overlayManager.delegate = {
|
|
557
|
-
onAfterRendering: this._onAfterRenderingOverlay.bind(this, this._viewport, this._nativeViewport, this._overlayManager)
|
|
558
|
-
};
|
|
559
522
|
|
|
560
523
|
this._toolbar = new Toolbar({
|
|
561
524
|
title: this.getToolbarTitle(),
|
|
@@ -787,20 +750,6 @@ sap.ui.define([
|
|
|
787
750
|
return this._redlineDesign;
|
|
788
751
|
};
|
|
789
752
|
|
|
790
|
-
Viewer.prototype.getOverlay = function() {
|
|
791
|
-
// overlay control is not stored in overlay aggregation, since it may be aggregated by the stacked viewport
|
|
792
|
-
// therefore we keep an additional reference in the _overlayManager
|
|
793
|
-
return this._overlayManager.control;
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
Viewer.prototype.setEnableOverlay = function(oProperty) {
|
|
797
|
-
if (oProperty !== this.getProperty("enableOverlay")) {
|
|
798
|
-
this.setProperty("enableOverlay", oProperty);
|
|
799
|
-
this._overlayManager.changed = true;
|
|
800
|
-
}
|
|
801
|
-
return this;
|
|
802
|
-
};
|
|
803
|
-
|
|
804
753
|
Viewer.prototype.setEnableSceneTree = function(oProperty) {
|
|
805
754
|
this.setProperty("enableSceneTree", oProperty, true);
|
|
806
755
|
if (!oProperty) {
|
|
@@ -1052,10 +1001,6 @@ sap.ui.define([
|
|
|
1052
1001
|
// END: forward access to the contentResources aggregation to the content connector.
|
|
1053
1002
|
////////////////////////////////////////////////////////////////////////////
|
|
1054
1003
|
|
|
1055
|
-
Viewer.prototype.onBeforeRendering = function() {
|
|
1056
|
-
this._showOverlay();
|
|
1057
|
-
};
|
|
1058
|
-
|
|
1059
1004
|
Viewer.prototype.isTreeBinding = function(name) {
|
|
1060
1005
|
return name === "contentResources";
|
|
1061
1006
|
};
|
|
@@ -1203,81 +1148,6 @@ sap.ui.define([
|
|
|
1203
1148
|
return this;
|
|
1204
1149
|
};
|
|
1205
1150
|
|
|
1206
|
-
Viewer.prototype._showOverlay = function() {
|
|
1207
|
-
var oOverlayManager = this._overlayManager;
|
|
1208
|
-
if (oOverlayManager.changed) {
|
|
1209
|
-
var oOverlay;
|
|
1210
|
-
if (this.getEnableOverlay()) {
|
|
1211
|
-
sap.ui.require(["sap/ui/vk/Overlay"], function(Overlay) {
|
|
1212
|
-
if (!oOverlayManager.initialized) {
|
|
1213
|
-
// overlay not yet initialized -> check if overlay is given
|
|
1214
|
-
if (!(oOverlay = this.getAggregation("overlay"))) {
|
|
1215
|
-
// no Overlay control given -> create one
|
|
1216
|
-
oOverlay = new Overlay();
|
|
1217
|
-
}
|
|
1218
|
-
oOverlay.setZoomOnResize(false);
|
|
1219
|
-
oOverlayManager.control = oOverlay;
|
|
1220
|
-
oOverlayManager.initialized = true;
|
|
1221
|
-
} else {
|
|
1222
|
-
oOverlay = oOverlayManager.control;
|
|
1223
|
-
oOverlay.reset();
|
|
1224
|
-
}
|
|
1225
|
-
// The Overlay needs to be appended to either Viewport or Native Viewport
|
|
1226
|
-
// so we check which one is active.
|
|
1227
|
-
if (this._nativeViewport && this._nativeViewport.getVisible()) {
|
|
1228
|
-
oOverlay.setTarget(this._nativeViewport);
|
|
1229
|
-
// set zoom restriction
|
|
1230
|
-
oOverlayManager.savedLimitZoomOutState = this._nativeViewport.getLimitZoomOut();
|
|
1231
|
-
this._nativeViewport.setLimitZoomOut(true);
|
|
1232
|
-
// register move event of native Viewport to adapt pan and zoom state
|
|
1233
|
-
this._nativeViewport.attachEvent("move", oOverlayManager.onNativeViewportMove, oOverlayManager);
|
|
1234
|
-
} else if (this._viewport && this._viewport.getVisible()) {
|
|
1235
|
-
oOverlay.setTarget(this._viewport);
|
|
1236
|
-
oOverlayManager.savedLimitZoomOutState = false;
|
|
1237
|
-
// Capturing the Viewport zooming and panning events so we can pass them
|
|
1238
|
-
// through to the Overlay so it can zoom and pan the overlay areas (hotspots).
|
|
1239
|
-
this._viewport.attachEvent("zoom", oOverlayManager.onViewportZoom, oOverlayManager);
|
|
1240
|
-
this._viewport.attachEvent("pan", oOverlayManager.onViewportPan, oOverlayManager);
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
// add Overlay to stacked Viewport
|
|
1244
|
-
this._stackedViewport.addContent(oOverlay);
|
|
1245
|
-
this._stackedViewport.addDelegate(oOverlayManager.delegate);
|
|
1246
|
-
}.bind(this));
|
|
1247
|
-
} else {
|
|
1248
|
-
// de-register move event of native Viewport to adapt pan and zoom state
|
|
1249
|
-
this._nativeViewport.detachEvent("move", oOverlayManager.onNativeViewportMove, oOverlayManager);
|
|
1250
|
-
// remove Overlay from stacked Viewport
|
|
1251
|
-
this._stackedViewport.removeDelegate(oOverlayManager.delegate);
|
|
1252
|
-
this._stackedViewport.removeContent(oOverlayManager.control);
|
|
1253
|
-
// remove zoom restriction
|
|
1254
|
-
this._nativeViewport.setLimitZoomOut(oOverlayManager.savedLimitZoomOutState);
|
|
1255
|
-
}
|
|
1256
|
-
oOverlayManager.changed = false;
|
|
1257
|
-
}
|
|
1258
|
-
};
|
|
1259
|
-
|
|
1260
|
-
Viewer.prototype._onAfterRenderingOverlay = function(oEvent) {
|
|
1261
|
-
// manipulate DOM tree after rendering of stacked viewport
|
|
1262
|
-
var overlayDiv = this._overlayManager.control.getDomRef();
|
|
1263
|
-
|
|
1264
|
-
if (overlayDiv && (this._nativeViewport || this._viewport)) {
|
|
1265
|
-
// viewportToAppend is the domRef to either viewport or nativeViewport
|
|
1266
|
-
var viewportToAppend = this._nativeViewport && this._nativeViewport.getVisible() ? this._nativeViewport.getDomRef() : this._viewport.getDomRef();
|
|
1267
|
-
|
|
1268
|
-
if (overlayDiv.parentNode !== viewportToAppend) {
|
|
1269
|
-
// Do not display the content div the overlay belongs to;
|
|
1270
|
-
// otherwise it would receive all events we expect on the overlay
|
|
1271
|
-
overlayDiv.parentNode.style.display = "none";
|
|
1272
|
-
}
|
|
1273
|
-
// make overlay a child of viewport/nativeViewport to get event bubbling right
|
|
1274
|
-
viewportToAppend.appendChild(overlayDiv);
|
|
1275
|
-
// adapt overlay size to parent node
|
|
1276
|
-
overlayDiv.style.width = "100%";
|
|
1277
|
-
overlayDiv.style.height = "100%";
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
1151
|
/**
|
|
1282
1152
|
* Sets an object that decrypts content of encrypted models.
|
|
1283
1153
|
*
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @public
|
|
41
41
|
* @abstract
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.135.0
|
|
44
44
|
* @extends sap.ui.core.Control
|
|
45
45
|
* @alias sap.ui.vk.ViewportBase
|
|
46
46
|
* @since 1.50.0
|
|
@@ -383,6 +383,8 @@ sap.ui.define([
|
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
385
|
|
|
386
|
+
renderer: null,
|
|
387
|
+
|
|
386
388
|
constructor: function(sId, mSettings) {
|
|
387
389
|
Control.apply(this, arguments);
|
|
388
390
|
vkCore.observeAssociations(this);
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.135.0
|
|
41
41
|
* @extends sap.ui.vk.BaseNodeProxy
|
|
42
42
|
* @implements sap.ui.base.Poolable
|
|
43
43
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.BaseNodeProxy} instead.
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @param {object} [mSettings] Initial settings for the new ContentManager object.
|
|
26
26
|
* @public
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.135.0
|
|
29
29
|
* @extends sap.ui.vk.ContentManager
|
|
30
30
|
* @alias sap.ui.vk.dvl.ContentManager
|
|
31
31
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ContentManager} instead.
|
|
@@ -279,7 +279,7 @@ sap.ui.define([
|
|
|
279
279
|
* @param {object} webGLContextAttributes The WebGL context attributes. See {@link https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2 WebGL context attributes}.
|
|
280
280
|
* @public
|
|
281
281
|
* @author SAP SE
|
|
282
|
-
* @version 1.
|
|
282
|
+
* @version 1.135.0
|
|
283
283
|
* @extends sap.ui.base.EventProvider
|
|
284
284
|
* @alias sap.ui.vk.dvl.GraphicsCore
|
|
285
285
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ContentConnector} instead.
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.135.0
|
|
35
35
|
* @extends sap.ui.vk.LayerProxy
|
|
36
36
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.LayerProxy} instead.
|
|
37
37
|
* @alias sap.ui.vk.dvl.LayerProxy
|
|
@@ -71,7 +71,7 @@ sap.ui.define([
|
|
|
71
71
|
*
|
|
72
72
|
* @public
|
|
73
73
|
* @author SAP SE
|
|
74
|
-
* @version 1.
|
|
74
|
+
* @version 1.135.0
|
|
75
75
|
* @extends sap.ui.vk.NodeHierarchy
|
|
76
76
|
* @alias sap.ui.vk.dvl.NodeHierarchy
|
|
77
77
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.NodeHierarchy} instead.
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
*
|
|
37
37
|
* @public
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.135.0
|
|
40
40
|
* @extends sap.ui.vk.NodeProxy
|
|
41
41
|
* @alias sap.ui.vk.dvl.NodeProxy
|
|
42
42
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.NodeProxy} instead.
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.135.0
|
|
34
34
|
* @extends sap.ui.vk.Scene
|
|
35
35
|
* @alias sap.ui.vk.dvl.Scene
|
|
36
36
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.Scene} instead.
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @param {object} [mSettings] Initial settings for the new ViewStateManager object.
|
|
42
42
|
* @public
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.135.0
|
|
45
45
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
46
46
|
* @alias sap.ui.vk.dvl.ViewStateManager
|
|
47
47
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.ViewStateManager} instead.
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
* @param {object} [mSettings] Initial settings for the new Viewport control.
|
|
116
116
|
* @public
|
|
117
117
|
* @author SAP SE
|
|
118
|
-
* @version 1.
|
|
118
|
+
* @version 1.135.0
|
|
119
119
|
* @extends sap.ui.vk.ViewportBase
|
|
120
120
|
* @alias sap.ui.vk.dvl.Viewport
|
|
121
121
|
* @deprecated Since version 1.72.0. DVL namespace will be removed in future. Use {@link sap.ui.vk.Viewport} instead.
|
package/src/sap/ui/vk/library.js
CHANGED
|
@@ -61,11 +61,12 @@ sap.ui.define([
|
|
|
61
61
|
* @namespace
|
|
62
62
|
* @name sap.ui.vk
|
|
63
63
|
* @author SAP SE
|
|
64
|
-
* @version 1.
|
|
64
|
+
* @version 1.135.0
|
|
65
65
|
* @public
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
68
|
var vkLibrary = Library.init({
|
|
69
|
+
apiVersion: 2,
|
|
69
70
|
name: "sap.ui.vk",
|
|
70
71
|
dependencies: [
|
|
71
72
|
"sap.ui.core"
|
|
@@ -145,7 +146,7 @@ sap.ui.define([
|
|
|
145
146
|
"sap.ui.vk.tools.PoiManipulationTool"
|
|
146
147
|
],
|
|
147
148
|
noLibraryCSS: false,
|
|
148
|
-
version: "1.
|
|
149
|
+
version: "1.135.0",
|
|
149
150
|
designtime: "sap/ui/vk/designtime/library.designtime"
|
|
150
151
|
});
|
|
151
152
|
|
|
@@ -181,6 +181,9 @@
|
|
|
181
181
|
if (info.data.uv) {
|
|
182
182
|
transferable.push(info.data.uv.buffer);
|
|
183
183
|
}
|
|
184
|
+
if (info.data.colors) {
|
|
185
|
+
transferable.push(info.data.colors.buffer);
|
|
186
|
+
}
|
|
184
187
|
enqueueCall({
|
|
185
188
|
sceneBuilderId: this.sceneBuilderId,
|
|
186
189
|
method: "setGeometry",
|
|
@@ -192,6 +195,7 @@
|
|
|
192
195
|
indices: info.data.index,
|
|
193
196
|
points: info.data.position,
|
|
194
197
|
normals: info.data.normal,
|
|
198
|
+
colors: info.data.colors,
|
|
195
199
|
uvs: info.data.uv
|
|
196
200
|
}
|
|
197
201
|
}]
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @param {float[]} [settings.edge] World coordinates of the edge ends in form <code>[x1, y1, z1, x2, y2, z2]</code>.
|
|
29
29
|
* @private
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.135.0
|
|
32
32
|
* @alias sap.ui.vk.measurement.Edge
|
|
33
33
|
* @since 1.101.0
|
|
34
34
|
*/
|
|
@@ -757,7 +757,7 @@ sap.ui.define([
|
|
|
757
757
|
formatters.set(precision, formatter);
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
-
var text = getResourceBundle().getText("MEASUREMENTS_ANGLE_VALUE", formatter.format(180 * angleValue / Math.PI));
|
|
760
|
+
var text = getResourceBundle().getText("MEASUREMENTS_ANGLE_VALUE", [formatter.format(180 * angleValue / Math.PI)]);
|
|
761
761
|
a = planeToScreen(viewport, camera, matrix, sampleCirclePoint(theta, radius));
|
|
762
762
|
updateDomText(domRef.children[5], domRef.children[4], text, a[0], a[1], null);
|
|
763
763
|
domRef.children[3].removeAttribute("visibility");
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @param {float[]} [settings.vertex] World coordinates of the vertex in form <code>[x, y, z]</code>.
|
|
29
29
|
* @private
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.135.0
|
|
32
32
|
* @alias sap.ui.vk.measurement.Vertex
|
|
33
33
|
* @since 1.101.0
|
|
34
34
|
*/
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @param {object} [mSettings] Initial settings for the new ContentManager object.
|
|
44
44
|
* @private
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.135.0
|
|
47
47
|
* @extends sap.ui.vk.ContentManager
|
|
48
48
|
* @alias sap.ui.vk.pdf.ContentManager
|
|
49
49
|
* @since 1.123.0
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class Provides a class to communicate with content delivery service.
|
|
30
30
|
* @private
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.135.0
|
|
33
33
|
* @extends sap.ui.base.ManagedObject
|
|
34
34
|
* @alias sap.ui.vk.svg.ContentDeliveryService
|
|
35
35
|
*/
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @param {object} [mSettings] Initial settings for the new ContentManager object.
|
|
46
46
|
* @protected
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.135.0
|
|
49
49
|
* @extends sap.ui.vk.ContentManager
|
|
50
50
|
* @alias sap.ui.vk.svg.ContentManager
|
|
51
51
|
* @since 1.80.0
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* If omitted, duplicated hotspots must be placed at a small offset from the original.
|
|
41
41
|
* @param {sap.ui.vk.svg.Viewport} viewport Viewport to determine duplicate hotspot offset if transformationMatrix not specified.
|
|
42
42
|
* @returns {sap.ui.vk.svg.Element[]} Duplicated hotspots in a form can be passed to the backend service.
|
|
43
|
-
* @experimental
|
|
43
|
+
* @experimental Since 1.81.0 This class is experimental and might be modified or removed in future versions.
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
46
|
HotspotHelper.prototype.duplicateHotspot = function(hotspots, parentNode, transformationMatrix, viewport) {
|
|
@@ -80,7 +80,6 @@ sap.ui.define([
|
|
|
80
80
|
* A better solution would be updating the data in the backend service.
|
|
81
81
|
*
|
|
82
82
|
* @param {sap.ui.vk.svg.Element} hotspotNode Hotspot object to update.
|
|
83
|
-
* @experimental
|
|
84
83
|
* @private
|
|
85
84
|
*/
|
|
86
85
|
HotspotHelper.prototype.updateHotspot = function(hotspotNode) {
|
|
@@ -140,7 +139,6 @@ sap.ui.define([
|
|
|
140
139
|
* @returns {any} object contains the follow fields
|
|
141
140
|
* {any} <code>nodeRef</code> Merged hotspot node reference
|
|
142
141
|
* {any} <code>request</code> Merged hotspots in a form can be passed to the backend service
|
|
143
|
-
* @experimental
|
|
144
142
|
* @public
|
|
145
143
|
*/
|
|
146
144
|
HotspotHelper.prototype.mergeHotspots = function(scene, hotspots) {
|
|
@@ -267,7 +265,7 @@ sap.ui.define([
|
|
|
267
265
|
* @returns {any} object contains the follow fields
|
|
268
266
|
* {any} <code>nodeRef</code> Merged node reference
|
|
269
267
|
* {any} <code>request</code> Merged nodes in a form can be passed to the backend service
|
|
270
|
-
* @experimental
|
|
268
|
+
* @experimental Since 1.81.0 This class is experimental and might be modified or removed in future versions.
|
|
271
269
|
* @public
|
|
272
270
|
*/
|
|
273
271
|
HotspotHelper.prototype.mergeElements = function(nodeHierarchy, nodes) {
|
|
@@ -66,8 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @private
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
70
|
-
* @experimental Since 1.81.0 This class is experimental and might be modified or removed in future versions.
|
|
69
|
+
* @version 1.135.0
|
|
71
70
|
*/
|
|
72
71
|
var SceneBuilder = function(rootNode, contentResource, resolve, reject) {
|
|
73
72
|
this._rootNode = rootNode;
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @param {object} [mSettings] Initial settings for the new ViewStateManager object.
|
|
50
50
|
* @public
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.135.0
|
|
53
53
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
54
54
|
* @alias sap.ui.vk.svg.ViewStateManager
|
|
55
55
|
* @since 1.80.0
|
|
@@ -1142,7 +1142,6 @@ sap.ui.define([
|
|
|
1142
1142
|
* @see {@link sap.ui.vk.AnimationSequence.setJoint} for joint definition
|
|
1143
1143
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
1144
1144
|
*
|
|
1145
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
1146
1145
|
* @private
|
|
1147
1146
|
*/
|
|
1148
1147
|
ViewStateManager.prototype.setJoints = function(joints, playback) {
|