@sapui5/sap.ui.vbm 1.96.2 → 1.96.4
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 +1 -1
- package/src/sap/ui/vbm/Adapter3D.js +1 -1
- package/src/sap/ui/vbm/Viewport.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/SceneBuilder.js +3 -1
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +1 -1
- package/src/sap/ui/vbm/lib/sapscene.js +17 -11
- package/src/sap/ui/vbm/lib/sapvobase.js +1 -1
- package/src/sap/ui/vbm/library.js +2 -2
- package/src/sap/ui/vbm/themes/sap_belize_hcb/AnalyticMap.less +4 -0
- package/src/sap/ui/vbm/themes/sap_belize_hcb/VBI.less +96 -0
- package/src/sap/ui/vbm/themes/sap_belize_hcb/library.source.less +4 -1
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.96.
|
|
6
|
+
<version>1.96.4</version>
|
|
7
7
|
|
|
8
8
|
<documentation>SAP UI library: sap.ui.vbm</documentation>
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
24
24
|
* @param {object} [mSettings] initial settings for the new object
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.96.
|
|
26
|
+
* @version 1.96.4
|
|
27
27
|
* @extends sap.ui.core.Element
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
43
43
|
* @param {object} [mSettings] initial settings for the new object
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.96.
|
|
45
|
+
* @version 1.96.4
|
|
46
46
|
* @extends sap.ui.core.Element
|
|
47
47
|
* @constructor
|
|
48
48
|
* @public
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
*
|
|
31
31
|
* @private
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.96.
|
|
33
|
+
* @version 1.96.4
|
|
34
34
|
* @alias sap.ui.vbm.adapter3d.ModelHandler
|
|
35
35
|
*/
|
|
36
36
|
var ModelHandler = BaseObject.extend("sap.ui.vbm.adapter3d.ModelHandler", /** @lends sap.ui.vbm.adapter3d.ModelHandler.prototype */ {
|
|
@@ -378,7 +378,7 @@ sap.ui.define([
|
|
|
378
378
|
*
|
|
379
379
|
* @private
|
|
380
380
|
* @author SAP SE
|
|
381
|
-
* @version 1.96.
|
|
381
|
+
* @version 1.96.4
|
|
382
382
|
* @alias sap.ui.vbm.adapter3d.ObjectFactory
|
|
383
383
|
*/
|
|
384
384
|
var ObjectFactory = BaseObject.extend("sap.ui.vbm.adapter3d.ObjectFactory", /** @lends sap.ui.vbm.adapter3d.ObjectFactory.prototype */ {});
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.96.
|
|
36
|
+
* @version 1.96.4
|
|
37
37
|
* @alias sap.ui.vbm.adapter3d.PolygonHandler
|
|
38
38
|
*/
|
|
39
39
|
var PolygonHandler = BaseObject.extend("sap.ui.vbm.adapter3d.PolygonHandler", /** @lends sap.ui.vbm.adapter3d.PolygonHandler.prototype */ {
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
*
|
|
48
48
|
* @private
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.96.
|
|
50
|
+
* @version 1.96.4
|
|
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 */ {
|
|
@@ -907,6 +907,7 @@ sap.ui.define([
|
|
|
907
907
|
material = material || new THREE.MeshPhongMaterial({
|
|
908
908
|
specular: 0x444444,
|
|
909
909
|
shininess: 0,
|
|
910
|
+
opacity: 0.99,
|
|
910
911
|
transparent: true,
|
|
911
912
|
depthTest: true,
|
|
912
913
|
depthWrite: false,
|
|
@@ -926,6 +927,7 @@ sap.ui.define([
|
|
|
926
927
|
|
|
927
928
|
var geometry = new THREE.DecalGeometry(target, origin, this._decalHelper.rotation, size);
|
|
928
929
|
instance.object3D = new THREE.Mesh(geometry, material);
|
|
930
|
+
instance.object3D.renderOrder = 100;
|
|
929
931
|
instance.object3D.matrixAutoUpdate = false;
|
|
930
932
|
instance.object3D.layers.set(1); // put it to layer #1 to disable hit test
|
|
931
933
|
this._scene.add(instance.object3D);
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
*
|
|
58
58
|
* @private
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.96.
|
|
60
|
+
* @version 1.96.4
|
|
61
61
|
* @alias sap.ui.vbm.adapter3d.VBIJSONParser
|
|
62
62
|
*/
|
|
63
63
|
var VBIJSONParser = BaseObject.extend("sap.ui.vbm.adapter3d.VBIJSONParser", /** @lends sap.ui.vbm.adapter3d.VBIJSONParser.prototype */ {
|
|
@@ -678,18 +678,24 @@ VBI.Scene = function(target) {
|
|
|
678
678
|
}
|
|
679
679
|
// standard case - click on single object
|
|
680
680
|
if (event.hitTests.length > 0) {
|
|
681
|
-
event.hitCached = event.hitTests[0];
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
681
|
+
event.hitCached = event.hitTests[0]; // cache first hit test
|
|
682
|
+
delete event.hitTests; // has to be deleted to avoid collecting hits information again
|
|
683
|
+
// if there is a VO then pass event to it
|
|
684
|
+
if (event.hitCached.m_Vo) {
|
|
685
|
+
return event.hitCached.m_Vo["on" + eventType].call(event.hitCached.m_Vo, event);
|
|
686
|
+
} else {
|
|
687
|
+
delete event.hitCached; // remove it to keep things going "old" way
|
|
688
|
+
}
|
|
689
|
+
} else {
|
|
690
|
+
return false; // not handled
|
|
685
691
|
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
692
|
+
}
|
|
693
|
+
// "old" approach -> process from last to first which corresponds to the rendering order (from topmost to last)
|
|
694
|
+
for (var i = scene.m_VOS.length - 1; i >= 0; --i) {
|
|
695
|
+
if ((func = scene.m_VOS[i]["on" + eventType]) && typeof (func) == 'function') {
|
|
696
|
+
// call the handler with the context set to corresponded visual object
|
|
697
|
+
if (func.call(scene.m_VOS[i], event)) {
|
|
698
|
+
return true; // handled
|
|
693
699
|
}
|
|
694
700
|
}
|
|
695
701
|
}
|
|
@@ -1223,7 +1223,7 @@ VBI.VisualObjects = function() {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
// check for design handle context menu subscription.............//
|
|
1225
1225
|
var action, actions = scene.m_Ctx.m_Actions;
|
|
1226
|
-
if (actions && ocb.m_Design && ocb.m_Handle > -1) {
|
|
1226
|
+
if (actions && ocb.m_Design && (ocb.m_Handle > -1 || ocb.m_Hit === VBI.HTBOX)) {
|
|
1227
1227
|
// the action is raised whenever a design action has stopped..//
|
|
1228
1228
|
// for the instanced type.....................................//
|
|
1229
1229
|
// is it a HandleMoved or a HandleClick action ...............//
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @namespace
|
|
21
21
|
* @name sap.ui.vbm
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.96.
|
|
23
|
+
* @version 1.96.4
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
"sap.ui.vbm.ClusterBase", "sap.ui.vbm.ClusterTree", "sap.ui.vbm.ClusterGrid", "sap.ui.vbm.ClusterDistance", "sap.ui.vbm.Heatmap",
|
|
44
44
|
"sap.ui.vbm.HeatPoint", "sap.ui.vbm.ClusterContainer", "sap.ui.vbm.Adapter", "sap.ui.vbm.Adapter3D"
|
|
45
45
|
],
|
|
46
|
-
version: "1.96.
|
|
46
|
+
version: "1.96.4"
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
sap.ui.loader.config({
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
|
|
2
|
+
.vbi-detail {
|
|
3
|
+
background-color: @sapUiBaseBG;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vbi-detail-closebutton
|
|
7
|
+
{
|
|
8
|
+
background-color: @sapUiBaseBG;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.vbi-detail-content
|
|
12
|
+
{
|
|
13
|
+
background-color: @sapUiBaseBG;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vbi-detail-phone
|
|
17
|
+
{
|
|
18
|
+
background-color: @sapUiBaseBG;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vbi-detail > .vbi-detail-arrow.vbi-detail-left
|
|
22
|
+
{
|
|
23
|
+
border-right-color: @sapUiBaseBG;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vbi-detail > .vbi-detail-header
|
|
27
|
+
{
|
|
28
|
+
font-size: @sapUiFontHeader4Size;
|
|
29
|
+
font-family: @sapUiFontHeaderFamily;
|
|
30
|
+
font-weight: @sapUiFontHeaderWeight;
|
|
31
|
+
color: @sapTextColor;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.vbi-detail-header-phone
|
|
35
|
+
{
|
|
36
|
+
font-family: @sapUiFontHeaderFamily;
|
|
37
|
+
font-weight: @sapUiFontHeaderWeight;
|
|
38
|
+
color: @sapTextColor;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.vbi-legend {
|
|
42
|
+
box-shadow: lighten(@sapUiContentForegroundColor, 20%) 0rem 0rem 0.9rem 0.0625rem;
|
|
43
|
+
font-family: @sapUiFontFamily;
|
|
44
|
+
background-color: @sapUiBaseBG;
|
|
45
|
+
color: @sapTextColor;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vbi-legend > .vbi-legend-header
|
|
49
|
+
{
|
|
50
|
+
font-size: @sapMFontMediumSize;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.vbi-legend-button-col:hover
|
|
54
|
+
{
|
|
55
|
+
background-color: @sapUiHighlight;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.vbi-legend-button-col:active
|
|
59
|
+
{
|
|
60
|
+
background-color: darken(@sapUiHighlight, 20%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.vbi-legend-button-exp:hover
|
|
64
|
+
{
|
|
65
|
+
background-color: @sapUiHighlight;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.vbi-legend-button-exp:active
|
|
69
|
+
{
|
|
70
|
+
background-color: darken(@sapUiHighlight, 20%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.vbi-legend-table
|
|
74
|
+
{
|
|
75
|
+
font-size: @sapMFontSmallSize;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.vbi-legend-table-click
|
|
79
|
+
{
|
|
80
|
+
tr:hover {
|
|
81
|
+
background-color: @sapUiHighlight;
|
|
82
|
+
};
|
|
83
|
+
tr:active {
|
|
84
|
+
background-color: darken(@sapUiHighlight, 20%);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.vbi-legend-content-celltext
|
|
89
|
+
{
|
|
90
|
+
color: @sapUiChartLegendLabelFontColor;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.vbi-legend-content-celldiv-square
|
|
94
|
+
{
|
|
95
|
+
border-color: @sapUiContentForegroundColor;
|
|
96
|
+
}
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@import "../base/library.source.less";
|
|
7
7
|
@import "../../../../../sap/ui/core/themes/sap_belize_hcb/base.less";
|
|
8
|
-
@import "../../../../../sap/ui/core/themes/sap_belize_hcb/global.less";
|
|
8
|
+
@import "../../../../../sap/ui/core/themes/sap_belize_hcb/global.less";
|
|
9
|
+
|
|
10
|
+
@import "AnalyticMap.less";
|
|
11
|
+
@import "VBI.less";
|