@sapui5/sap.ui.vk 1.142.0 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/vk/.library +1 -1
- package/src/sap/ui/vk/AnimationPlayback.js +1 -1
- package/src/sap/ui/vk/AnimationPlayer.js +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 +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 +4 -4
- 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 +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 +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 +1 -1
- package/src/sap/ui/vk/Viewport.js +26 -3
- package/src/sap/ui/vk/ViewportBase.js +17 -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 +1 -1
- package/src/sap/ui/vk/ecad/LayersPanel.js +1 -1
- package/src/sap/ui/vk/i18n/messagebundle_es.properties +1 -1
- package/src/sap/ui/vk/library.js +2 -2
- 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 +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/Element.js +16 -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 +11 -9
- package/src/sap/ui/vk/svg/Text.js +2 -0
- package/src/sap/ui/vk/svg/ViewStateManager.js +1 -1
- package/src/sap/ui/vk/svg/Viewport.js +7 -1
- package/src/sap/ui/vk/thirdparty/pdf.js +1 -1
- 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 +2 -2
- package/src/sap/ui/vk/threejs/Callout.js +2 -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 -1
- package/src/sap/ui/vk/threejs/HighlightPlayer.js +11 -3
- 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 +2 -2
- 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 +4 -3
- package/src/sap/ui/vk/threejs/Viewport.js +1 -1
- package/src/sap/ui/vk/threejs/ViewportGestureHandler.js +4 -6
- 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/TransformSvgElementTool.js +1 -1
- package/src/sap/ui/vk/tools/TransformSvgElementToolGizmo.js +1 -1
- package/src/sap/ui/vk/ve/dvl.js +7 -7
- package/src/sap/ui/vk/ve/dvl.wasm +0 -0
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @param {object} [mSettings] Initial settings for the new Viewport control.
|
|
38
38
|
* @public
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.143.0
|
|
41
41
|
* @extends sap.ui.vk.ViewportBase
|
|
42
42
|
* @alias sap.ui.vk.Viewport
|
|
43
43
|
* @since 1.50.0
|
|
@@ -121,6 +121,25 @@ sap.ui.define([
|
|
|
121
121
|
return this;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
Viewport.prototype.getMinCameraPitch = function() {
|
|
125
|
+
return this._implementation?.getMinCameraPitch() ?? basePrototype.getMinCameraPitch.call(this);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
Viewport.prototype.setMinCameraPitch = function(value) {
|
|
129
|
+
basePrototype.setMinCameraPitch.call(this, value);
|
|
130
|
+
this._implementation?.setMinCameraPitch(value);
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
Viewport.prototype.getMaxCameraPitch = function() {
|
|
135
|
+
return this._implementation?.getMaxCameraPitch() ?? basePrototype.getMaxCameraPitch.call(this);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
Viewport.prototype.setMaxCameraPitch = function(value) {
|
|
139
|
+
basePrototype.setMaxCameraPitch.call(this, value);
|
|
140
|
+
this._implementation?.setMaxCameraPitch(value);
|
|
141
|
+
return this;
|
|
142
|
+
};
|
|
124
143
|
|
|
125
144
|
Viewport.prototype.getBackgroundColorTop = function() {
|
|
126
145
|
if (this._implementation) {
|
|
@@ -736,7 +755,9 @@ sap.ui.define([
|
|
|
736
755
|
showSelectionBoundingBoxes: this.getShowSelectionBoundingBoxes(),
|
|
737
756
|
freezeCamera: this.getFreezeCamera(),
|
|
738
757
|
renderMode: this.getRenderMode(),
|
|
739
|
-
autoStartRendering: this.getAutoStartRendering()
|
|
758
|
+
autoStartRendering: this.getAutoStartRendering(),
|
|
759
|
+
minCameraPitch: this.getMinCameraPitch(),
|
|
760
|
+
maxCameraPitch: this.getMaxCameraPitch()
|
|
740
761
|
});
|
|
741
762
|
this._implementation.setParent(this);
|
|
742
763
|
// setContentConnector must be called after setParent to allow bubbling of events that setting the content connector fires
|
|
@@ -794,7 +815,9 @@ sap.ui.define([
|
|
|
794
815
|
showSelectionBoundingBoxes: this.getShowSelectionBoundingBoxes(),
|
|
795
816
|
freezeCamera: this.getFreezeCamera(),
|
|
796
817
|
renderMode: this.getRenderMode(),
|
|
797
|
-
autoStartRendering: this.getAutoStartRendering()
|
|
818
|
+
autoStartRendering: this.getAutoStartRendering(),
|
|
819
|
+
minCameraPitch: this.getMinCameraPitch(),
|
|
820
|
+
maxCameraPitch: this.getMaxCameraPitch()
|
|
798
821
|
});
|
|
799
822
|
this._implementation.setContentConnector(this.getContentConnector());
|
|
800
823
|
var annotations = this.getAggregation("annotations");
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @public
|
|
43
43
|
* @abstract
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.143.0
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
47
|
* @alias sap.ui.vk.ViewportBase
|
|
48
48
|
* @since 1.50.0
|
|
@@ -220,6 +220,22 @@ sap.ui.define([
|
|
|
220
220
|
autoStartRendering: {
|
|
221
221
|
type: "boolean",
|
|
222
222
|
defaultValue: true
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
/*
|
|
226
|
+
* Minimum camera pitch angle in degrees in turntable mode.
|
|
227
|
+
*/
|
|
228
|
+
minCameraPitch: {
|
|
229
|
+
type: "float",
|
|
230
|
+
defaultValue: -90
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
/*
|
|
234
|
+
* Maximum camera pitch angle in degrees in turntable mode.
|
|
235
|
+
*/
|
|
236
|
+
maxCameraPitch: {
|
|
237
|
+
type: "float",
|
|
238
|
+
defaultValue: 90
|
|
223
239
|
}
|
|
224
240
|
},
|
|
225
241
|
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.143.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.143.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.143.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.143.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.143.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.143.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.143.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.143.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.143.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.
|
|
@@ -275,7 +275,7 @@ PDFCONTENTMANAGER_CANNOT_LOAD_PDF_HIERARCHY=No se puede cargar una jerarqu\u00ED
|
|
|
275
275
|
PDFCONTENTMANAGER_FAILED_TO_LOAD_PDF=No se ha podido cargar el archivo PDF.\nError\: {0}
|
|
276
276
|
PDFCONTENTMANAGER_SOURCE_TYPE_NOT_SUPPORTED=No se admite el tipo de fuente para el contenido PDF. Solo se admiten URL y Archivo.
|
|
277
277
|
|
|
278
|
-
LOADER_FILENOTFOUND=No se
|
|
278
|
+
LOADER_FILENOTFOUND=No se ha encontrado el archivo o el usuario no tiene permiso para cargarlo.
|
|
279
279
|
LOADER_WRONGFILEFORMAT=No se ha podido cargar el recurso de contenido. Es posible que la versi\u00F3n de modelo est\u00E9 obsoleta y que ya no se admita o que un fichero binario sea err\u00F3neo.
|
|
280
280
|
LOADER_WRONGPASSWORD=El archivo est\u00E1 protegido por contrase\u00F1a pero no se ha proporcionado la contrase\u00F1a.
|
|
281
281
|
LOADER_ERRORREADINGFILE=Error al leer archivo. El contenido del archivo puede estar da\u00F1ado.
|
package/src/sap/ui/vk/library.js
CHANGED
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
* @namespace
|
|
63
63
|
* @name sap.ui.vk
|
|
64
64
|
* @author SAP SE
|
|
65
|
-
* @version 1.
|
|
65
|
+
* @version 1.143.0
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
68
68
|
|
|
@@ -150,7 +150,7 @@ sap.ui.define([
|
|
|
150
150
|
"sap.ui.vk.tools.PoiManipulationTool"
|
|
151
151
|
],
|
|
152
152
|
noLibraryCSS: false,
|
|
153
|
-
version: "1.
|
|
153
|
+
version: "1.143.0",
|
|
154
154
|
designtime: "sap/ui/vk/designtime/library.designtime"
|
|
155
155
|
});
|
|
156
156
|
|
|
@@ -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.143.0
|
|
32
32
|
* @alias sap.ui.vk.measurement.Edge
|
|
33
33
|
* @since 1.101.0
|
|
34
34
|
*/
|
|
@@ -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.143.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.143.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.143.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.143.0
|
|
49
49
|
* @extends sap.ui.vk.ContentManager
|
|
50
50
|
* @alias sap.ui.vk.svg.ContentManager
|
|
51
51
|
* @since 1.80.0
|
|
@@ -107,7 +107,8 @@ sap.ui.define([
|
|
|
107
107
|
this.strokeWidth = lineStyle.width || 1;
|
|
108
108
|
this.coordinateSpace = lineStyle.coordinateSpace ? lineStyle.coordinateSpace : unknownCoordinateSpace;
|
|
109
109
|
this.strokeDashArray = Element._convertDashes(lineStyle.dashes || [], this.strokeWidth);
|
|
110
|
-
this.
|
|
110
|
+
this.linecap = lineStyle.linecap;
|
|
111
|
+
this.linejoin = lineStyle.linejoin;
|
|
111
112
|
} else {
|
|
112
113
|
this.stroke = new Float32Array([0, 0, 0, 0]); // no stroke
|
|
113
114
|
this.strokeWidth = 1;
|
|
@@ -139,6 +140,10 @@ sap.ui.define([
|
|
|
139
140
|
this.strokeWidth = material.lineWidth !== undefined ? material.lineWidth : 1;
|
|
140
141
|
this.strokeDashArray = (material.lineStyle && material.lineStyle.dashPattern) || [];
|
|
141
142
|
this.coordinateSpace = material.lineStyle?.widthCoordinateSpace ?? unknownCoordinateSpace;
|
|
143
|
+
if (material.lineStyle?.endCapStyle) {
|
|
144
|
+
this.linecap = "round";
|
|
145
|
+
this.linejoin = "round";
|
|
146
|
+
}
|
|
142
147
|
}
|
|
143
148
|
}
|
|
144
149
|
|
|
@@ -941,8 +946,11 @@ sap.ui.define([
|
|
|
941
946
|
if (this.strokeDashArray.length > 0) {
|
|
942
947
|
setAttributeFunc("stroke-dasharray", this.strokeDashArray.join(" "));
|
|
943
948
|
}
|
|
944
|
-
if (this.
|
|
945
|
-
setAttributeFunc("stroke-linecap", this.
|
|
949
|
+
if (this.linecap != null) {
|
|
950
|
+
setAttributeFunc("stroke-linecap", this.linecap);
|
|
951
|
+
}
|
|
952
|
+
if (this.linejoin != null) {
|
|
953
|
+
setAttributeFunc("stroke-linejoin", this.linejoin);
|
|
946
954
|
}
|
|
947
955
|
if (!this.coordinateSpace || this.coordinateSpace === unknownCoordinateSpace) {
|
|
948
956
|
setAttributeFunc("vector-effect", "non-scaling-stroke");
|
|
@@ -1166,8 +1174,11 @@ sap.ui.define([
|
|
|
1166
1174
|
if (source.coordinateSpace) {
|
|
1167
1175
|
this.coordinateSpace = source.coordinateSpace;
|
|
1168
1176
|
}
|
|
1169
|
-
if (source.
|
|
1170
|
-
this.
|
|
1177
|
+
if (source.linecap !== undefined) {
|
|
1178
|
+
this.linecap = source.linecap;
|
|
1179
|
+
}
|
|
1180
|
+
if (source.linejoin !== undefined) {
|
|
1181
|
+
this.linejoin = source.linejoin;
|
|
1171
1182
|
}
|
|
1172
1183
|
if (source.strokeDashArray !== undefined) {
|
|
1173
1184
|
this.strokeDashArray = source.strokeDashArray.slice();
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @private
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.143.0
|
|
70
70
|
*/
|
|
71
71
|
var SceneBuilder = function(rootNode, contentResource, resolve, reject) {
|
|
72
72
|
this._rootNode = rootNode;
|
|
@@ -128,25 +128,27 @@ sap.ui.define([
|
|
|
128
128
|
if (outputSettings && camera) {
|
|
129
129
|
// update line width in materials if coordinate space is in device/paper units
|
|
130
130
|
const outputDPI = 72; // ignore outputSettings.dpi as VEA ignores DPI setting and always uses 72 DPI
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
|
|
131
|
+
const mmPerInch = 25.4; // 1 inch = 25.4 mm
|
|
132
|
+
const outputSizeMM = Math.min(outputSettings.width, outputSettings.height); // in mm
|
|
133
|
+
const outputSize = outputSizeMM * (outputDPI / mmPerInch); // in dots (1 dot = 1/72 inch)
|
|
134
|
+
const mediumViewportSize = 768; // medium viewport size in pixels (1024x768)
|
|
135
|
+
// console.log(`setScene outputSettings: ${JSON.stringify(outputSettings)}`);
|
|
136
136
|
|
|
137
137
|
this._materialMap.forEach(function(material) {
|
|
138
138
|
if (material.lineStyle.widthCoordinateSpace === 3) { // sap::ve::core::Material::CoordinateSpace::NormalizedViewport
|
|
139
139
|
// 2D viewport space (x and y values range from -1.0 to 1.0, the origin representing the center of view)
|
|
140
|
-
material.lineWidth = material.lineStyle.width * mediumViewportSize * 0.5; //
|
|
140
|
+
material.lineWidth = material.lineStyle.width * mediumViewportSize * 0.5; // 768 is a medium viewport size in pixels
|
|
141
141
|
material.lineStyle.widthCoordinateSpace = 0; // convert to screen space
|
|
142
142
|
} else if (material.lineStyle.widthCoordinateSpace === 4) { // sap::ve::core::Material::CoordinateSpace::Device (device/paper units)
|
|
143
|
-
if (
|
|
143
|
+
if (info.showPaperSpace) {
|
|
144
|
+
// this mode requires conversion to world space units, so that the line thickness is affected by initial camera zoom factor
|
|
145
|
+
material.lineWidth = material.lineStyle.width * 2 / (outputSize * camera._initialZoom);
|
|
146
|
+
} else {
|
|
144
147
|
// this mode has a weird behavior in VE Author, the line thickness is measured in weird units that are converted
|
|
145
148
|
// to pixels (doesn't depend on the zoom factor), but it depends on the viewport size
|
|
146
149
|
material.lineWidth = material.lineStyle.width * mediumViewportSize / outputSize;
|
|
147
150
|
material.lineStyle.widthCoordinateSpace = 0; // convert to screen space
|
|
148
151
|
}
|
|
149
|
-
// material.lineWidth = material.lineStyle.width / (outputSize * camera._initialZoom);
|
|
150
152
|
}
|
|
151
153
|
});
|
|
152
154
|
}
|
|
@@ -658,6 +658,8 @@ sap.ui.define([
|
|
|
658
658
|
customText.setHtmlTextContent(options.htmlText);
|
|
659
659
|
}
|
|
660
660
|
customText.userData.customText = true; // mark the custom text element for special hit test handling
|
|
661
|
+
customText.parent = this;
|
|
662
|
+
this._updateColor();
|
|
661
663
|
return this;
|
|
662
664
|
};
|
|
663
665
|
|
|
@@ -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.143.0
|
|
53
53
|
* @extends sap.ui.vk.ViewStateManagerBase
|
|
54
54
|
* @alias sap.ui.vk.svg.ViewStateManager
|
|
55
55
|
* @since 1.80.0
|
|
@@ -76,7 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
*
|
|
77
77
|
* @public
|
|
78
78
|
* @author SAP SE
|
|
79
|
-
* @version 1.
|
|
79
|
+
* @version 1.143.0
|
|
80
80
|
* @extends sap.ui.vk.ViewportBase
|
|
81
81
|
* @alias sap.ui.vk.svg.Viewport
|
|
82
82
|
*/
|
|
@@ -339,6 +339,8 @@ sap.ui.define([
|
|
|
339
339
|
root.traverse(function(node) {
|
|
340
340
|
if (node.customText?.style.size === "0px") { // "0px" is a special case, it means "default font size"
|
|
341
341
|
node.customText.style.size = fontSize + "px";
|
|
342
|
+
node.customText.setHtmlTextContent(node.customText.getHtmlTextContent()); // recreate the HTML content with new font size
|
|
343
|
+
node._updateCustomText(); // update position of the custom text
|
|
342
344
|
}
|
|
343
345
|
});
|
|
344
346
|
};
|
|
@@ -625,6 +627,10 @@ sap.ui.define([
|
|
|
625
627
|
return null; // element not found in the scene
|
|
626
628
|
}
|
|
627
629
|
|
|
630
|
+
if (hit.userData.customText && hit.parent && hit.parent._vkGetNodeContentType() === NodeContentType.DynamicContent) {
|
|
631
|
+
return hit.parent;
|
|
632
|
+
}
|
|
633
|
+
|
|
628
634
|
if ((ignoreHotspots && elem._vkGetNodeContentType() === NodeContentType.Hotspot) ||
|
|
629
635
|
hit.userData.customText) {
|
|
630
636
|
return undefined; // ignore hotspots if the "ignoreHotspots" flag is set and ignore custom text elements
|
|
@@ -22162,7 +22162,7 @@ class SignatureExtractor {
|
|
|
22162
22162
|
const header = new Uint32Array(data.buffer, 0, data.length >> 2);
|
|
22163
22163
|
const version = header[1];
|
|
22164
22164
|
if (version !== 0) {
|
|
22165
|
-
throw new Error(`Invalid version: 1.
|
|
22165
|
+
throw new Error(`Invalid version: 1.143.0`);
|
|
22166
22166
|
}
|
|
22167
22167
|
const width = header[2];
|
|
22168
22168
|
const height = header[3];
|
|
@@ -55837,7 +55837,7 @@ class PDFDocument {
|
|
|
55837
55837
|
if (PDF_VERSION_REGEXP.test(version)) {
|
|
55838
55838
|
this.#version = version;
|
|
55839
55839
|
} else {
|
|
55840
|
-
warn(`Invalid PDF header version: 1.
|
|
55840
|
+
warn(`Invalid PDF header version: 1.143.0`);
|
|
55841
55841
|
}
|
|
55842
55842
|
}
|
|
55843
55843
|
parseStartXRef() {
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
*
|
|
40
40
|
* @private
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.143.0
|
|
43
43
|
* @extends sap.ui.base.ManagedObject
|
|
44
44
|
* @alias sap.ui.vk.threejs.Billboard
|
|
45
45
|
*/
|
|
@@ -210,7 +210,7 @@ sap.ui.define([
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
Billboard.prototype.setFont = function(value) {
|
|
213
|
-
this.setProperty("font", value, true);
|
|
213
|
+
this.setProperty("font", value.replace(/[^a-zA-Z0-9 ]/g, ""), true); // sanitize font name, VDS may have special characters in font name
|
|
214
214
|
this._needUpdateTexture = true;
|
|
215
215
|
return this;
|
|
216
216
|
};
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
*
|
|
40
40
|
* @private
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.143.0
|
|
43
43
|
* @extends sap.ui.vk.threejs.Billboard
|
|
44
44
|
* @alias sap.ui.vk.threejs.Callout
|
|
45
45
|
*/
|
|
@@ -153,7 +153,7 @@ sap.ui.define([
|
|
|
153
153
|
// set billboard scale
|
|
154
154
|
var scale = pos4.w * 2 / (viewportSize.x * camera.projectionMatrix.elements[0]);
|
|
155
155
|
const outputSettings = renderer.userData?.outputSettings;
|
|
156
|
-
if (outputSettings) {
|
|
156
|
+
if (outputSettings?.width > 0 && outputSettings.height > 0) {
|
|
157
157
|
const outputDPI = 72; // ignore outputSettings.dpi as VEA ignores DPI setting and always uses 72 DPI
|
|
158
158
|
const mmToInch = 1 / 25.4; // 1 inch = 25.4 mm
|
|
159
159
|
const pointToPixel = 4 / 3; // 1 inch = 72 points(common for older screens) = 96 pixels(standard web displays), so 1 point = 96 / 72 pixels = 4 / 3 pixels
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class Provides a class to communicate with content delivery service.
|
|
34
34
|
* @private
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.143.0
|
|
37
37
|
* @extends sap.ui.base.ManagedObject
|
|
38
38
|
* @alias sap.ui.vk.threejs.ContentDeliveryService
|
|
39
39
|
*/
|
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
* @param {object} [mSettings] Initial settings for the new ContentManager object.
|
|
113
113
|
* @protected
|
|
114
114
|
* @author SAP SE
|
|
115
|
-
* @version 1.
|
|
115
|
+
* @version 1.143.0
|
|
116
116
|
* @extends sap.ui.vk.ContentManager
|
|
117
117
|
* @alias sap.ui.vk.threejs.ContentManager
|
|
118
118
|
* @since 1.50.0
|