Skip to content
Snippets Groups Projects

Issue #3455844 by renatog: Smart Easing Threshold and Smart Easing Amount...

Merged renatog requested to merge issue/ept_counter-3455844:3455844-smart-easing-threshold into 1.4.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -116,14 +116,14 @@ class EptSettingsCounterWidget extends EptSettingsDefaultWidget {
@@ -116,14 +116,14 @@ class EptSettingsCounterWidget extends EptSettingsDefaultWidget {
$element['ept_settings']['smartEasingThreshold'] = [
$element['ept_settings']['smartEasingThreshold'] = [
'#title' => $this->t('Smart Easing Threshold'),
'#title' => $this->t('Smart Easing Threshold'),
'#type' => 'textfield',
'#type' => 'number',
'#default_value' => $items[$delta]->ept_settings['smartEasingThreshold'] ?? 999,
'#default_value' => $items[$delta]->ept_settings['smartEasingThreshold'] ?? 999,
'#description' => $this->t('Smooth easing for large numbers above this if useEasing'),
'#description' => $this->t('Smooth easing for large numbers above this if useEasing'),
];
];
$element['ept_settings']['smartEasingAmount'] = [
$element['ept_settings']['smartEasingAmount'] = [
'#title' => $this->t('Smart Easing Amount'),
'#title' => $this->t('Smart Easing Amount'),
'#type' => 'textfield',
'#type' => 'number',
'#default_value' => $items[$delta]->ept_settings['smartEasingAmount'] ?? 333,
'#default_value' => $items[$delta]->ept_settings['smartEasingAmount'] ?? 333,
'#description' => $this->t('Amount to be eased for numbers above threshold'),
'#description' => $this->t('Amount to be eased for numbers above threshold'),
];
];
Loading