@progress/kendo-charts 2.3.0-dev.202404011240 → 2.3.0-dev.202404030928
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/common/observable.js +3 -1
- package/dist/es/common.js +1 -0
- package/dist/es/map/attribution.js +1 -2
- package/dist/es/map/map.js +1 -4
- package/dist/es/map/navigator.js +1 -4
- package/dist/es/map/scroller/draggable.js +1 -4
- package/dist/es/map/scroller/scroller.js +1 -4
- package/dist/es/map/scroller/user-events.js +1 -4
- package/dist/es/map/zoom.js +1 -4
- package/dist/es/sankey/legend.js +5 -1
- package/dist/es/sankey/sankey.js +6 -4
- package/dist/es2015/common/observable.js +1 -1
- package/dist/es2015/common.js +1 -0
- package/dist/es2015/map/attribution.js +1 -2
- package/dist/es2015/map/map.js +1 -4
- package/dist/es2015/map/navigator.js +1 -4
- package/dist/es2015/map/scroller/draggable.js +1 -4
- package/dist/es2015/map/scroller/scroller.js +1 -4
- package/dist/es2015/map/scroller/user-events.js +1 -4
- package/dist/es2015/map/zoom.js +1 -4
- package/dist/es2015/sankey/legend.js +5 -2
- package/dist/es2015/sankey/sankey.js +6 -4
- package/dist/npm/main.js +248 -239
- package/dist/npm/sankey.d.ts +121 -12
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var isDefaultPrevented = function() {
|
|
|
13
13
|
return this._defaultPrevented === true;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
var Observable = (function (Class) {
|
|
17
17
|
function Observable() {
|
|
18
18
|
Class.call(this);
|
|
19
19
|
this._events = {};
|
|
@@ -173,3 +173,5 @@ export var Observable = (function (Class) {
|
|
|
173
173
|
|
|
174
174
|
return Observable;
|
|
175
175
|
}(Class));
|
|
176
|
+
|
|
177
|
+
export default Observable;
|
package/dist/es/common.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addClass,
|
|
3
3
|
defined,
|
|
4
|
+
Observable,
|
|
4
5
|
valueOrDefault,
|
|
5
6
|
deepExtend,
|
|
6
7
|
setDefaultOptions
|
|
@@ -11,8 +12,6 @@ import {
|
|
|
11
12
|
removeChildren
|
|
12
13
|
} from './utils';
|
|
13
14
|
|
|
14
|
-
import { Observable } from '../common/observable';
|
|
15
|
-
|
|
16
15
|
export var Attribution = (function (Observable) {
|
|
17
16
|
function Attribution(element, options) {
|
|
18
17
|
Observable.call(this);
|
package/dist/es/map/map.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
setDefaultOptions,
|
|
9
9
|
valueOrDefault,
|
|
10
10
|
defined,
|
|
11
|
+
Observable,
|
|
11
12
|
mousewheelDelta,
|
|
12
13
|
limitValue,
|
|
13
14
|
deepExtend,
|
|
@@ -74,10 +75,6 @@ import {
|
|
|
74
75
|
Scroller
|
|
75
76
|
} from './scroller/scroller';
|
|
76
77
|
|
|
77
|
-
import {
|
|
78
|
-
Observable
|
|
79
|
-
} from '../common/observable';
|
|
80
|
-
|
|
81
78
|
import MapService from './../services/map-service';
|
|
82
79
|
|
|
83
80
|
import { CENTER_CHANGE, INIT, ZOOM_CHANGE } from './constants';
|
package/dist/es/map/navigator.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Class,
|
|
5
5
|
deepExtend,
|
|
6
6
|
addClass,
|
|
7
|
+
Observable,
|
|
7
8
|
isFunction,
|
|
8
9
|
setDefaultOptions
|
|
9
10
|
} from '../../common';
|
|
@@ -37,10 +38,6 @@ import {
|
|
|
37
38
|
UserEvents
|
|
38
39
|
} from './user-events';
|
|
39
40
|
|
|
40
|
-
import {
|
|
41
|
-
Observable
|
|
42
|
-
} from '../../common/observable';
|
|
43
|
-
|
|
44
41
|
var
|
|
45
42
|
extend = Object.assign,
|
|
46
43
|
abs = Math.abs,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Class,
|
|
3
|
+
Observable,
|
|
3
4
|
grep
|
|
4
5
|
} from '../../common';
|
|
5
6
|
|
|
@@ -14,10 +15,6 @@ import {
|
|
|
14
15
|
getSupportedFeatures
|
|
15
16
|
} from '../utils';
|
|
16
17
|
|
|
17
|
-
import {
|
|
18
|
-
Observable
|
|
19
|
-
} from '../../common/observable';
|
|
20
|
-
|
|
21
18
|
var extend = Object.assign;
|
|
22
19
|
|
|
23
20
|
var preventDefault = function (e) {
|
package/dist/es/map/zoom.js
CHANGED
package/dist/es/sankey/legend.js
CHANGED
|
@@ -26,6 +26,7 @@ export var Legend = (function (SankeyElement) {
|
|
|
26
26
|
var drawingRect = options.drawingRect;
|
|
27
27
|
var nodes = options.nodes; if ( nodes === void 0 ) nodes = [];
|
|
28
28
|
var colors = options.colors; if ( colors === void 0 ) colors = [];
|
|
29
|
+
var item = options.item;
|
|
29
30
|
|
|
30
31
|
if (options.visible === false || !nodes.length) {
|
|
31
32
|
return null;
|
|
@@ -33,7 +34,10 @@ export var Legend = (function (SankeyElement) {
|
|
|
33
34
|
|
|
34
35
|
var data = nodes.map(function (node, index) { return ({
|
|
35
36
|
text: (node.label && node.label.text) || '',
|
|
36
|
-
area: {
|
|
37
|
+
area: {
|
|
38
|
+
background: item.areaBackground !== undefined ? item.areaBackground : nodeColor(node, colors, index),
|
|
39
|
+
opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
|
|
40
|
+
},
|
|
37
41
|
node: node,
|
|
38
42
|
}); });
|
|
39
43
|
|
package/dist/es/sankey/sankey.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { geometry, drawing } from '@progress/kendo-drawing';
|
|
2
|
-
import { deepExtend, addClass, setDefaultOptions } from '../common';
|
|
2
|
+
import { deepExtend, addClass, Observable, setDefaultOptions } from '../common';
|
|
3
3
|
import { calculateSankey, crossesValue } from './calculation';
|
|
4
4
|
import { Node, resolveNodeOptions } from './node';
|
|
5
5
|
import { Link, resolveLinkOptions } from './link';
|
|
6
6
|
import { Label, resolveLabelOptions } from './label';
|
|
7
7
|
import { Title } from './title';
|
|
8
8
|
import { BOTTOM, LEFT, RIGHT, TOP } from '../common/constants';
|
|
9
|
-
import Box from '../core
|
|
10
|
-
import rectToBox from '../core/utils/rect-to-box';
|
|
11
|
-
import { Observable } from '../common/observable';
|
|
9
|
+
import { Box, rectToBox } from '../core';
|
|
12
10
|
import { Legend } from './legend';
|
|
13
11
|
import { defined } from '../drawing-utils';
|
|
14
12
|
|
|
@@ -53,6 +51,10 @@ export var Sankey = (function (Observable) {
|
|
|
53
51
|
if (title.text) {
|
|
54
52
|
element.setAttribute('aria-label', title.text);
|
|
55
53
|
}
|
|
54
|
+
|
|
55
|
+
if (title.description) {
|
|
56
|
+
element.setAttribute("aria-roledescription", title.description);
|
|
57
|
+
}
|
|
56
58
|
};
|
|
57
59
|
|
|
58
60
|
Sankey.prototype._initSurface = function _initSurface () {
|
package/dist/es2015/common.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addClass,
|
|
3
3
|
defined,
|
|
4
|
+
Observable,
|
|
4
5
|
valueOrDefault,
|
|
5
6
|
deepExtend,
|
|
6
7
|
setDefaultOptions
|
|
@@ -11,8 +12,6 @@ import {
|
|
|
11
12
|
removeChildren
|
|
12
13
|
} from './utils';
|
|
13
14
|
|
|
14
|
-
import { Observable } from '../common/observable';
|
|
15
|
-
|
|
16
15
|
export class Attribution extends Observable {
|
|
17
16
|
constructor(element, options) {
|
|
18
17
|
super();
|
package/dist/es2015/map/map.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
setDefaultOptions,
|
|
9
9
|
valueOrDefault,
|
|
10
10
|
defined,
|
|
11
|
+
Observable,
|
|
11
12
|
mousewheelDelta,
|
|
12
13
|
limitValue,
|
|
13
14
|
deepExtend,
|
|
@@ -74,10 +75,6 @@ import {
|
|
|
74
75
|
Scroller
|
|
75
76
|
} from './scroller/scroller';
|
|
76
77
|
|
|
77
|
-
import {
|
|
78
|
-
Observable
|
|
79
|
-
} from '../common/observable';
|
|
80
|
-
|
|
81
78
|
import MapService from './../services/map-service';
|
|
82
79
|
|
|
83
80
|
import { CENTER_CHANGE, INIT, ZOOM_CHANGE } from './constants';
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Class,
|
|
5
5
|
deepExtend,
|
|
6
6
|
addClass,
|
|
7
|
+
Observable,
|
|
7
8
|
isFunction,
|
|
8
9
|
setDefaultOptions
|
|
9
10
|
} from '../../common';
|
|
@@ -37,10 +38,6 @@ import {
|
|
|
37
38
|
UserEvents
|
|
38
39
|
} from './user-events';
|
|
39
40
|
|
|
40
|
-
import {
|
|
41
|
-
Observable
|
|
42
|
-
} from '../../common/observable';
|
|
43
|
-
|
|
44
41
|
let
|
|
45
42
|
extend = Object.assign,
|
|
46
43
|
abs = Math.abs,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Class,
|
|
3
|
+
Observable,
|
|
3
4
|
grep
|
|
4
5
|
} from '../../common';
|
|
5
6
|
|
|
@@ -14,10 +15,6 @@ import {
|
|
|
14
15
|
getSupportedFeatures
|
|
15
16
|
} from '../utils';
|
|
16
17
|
|
|
17
|
-
import {
|
|
18
|
-
Observable
|
|
19
|
-
} from '../../common/observable';
|
|
20
|
-
|
|
21
18
|
const extend = Object.assign;
|
|
22
19
|
|
|
23
20
|
const preventDefault = (e) => {
|
package/dist/es2015/map/zoom.js
CHANGED
|
@@ -15,7 +15,7 @@ const sortData = (a, b) => {
|
|
|
15
15
|
export class Legend extends SankeyElement {
|
|
16
16
|
getElement() {
|
|
17
17
|
const options = this.options;
|
|
18
|
-
const { drawingRect, nodes = [], colors = [] } = options;
|
|
18
|
+
const { drawingRect, nodes = [], colors = [], item } = options;
|
|
19
19
|
|
|
20
20
|
if (options.visible === false || !nodes.length) {
|
|
21
21
|
return null;
|
|
@@ -23,7 +23,10 @@ export class Legend extends SankeyElement {
|
|
|
23
23
|
|
|
24
24
|
const data = nodes.map((node, index) => ({
|
|
25
25
|
text: (node.label && node.label.text) || '',
|
|
26
|
-
area: {
|
|
26
|
+
area: {
|
|
27
|
+
background: item.areaBackground !== undefined ? item.areaBackground : nodeColor(node, colors, index),
|
|
28
|
+
opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
|
|
29
|
+
},
|
|
27
30
|
node: node,
|
|
28
31
|
}));
|
|
29
32
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { geometry, drawing } from '@progress/kendo-drawing';
|
|
2
|
-
import { deepExtend, addClass, setDefaultOptions } from '../common';
|
|
2
|
+
import { deepExtend, addClass, Observable, setDefaultOptions } from '../common';
|
|
3
3
|
import { calculateSankey, crossesValue } from './calculation';
|
|
4
4
|
import { Node, resolveNodeOptions } from './node';
|
|
5
5
|
import { Link, resolveLinkOptions } from './link';
|
|
6
6
|
import { Label, resolveLabelOptions } from './label';
|
|
7
7
|
import { Title } from './title';
|
|
8
8
|
import { BOTTOM, LEFT, RIGHT, TOP } from '../common/constants';
|
|
9
|
-
import Box from '../core
|
|
10
|
-
import rectToBox from '../core/utils/rect-to-box';
|
|
11
|
-
import { Observable } from '../common/observable';
|
|
9
|
+
import { Box, rectToBox } from '../core';
|
|
12
10
|
import { Legend } from './legend';
|
|
13
11
|
import { defined } from '../drawing-utils';
|
|
14
12
|
|
|
@@ -48,6 +46,10 @@ export class Sankey extends Observable {
|
|
|
48
46
|
if (title.text) {
|
|
49
47
|
element.setAttribute('aria-label', title.text);
|
|
50
48
|
}
|
|
49
|
+
|
|
50
|
+
if (title.description) {
|
|
51
|
+
element.setAttribute("aria-roledescription", title.description);
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
_initSurface() {
|