From 926a079c7745d2aac1f9a3ff31ef8cbdefdf732e Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Wed, 1 May 2024 15:57:07 -0400 Subject: bug fiixng --- src/client/views/nodes/trails/PresBox.tsx | 106 ++---------------------------- 1 file changed, 6 insertions(+), 100 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 cf97dee1a..d03e2c41e 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -1994,16 +1994,13 @@ export class PresBox extends ViewBoxBaseComponent() { if (!timingConfig) { timingConfig = { type: SpringType.GENTLE, - // stiffness: 300, - // damping: 12, - // mass: 2, - stiffness: 600, + stiffness: 100, damping: 15, mass: 1, }; } - const preseEffect = (effect: PresEffect) => ( + const presEffect = (effect: PresEffect) => (
() { })}>
Movement - {/*
{ - e.stopPropagation(); - this._openMovementDropdown = !this._openMovementDropdown; - })} - style={{ - color: SettingsManager.userColor, - background: SettingsManager.userVariantColor, - borderBottomLeftRadius: this._openMovementDropdown ? 0 : 5, - border: this._openMovementDropdown ? `solid 2px ${SettingsManager.userVariantColor}` : `solid 1px ${SettingsManager.userColor}`, - }}> - {this.movementName(activeItem)} - -
- {presMovement(PresMovement.None)} - {presMovement(PresMovement.Center)} - {presMovement(PresMovement.Zoom)} - {presMovement(PresMovement.Pan)} - {presMovement(PresMovement.Jump)} -
-
*/} () {
{ - e.stopPropagation(); + onPointerDown={e => { + StopEvent(e); }}> (this._inputref = r)} + ref={r => (this._inputref2 = r)} minRows={1} placeholder="Get animation suggestions..." className="pres-chatbox" @@ -2300,72 +2267,11 @@ export class PresBox extends ViewBoxBaseComponent() { mass: elem.mass, }); }}> - +
))} - - {/*
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
*/}
{/* Effect direction */} -- cgit v1.2.3-70-g09d2