@sapui5/sap.ui.vk 1.134.0 → 1.136.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 +9 -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/VisibilityMode.js +2 -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 +469 -0
- package/src/sap/ui/vk/{tools/AnchorPointToolGizmoRenderer.js → ecad/ElementsPanelRenderer.js} +13 -12
- package/src/sap/ui/vk/ecad/LayersPanel.js +440 -0
- package/src/sap/ui/vk/{tools/CrossSectionToolGizmoRenderer.js → ecad/LayersPanelRenderer.js} +13 -12
- package/src/sap/ui/vk/ecad/VisibilityType.js +31 -0
- package/src/sap/ui/vk/i18n/messagebundle.properties +50 -0
- package/src/sap/ui/vk/library.js +5 -3
- 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/PageGallery.js +3 -5
- 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 +2 -1
- package/src/sap/ui/vk/svg/ContentManager.js +2 -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 +2 -3
- package/src/sap/ui/vk/threejs/Callout.js +1 -2
- package/src/sap/ui/vk/threejs/ContentDeliveryService.js +2 -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 +8 -23
- package/src/sap/ui/vk/threejs/Texture.js +1 -4
- package/src/sap/ui/vk/threejs/ThreeExtensions.js +30 -75
- 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/totara/TotaraUtils.js +5 -0
- package/src/sap/ui/vk/ve/dvl.js +1 -1
- package/src/sap/ui/vk/ve/dvl.wasm +0 -0
- 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/CreateTextToolGizmoRenderer.js +0 -41
- package/src/sap/ui/vk/tools/SceneOrientationToolGizmoRenderer.js +0 -39
package/package.json
CHANGED
package/src/sap/ui/vk/.library
CHANGED
|
@@ -27,10 +27,9 @@ sap.ui.define([
|
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.136.0
|
|
31
31
|
* @extends sap.ui.base.EventProvider
|
|
32
32
|
* @alias sap.ui.vk.AnimationPlayback
|
|
33
|
-
* @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
|
|
34
33
|
*/
|
|
35
34
|
var AnimationPlayback = EventProvider.extend("sap.ui.vk.AnimationPlayback", /** @lends sap.ui.vk.AnimationPlayback.prototype */ {
|
|
36
35
|
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.136.0
|
|
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.
|
|
@@ -33,11 +33,10 @@ sap.ui.define([
|
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.136.0
|
|
37
37
|
* @extends sap.ui.base.Object
|
|
38
38
|
* @alias sap.ui.vk.AnimationSequence
|
|
39
39
|
* @implements sap.ui.vk.IJointCollection
|
|
40
|
-
* @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
|
|
41
40
|
*/
|
|
42
41
|
var AnimationSequence = BaseObject.extend("sap.ui.vk.AnimationSequence", /** @lends sap.ui.vk.AnimationSequence.prototype */ {
|
|
43
42
|
|
|
@@ -150,7 +149,6 @@ sap.ui.define([
|
|
|
150
149
|
* @param {boolean} blockSequenceChangedEvent block event for sequence changed
|
|
151
150
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
152
151
|
*
|
|
153
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
154
152
|
* @private
|
|
155
153
|
*/
|
|
156
154
|
AnimationSequence.prototype.setJoint = function(jointData, blockSequenceChangedEvent) {
|
|
@@ -198,7 +196,6 @@ sap.ui.define([
|
|
|
198
196
|
*
|
|
199
197
|
* @returns {any|any[]} Object(s) containing joint and positioning data or <code>undefined</code> if no such joint present.
|
|
200
198
|
*
|
|
201
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
202
199
|
* @private
|
|
203
200
|
*/
|
|
204
201
|
AnimationSequence.prototype.getJoint = function(jointData) {
|
|
@@ -236,7 +233,6 @@ sap.ui.define([
|
|
|
236
233
|
*
|
|
237
234
|
* @returns {this} <code>this</code> to allow method chaining.
|
|
238
235
|
*
|
|
239
|
-
* @experimental Since 1.71.0 This class is experimental and might be modified or removed in future versions.
|
|
240
236
|
* @private
|
|
241
237
|
*/
|
|
242
238
|
AnimationSequence.prototype.removeJoint = function(jointData) {
|
|
@@ -26,12 +26,11 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.m.Slider
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.136.0
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @alias sap.ui.vk.AnimationTimeSlider
|
|
34
|
-
* @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
|
|
35
34
|
*/
|
|
36
35
|
var AnimationTimeSlider = Slider.extend("sap.ui.vk.AnimationTimeSlider", /** @lends sap.ui.vk.AnimationTimeSlider.prototype */ {
|
|
37
36
|
metadata: {
|
|
@@ -32,12 +32,11 @@ sap.ui.define([
|
|
|
32
32
|
* @param {boolean} parameters.infinite infinite flag
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.136.0
|
|
36
36
|
* @extends sap.ui.base.Object
|
|
37
37
|
* @alias sap.ui.vk.AnimationTrack
|
|
38
38
|
*
|
|
39
39
|
* @private
|
|
40
|
-
* @experimental Since 1.67.0 This class is experimental and might be modified or removed in future versions.
|
|
41
40
|
*/
|
|
42
41
|
var AnimationTrack = BaseObject.extend("sap.ui.vk.AnimationTrack", /** @lends sap.ui.vk.AnimationTrack.prototype */ {
|
|
43
42
|
|
|
@@ -72,7 +71,7 @@ sap.ui.define([
|
|
|
72
71
|
* @returns {boolean} is absolute value.
|
|
73
72
|
* @public
|
|
74
73
|
*/
|
|
75
|
-
|
|
74
|
+
AnimationTrack.prototype.getIsAbsoluteValue = function() {
|
|
76
75
|
return this._jsonData._isAbsoluteValue;
|
|
77
76
|
};
|
|
78
77
|
|
|
@@ -334,4 +333,3 @@ sap.ui.define([
|
|
|
334
333
|
|
|
335
334
|
return AnimationTrack;
|
|
336
335
|
});
|
|
337
|
-
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.136.0
|
|
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
|
@@ -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.
|
|
30
|
+
* @version 1.136.0
|
|
31
31
|
* @extends sap.ui.base.ManagedObject
|
|
32
32
|
* @alias sap.ui.vk.ContentResource
|
|
33
33
|
*/
|
|
@@ -168,6 +168,14 @@ sap.ui.define([
|
|
|
168
168
|
defaultValue: true
|
|
169
169
|
},
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* If set to true, will load metadata
|
|
173
|
+
*/
|
|
174
|
+
includeMetadata: {
|
|
175
|
+
type: "boolean",
|
|
176
|
+
defaultValue: false
|
|
177
|
+
},
|
|
178
|
+
|
|
171
179
|
/**
|
|
172
180
|
* Optional parameter to load UsageIds. Valid values:
|
|
173
181
|
* <ul>
|
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.
|
|
40
|
+
* @version 1.136.0
|
|
41
41
|
* @extends sap.ui.base.EventProvider
|
|
42
42
|
* @alias sap.ui.vk.DownloadManager
|
|
43
43
|
* @since 1.32.0
|
|
@@ -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.136.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.136.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
@@ -26,11 +26,10 @@ sap.ui.define([
|
|
|
26
26
|
*
|
|
27
27
|
* @private
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.136.0
|
|
30
30
|
* @extends sap.ui.base.Object
|
|
31
31
|
* @alias sap.ui.vk.Highlight
|
|
32
32
|
* @since 1.73.0
|
|
33
|
-
* @experimental This class is experimental and might be modified or removed in future versions.
|
|
34
33
|
*/
|
|
35
34
|
var Highlight = BaseObject.extend("sap.ui.vk.Highlight", /** @lends sap.ui.vk.Highlight.prototype */ {
|
|
36
35
|
|
|
@@ -40,342 +39,65 @@ sap.ui.define([
|
|
|
40
39
|
this._name = parameters && parameters.name ? parameters.name : "";
|
|
41
40
|
this._duration = parameters && parameters.duration ? parameters.duration : 0.0;
|
|
42
41
|
this._cycles = parameters && parameters.cycles ? parameters.cycles : 0;
|
|
43
|
-
this._colours = parameters
|
|
44
|
-
this._opacities = parameters
|
|
45
|
-
|
|
46
|
-
this._fadeOut = parameters && parameters.fadeOut ? parameters.fadeOut : false;
|
|
47
|
-
|
|
48
|
-
this._reset();
|
|
42
|
+
this._colours = parameters?.colours ?? []; // [mid-cycle color, start color]
|
|
43
|
+
this._opacities = parameters?.opacities ?? []; // [mid-cycle opacity, start opacity]
|
|
44
|
+
this._type = parameters?.type;
|
|
49
45
|
}
|
|
50
46
|
});
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*/
|
|
57
|
-
Highlight.prototype.getId = function() {
|
|
58
|
-
return this._id;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Gets the highlight name.
|
|
63
|
-
* @returns {string} The highlight name.
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
Highlight.prototype.getName = function() {
|
|
67
|
-
return this._name;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Sets the highlight name.
|
|
72
|
-
* @param {string} name The highlight name.
|
|
73
|
-
* @returns {this} <code>this</code> to allow method chaining.
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
Highlight.prototype.setName = function(name) {
|
|
77
|
-
this._name = name;
|
|
78
|
-
return this;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Gets the highlight duration.
|
|
83
|
-
* @returns {float} The highlight duration.
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
Highlight.prototype.getDuration = function() {
|
|
87
|
-
return this._duration;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sets the highlight duration.
|
|
92
|
-
* @param {float} duration The highlight duration.
|
|
93
|
-
* @returns {this} <code>this</code> to allow method chaining.
|
|
94
|
-
* @public
|
|
95
|
-
*/
|
|
96
|
-
Highlight.prototype.setDuration = function(duration) {
|
|
97
|
-
this._duration = duration;
|
|
98
|
-
this._reset();
|
|
99
|
-
return this;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Gets the highlight cycles.
|
|
104
|
-
* @returns {IntersectionObserverEntryInit} The highlight cycles.
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
|
-
Highlight.prototype.getCycles = function() {
|
|
108
|
-
return this._cycles;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Sets the highlight cycles.
|
|
113
|
-
* @param {int} cycles The highlight cycles.
|
|
114
|
-
* @returns {this} <code>this</code> to allow method chaining.
|
|
115
|
-
* @public
|
|
116
|
-
*/
|
|
117
|
-
Highlight.prototype.setCycles = function(cycles) {
|
|
118
|
-
this._cycles = cycles;
|
|
119
|
-
this._reset();
|
|
120
|
-
return this;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Gets the highlight opacities.
|
|
125
|
-
* @returns {float[]} The highlight opacities.
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
Highlight.prototype.getOpacities = function() {
|
|
129
|
-
return this._opacities;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Sets the highlight opacities.
|
|
134
|
-
* @param {float[]} opacities The highlight opacities.
|
|
135
|
-
* @returns {this} <code>this</code> to allow method chaining.
|
|
136
|
-
* @public
|
|
137
|
-
*/
|
|
138
|
-
Highlight.prototype.setOpacities = function(opacities) {
|
|
139
|
-
this._opacities = opacities;
|
|
140
|
-
this._reset();
|
|
141
|
-
return this;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Gets the highlight colours.
|
|
146
|
-
* @returns {array[]} The highlight colours [[r1, g1, b1, a1], [r2, g2, b2, a2], ...]
|
|
147
|
-
* @public
|
|
148
|
-
*/
|
|
149
|
-
Highlight.prototype.getColours = function() {
|
|
150
|
-
return this._colours;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Sets the highlight colours.
|
|
155
|
-
* @param {array[]} colours The highlight colours [[r1, g1, b1, a1], [r2, g2, b2, a2], ...]
|
|
156
|
-
* @returns {this} <code>this</code> to allow method chaining.
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
Highlight.prototype.setColours = function(colours) {
|
|
160
|
-
this._colours = colours;
|
|
161
|
-
this._reset();
|
|
162
|
-
return this;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
const minDuration = 0.001; // duration less than 1 ms is definitely not noticeable
|
|
48
|
+
function timeToBlendFactor(time, duration) {
|
|
49
|
+
const f = (time % duration) / duration;
|
|
50
|
+
return f < 0.5 ? f * 2 : 2 - f * 2;
|
|
51
|
+
}
|
|
166
52
|
|
|
167
|
-
Highlight.prototype.
|
|
53
|
+
Highlight.prototype.evaluate = function(time) {
|
|
54
|
+
const res = { isCompleted: true };
|
|
168
55
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (needOpacity) {
|
|
181
|
-
if (this._duration < minDuration || this._opacities.length === 1) { // static
|
|
182
|
-
this._adjustedOpacities = [this._opacities[0]];
|
|
183
|
-
this._opacityTimes = [0.0];
|
|
184
|
-
} else if (this._cycles > 0) { // finite
|
|
185
|
-
timeInterval = this._duration / this._opacities.length;
|
|
186
|
-
this._adjustedOpacities = [];
|
|
187
|
-
this._opacityTimes = [];
|
|
188
|
-
for (ki = 0; ki < this._cycles; ki++) {
|
|
189
|
-
for (oi = 0; oi < this._opacities.length; oi++) {
|
|
190
|
-
this._adjustedOpacities.push(this._opacities[oi]);
|
|
191
|
-
this._opacityTimes.push(timeInterval * (ki * this._opacities.length + oi));
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
} else { // infinite
|
|
195
|
-
timeInterval = this._duration / this._opacities.length;
|
|
196
|
-
this._adjustedOpacities = [];
|
|
197
|
-
this._opacityTimes = [];
|
|
198
|
-
for (oi = 0; oi < this._opacities.length; oi++) {
|
|
199
|
-
this._adjustedOpacities.push(this._opacities[oi]);
|
|
200
|
-
this._opacityTimes.push(timeInterval * oi);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
this._adjustedOpacities.push(this._opacities[0]);
|
|
204
|
-
this._opacityTimes.push(timeInterval * this._opacities.length);
|
|
205
|
-
}
|
|
206
|
-
} else {
|
|
207
|
-
this._adjustedOpacities = [];
|
|
208
|
-
this._opacityTimes = [];
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
var needColour = true;
|
|
212
|
-
|
|
213
|
-
if (this._colours && this._colours.length) {
|
|
214
|
-
for (var j = 0; j < this._colours.length; j++) {
|
|
215
|
-
if (this._colours[j][3] < 0) {
|
|
216
|
-
needColour = false;
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
} else {
|
|
221
|
-
needColour = false;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (needColour) {
|
|
225
|
-
if (this._cycles === 0 && this._duration > 0.0) { // infinite highlight
|
|
226
|
-
if (this._colours.length === 1) {
|
|
227
|
-
this._colours.push([0, 0, 0, 0]);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (this._duration < minDuration || this._colours.length === 1) { // static
|
|
232
|
-
this._adjustedColours = [this._colours[0]];
|
|
233
|
-
this._colourTimes = [0.0];
|
|
234
|
-
} else if (this._cycles > 0) { // finite
|
|
235
|
-
timeInterval = this._duration / this._colours.length;
|
|
236
|
-
this._adjustedColours = [];
|
|
237
|
-
this._colourTimes = [];
|
|
238
|
-
for (ki = 0; ki < this._cycles; ki++) {
|
|
239
|
-
for (oi = 0; oi < this._colours.length; oi++) {
|
|
240
|
-
this._adjustedColours.push(this._colours[oi]);
|
|
241
|
-
this._colourTimes.push(timeInterval * (ki * this._colours.length + oi));
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
} else { // infinite
|
|
245
|
-
timeInterval = this._duration / this._colours.length;
|
|
246
|
-
this._adjustedColours = [];
|
|
247
|
-
this._colourTimes = [];
|
|
248
|
-
for (oi = 0; oi < this._colours.length; oi++) {
|
|
249
|
-
this._adjustedColours.push(this._colours[oi]);
|
|
250
|
-
this._colourTimes.push(timeInterval * oi);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
this._adjustedColours.push(this._colours[0]);
|
|
254
|
-
this._colourTimes.push(timeInterval * this._colours.length);
|
|
56
|
+
let f = 1;
|
|
57
|
+
if (this._duration > 0) {
|
|
58
|
+
if (this._cycles > 0 && time >= this._duration * this._cycles) {
|
|
59
|
+
f = timeToBlendFactor(this._duration * this._cycles, this._duration);
|
|
60
|
+
} else {
|
|
61
|
+
f = timeToBlendFactor(time, this._duration);
|
|
62
|
+
res.isCompleted = false;
|
|
255
63
|
}
|
|
256
|
-
} else {
|
|
257
|
-
this._adjustedColours = [];
|
|
258
|
-
this._colourTimes = [];
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Gets the highlight opacity at the specified time.
|
|
264
|
-
* @param {float} time Time from beginning of the highlight animation
|
|
265
|
-
* @returns {object} <code>undefined</code> if highlight opacity does not exist or object with two properties:
|
|
266
|
-
* <ul>
|
|
267
|
-
* <li>{float | undefined} result.opacity, if undefined the original opacity of object should be restored</li>
|
|
268
|
-
* <li>{boolean} result.isCompleted, true if highlight is completed</li>
|
|
269
|
-
* </ul>
|
|
270
|
-
* @public
|
|
271
|
-
*/
|
|
272
|
-
Highlight.prototype.getOpacity = function(time) {
|
|
273
|
-
if (!this._adjustedOpacities || !this._adjustedOpacities.length) {
|
|
274
|
-
return undefined;
|
|
275
64
|
}
|
|
276
65
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
var duration = this._opacityTimes[this._opacityTimes.length - 1];
|
|
285
|
-
|
|
286
|
-
var currentTime = time;
|
|
287
|
-
if (this._cycles === 0) { // infinite highlight
|
|
288
|
-
currentTime %= duration;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (currentTime >= duration) {
|
|
292
|
-
if (this._cycles > 0) { // finite highlight, need to use the original opacity
|
|
293
|
-
result.isCompleted = true;
|
|
294
|
-
result.opacity = undefined;
|
|
66
|
+
if (this._opacities?.length > 0) {
|
|
67
|
+
if (f >= 1 || this._opacities.length < 2) {
|
|
68
|
+
res.opacity = this._opacities[0];
|
|
69
|
+
} else if (f <= 0) {
|
|
70
|
+
res.opacity = this._opacities[1];
|
|
295
71
|
} else {
|
|
296
|
-
|
|
297
|
-
result.opacity = this._adjustedOpacities[this._adjustedOpacities.length - 1];
|
|
72
|
+
res.opacity = this._opacities[0] * f + this._opacities[1] * (1 - f);
|
|
298
73
|
}
|
|
299
|
-
return result;
|
|
300
74
|
}
|
|
301
75
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
result.opacity = this._adjustedOpacities[index1] * (1 - intepolateRatio) + this._adjustedOpacities[index1 + 1] * intepolateRatio;
|
|
308
|
-
result.isCompleted = false;
|
|
309
|
-
return result;
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Gets the highlight colour at the specified time.
|
|
314
|
-
* @param {float} time the time from highlight starts
|
|
315
|
-
* @returns {undefined | object} <code>undefined</code> if highlight colour does not exist or object with two properties:
|
|
316
|
-
* <ul>
|
|
317
|
-
* <li>{float[] | undefined} result.colour in form [r,g,b,a], if undefined the original colour of object should be restored</li>
|
|
318
|
-
* <li>{boolean} result.isCompleted, true if highlight is completed</li>
|
|
319
|
-
* </ul>
|
|
320
|
-
* @public
|
|
321
|
-
*/
|
|
322
|
-
Highlight.prototype.getColour = function(time) {
|
|
323
|
-
if (!this._adjustedColours || !this._adjustedColours.length) {
|
|
324
|
-
return undefined;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
var result = {};
|
|
328
|
-
if (this._adjustedColours.length === 1) { // static highlight or single colours
|
|
329
|
-
result.colour = this._adjustedColours[0];
|
|
330
|
-
result.isCompleted = true;
|
|
331
|
-
return result;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
var duration = this._colourTimes[this._colourTimes.length - 1];
|
|
335
|
-
|
|
336
|
-
var currentTime = time;
|
|
337
|
-
if (this._cycles === 0) { // infinite highlight
|
|
338
|
-
currentTime %= duration;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (currentTime >= duration) {
|
|
342
|
-
if (this._cycles > 0) { // finite highlight, need to use the original colour
|
|
343
|
-
result.isCompleted = true;
|
|
344
|
-
result.colour = undefined;
|
|
76
|
+
if (this._colours?.length > 0) {
|
|
77
|
+
if (f >= 1 || this._colours.length < 2) {
|
|
78
|
+
res.color = this._colours[0];
|
|
79
|
+
} else if (f <= 0) {
|
|
80
|
+
res.color = this._colours[1];
|
|
345
81
|
} else {
|
|
346
|
-
|
|
347
|
-
|
|
82
|
+
res.color = [
|
|
83
|
+
this._colours[0][0] * f + this._colours[1][0] * (1 - f),
|
|
84
|
+
this._colours[0][1] * f + this._colours[1][1] * (1 - f),
|
|
85
|
+
this._colours[0][2] * f + this._colours[1][2] * (1 - f),
|
|
86
|
+
this._colours[0][3] * f + this._colours[1][3] * (1 - f)
|
|
87
|
+
];
|
|
348
88
|
}
|
|
349
|
-
return result;
|
|
350
89
|
}
|
|
351
90
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
var ratio = currentTime / timeInterval;
|
|
355
|
-
var index = Math.floor(ratio);
|
|
356
|
-
var intepolateRatio = ratio - index;
|
|
357
|
-
|
|
358
|
-
var r = this._adjustedColours[index][0] * (1 - intepolateRatio) + this._adjustedColours[index + 1][0] * intepolateRatio;
|
|
359
|
-
var g = this._adjustedColours[index][1] * (1 - intepolateRatio) + this._adjustedColours[index + 1][1] * intepolateRatio;
|
|
360
|
-
var b = this._adjustedColours[index][2] * (1 - intepolateRatio) + this._adjustedColours[index + 1][2] * intepolateRatio;
|
|
361
|
-
var a = this._adjustedColours[index][3] * (1 - intepolateRatio) + this._adjustedColours[index + 1][3] * intepolateRatio;
|
|
362
|
-
|
|
363
|
-
result.colour = [r, g, b, a]; // finite highlight outside playing cycles
|
|
364
|
-
result.isCompleted = false;
|
|
365
|
-
return result;
|
|
91
|
+
return res;
|
|
366
92
|
};
|
|
367
93
|
|
|
368
94
|
/**
|
|
369
|
-
* Gets the
|
|
370
|
-
* @returns {
|
|
95
|
+
* Gets if the highlighted nodes are fading in or fading out.
|
|
96
|
+
* @returns {boolean} true if the highlighted nodes fade in or fade out at the end
|
|
371
97
|
* @public
|
|
372
98
|
*/
|
|
373
|
-
Highlight.prototype.
|
|
374
|
-
|
|
375
|
-
if (this._opacities && this._opacities.length > 0) {
|
|
376
|
-
result = this._opacities[this._opacities.length - 1];
|
|
377
|
-
}
|
|
378
|
-
return result;
|
|
99
|
+
Highlight.prototype.isFadeInOut = function() {
|
|
100
|
+
return this._type?.startsWith("Fade") === true;
|
|
379
101
|
};
|
|
380
102
|
|
|
381
103
|
/**
|
|
@@ -384,7 +106,7 @@ sap.ui.define([
|
|
|
384
106
|
* @public
|
|
385
107
|
*/
|
|
386
108
|
Highlight.prototype.isFadeOut = function() {
|
|
387
|
-
return this.
|
|
109
|
+
return this._type === "FadeOut";
|
|
388
110
|
};
|
|
389
111
|
|
|
390
112
|
return Highlight;
|
|
@@ -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.136.0
|
|
33
33
|
* @extends sap.ui.vk.ContentManager
|
|
34
34
|
* @alias sap.ui.vk.ImageContentManager
|
|
35
35
|
* @since 1.50.0
|