@progress/kendo-charts 1.20.0-dev.202111250926 → 1.20.1

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.
@@ -49,7 +49,6 @@ var Barcode = (function (Class) {
49
49
 
50
50
  Barcode.prototype._initElement = function _initElement () {
51
51
  addClass(this.element, "k-barcode");
52
- this.element.style.display = "block";
53
52
  };
54
53
 
55
54
  Barcode.prototype._initSurface = function _initSurface () {
@@ -1,8 +1,20 @@
1
+ import { support } from '@progress/kendo-drawing';
2
+
3
+ var browser = support.browser || {};
4
+
1
5
  export default function mousewheelDelta(e) {
2
6
  var delta = 0;
3
7
 
4
8
  if (e.wheelDelta) {
5
9
  delta = -e.wheelDelta / 120;
10
+
11
+ if (browser.webkit) {
12
+ // Webkit browsers scale the delta by twice the device resolution.
13
+ // Possibly related to https://bugs.webkit.org/show_bug.cgi?id=196339
14
+ //
15
+ // Low device resolutions (e.g. zoom-out to 30%) also behave strangely.
16
+ delta = delta / (2 * Math.max(window.devicePixelRatio, 0.625));
17
+ }
6
18
  } else if (e.detail) {
7
19
  delta = e.detail / 3;
8
20
  }
@@ -52,7 +52,6 @@ var QRCode = (function (Class) {
52
52
 
53
53
  QRCode.prototype._initElement = function _initElement () {
54
54
  addClass(this.element, "k-qrcode");
55
- this.element.style.display = "block";
56
55
  };
57
56
 
58
57
  QRCode.prototype._initSurface = function _initSurface () {
@@ -45,7 +45,6 @@ class Barcode extends Class {
45
45
 
46
46
  _initElement() {
47
47
  addClass(this.element, "k-barcode");
48
- this.element.style.display = "block";
49
48
  }
50
49
 
51
50
  _initSurface() {
@@ -1,8 +1,20 @@
1
+ import { support } from '@progress/kendo-drawing';
2
+
3
+ const browser = support.browser || {};
4
+
1
5
  export default function mousewheelDelta(e) {
2
6
  let delta = 0;
3
7
 
4
8
  if (e.wheelDelta) {
5
9
  delta = -e.wheelDelta / 120;
10
+
11
+ if (browser.webkit) {
12
+ // Webkit browsers scale the delta by twice the device resolution.
13
+ // Possibly related to https://bugs.webkit.org/show_bug.cgi?id=196339
14
+ //
15
+ // Low device resolutions (e.g. zoom-out to 30%) also behave strangely.
16
+ delta = delta / (2 * Math.max(window.devicePixelRatio, 0.625));
17
+ }
6
18
  } else if (e.detail) {
7
19
  delta = e.detail / 3;
8
20
  }
@@ -48,7 +48,6 @@ class QRCode extends Class {
48
48
 
49
49
  _initElement() {
50
50
  addClass(this.element, "k-qrcode");
51
- this.element.style.display = "block";
52
51
  }
53
52
 
54
53
  _initSurface() {
@@ -79,8 +79,6 @@ export interface BarcodeOptions {
79
79
 
80
80
  /**
81
81
  * The height of the Barcode in pixels.
82
- *
83
- * @default 100
84
82
  */
85
83
  height?: number;
86
84
 
@@ -98,7 +96,7 @@ export interface BarcodeOptions {
98
96
  * * "canvas" - renders the component as a Canvas element.
99
97
  * * "svg" - renders the component as an inline SVG document.
100
98
  *
101
- * @default "svg"
99
+ * @default "svg"
102
100
  */
103
101
  renderAs?: RenderMode;
104
102
 
@@ -121,8 +119,6 @@ export interface BarcodeOptions {
121
119
 
122
120
  /**
123
121
  * The width of the Barcode in pixels.
124
- *
125
- * @default 300
126
122
  */
127
123
  width?: number;
128
124
  }