From 98edbb78e0127062c7cc4320c7073bb8883c3923 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 27 Dec 2023 10:14:23 -0500
Subject: restored reveal animations.

---
 src/client/views/nodes/trails/PresBox.tsx | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

(limited to 'src/client/views/nodes/trails/PresBox.tsx')

diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx
index 17993d88e..e213b2fc5 100644
--- a/src/client/views/nodes/trails/PresBox.tsx
+++ b/src/client/views/nodes/trails/PresBox.tsx
@@ -1671,12 +1671,9 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
                                 className={'presBox-dropdownOptions'}
                                 style={{ display: this._openBulletEffectDropdown ? 'grid' : 'none', color: SettingsManager.userColor, background: SettingsManager.userBackgroundColor }}
                                 onPointerDown={e => e.stopPropagation()}>
-                                {bulletEffect(PresEffect.None)}
-                                {bulletEffect(PresEffect.Fade)}
-                                {bulletEffect(PresEffect.Flip)}
-                                {bulletEffect(PresEffect.Rotate)}
-                                {bulletEffect(PresEffect.Bounce)}
-                                {bulletEffect(PresEffect.Roll)}
+                                {Object.values(PresEffect)
+                                    .filter(v => isNaN(Number(v)))
+                                    .map(effect => bulletEffect(effect))}
                             </div>
                         </div>
                     </div>
@@ -1840,12 +1837,9 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
                                     display: this._openEffectDropdown ? 'grid' : 'none',
                                 }}
                                 onPointerDown={e => e.stopPropagation()}>
-                                {preseEffect(PresEffect.None)}
-                                {preseEffect(PresEffect.Fade)}
-                                {preseEffect(PresEffect.Flip)}
-                                {preseEffect(PresEffect.Rotate)}
-                                {preseEffect(PresEffect.Bounce)}
-                                {preseEffect(PresEffect.Roll)}
+                                {Object.values(PresEffect)
+                                    .filter(v => isNaN(Number(v)))
+                                    .map(effect => preseEffect(effect))}
                             </div>
                         </div>
                         <div className="ribbon-doubleButton" style={{ display: effect === PresEffectDirection.None ? 'none' : 'inline-flex' }}>
-- 
cgit v1.2.3-70-g09d2

