public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit] panel/RRDChart: fix animation settings for highlight/marker
Date: Thu, 27 May 2021 15:15:58 +0200	[thread overview]
Message-ID: <20210527131558.13968-1-d.csapak@proxmox.com> (raw)

in extjs 7.0, the marker does not have the 'fx' property anymore,
but the now documented 'animation' property does not work as it seems.

instead set the animation settings directly on the chart. The only
downside is that this is now for *all* animations, not only the
fade in of the highlight. (the default duration is 500ms)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/panel/RRDChart.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/panel/RRDChart.js b/src/panel/RRDChart.js
index 859cb39..517c45d 100644
--- a/src/panel/RRDChart.js
+++ b/src/panel/RRDChart.js
@@ -246,10 +246,6 @@ Ext.define('Proxmox.widget.RRDChart', {
 		    marker: {
 			opacity: 0,
 			scaling: 0.01,
-			fx: {
-			    duration: 200,
-			    easing: 'easeOut',
-			},
 		    },
 		    highlightCfg: {
 			opacity: 1,
@@ -266,7 +262,10 @@ Ext.define('Proxmox.widget.RRDChart', {
 
 	// enable animation after the store is loaded
 	me.store.onAfter('load', function() {
-	    me.setAnimation(true);
+	    me.setAnimation({
+		duration: 200,
+		easing: 'easeIn',
+	    });
 	}, this, { single: true });
     },
 });
-- 
2.20.1





             reply	other threads:[~2021-05-27 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 13:15 Dominik Csapak [this message]
2021-05-28  8:43 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210527131558.13968-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal