From 255495874b3fd2644cf05f330d15194318adcc55 Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Tue, 14 May 2024 12:19:29 -0400 Subject: bug fixing --- .../views/nodes/trails/CubicBezierEditor.tsx | 1 - src/client/views/nodes/trails/PresBox.tsx | 32 +++++++++++----------- src/client/views/nodes/trails/PresElementBox.tsx | 3 +- 3 files changed, 17 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/trails/CubicBezierEditor.tsx b/src/client/views/nodes/trails/CubicBezierEditor.tsx index db3eb2e26..e12fca20c 100644 --- a/src/client/views/nodes/trails/CubicBezierEditor.tsx +++ b/src/client/views/nodes/trails/CubicBezierEditor.tsx @@ -8,7 +8,6 @@ type Props = { }; const ANIMATION_DURATION = 750; -// const ANIMATION_TIMING_FUNC = "cubic-bezier(.42,.97,.52,1.49)"; const ANIMATION_TIMING_FUNC = 'cubic-bezier(0.3, .2, .2, 1.4)'; const CONTAINER_WIDTH = 200; const EDITOR_WIDTH = 100; diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index 248de5f4b..4890c115b 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -1848,19 +1848,19 @@ export class PresBox extends ViewBoxBaseComponent() { {[DocumentType.AUDIO, DocumentType.VID].includes(targetType as any as DocumentType) ? null : ( <> -
+
Slide Duration
e.stopPropagation()} onChange={e => this.updateDurationTime(e.target.value)} /> s
-
+ {/*
this.updateDurationTime(String(duration), 1000)}>
this.updateDurationTime(String(duration), -1000)}>
-
+
*/}
{PresBox.inputter('0.1', '0.1', '20', duration, targetType !== DocumentType.AUDIO, this.updateDurationTime)}
@@ -2068,7 +2068,6 @@ export class PresBox extends ViewBoxBaseComponent() { />
- {/* Movement */}
() {
Zoom (% screen filled)
- this.updateZoom(e.target.value)} />% + this.updateZoom(e.target.value)} />%
{/*
this.updateZoom(String(zoom), 0.1)}> @@ -2161,26 +2160,28 @@ export class PresBox extends ViewBoxBaseComponent() { {`${this.showBezierEditor ? 'Hide' : 'Show'} Timing Editor`}
- {this.showBezierEditor && ( - <> -

- Custom Timing Function -

- - - )}
- +
+ {this.showBezierEditor && ( + <> +

+ Custom Timing Function +

+ + + )} +
{/* This chatbox is for getting slide effect transition suggestions from gpt and visualizing them */}
+ Effects
(this._inputref2 = r)} minRows={1} - placeholder="Get transition suggestions..." + placeholder="Get effect suggestions..." className="pres-chatbox" autoFocus={true} value={this.animationChat} @@ -2217,7 +2218,6 @@ export class PresBox extends ViewBoxBaseComponent() { this._openBulletEffectDropdown = false; })}>
- Effects
{/* Chat for idea generation */} diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index 449b8e07f..268b1c803 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -517,10 +517,9 @@ export class PresElementBox extends ViewBoxBaseComponent() {
{ - PresBox.Instance.navigateToActiveItem(); + this.presBoxView?.regularSelect(this.slideDoc, this._itemRef.current!, this._dragRef.current!, true, false); PresBox.Instance.openProperties(); PresBox.Instance.slideToModify = this.Document; - // PresBox.Instance.recordDictation(); }}> e.stopPropagation()} />
-- cgit v1.2.3-70-g09d2