@sapui5/sap.ui.vbm 1.133.0 → 1.134.1
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/vbm/.library +1 -1
- package/src/sap/ui/vbm/Adapter.js +6 -2
- package/src/sap/ui/vbm/Adapter3D.js +1 -1
- package/src/sap/ui/vbm/Legend.js +1 -2
- package/src/sap/ui/vbm/Viewport.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ColladaBounds.js +1 -1
- package/src/sap/ui/vbm/adapter3d/DragDropHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +1 -1
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/RectangleTracker.js +1 -1
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +1 -1
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +1 -1
- package/src/sap/ui/vbm/getResourceBundle.js +3 -4
- package/src/sap/ui/vbm/lib/sapnavigation.js +3 -3
- package/src/sap/ui/vbm/lib/saputilities.js +2 -6
- package/src/sap/ui/vbm/library.js +3 -3
- package/src/sap/ui/vbm/vector/MapRenderer.js +381 -343
- package/src/sap/ui/vbm/vector/PayloadGenerator.js +34 -3
- package/src/sap/ui/vbm/vector/RectangularSelection.js +1 -1
- package/src/sap/ui/vbm/vector/SAPNavControl.js +274 -0
- package/src/sap/ui/vbm/vector/VBITransformer.js +56 -17
- package/src/sap/ui/vbm/vector/VectorUtils.js +11 -5
package/package.json
CHANGED
package/src/sap/ui/vbm/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<name>sap.ui.vbm</name>
|
|
4
4
|
<vendor>SAP SE</vendor>
|
|
5
5
|
<copyright>SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved</copyright>
|
|
6
|
-
<version>1.
|
|
6
|
+
<version>1.134.1</version>
|
|
7
7
|
|
|
8
8
|
<documentation>SAP UI library: sap.ui.vbm</documentation>
|
|
9
9
|
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
25
25
|
* @param {object} [mSettings] initial settings for the new object
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.134.1
|
|
28
28
|
* @extends sap.ui.core.Element
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -305,7 +305,7 @@ sap.ui.define([
|
|
|
305
305
|
* @returns {Promise} A Promise object that is resolved when the VBI JSON is processed.
|
|
306
306
|
* @public
|
|
307
307
|
*/
|
|
308
|
-
Adapter.prototype.load = function(data) {
|
|
308
|
+
Adapter.prototype.load = function(data, initialLoad = false) {
|
|
309
309
|
var obj = null;
|
|
310
310
|
|
|
311
311
|
if (typeof data === 'string') {
|
|
@@ -327,6 +327,10 @@ sap.ui.define([
|
|
|
327
327
|
Log.debug("invalid object supplied for load", "", thisModule);
|
|
328
328
|
return this;
|
|
329
329
|
}
|
|
330
|
+
//check for initial load data
|
|
331
|
+
if (typeof initialLoad === 'boolean' && initialLoad) {
|
|
332
|
+
VBI.VBITransformer.clearTransformedJSON();
|
|
333
|
+
}
|
|
330
334
|
// Verifying the map type vector or raster
|
|
331
335
|
if (this._verifyMapType(obj)) {
|
|
332
336
|
VBI.VBITransformer.parseVBI(obj); // exit for vector processing
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
48
48
|
* @param {object} [mSettings] initial settings for the new object
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.134.1
|
|
51
51
|
* @extends sap.ui.core.Element
|
|
52
52
|
* @constructor
|
|
53
53
|
* @public
|
package/src/sap/ui/vbm/Legend.js
CHANGED
|
@@ -22,7 +22,6 @@ sap.ui.define([
|
|
|
22
22
|
* @alias sap.ui.vbm.Legend
|
|
23
23
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
24
24
|
*/
|
|
25
|
-
Lib.load({ name: "sap.ui.vbm.i18n" });
|
|
26
25
|
var Legend = Element.extend("sap.ui.vbm.Legend", /** @lends sap.ui.vbm.Legend.prototype */
|
|
27
26
|
{
|
|
28
27
|
metadata: {
|
|
@@ -36,7 +35,7 @@ sap.ui.define([
|
|
|
36
35
|
caption: {
|
|
37
36
|
type: "string",
|
|
38
37
|
group: "Misc",
|
|
39
|
-
defaultValue: Lib.getResourceBundleFor("sap.ui.vbm
|
|
38
|
+
defaultValue: Lib.getResourceBundleFor("sap.ui.vbm").getText("CAPTION_LEGEND")
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
41
|
defaultAggregation: "items",
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @private
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.134.1
|
|
26
26
|
* @alias sap.ui.vbm.adapter3d.ColladaBounds
|
|
27
27
|
*/
|
|
28
28
|
var ColladaBounds = BaseObject.extend("sap.ui.vbm.adapter3d.ColladaBounds", /** @lends sap.ui.vbm.adapter3d.ColladaBounds.prototype */ {
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
*
|
|
84
84
|
* @private
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.134.1
|
|
87
87
|
* @alias sap.ui.vbm.adapter3d.DragDropHandler
|
|
88
88
|
*/
|
|
89
89
|
var DragDropHandler = BaseObject.extend("sap.ui.vbm.adapter3d.DragDropHandler", /** @lends sap.ui.vbm.adapter3d.DragDropHandler.prototype */ {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.134.1
|
|
33
33
|
* @alias sap.ui.vbm.adapter3d.ModelHandler
|
|
34
34
|
*/
|
|
35
35
|
var ModelHandler = BaseObject.extend("sap.ui.vbm.adapter3d.ModelHandler", /** @lends sap.ui.vbm.adapter3d.ModelHandler.prototype */ {
|
|
@@ -377,7 +377,7 @@ sap.ui.define([
|
|
|
377
377
|
*
|
|
378
378
|
* @private
|
|
379
379
|
* @author SAP SE
|
|
380
|
-
* @version 1.
|
|
380
|
+
* @version 1.134.1
|
|
381
381
|
* @alias sap.ui.vbm.adapter3d.ObjectFactory
|
|
382
382
|
*/
|
|
383
383
|
var ObjectFactory = BaseObject.extend("sap.ui.vbm.adapter3d.ObjectFactory", /** @lends sap.ui.vbm.adapter3d.ObjectFactory.prototype */ {});
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
*
|
|
33
33
|
* @private
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.134.1
|
|
36
36
|
* @alias sap.ui.vbm.adapter3d.PolygonHandler
|
|
37
37
|
*/
|
|
38
38
|
var PolygonHandler = BaseObject.extend("sap.ui.vbm.adapter3d.PolygonHandler", /** @lends sap.ui.vbm.adapter3d.PolygonHandler.prototype */ {
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
*
|
|
40
40
|
* @private
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.134.1
|
|
43
43
|
* @alias sap.ui.vbm.adapter3d.RectangleTracker
|
|
44
44
|
*/
|
|
45
45
|
var RectangleTracker = BaseObject.extend("sap.ui.vbm.adapter3d.RectangleTracker", /** @lends sap.ui.vbm.adapter3d.RectangleTracker.prototype */ {
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
*
|
|
48
48
|
* @private
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.134.1
|
|
51
51
|
* @alias sap.ui.vbm.adapter3d.SceneBuilder
|
|
52
52
|
*/
|
|
53
53
|
var SceneBuilder = BaseObject.extend("sap.ui.vbm.adapter3d.SceneBuilder", /** @lends sap.ui.vbm.adapter3d.SceneBuilder.prototype */ {
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
*
|
|
57
57
|
* @private
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.134.1
|
|
60
60
|
* @alias sap.ui.vbm.adapter3d.VBIJSONParser
|
|
61
61
|
*/
|
|
62
62
|
var VBIJSONParser = BaseObject.extend("sap.ui.vbm.adapter3d.VBIJSONParser", /** @lends sap.ui.vbm.adapter3d.VBIJSONParser.prototype */ {
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
// Provides function sap.ui.vbm.getResourceBundle.
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/
|
|
8
|
-
], function(
|
|
7
|
+
"sap/ui/core/Lib"
|
|
8
|
+
], function( Library ) {
|
|
9
9
|
"use strict";
|
|
10
|
-
|
|
11
|
-
return ResourceBundle.create.bind(ResourceBundle, { bundleName: "sap.ui.vbm.i18n.messagebundle"});
|
|
10
|
+
return Library.getResourceBundleFor.bind(Library, "sap.ui.vbm");
|
|
12
11
|
}, /* bExport= */ true);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
sap.ui.define(["./sapvbi","sap/
|
|
6
|
-
, function(vbi,
|
|
5
|
+
sap.ui.define(["./sapvbi","sap/ui/core/Lib","./saputilities"]
|
|
6
|
+
, function(vbi, Library) {
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
9
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
@@ -378,7 +378,7 @@ VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
|
378
378
|
};
|
|
379
379
|
|
|
380
380
|
nc.AppendDiv = function() {
|
|
381
|
-
var oResourceBundle =
|
|
381
|
+
var oResourceBundle = Library.getResourceBundleFor("sap.ui.vbm");
|
|
382
382
|
var sTooltipZoom = oResourceBundle.getText("NAVCTL_TITLE_ZOOM", [0]);
|
|
383
383
|
sTooltipZoom = sTooltipZoom.substr(0, sTooltipZoom.search(/[0-9]/));
|
|
384
384
|
|
|
@@ -484,10 +484,8 @@ VBI.Utilities.CreateDetail = function(id, left, top, width, height, titletext, p
|
|
|
484
484
|
var close = document.createElement('div');
|
|
485
485
|
close.setAttribute("role", sap.ui.core.AccessibleRole.Button);
|
|
486
486
|
close.id = id + "-window-close";
|
|
487
|
-
// ensures the library is loaded
|
|
488
|
-
Lib.load({ name: "sap.ui.vbm.i18n" });
|
|
489
487
|
// ResourceBundle can be retrieved
|
|
490
|
-
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm
|
|
488
|
+
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
|
|
491
489
|
close.title = oResourceBundle.getText("WINDOW_CLOSE");
|
|
492
490
|
close.setAttribute("aria-label", oResourceBundle.getText("WINDOW_CLOSE"));
|
|
493
491
|
|
|
@@ -571,10 +569,8 @@ VBI.Utilities.CreateLegend = function(id, top, titletext, padding, bClickRow) {
|
|
|
571
569
|
// headerFontSize = VBI.Utilities.RemToPixel( 1 );
|
|
572
570
|
|
|
573
571
|
legend.className = "vbi-legend";
|
|
574
|
-
// ensures the library is loaded
|
|
575
|
-
Lib.load({ name: "sap.ui.vbm.i18n" });
|
|
576
572
|
// ResourceBundle can be retrieved
|
|
577
|
-
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm
|
|
573
|
+
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
|
|
578
574
|
// create the buttons to collapse/expand the legend .......................//
|
|
579
575
|
var bt1 = document.createElement('div');
|
|
580
576
|
bt1.id = id + "-button-collapse";
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @namespace
|
|
21
21
|
* @alias sap.ui.vbm
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.134.1
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
"sap.ui.vbm.ClusterBase", "sap.ui.vbm.ClusterTree", "sap.ui.vbm.ClusterGrid", "sap.ui.vbm.ClusterDistance", "sap.ui.vbm.Heatmap",
|
|
46
46
|
"sap.ui.vbm.HeatPoint", "sap.ui.vbm.ClusterContainer", "sap.ui.vbm.Adapter", "sap.ui.vbm.Adapter3D"
|
|
47
47
|
],
|
|
48
|
-
version: "1.
|
|
48
|
+
version: "1.134.1"
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
sap.ui.loader.config({
|
|
@@ -206,7 +206,7 @@ sap.ui.define([
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
vbmLibrary.getResourceBundle = function() {
|
|
209
|
-
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm
|
|
209
|
+
var oResourceBundle = Lib.getResourceBundleFor("sap.ui.vbm")
|
|
210
210
|
return oResourceBundle;
|
|
211
211
|
};
|
|
212
212
|
|