]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
Toolkit: remove pie chart fix
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 26 May 2021 08:58:37 +0000 (10:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 May 2021 11:37:36 +0000 (13:37 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Toolkit.js

index ba06a333f2e257760f6cd28ad536732d736e2a34..b38e5041ddf5bd6c857755a674804b7f955c70f7 100644 (file)
@@ -184,46 +184,6 @@ Ext.apply(Ext.form.field.VTypes, {
     },
 });
 
-Ext.define('EXTJS_18900.Pie', {
-    override: 'Ext.chart.series.Pie',
-
-    // from 6.0.2
-    betweenAngle: function(x, a, b) {
-        let pp = Math.PI * 2,
-            offset = this.rotationOffset;
-
-        if (a === b) {
-            return false;
-        }
-
-        if (!this.getClockwise()) {
-            x *= -1;
-            a *= -1;
-            b *= -1;
-            a -= offset;
-            b -= offset;
-        } else {
-            a += offset;
-            b += offset;
-        }
-
-        x -= a;
-        b -= a;
-
-        // Normalize, so that both x and b are in the [0,360) interval.
-        x %= pp;
-        b %= pp;
-        x += pp;
-        b += pp;
-        x %= pp;
-        b %= pp;
-
-        // Because 360 * n angles will be normalized to 0,
-        // we need to treat b === 0 as a special case.
-        return x < b || b === 0;
-    },
-});
-
 // we always want the number in x.y format and never in, e.g., x,y
 Ext.define('PVE.form.field.Number', {
     override: 'Ext.form.field.Number',