@@ -76,47 +76,47 @@ export class MouseTipFeedbackEffect extends EffectObject {
7676 } else if ( this . type === "moveLeft" ) {
7777 // 鼠标向左移动,右边应该出现幻影
7878 CurveRenderer . renderGradientLine (
79- MouseLocation . vector ( ) ,
79+ MouseLocation . vector ( ) . clone ( ) ,
8080 MouseLocation . vector ( ) . add ( new Vector ( 100 * ( 1 - this . timeProgress . rate ) , 0 ) ) ,
8181 StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
8282 StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
8383 10 * ( 1 - this . timeProgress . rate ) ,
8484 ) ;
8585 } else if ( this . type === "moveRight" ) {
8686 CurveRenderer . renderGradientLine (
87- MouseLocation . vector ( ) ,
87+ MouseLocation . vector ( ) . clone ( ) ,
8888 MouseLocation . vector ( ) . add ( new Vector ( - 100 * ( 1 - this . timeProgress . rate ) , 0 ) ) ,
8989 StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
9090 StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
9191 10 * ( 1 - this . timeProgress . rate ) ,
9292 ) ;
9393 } else if ( this . type === "moveUp" ) {
9494 CurveRenderer . renderGradientLine (
95- MouseLocation . vector ( ) ,
95+ MouseLocation . vector ( ) . clone ( ) ,
9696 MouseLocation . vector ( ) . add ( new Vector ( 0 , 100 * ( 1 - this . timeProgress . rate ) ) ) ,
9797 StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
9898 StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
9999 10 * ( 1 - this . timeProgress . rate ) ,
100100 ) ;
101101 } else if ( this . type === "moveDown" ) {
102102 CurveRenderer . renderGradientLine (
103- MouseLocation . vector ( ) ,
103+ MouseLocation . vector ( ) . clone ( ) ,
104104 MouseLocation . vector ( ) . add ( new Vector ( 0 , - 100 * ( 1 - this . timeProgress . rate ) ) ) ,
105105 StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
106106 StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
107107 10 * ( 1 - this . timeProgress . rate ) ,
108108 ) ;
109109 } else if ( this . type === "move" ) {
110110 CurveRenderer . renderGradientLine (
111- MouseLocation . vector ( ) ,
111+ MouseLocation . vector ( ) . clone ( ) ,
112112 MouseLocation . vector ( ) . add ( this . direction . multiply ( - 5 * ( 1 - this . timeProgress . rate ) ) ) ,
113113 StageStyleManager . currentStyle . StageObjectBorder . toNewAlpha ( 1 - this . timeProgress . rate ) ,
114114 StageStyleManager . currentStyle . StageObjectBorder . toTransparent ( ) ,
115115 2 * ( 1 - this . timeProgress . rate ) ,
116116 ) ;
117117 } else if ( this . type === "drag" ) {
118118 ShapeRenderer . renderCircle (
119- MouseLocation . vector ( ) ,
119+ MouseLocation . vector ( ) . clone ( ) ,
120120 6 * ( 1 - this . timeProgress . rate ) ,
121121 Color . Transparent ,
122122 StageStyleManager . currentStyle . StageObjectBorder . toNewAlpha ( 1 - this . timeProgress . rate ) ,
@@ -125,7 +125,7 @@ export class MouseTipFeedbackEffect extends EffectObject {
125125 } else if ( this . type === "cameraMoveToMouse" ) {
126126 CurveRenderer . renderDashedLine (
127127 Renderer . transformWorld2View ( Camera . location ) ,
128- MouseLocation . vector ( ) ,
128+ MouseLocation . vector ( ) . clone ( ) ,
129129 StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
130130 1 ,
131131 8 ,
0 commit comments