@progress/kendo-charts 2.8.1-develop.3 → 2.8.1-develop.5
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/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/core/date-category-axis.js +4 -0
- package/dist/es/map/map.js +5 -5
- package/dist/es/map/utils.js +12 -7
- package/dist/es2015/core/date-category-axis.js +4 -0
- package/dist/es2015/map/map.js +5 -5
- package/dist/es2015/map/utils.js +12 -7
- package/dist/npm/main.js +19 -12
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -610,6 +610,10 @@ class DateCategoryAxis extends CategoryAxis {
|
|
|
610
610
|
|
|
611
611
|
if (range) {
|
|
612
612
|
if (range.min < totalLimits.min) {
|
|
613
|
+
if (scale < 0 && this.options.justified) {
|
|
614
|
+
const diff = dateDiff(totalLimits.min, range.min);
|
|
615
|
+
range.max = addTicks(range.max, diff);
|
|
616
|
+
}
|
|
613
617
|
range.min = totalLimits.min;
|
|
614
618
|
}
|
|
615
619
|
if (range.max > totalLimits.max) {
|
package/dist/es/map/map.js
CHANGED
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
proxy,
|
|
69
69
|
setDefaultEvents,
|
|
70
70
|
convertToHtml,
|
|
71
|
-
|
|
71
|
+
toPositionClass
|
|
72
72
|
} from './utils';
|
|
73
73
|
|
|
74
74
|
import {
|
|
@@ -500,13 +500,13 @@ class Map extends Observable {
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
_createControlElement(options, defaultPosition) {
|
|
503
|
-
let
|
|
504
|
-
let
|
|
505
|
-
let wrap = this.element.querySelector('.k-map-controls' +
|
|
503
|
+
let position = options.position || defaultPosition;
|
|
504
|
+
let positionSelector = '.' + toPositionClass(position).replace(' ', '.');
|
|
505
|
+
let wrap = this.element.querySelector('.k-map-controls' + positionSelector) || [];
|
|
506
506
|
|
|
507
507
|
if (wrap.length === 0) {
|
|
508
508
|
let div = document.createElement("div");
|
|
509
|
-
addClass(div, 'k-map-controls ' +
|
|
509
|
+
addClass(div, 'k-map-controls ' + toPositionClass(position));
|
|
510
510
|
wrap = div;
|
|
511
511
|
this.element.appendChild(wrap);
|
|
512
512
|
}
|
package/dist/es/map/utils.js
CHANGED
|
@@ -97,15 +97,20 @@ export const wheelDeltaY = (e) => {
|
|
|
97
97
|
return delta;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
export const
|
|
100
|
+
export const toPositionClass = (position) => {
|
|
101
101
|
let result = [];
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
switch (position) {
|
|
104
|
+
case "topLeft":
|
|
105
|
+
return "k-top-start";
|
|
106
|
+
case "topRight":
|
|
107
|
+
return "k-top-end";
|
|
108
|
+
case "bottomLeft":
|
|
109
|
+
return "k-bottom-start";
|
|
110
|
+
case "bottomRight":
|
|
111
|
+
return "k-bottom-end";
|
|
112
|
+
default:
|
|
113
|
+
break;
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
return result.join(" ");
|
|
@@ -610,6 +610,10 @@ class DateCategoryAxis extends CategoryAxis {
|
|
|
610
610
|
|
|
611
611
|
if (range) {
|
|
612
612
|
if (range.min < totalLimits.min) {
|
|
613
|
+
if (scale < 0 && this.options.justified) {
|
|
614
|
+
const diff = dateDiff(totalLimits.min, range.min);
|
|
615
|
+
range.max = addTicks(range.max, diff);
|
|
616
|
+
}
|
|
613
617
|
range.min = totalLimits.min;
|
|
614
618
|
}
|
|
615
619
|
if (range.max > totalLimits.max) {
|
package/dist/es2015/map/map.js
CHANGED
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
proxy,
|
|
69
69
|
setDefaultEvents,
|
|
70
70
|
convertToHtml,
|
|
71
|
-
|
|
71
|
+
toPositionClass
|
|
72
72
|
} from './utils';
|
|
73
73
|
|
|
74
74
|
import {
|
|
@@ -500,13 +500,13 @@ class Map extends Observable {
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
_createControlElement(options, defaultPosition) {
|
|
503
|
-
let
|
|
504
|
-
let
|
|
505
|
-
let wrap = this.element.querySelector('.k-map-controls' +
|
|
503
|
+
let position = options.position || defaultPosition;
|
|
504
|
+
let positionSelector = '.' + toPositionClass(position).replace(' ', '.');
|
|
505
|
+
let wrap = this.element.querySelector('.k-map-controls' + positionSelector) || [];
|
|
506
506
|
|
|
507
507
|
if (wrap.length === 0) {
|
|
508
508
|
let div = document.createElement("div");
|
|
509
|
-
addClass(div, 'k-map-controls ' +
|
|
509
|
+
addClass(div, 'k-map-controls ' + toPositionClass(position));
|
|
510
510
|
wrap = div;
|
|
511
511
|
this.element.appendChild(wrap);
|
|
512
512
|
}
|
package/dist/es2015/map/utils.js
CHANGED
|
@@ -97,15 +97,20 @@ export const wheelDeltaY = (e) => {
|
|
|
97
97
|
return delta;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
export const
|
|
100
|
+
export const toPositionClass = (position) => {
|
|
101
101
|
let result = [];
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
switch (position) {
|
|
104
|
+
case "topLeft":
|
|
105
|
+
return "k-top-start";
|
|
106
|
+
case "topRight":
|
|
107
|
+
return "k-top-end";
|
|
108
|
+
case "bottomLeft":
|
|
109
|
+
return "k-bottom-start";
|
|
110
|
+
case "bottomRight":
|
|
111
|
+
return "k-bottom-end";
|
|
112
|
+
default:
|
|
113
|
+
break;
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
return result.join(" ");
|