@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.
- package/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/barcode/barcode.js +0 -1
- package/dist/es/common/mousewheel-delta.js +12 -0
- package/dist/es/qrcode/qrcode.js +0 -1
- package/dist/es2015/barcode/barcode.js +0 -1
- package/dist/es2015/common/mousewheel-delta.js +12 -0
- package/dist/es2015/qrcode/qrcode.js +0 -1
- package/dist/npm/barcode.d.ts +1 -5
- package/dist/npm/main.js +13 -5
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +3 -3
|
@@ -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
|
}
|
package/dist/es/qrcode/qrcode.js
CHANGED
|
@@ -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
|
}
|
package/dist/npm/barcode.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|