@sapui5/sap.ui.vbm 1.93.1 → 1.97.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/vbm/.library +1 -1
- package/src/sap/ui/vbm/Adapter.js +18 -15
- package/src/sap/ui/vbm/Adapter3D.js +2 -3
- package/src/sap/ui/vbm/AnalyticMap.js +1 -2
- package/src/sap/ui/vbm/AnalyticMapRenderer.js +1 -2
- package/src/sap/ui/vbm/Area.js +1 -2
- package/src/sap/ui/vbm/Areas.js +8 -10
- package/src/sap/ui/vbm/Box.js +1 -2
- package/src/sap/ui/vbm/Boxes.js +1 -2
- package/src/sap/ui/vbm/Circle.js +1 -2
- package/src/sap/ui/vbm/Circles.js +1 -2
- package/src/sap/ui/vbm/Cluster.js +5 -5
- package/src/sap/ui/vbm/ClusterBase.js +5 -9
- package/src/sap/ui/vbm/ClusterContainer.js +1 -2
- package/src/sap/ui/vbm/ClusterDistance.js +1 -2
- package/src/sap/ui/vbm/ClusterGrid.js +1 -2
- package/src/sap/ui/vbm/ClusterRenderer.js +1 -3
- package/src/sap/ui/vbm/ClusterTree.js +1 -2
- package/src/sap/ui/vbm/Container.js +1 -2
- package/src/sap/ui/vbm/Containers.js +4 -7
- package/src/sap/ui/vbm/DragSource.js +1 -2
- package/src/sap/ui/vbm/DropTarget.js +1 -2
- package/src/sap/ui/vbm/Feature.js +1 -2
- package/src/sap/ui/vbm/FeatureCollection.js +1 -2
- package/src/sap/ui/vbm/GeoCircle.js +1 -2
- package/src/sap/ui/vbm/GeoCircles.js +1 -2
- package/src/sap/ui/vbm/GeoJsonLayer.js +10 -12
- package/src/sap/ui/vbm/GeoMap.js +4 -4
- package/src/sap/ui/vbm/GeoMapRenderer.js +1 -2
- package/src/sap/ui/vbm/HeatPoint.js +1 -2
- package/src/sap/ui/vbm/Heatmap.js +1 -2
- package/src/sap/ui/vbm/Legend.js +1 -2
- package/src/sap/ui/vbm/LegendItem.js +1 -2
- package/src/sap/ui/vbm/Pie.js +1 -2
- package/src/sap/ui/vbm/PieItem.js +1 -2
- package/src/sap/ui/vbm/Pies.js +1 -2
- package/src/sap/ui/vbm/Region.js +1 -2
- package/src/sap/ui/vbm/Resource.js +1 -2
- package/src/sap/ui/vbm/Route.js +1 -2
- package/src/sap/ui/vbm/Routes.js +1 -2
- package/src/sap/ui/vbm/Spot.js +1 -2
- package/src/sap/ui/vbm/Spots.js +1 -2
- package/src/sap/ui/vbm/VBI.js +41 -10
- package/src/sap/ui/vbm/VBIRenderer.js +1 -2
- package/src/sap/ui/vbm/Viewport.js +7 -7
- package/src/sap/ui/vbm/ViewportRenderer.js +1 -2
- package/src/sap/ui/vbm/VoAbstract.js +1 -2
- package/src/sap/ui/vbm/VoAggregation.js +4 -7
- package/src/sap/ui/vbm/VoBase.js +1 -2
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +2 -3
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +2 -3
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +2 -3
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +269 -184
- package/src/sap/ui/vbm/adapter3d/Utilities.js +1 -2
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +2 -3
- package/src/sap/ui/vbm/adapter3d/thirdparty/ColladaLoader.js +2267 -2509
- package/src/sap/ui/vbm/adapter3d/thirdparty/DecalGeometry.js +194 -266
- package/src/sap/ui/vbm/adapter3d/thirdparty/OrbitControls.js +1004 -700
- package/src/sap/ui/vbm/lib/sapactions.js +11 -9
- package/src/sap/ui/vbm/lib/sapautomations.js +11 -13
- package/src/sap/ui/vbm/lib/sapconfig.js +10 -3
- package/src/sap/ui/vbm/lib/sapdataprovider.js +10 -21
- package/src/sap/ui/vbm/lib/sapevents.js +10 -11
- package/src/sap/ui/vbm/lib/sapgeolocation.js +9 -3
- package/src/sap/ui/vbm/lib/sapgeomath.js +10 -4
- package/src/sap/ui/vbm/lib/sapgeotool.js +11 -3
- package/src/sap/ui/vbm/lib/sapheatmap.js +27 -25
- package/src/sap/ui/vbm/lib/saplabels.js +16 -11
- package/src/sap/ui/vbm/lib/saplassotrack.js +10 -5
- package/src/sap/ui/vbm/lib/sapmaplayer.js +12 -10
- package/src/sap/ui/vbm/lib/sapmapmanager.js +14 -5
- package/src/sap/ui/vbm/lib/sapmapprovider.js +10 -5
- package/src/sap/ui/vbm/lib/sapnavigation.js +10 -3
- package/src/sap/ui/vbm/lib/sapparsing.js +10 -1
- package/src/sap/ui/vbm/lib/sappositioning.js +11 -5
- package/src/sap/ui/vbm/lib/sapprojection.js +11 -5
- package/src/sap/ui/vbm/lib/saprecttrack.js +10 -5
- package/src/sap/ui/vbm/lib/sapresources.js +11 -6
- package/src/sap/ui/vbm/lib/sapscale.js +14 -5
- package/src/sap/ui/vbm/lib/sapscene.js +13 -12
- package/src/sap/ui/vbm/lib/saputilities.js +11 -84
- package/src/sap/ui/vbm/lib/sapvbcluster.js +13 -6
- package/src/sap/ui/vbm/lib/sapvbi.js +9 -41
- package/src/sap/ui/vbm/lib/sapvbicontext.js +10 -5
- package/src/sap/ui/vbm/lib/sapvbmenu.js +18 -13
- package/src/sap/ui/vbm/lib/sapvobase.js +16 -16
- package/src/sap/ui/vbm/lib/sapvoutils.js +13 -24
- package/src/sap/ui/vbm/lib/sapwindow.js +11 -12
- package/src/sap/ui/vbm/library.js +29 -33
- package/src/sap/ui/vbm/themes/base/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_hcw/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_belize_plus/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_bluecrystal/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_dark/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_fiori_3_hcw/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_hcb/library.source.less +1 -2
- package/src/sap/ui/vbm/themes/sap_horizon/library.source.less +1 -2
- package/ui5.yaml +6 -5
- package/src/sap/ui/vbm/adapter3d/thirdparty/html2canvas.js +0 -6
- package/src/sap/ui/vbm/themes/sap_mvi/empty.less +0 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// this module does the label handling
|
|
4
6
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
8
|
+
sap.ui.define(["./sapvbi"]
|
|
9
|
+
, function() {
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
12
|
+
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
13
|
+
VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
11
14
|
// ........................................................................//
|
|
12
15
|
// Lasso Tracking .........................................................//
|
|
13
16
|
// ........................................................................//
|
|
@@ -167,3 +170,5 @@ VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
|
167
170
|
};
|
|
168
171
|
|
|
169
172
|
};
|
|
173
|
+
|
|
174
|
+
});
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// maplayer objects
|
|
4
6
|
// Author: Ulrich Roegelein
|
|
5
|
-
|
|
6
|
-
// mapprovider prototype functions...........................................//
|
|
7
|
+
// mapprovider prototype functions
|
|
7
8
|
// VBI.prototype = { this.prototype = { Add: function (source) { this.SourceArray.push( source ); }, }, }
|
|
8
9
|
// VBI.mapproviders = { this.prototype = { Add: function (mapprovider) { this.MapProviderArray.push( mapprovider ); }, }, }
|
|
9
|
-
|
|
10
|
-
// ...........................................................................//
|
|
11
|
-
// MapLayerStack namespace...................................................//
|
|
10
|
+
// MapLayerStack namespace
|
|
12
11
|
// enables: new VBI.MapLayerStackManager(...)
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
sap.ui.define(["./sapvbi"]
|
|
14
|
+
, function() {
|
|
15
15
|
"use strict";
|
|
16
|
+
|
|
17
|
+
VBI.MapLayerStackManager = function() {
|
|
16
18
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
17
19
|
var maplayerstackmanager = {};
|
|
18
20
|
maplayerstackmanager.vbiclass = "MapLayerStackManager";
|
|
@@ -77,7 +79,6 @@ VBI.MapLayerStacks = VBI.MapLayerStackManager();
|
|
|
77
79
|
// enables: new VBI.MapLayerStack(...)
|
|
78
80
|
|
|
79
81
|
VBI.MapLayerStack = function(name, description) {
|
|
80
|
-
"use strict";
|
|
81
82
|
var maplayerstack = {}; // create the object
|
|
82
83
|
maplayerstack.vbiclass = "MapLayerStack";
|
|
83
84
|
maplayerstack.m_MapLayerArray = [];
|
|
@@ -195,7 +196,6 @@ VBI.MapLayerStack = function(name, description) {
|
|
|
195
196
|
};
|
|
196
197
|
|
|
197
198
|
VBI.MapLayer = function() {
|
|
198
|
-
"use strict";
|
|
199
199
|
var maplayer = {}; // create the object
|
|
200
200
|
maplayer.vbiclass = "MapLayer";
|
|
201
201
|
maplayer.m_Name = null;
|
|
@@ -254,3 +254,5 @@ VBI.MapLayer = function() {
|
|
|
254
254
|
|
|
255
255
|
return maplayer;
|
|
256
256
|
};
|
|
257
|
+
|
|
258
|
+
});
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
// mapmanager object
|
|
2
6
|
// Author: Ulrich Roegelein
|
|
3
7
|
|
|
4
|
-
|
|
8
|
+
sap.ui.define(["./sapvbi"]
|
|
9
|
+
, function() {
|
|
5
10
|
"use strict";
|
|
11
|
+
|
|
12
|
+
VBI.MapManager = (function() {
|
|
6
13
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
7
14
|
var mapmanager = {};
|
|
8
15
|
mapmanager.vbiclass = "MapManager";
|
|
@@ -24,11 +31,11 @@ VBI.MapManager = (function() {
|
|
|
24
31
|
* Increments and Decrements counters related to tile download connections
|
|
25
32
|
*
|
|
26
33
|
* @private
|
|
27
|
-
* @param {Image} image - Image object to track counters agains
|
|
34
|
+
* @param {Image} image - Image object to track counters agains
|
|
28
35
|
* @param {number} factor - A positive or negative integer to be added to the counter
|
|
29
36
|
*/
|
|
30
37
|
mapmanager._modifyReqCounters = function(image, factor) {
|
|
31
|
-
if (image.m_Headers) { // if headers presents -> this is xhr request
|
|
38
|
+
if (image.m_Headers) { // if headers presents -> this is xhr request
|
|
32
39
|
mapmanager.m_runningXhrRequests += factor;
|
|
33
40
|
} else {
|
|
34
41
|
mapmanager.m_runningRequests += factor;
|
|
@@ -473,7 +480,7 @@ VBI.MapManager = (function() {
|
|
|
473
480
|
image.onabort = mapmanager.onAbort;
|
|
474
481
|
|
|
475
482
|
//If the provider has headers defined, then we must use the HTTP Request approach
|
|
476
|
-
//as it is possible that the application provided an image via the URL callback, we check for a data url before proceeding with the HTTP Request creation
|
|
483
|
+
//as it is possible that the application provided an image via the URL callback, we check for a data url before proceeding with the HTTP Request creation
|
|
477
484
|
if (mapProv.m_Headers && url.substring(0, 5).toLowerCase() != "data:") {
|
|
478
485
|
image.m_Headers = mapProv.m_Headers;
|
|
479
486
|
image.src2execute = url; //store the URL in case the request ends up being queued
|
|
@@ -693,7 +700,7 @@ VBI.MapManager = (function() {
|
|
|
693
700
|
* @param {boolean} preview - True if image is requested for preview.
|
|
694
701
|
*/
|
|
695
702
|
mapmanager._createHttpRequest = function(image, preview) {
|
|
696
|
-
if (preview || mapmanager.m_runningXhrRequests < mapmanager.m_limitRequests) { // 'preview' images
|
|
703
|
+
if (preview || mapmanager.m_runningXhrRequests < mapmanager.m_limitRequests) { // 'preview' images not restricted
|
|
697
704
|
if (!preview) { // modify counter only if it is not a 'preview' image
|
|
698
705
|
mapmanager._modifyReqCounters(image, 1);
|
|
699
706
|
}
|
|
@@ -774,3 +781,5 @@ VBI.MapManager = (function() {
|
|
|
774
781
|
|
|
775
782
|
return mapmanager;
|
|
776
783
|
})();
|
|
784
|
+
|
|
785
|
+
});
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// mapprovider object
|
|
4
6
|
// Author: Ulrich Roegelein
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
sap.ui.define(["./sapvbi"]
|
|
9
|
+
, function() {
|
|
7
10
|
"use strict";
|
|
11
|
+
|
|
12
|
+
VBI.MapProviders = function() {
|
|
8
13
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
9
14
|
var mapproviders = {};
|
|
10
15
|
mapproviders.vbiclass = "MapProviders";
|
|
@@ -68,7 +73,6 @@ VBI.MapProviders = function() {
|
|
|
68
73
|
// MapProvider namespace.....................................................//
|
|
69
74
|
|
|
70
75
|
VBI.MapProvider = function(name, description, copyright, tileX, tileY, minLOD, maxLOD, fillStyle, resolution, projection, headers) {
|
|
71
|
-
"use strict";
|
|
72
76
|
var mapprovider = {};
|
|
73
77
|
mapprovider.vbiclass = "MapProvider";
|
|
74
78
|
mapprovider.m_SourceArray = [];
|
|
@@ -285,7 +289,6 @@ VBI.MapProvider = function(name, description, copyright, tileX, tileY, minLOD, m
|
|
|
285
289
|
// Source namespace..........................................................//
|
|
286
290
|
|
|
287
291
|
VBI.Source = function(url) {
|
|
288
|
-
"use strict";
|
|
289
292
|
var source = {};
|
|
290
293
|
source.vbiclass = "Source";
|
|
291
294
|
source.m_ID = null;
|
|
@@ -440,3 +443,5 @@ VBI.Source = function(url) {
|
|
|
440
443
|
|
|
441
444
|
return source;
|
|
442
445
|
};
|
|
446
|
+
|
|
447
|
+
});
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
sap.ui.define(["./sapvbi"]
|
|
6
|
+
, function() {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
1
9
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
10
|
VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
3
|
-
"use strict";
|
|
4
11
|
var nc = {};
|
|
5
|
-
jQuery.sap.require("sap.ui.core.IconPool");
|
|
6
|
-
sap.ui.core.IconPool.insertFontFaceStyle();
|
|
7
12
|
nc.scene = null;
|
|
8
13
|
nc.suppressedVisibility = SuppressedNavControlVisibility;
|
|
9
14
|
nc.m_MinLOD = null;
|
|
@@ -625,3 +630,5 @@ VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
|
625
630
|
|
|
626
631
|
return nc;
|
|
627
632
|
};
|
|
633
|
+
|
|
634
|
+
});
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
sap.ui.define(["./sapvbi"]
|
|
6
|
+
, function() {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
1
9
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
10
|
VBI.Parser = function() {
|
|
3
|
-
"use strict";
|
|
4
11
|
var parser = {};
|
|
5
12
|
|
|
6
13
|
parser.formulas = [];
|
|
@@ -324,3 +331,5 @@ VBI.Parser = function() {
|
|
|
324
331
|
|
|
325
332
|
return parser;
|
|
326
333
|
};
|
|
334
|
+
|
|
335
|
+
});
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// this module does the label handling
|
|
4
6
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
|
-
|
|
6
|
-
// ...........................................................................//
|
|
7
7
|
// First part enriches scene with label specific functions //
|
|
8
8
|
// Second part consists of the VBI.Label object, formerly part of vobase //
|
|
9
|
+
|
|
10
|
+
sap.ui.define(["./sapvbi"]
|
|
11
|
+
, function() {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
9
14
|
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
10
15
|
VBI.addScenePositioningFunctions = function(scene) {
|
|
11
|
-
"use strict";
|
|
12
16
|
scene.GetNearestPosArray = function(posarray) {
|
|
13
17
|
// do a copy of the array..............................................//
|
|
14
18
|
var pa = posarray.slice();
|
|
@@ -437,3 +441,5 @@ VBI.addScenePositioningFunctions = function(scene) {
|
|
|
437
441
|
return scene.m_Proj.UCSToLonLat(ucs, lonlat);
|
|
438
442
|
};
|
|
439
443
|
};
|
|
444
|
+
|
|
445
|
+
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// this module deals with the projections
|
|
4
6
|
// Author: Jürgen Gatter
|
|
7
|
+
|
|
8
|
+
sap.ui.define(["./sapvbi"]
|
|
9
|
+
, function() {
|
|
10
|
+
"use strict";
|
|
11
|
+
|
|
5
12
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
6
13
|
VBI.LinearProjection = function(target) {
|
|
7
|
-
"use strict";
|
|
8
14
|
var projection = {};
|
|
9
15
|
projection.vbiclass = "Projection/Linear";
|
|
10
16
|
projection.m_nXYRatio = 2;
|
|
@@ -34,7 +40,6 @@ VBI.LinearProjection = function(target) {
|
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
VBI.MercatorProjection = function(target) {
|
|
37
|
-
"use strict";
|
|
38
43
|
var projection = {};
|
|
39
44
|
projection.vbiclass = "Projection/Mercator";
|
|
40
45
|
projection.m_nXYRatio = 1;
|
|
@@ -54,7 +59,6 @@ VBI.MercatorProjection = function(target) {
|
|
|
54
59
|
};
|
|
55
60
|
|
|
56
61
|
VBI.ElliMercatorProjection = function(target) {
|
|
57
|
-
"use strict";
|
|
58
62
|
var projection = {};
|
|
59
63
|
projection.vbiclass = "Projection/EllipticalMercator";
|
|
60
64
|
projection.m_nXYRatio = 1;
|
|
@@ -112,3 +116,5 @@ VBI.ElliMercatorProjection = function(target) {
|
|
|
112
116
|
return projection;
|
|
113
117
|
|
|
114
118
|
};
|
|
119
|
+
|
|
120
|
+
});
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// this module does the label handling
|
|
4
6
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
8
|
+
sap.ui.define(["./sapvbi"]
|
|
9
|
+
, function() {
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
12
|
+
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
13
|
+
VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
11
14
|
// ........................................................................//
|
|
12
15
|
// RectangularTracking ....................................................//
|
|
13
16
|
// ........................................................................//
|
|
@@ -288,3 +291,5 @@ VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
|
288
291
|
};
|
|
289
292
|
|
|
290
293
|
};
|
|
294
|
+
|
|
295
|
+
});
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// resources manager object
|
|
4
6
|
// Author: Ulrich Roegelein
|
|
5
|
-
|
|
6
7
|
// uses: <saputilities.js>
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
9
11
|
"use strict";
|
|
12
|
+
|
|
13
|
+
VBI.ResourceManager = (function() {
|
|
10
14
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
11
15
|
var resourcemanager = {};
|
|
12
16
|
|
|
@@ -16,10 +20,9 @@ VBI.ResourceManager = (function() {
|
|
|
16
20
|
return resourcemanager;
|
|
17
21
|
})();
|
|
18
22
|
|
|
19
|
-
//
|
|
23
|
+
//
|
|
20
24
|
|
|
21
25
|
VBI.Resources = function() {
|
|
22
|
-
"use strict";
|
|
23
26
|
var resources = {};
|
|
24
27
|
|
|
25
28
|
resources.m_resourcedata = [];
|
|
@@ -142,3 +145,5 @@ VBI.Resources = function() {
|
|
|
142
145
|
|
|
143
146
|
return resources;
|
|
144
147
|
};
|
|
148
|
+
|
|
149
|
+
});
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
sap.ui.define(["./sapvbi"]
|
|
6
|
+
, function() {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
1
9
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
10
|
VBI.SupportedUnitsOfLength = [
|
|
3
11
|
{
|
|
@@ -21,7 +29,6 @@ VBI.SupportedUnitsOfLength = [
|
|
|
21
29
|
}
|
|
22
30
|
];
|
|
23
31
|
VBI.Scale = function() {
|
|
24
|
-
"use strict";
|
|
25
32
|
var scale = {};
|
|
26
33
|
scale.scene = null;
|
|
27
34
|
scale.m_ID = null;
|
|
@@ -214,12 +221,12 @@ VBI.Scale = function() {
|
|
|
214
221
|
//creating the svg container where the scale will be rendered
|
|
215
222
|
var svg = document.getElementById(scale.m_canvas.id);
|
|
216
223
|
if (svg) {
|
|
217
|
-
|
|
224
|
+
|
|
218
225
|
svg.setAttribute("height", 15);
|
|
219
226
|
svg.setAttribute("width", pixelLength + 1);
|
|
220
227
|
//Clearing the previous scale
|
|
221
228
|
jQuery(svg).empty();
|
|
222
|
-
|
|
229
|
+
|
|
223
230
|
|
|
224
231
|
//This is the actual scale bar
|
|
225
232
|
var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
@@ -228,7 +235,7 @@ VBI.Scale = function() {
|
|
|
228
235
|
path.setAttribute("stroke-width", 2);
|
|
229
236
|
path.setAttribute("fill", "none");
|
|
230
237
|
svg.appendChild(path);
|
|
231
|
-
|
|
238
|
+
|
|
232
239
|
//This is the scale text. For example: "500 km"
|
|
233
240
|
var text = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
234
241
|
//How far from the right/left edge we position the text
|
|
@@ -239,7 +246,7 @@ VBI.Scale = function() {
|
|
|
239
246
|
} else {
|
|
240
247
|
textPositionX = pixelLength - 2 - (distance.toString().length + scale.m_DisplayUnit.length + 1) * 6;
|
|
241
248
|
}
|
|
242
|
-
|
|
249
|
+
|
|
243
250
|
text.setAttribute("x", textPositionX);
|
|
244
251
|
text.setAttribute("y", 8);
|
|
245
252
|
text.setAttribute("font-size", 10);
|
|
@@ -250,3 +257,5 @@ VBI.Scale = function() {
|
|
|
250
257
|
|
|
251
258
|
return scale;
|
|
252
259
|
};
|
|
260
|
+
|
|
261
|
+
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
|
|
3
|
+
*/
|
|
3
4
|
|
|
5
|
+
// this module does the label handling
|
|
4
6
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"./sapvbi",
|
|
10
|
+
"sap/ui/core/Popup"
|
|
11
|
+
], function() {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
8
14
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
9
15
|
VBI.InputModeDefault = 0; // standard mode.............................//
|
|
10
16
|
VBI.InputModeTrackObject = 1; // objects handles or boxes are tracked
|
|
@@ -17,7 +23,6 @@ VBI.InputModeRectZoom = 6; // rectangular zoom mode
|
|
|
17
23
|
// ...........................................................................//
|
|
18
24
|
// the scene manager manages the scene instances in a component context......//
|
|
19
25
|
VBI.SceneManager = function() {
|
|
20
|
-
"use strict";
|
|
21
26
|
var scenemanager = {};
|
|
22
27
|
scenemanager.vbiclass = "SceneManager";
|
|
23
28
|
scenemanager.m_SceneArray = [];
|
|
@@ -170,7 +175,6 @@ VBI.SceneManager = function() {
|
|
|
170
175
|
// Scene object..............................................................//
|
|
171
176
|
|
|
172
177
|
VBI.Scene = function(target) {
|
|
173
|
-
"use strict";
|
|
174
178
|
var scene = {};
|
|
175
179
|
scene.vbiclass = "Scene";
|
|
176
180
|
scene.m_TargetName = target;
|
|
@@ -697,10 +701,6 @@ VBI.Scene = function(target) {
|
|
|
697
701
|
// 3DScene object............................................................//
|
|
698
702
|
|
|
699
703
|
VBI.Scene3D = function(target) {
|
|
700
|
-
"use strict";
|
|
701
|
-
// include 3D library when creating the 3D Scene
|
|
702
|
-
// jQuery.sap.require("sap.ui.vbm.");
|
|
703
|
-
|
|
704
704
|
var scene = new VBI.Scene(target); // create scene and specialize.....//
|
|
705
705
|
|
|
706
706
|
scene.vbiclass = "3DScene";
|
|
@@ -898,7 +898,6 @@ VBI.Scene3D = function(target) {
|
|
|
898
898
|
// GeoScene object...........................................................//
|
|
899
899
|
|
|
900
900
|
VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
901
|
-
"use strict";
|
|
902
901
|
var scene = new VBI.Scene(target); // create scene and specialize.....//
|
|
903
902
|
scene.vbiclass = "GeoScene";
|
|
904
903
|
|
|
@@ -3217,7 +3216,7 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
3217
3216
|
// make a delayed call to ensure styling is applyed to have a real transition
|
|
3218
3217
|
jQuery.sap.delayedCall(0, this, function(time) {
|
|
3219
3218
|
// check that the object exists before using it as there is always a chance that it has been destroyed before delayed call runs
|
|
3220
|
-
if (scene.m_Canvas[0]) {
|
|
3219
|
+
if (scene.m_Canvas[0]) {
|
|
3221
3220
|
scene.m_Canvas[0].className = "vbi-geoscenecanvas vbi-map-active"; // make foreground canvas opaque using a transition
|
|
3222
3221
|
}
|
|
3223
3222
|
});
|
|
@@ -4069,3 +4068,5 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
4069
4068
|
}
|
|
4070
4069
|
return scene;
|
|
4071
4070
|
};
|
|
4071
|
+
|
|
4072
|
+
});
|