@progress/kendo-charts 1.23.0-dev.202201170823 → 1.23.0-dev.202202150641

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.
Files changed (33) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/barcode/barcode.js +8 -7
  4. package/dist/es/barcode/surface-size.js +19 -0
  5. package/dist/es/chart/heatmap-chart/color-scale.js +1 -1
  6. package/dist/es/chart/heatmap-chart/heatmap-chart.js +1 -1
  7. package/dist/es/core/numeric-axis.js +2 -1
  8. package/dist/es/map/attribution.js +7 -6
  9. package/dist/es/map/layers/marker.js +0 -1
  10. package/dist/es/map/layers/shape.js +0 -1
  11. package/dist/es/map/layers/tile.js +13 -3
  12. package/dist/es/map/map.js +38 -22
  13. package/dist/es/map/navigator.js +3 -2
  14. package/dist/es/map/scroller/observable.js +24 -0
  15. package/dist/es/map/scroller/user-events.js +1 -0
  16. package/dist/es/qrcode/qrcode.js +5 -1
  17. package/dist/es2015/barcode/barcode.js +8 -7
  18. package/dist/es2015/barcode/surface-size.js +19 -0
  19. package/dist/es2015/chart/heatmap-chart/color-scale.js +1 -1
  20. package/dist/es2015/chart/heatmap-chart/heatmap-chart.js +1 -1
  21. package/dist/es2015/core/numeric-axis.js +2 -1
  22. package/dist/es2015/map/attribution.js +3 -2
  23. package/dist/es2015/map/layers/marker.js +0 -1
  24. package/dist/es2015/map/layers/shape.js +0 -1
  25. package/dist/es2015/map/layers/tile.js +13 -3
  26. package/dist/es2015/map/map.js +33 -23
  27. package/dist/es2015/map/navigator.js +3 -2
  28. package/dist/es2015/map/scroller/observable.js +22 -0
  29. package/dist/es2015/map/scroller/user-events.js +1 -0
  30. package/dist/es2015/qrcode/qrcode.js +5 -1
  31. package/dist/npm/main.js +253 -182
  32. package/dist/systemjs/kendo-charts.js +1 -1
  33. package/package.json +2 -2
@@ -19,6 +19,10 @@ export class Observable extends Class {
19
19
  this._events = {};
20
20
  }
21
21
 
22
+ destroy() {
23
+ this.unbind();
24
+ }
25
+
22
26
  bind(event, handlers, one) {
23
27
  let that = this,
24
28
  idx,
@@ -140,4 +144,22 @@ export class Observable extends Class {
140
144
 
141
145
  return that;
142
146
  }
147
+
148
+ _setEvents(options) {
149
+ const length = (this.events || []).length;
150
+
151
+ for (let idx = 0; idx < length; idx ++) {
152
+ let e = this.events[idx];
153
+
154
+ if (this.options[e] && options[e]) {
155
+ this.unbind(e, this.options[e]);
156
+
157
+ if (this._events && this._events[e]) {
158
+ delete this._events[e];
159
+ }
160
+ }
161
+ }
162
+
163
+ this.bind(this.events, options);
164
+ }
143
165
  }
@@ -346,6 +346,7 @@ export class UserEvents extends Observable {
346
346
  /* eslint-disable no-param-reassign */
347
347
  options = options || {};
348
348
  /* eslint-enable no-param-reassign */
349
+ this.options = options;
349
350
 
350
351
  filter = that.filter = options.filter;
351
352
  that.threshold = options.threshold || DEFAULT_THRESHOLD;
@@ -15,6 +15,8 @@ import { Box } from '../core';
15
15
  import { encodeData } from './encodings/encoding';
16
16
  import { extend } from './utils';
17
17
 
18
+ import { surfaceSize } from '../barcode/surface-size';
19
+
18
20
  const round = Math.round;
19
21
  const crossPattern = [[0, 1], [1, 1], [1, 2], [2, 2], [2, 1], [3, 1], [3, 0], [2, 0], [2, -1], [1, -1], [1, 0]];
20
22
  const squarePattern = [[0, 1], [1, 1], [1, 0]];
@@ -245,7 +247,8 @@ class QRCode extends Class {
245
247
  size = parseInt(this.options.size, 10);
246
248
  } else {
247
249
  const element = this.element;
248
- const min = Math.min(element.clientWidth, element.clientHeight);
250
+ const elementSize = surfaceSize(element, this.options.renderAs);
251
+ const min = Math.min(elementSize.width, elementSize.height);
249
252
 
250
253
  if (min > 0) {
251
254
  size = min;
@@ -336,6 +339,7 @@ class QRCode extends Class {
336
339
  this._value = String(this.options.value);
337
340
  }
338
341
 
342
+ this._initSurface();
339
343
  this.redraw();
340
344
  }
341
345